From 3f1920a75f7291b5ad7a1c78aa32a76274526b68 Mon Sep 17 00:00:00 2001
From: zhang_li
Date: Wed, 14 May 2025 17:13:03 +0800
Subject: [PATCH] =?UTF-8?q?YT-2617=E9=94=80=E5=94=AE=E5=BC=80=E7=A5=A8?=
=?UTF-8?q?=E6=A8=A1=E5=85=B7=E7=A8=8E=E9=A2=9D=E5=B7=AE=E5=BC=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../customerSaleInvoiceRecordMain.data.ts | 13 +++++++++++++
.../CustomerSaleInvoiceBasicForm.vue | 4 ++++
.../customerSaleInvoiceRequestMain.data.ts | 13 +++++++++++++
3 files changed, 30 insertions(+)
diff --git a/src/views/wms/deliversettlementManage/customerSaleInvoiceRecordMain/customerSaleInvoiceRecordMain.data.ts b/src/views/wms/deliversettlementManage/customerSaleInvoiceRecordMain/customerSaleInvoiceRecordMain.data.ts
index 2a3fd25f2..229c0f946 100644
--- a/src/views/wms/deliversettlementManage/customerSaleInvoiceRecordMain/customerSaleInvoiceRecordMain.data.ts
+++ b/src/views/wms/deliversettlementManage/customerSaleInvoiceRecordMain/customerSaleInvoiceRecordMain.data.ts
@@ -351,7 +351,20 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([
disabled: true,
}
},
+ },
+ {
+ label: '模具税额差异',
+ field: 'moldTaxAmountDifference',
+ formatter: accountantFormart,
+ table: {
+ width: 160
},
+ form: {
+ componentProps: {
+ disabled: true,
+ }
+ },
+ },
{
label: '金税票号',
field: 'goldenTaxInvoiceNumber',
diff --git a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue
index 2861ba309..e2a236a2f 100644
--- a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue
+++ b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue
@@ -101,6 +101,8 @@
moldTaxAmountDiff: (Number(alreadyMoldUntaxedAmount) - Number(allAmountNum.moldUntaxedAmount)).toFixed(2),
// 主数据已分摊价税合计=已分摊模具未税金额+已分摊模具税额
alreadyMoldTaxTotal: (Number(alreadyMoldUntaxedAmount) + Number(alreadyMoldTaxAmount)).toFixed(2),
+ // 主数据模具税额差异 alreadyMoldTaxAmount = 模具税额 - 已分摊模具税额
+ moldTaxAmountDifference: (Number(allAmountNum.moldTaxAmount) - Number(alreadyMoldTaxAmount)).toFixed(2),
}
formRef.value.setValues(sumObject)
}
@@ -194,6 +196,8 @@ const onChange =async (field, cur, formRefParams)=>{
moldTaxAmountDiff: allAmountNum.moldTaxAmountDiff,
// 主数据已分摊价税合计=已分摊模具未税金额+已分摊模具税额
alreadyMoldTaxTotal: allAmountNum.alreadyMoldTaxTotal,
+ // 主数据模具税额差异 alreadyMoldTaxAmount = 模具税额 - 已分摊模具税额
+ moldTaxAmountDifference: (Number(allAmountNum.moldTaxAmount) - Number(allAmountNum.alreadyMoldTaxAmount)).toFixed(2),
})
}
} else if (field == 'invoiceType') {
diff --git a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/customerSaleInvoiceRequestMain.data.ts b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/customerSaleInvoiceRequestMain.data.ts
index c47462d1b..ff2b36372 100644
--- a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/customerSaleInvoiceRequestMain.data.ts
+++ b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/customerSaleInvoiceRequestMain.data.ts
@@ -356,6 +356,19 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([
}
},
},
+ {
+ label: '模具税额差异',
+ field: 'moldTaxAmountDifference',
+ formatter: accountantFormart,
+ table: {
+ width: 160
+ },
+ form: {
+ componentProps: {
+ disabled: true,
+ }
+ },
+ },
{
label: '金税票号',
field: 'goldenTaxInvoiceNumber',