From a748e52551fc2b878b71ef6795b4cfe46be06eca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B3=89=E4=BD=B3?= <1107186916@qq.com> Date: Mon, 21 Sep 2026 19:14:57 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E5=BC=80=E7=A5=A8=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E5=95=86=E5=93=81=E8=A1=8C=E9=80=89=E6=8B=A9=E5=BC=80?= =?UTF-8?q?=E7=A5=A8=E5=86=85=E5=AE=B9=E6=97=B6=E5=BF=AB=E7=85=A7=E7=A8=8E?= =?UTF-8?q?=E6=94=B6=E5=88=86=E7=B1=BB=E7=BC=96=E7=A0=81=E5=B9=B6=E9=9A=8F?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/payment/invoice-application-form.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/views/payment/invoice-application-form.vue b/src/views/payment/invoice-application-form.vue index 8c6d212..5a8df00 100644 --- a/src/views/payment/invoice-application-form.vue +++ b/src/views/payment/invoice-application-form.vue @@ -497,6 +497,7 @@ const emptyLine = () => ({ localId: ++localId, goodsCategory: '', goodsName: '', + taxClassificationCode: '', unit: '吨', quantity: 0, unitPriceNoTax: 0, @@ -724,9 +725,11 @@ export default { const item = this.findInvoiceItem(line); if (item) { line.taxRate = Number(item.defaultTaxRate || 0); + line.taxClassificationCode = item.taxClassificationCode || ''; } else if (clearInvalid) { line.goodsName = ''; line.taxRate = 0; + line.taxClassificationCode = ''; } this.recalculateLine(line); }, @@ -734,6 +737,7 @@ export default { const names = this.invoiceItemNames(line.goodsCategory); if (!names.some(item => item.shortName === line.goodsName)) line.goodsName = ''; line.taxRate = 0; + line.taxClassificationCode = this.findInvoiceItem(line)?.taxClassificationCode || ''; if (names.length === 1) { line.goodsName = names[0].shortName; this.handleGoodsNameChange(line); @@ -743,9 +747,11 @@ export default { const item = this.findInvoiceItem(line); if (!item) { line.taxRate = 0; + line.taxClassificationCode = ''; return; } line.taxRate = Number(item.defaultTaxRate || 0); + line.taxClassificationCode = item.taxClassificationCode || ''; this.recalculateLine(line); }, validateSettlements(rule, value, callback) { @@ -1141,6 +1147,7 @@ export default { lines: sheet.lines.map(line => ({ goodsCategory: line.goodsCategory, goodsName: line.goodsName, + taxClassificationCode: line.taxClassificationCode, unit: line.unit, quantity: line.quantity, unitPriceNoTax: line.unitPriceNoTax,