From 08059ff364c271f7fbd4646e57024b6b26945a42 Mon Sep 17 00:00:00 2001 From: linyongLynn <15926056+linyonglynn@user.noreply.gitee.com> Date: Sun, 24 Aug 2025 11:54:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E9=87=91=E5=88=92=E6=8B=A8=E5=AE=A1?= =?UTF-8?q?=E6=89=B9=E5=8D=95=E6=9C=AA=E5=A1=AB=E8=A1=A50?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/contract/components/printPaymentForm.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/views/contract/components/printPaymentForm.vue b/src/views/contract/components/printPaymentForm.vue index 76974b7..f3ed201 100644 --- a/src/views/contract/components/printPaymentForm.vue +++ b/src/views/contract/components/printPaymentForm.vue @@ -799,7 +799,17 @@ export default { console.log('textarea fieldName:' + fieldName + "--- " + input.value) } else { // 对于其他类型的输入,直接设置value - input.setAttribute('value', input.value) + // 如果是资金划拨审批单,为特定字段设置默认值 + if (this.getForms && this.getForms.includes('资金划拨审批单')) { + const amountFields = ['contractAmount', 'auditAmount', 'previousPayment', 'currentPayment', 'currentDuePayment', 'totalPaid', 'totalPlanned'] + if (amountFields.includes(fieldName) && (!input.value || input.value === '')) { + input.setAttribute('value', '0') + } else { + input.setAttribute('value', input.value) + } + } else { + input.setAttribute('value', input.value) + } } } }