From 8bf9db615ca93cd0e570ab9fe03f00000563f34b Mon Sep 17 00:00:00 2001 From: Harry Yang Date: Thu, 5 Jan 2023 21:18:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AA=E6=9C=89=20=E9=87=87=E8=B4=AD?= =?UTF-8?q?=E5=90=88=E5=90=8C=E9=87=8D=E7=BD=AE=20=E5=90=88=E5=90=8C?= =?UTF-8?q?=E9=87=91=E9=A2=9D=20=EF=BC=88=E5=9B=A0=E4=B8=BA=E8=A6=81?= =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E5=90=88=E5=90=8C=E6=B8=85=E5=8D=95=E6=98=8E?= =?UTF-8?q?=E7=BB=86=E8=AE=A1=E7=AE=97=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/templates/admin/business/process-new.ftl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/resources/templates/admin/business/process-new.ftl b/src/main/resources/templates/admin/business/process-new.ftl index 74782b2..a53b2df 100644 --- a/src/main/resources/templates/admin/business/process-new.ftl +++ b/src/main/resources/templates/admin/business/process-new.ftl @@ -974,8 +974,13 @@ } } // @formatter:on - - this.initForm({ ...form, contractAmount: 0 }) + if (this.projectType === procurementContract) { + // 只有 采购合同重置 合同金额 (因为要根据合同清单明细计算) + this.initForm({ ...form, contractAmount: 0 }) + } + else { + this.initForm(form) + } this.projectSelected = true let indexCounter = 1; this.incomeDetails = incomeDetails && incomeDetails.map(detail => ({