From d1bee855577077bd8720a84efc91d0e1d364deb3 Mon Sep 17 00:00:00 2001 From: hongchao <3228015117@qq.com> Date: Mon, 14 Jul 2025 17:27:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=90=E6=96=99=E7=AB=99=E9=A2=86=E6=96=99?= =?UTF-8?q?=E7=94=B3=E8=AF=B7bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../toolsLease/toolsLeaseAdd.vue | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/pages/materialsStation/toolsLease/toolsLeaseAdd.vue b/src/pages/materialsStation/toolsLease/toolsLeaseAdd.vue index 56e0124..9003364 100644 --- a/src/pages/materialsStation/toolsLease/toolsLeaseAdd.vue +++ b/src/pages/materialsStation/toolsLease/toolsLeaseAdd.vue @@ -18,10 +18,10 @@
- + @@ -214,7 +214,7 @@ const rules = ref({ teamId: { rules: [{ required: true, errorMessage: '请选择班组' }], }, - projectId: { + proId: { rules: [{ required: true, errorMessage: '请选择工程' }], }, leasePerson: { @@ -255,6 +255,7 @@ const getDetailsById = async () => { tableData.value = res.data.leaseApplyDetailsList Object.assign(formData, res.data.leaseApplyInfo) formData.projectId = res.data.leaseApplyInfo.proId + formData.proId = res.data.leaseApplyInfo.proId getAgreementInfoById() } catch (error) { console.log('🚀 ~ getDetailsById ~ error:', error) @@ -316,7 +317,7 @@ const getProjectListApi = async () => { prodRange.value = res.data.map((item) => { return { ...item, - value: item.projectId, + value: item.proId, text: item.proName, } }) @@ -434,8 +435,9 @@ const changeTeamd = (e) => { // 选择工程 const changeProd = (e) => { console.log('🚀 ~ changeProd ~ e:', e) - formData.projectId = e - formData.proId = prodRange.value.find(item => item.projectId === e)?.proId + formData.proId = e + formData.projectId = prodRange.value.find(item => item.proId === e)?.projectId + console.log("xxxxxxxxxxxxxxxxxxxxxx",formData.projectId) equipmentList.value = [] // getAgreementInfoById() getTeamList()