From 0e53d6db1d44de1b1fb6defd607d6c1f12c1c5a5 Mon Sep 17 00:00:00 2001 From: hayu <1604366271@qq.com> Date: Tue, 30 Sep 2025 17:22:04 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../toolsLease/outBound/component/addToolsApply.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/views/materialsStation/toolsLease/outBound/component/addToolsApply.vue b/src/views/materialsStation/toolsLease/outBound/component/addToolsApply.vue index 6041de9f..da06887e 100644 --- a/src/views/materialsStation/toolsLease/outBound/component/addToolsApply.vue +++ b/src/views/materialsStation/toolsLease/outBound/component/addToolsApply.vue @@ -330,7 +330,8 @@ export default { standardConfig: undefined, bmFileInfos: [], proId: undefined, - relPhone: '' + relPhone: '', + leasePerson:'' }, code: '', standardConfigList: [], @@ -653,7 +654,9 @@ export default { const team = this.uniteList.find(item => item.teamName == this.maForm.teamName) this.maForm.teamId = team.id this.maForm.teamName = team.teamName - this.maForm.leasePerson = team.relName + if (this.maForm.pickType==0){ + this.maForm.leasePerson = team.relName + } this.maForm.relPhone = team.relPhone || '' this.maForm.relName = team.relName this.maForm.teamLeaderIdCard = team.teamLeaderIdCard @@ -661,7 +664,9 @@ export default { } else { this.maForm.teamId = res.data[0].id this.maForm.teamName = res.data[0].teamName - this.maForm.leasePerson = res.data[0].relName + if (this.maForm.pickType==0){ + this.maForm.leasePerson = res.data[0].relName + } this.maForm.relPhone = res.data[0].relPhone || '' this.maForm.relName = res.data[0].relName this.maForm.teamLeaderIdCard = res.data[0].teamLeaderIdCard @@ -689,6 +694,7 @@ export default { this.getBmTeam() } else if (this.maForm.proId && this.maForm.pickType == 1) { this.maForm.teamId = '' + this.maForm.leasePerson = '' this.getProDeptList() } }, From 089664bd8d9978e2df10ad50ac7a51f2c5f33366 Mon Sep 17 00:00:00 2001 From: hayu <1604366271@qq.com> Date: Tue, 30 Sep 2025 17:29:06 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../toolsLease/outBound/component/addToolsApply.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/materialsStation/toolsLease/outBound/component/addToolsApply.vue b/src/views/materialsStation/toolsLease/outBound/component/addToolsApply.vue index da06887e..5250eae7 100644 --- a/src/views/materialsStation/toolsLease/outBound/component/addToolsApply.vue +++ b/src/views/materialsStation/toolsLease/outBound/component/addToolsApply.vue @@ -656,8 +656,8 @@ export default { this.maForm.teamName = team.teamName if (this.maForm.pickType==0){ this.maForm.leasePerson = team.relName + this.maForm.relPhone = team.relPhone || '' } - this.maForm.relPhone = team.relPhone || '' this.maForm.relName = team.relName this.maForm.teamLeaderIdCard = team.teamLeaderIdCard this.maForm.subUnitName = team.subUnitName || '' @@ -666,8 +666,8 @@ export default { this.maForm.teamName = res.data[0].teamName if (this.maForm.pickType==0){ this.maForm.leasePerson = res.data[0].relName + this.maForm.relPhone = res.data[0].relPhone || '' } - this.maForm.relPhone = res.data[0].relPhone || '' this.maForm.relName = res.data[0].relName this.maForm.teamLeaderIdCard = res.data[0].teamLeaderIdCard this.maForm.subUnitName = res.data[0].subUnitName || '' @@ -695,6 +695,7 @@ export default { } else if (this.maForm.proId && this.maForm.pickType == 1) { this.maForm.teamId = '' this.maForm.leasePerson = '' + this.maForm.relPhone = '' this.getProDeptList() } },