Browse Source

YT-2543发运结算管理--创建开票申请界面:1、增加字段显示:已分摊模具未税金额,已分摊模具税额、模具税额差异三个显示字段2、去掉模具未税尾差字段显示3、上述字段计算公式如下:已分摊模具未税金额=(已分摊品番数量*分摊单价)保留两位小数 后汇总弄求和已分摊模具税额=((已分摊品番数量*分摊单价)保留两位小数*税率)保留两位小数后汇总求和模具未税差异=已分摊模具未税金额-模具分摊未税金额

intex_online20250427
张立 2 days ago
parent
commit
547c1ac2e9
  1. 29
      src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue
  2. 46
      src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/customerSaleInvoiceRequestMain.data.ts

29
src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue

@ -42,7 +42,9 @@
taxAmountDiff = 0, taxAmountDiff = 0,
rebateTax = 0, rebateTax = 0,
moldUntaxedAmount=0, moldUntaxedAmount=0,
materialsUntaxedAmount=0 materialsUntaxedAmount=0,
alreadyMoldUntaxedAmount=0
} = formModel } = formModel
// 2X*2 // 2X*2
if (formType == 'update') { if (formType == 'update') {
@ -62,9 +64,8 @@
let moldTaxAmount = Number(Number(moldUntaxedAmount) * Number(taxRate) * 0.01).toFixed(2) let moldTaxAmount = Number(Number(moldUntaxedAmount) * Number(taxRate) * 0.01).toFixed(2)
// 6 materialsTaxAmount = */100 // 6 materialsTaxAmount = */100
let materialsTaxAmount = Number(Number(materialsUntaxedAmount) * Number(taxRate) * 0.01).toFixed(2) let materialsTaxAmount = Number(Number(materialsUntaxedAmount) * Number(taxRate) * 0.01).toFixed(2)
// * // 8 alreadyMoldTaxAmount = **
let allAmount = tableData.reduce((prev, item) =>prev + Number((Number(item['allocationPrice'])*Number(item['qty'])).toFixed(2)),0).toFixed(2) let alreadyMoldTaxAmount = tableData.reduce((prev, item) => prev + Number((Number(item['allocationPrice']) * Number(item['qty']) * Number(taxRate) * 0.01).toFixed(2)), 0).toFixed(2)
formRef.value.setValues({ formRef.value.setValues({
// //
taxAmount:mainTaxAmount, taxAmount:mainTaxAmount,
@ -78,9 +79,8 @@
materialsTaxAmount: materialsTaxAmount, materialsTaxAmount: materialsTaxAmount,
// -= + // -= +
materialsTaxTotal: (Number(materialsUntaxedAmount) + Number(materialsTaxAmount)).toFixed(2), materialsTaxTotal: (Number(materialsUntaxedAmount) + Number(materialsTaxAmount)).toFixed(2),
//
// allocationDifferenceBeforeTax : * alreadyMoldTaxAmount: alreadyMoldTaxAmount,
// allocationDifferenceBeforeTax: (Number(moldUntaxedAmount) - Number(allAmount)).toFixed(2),
}) })
} }
} }
@ -100,8 +100,10 @@
let materialsUntaxedAmount = tableData.reduce((prev, item) =>prev + Number((Number(item['price'])*Number(item['qty'])).toFixed(2)),0).toFixed(2) let materialsUntaxedAmount = tableData.reduce((prev, item) =>prev + Number((Number(item['price'])*Number(item['qty'])).toFixed(2)),0).toFixed(2)
// 6 materialsTaxAmount = */100 // 6 materialsTaxAmount = */100
let materialsTaxAmount = Number(Number(materialsUntaxedAmount) * Number(taxRate) * 0.01).toFixed(2) let materialsTaxAmount = Number(Number(materialsUntaxedAmount) * Number(taxRate) * 0.01).toFixed(2)
// * //  7=*
let allAmount = tableData.reduce((prev, item) =>prev + Number((Number(item['allocationPrice'])*Number(item['qty'])).toFixed(2)),0).toFixed(2) let alreadyMoldUntaxedAmount = tableData.reduce((prev, item) =>prev + Number((Number(item['allocationPrice'])*Number(item['qty'])).toFixed(2)),0).toFixed(2)
// 8 alreadyMoldTaxAmount = **
let alreadyMoldTaxAmount = tableData.reduce((prev, item) => prev + Number((Number((Number(item['allocationPrice']) * Number(item['qty'])).toFixed(2)) * Number(taxRate) * 0.01).toFixed(2)), 0).toFixed(2)
const sumObject = { const sumObject = {
// //
@ -122,8 +124,13 @@
materialsTaxAmount: materialsTaxAmount, materialsTaxAmount: materialsTaxAmount,
// -= + // -= +
materialsTaxTotal: (Number(materialsUntaxedAmount) + Number(materialsTaxAmount)).toFixed(2), materialsTaxTotal: (Number(materialsUntaxedAmount) + Number(materialsTaxAmount)).toFixed(2),
// allocationDifferenceBeforeTax : *
allocationDifferenceBeforeTax: (Number(moldUntaxedAmount) - Number(allAmount)).toFixed(2), //
alreadyMoldUntaxedAmount: alreadyMoldUntaxedAmount,
//
alreadyMoldTaxAmount: alreadyMoldTaxAmount,
// =-
moldMoldTaxAmountDiff: (Number(alreadyMoldUntaxedAmount) - Number(moldUntaxedAmount)).toFixed(2),
} }
formRef.value.setValues(sumObject) formRef.value.setValues(sumObject)
} }

46
src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/customerSaleInvoiceRequestMain.data.ts

@ -290,9 +290,49 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive<CrudSchema[]>([
disabled: true, disabled: true,
} }
}, },
}, { },
label: '模具未税尾差', // {
field: 'allocationDifferenceBeforeTax', // label: '模具未税尾差',
// field: 'allocationDifferenceBeforeTax',
// formatter: accountantFormart,
// table: {
// width: 160
// },
// form: {
// componentProps: {
// disabled: true,
// }
// },
// },
{
label: '已分摊模具未税金额',
field: 'alreadyMoldUntaxedAmount',
formatter: accountantFormart,
table: {
width: 160
},
form: {
componentProps: {
disabled: true,
}
},
},
{
label: '已分摊模具税额',
field: 'alreadyMoldTaxAmount',
formatter: accountantFormart,
table: {
width: 160
},
form: {
componentProps: {
disabled: true,
}
},
},
{
label: '模具税额差异',
field: 'moldMoldTaxAmountDiff',
formatter: accountantFormart, formatter: accountantFormart,
table: { table: {
width: 160 width: 160

Loading…
Cancel
Save