From 5101dc7657326a1258fb72d08aa089e3a807124c Mon Sep 17 00:00:00 2001 From: tcy <1193318383@qq.com> Date: Sat, 6 Sep 2025 18:26:17 +0800 Subject: [PATCH] =?UTF-8?q?fix(ctr):=20=E4=BF=AE=E5=A4=8D=E6=94=B6?= =?UTF-8?q?=E5=85=A5=E5=90=88=E5=90=8C=E7=B1=BB=E5=9E=8B=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E5=90=8E=E6=9C=AA=E9=87=8D=E7=BD=AE=E5=90=88=E5=90=8C=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在切换收入合同类型时,确保合同类型被正确重置 - 优化了模板中的代码格式,提高了可读性 --- src/views/ctr/index.vue | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/views/ctr/index.vue b/src/views/ctr/index.vue index 96f5c49..98b913d 100644 --- a/src/views/ctr/index.vue +++ b/src/views/ctr/index.vue @@ -24,7 +24,8 @@ - + @@ -37,17 +38,15 @@ - + - + @@ -61,35 +60,36 @@ - + - 选择招标 + 选择招标 - + + v-model="form.amount" placeholder="请输入合同金额" disabled /> - + @@ -208,7 +208,7 @@ const payRatioComputed = computed({ return total; }, // 只读 - set: () => {} + set: () => { } }); const checkContractType = (type) => { contract_type.value = type; @@ -280,7 +280,6 @@ const resetForm = () => { }; fileList.value = []; tempFileList.value = []; - contract_type.value = ''; setTimeout(() => { localStorage.removeItem('tempContractForm'); }, 0); @@ -399,6 +398,7 @@ const getInfoByProjectIdList = async () => { form.value.contractOwner = res.data.planDuration; }; onMounted(() => { + contract_type.value = ''; getInfoByProjectIdList(); const tempForm = localStorage.getItem('tempContractForm');