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',