From b7ca97696a16c374abb26dd19033ad72d3c628e7 Mon Sep 17 00:00:00 2001 From: dj <1042039504@qq.com> Date: Wed, 21 May 2025 23:14:00 +0800 Subject: [PATCH] =?UTF-8?q?fix(project-demand):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E4=B8=93=E9=A1=B9=E7=BB=8F=E8=B4=B9=E9=80=89=E6=8B=A9=E6=A1=86?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改了专项经费选择逻辑,确保在选择专项经费时正确处理 specialFund 和 specialFundId 的值 - 优化了代码结构,提高了可读性和维护性 --- src/views/project-demand/summary/add.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/project-demand/summary/add.vue b/src/views/project-demand/summary/add.vue index 417f16c..3ebfc93 100644 --- a/src/views/project-demand/summary/add.vue +++ b/src/views/project-demand/summary/add.vue @@ -729,10 +729,10 @@ const handleSubmit = debounce(async (instance) => { if (formData.value.singleFile !== undefined) { formData.value.singleFile = getFileParam(formData.value.singleFile) } - if (formData.value.isSpecialFund && !formData.value.specialFund) { + if (formData.value.isSpecialFund) { formData.value.specialFund = getFundName(formData.value.specialFundId) }else{ - formData.value.specialFundId=0 + formData.value.specialFundId = 0 formData.value.specialFund=null } if (formData.value.masterProjectId) { @@ -792,10 +792,10 @@ const handleResubmit = debounce((instance) => { }) } formData.value.optionalChargeLeadership = optionalChargeLeadershipList.value - if (formData.value.isSpecialFund && !formData.value.specialFund) { + if (formData.value.isSpecialFund) { formData.value.specialFund = getFundName(formData.value.specialFundId) }else{ - formData.value.specialFundId=0 + formData.value.specialFundId = 0 formData.value.specialFund=null } if (formData.value.masterProjectId) {