Browse Source

Merge remote-tracking branch 'remotes/origin/intex_online20250427' into intex

intex_online20250506
songguoqiang 2 months ago
parent
commit
66fa4ea2a5
  1. 18
      src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue

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

@ -56,27 +56,11 @@
}
// 2. mainTaxAmount = */100
let mainTaxAmount = Number(beforeTaxAmount*taxRate*0.01).toFixed(2)
// 4 moldTaxAmount = */100
let moldTaxAmount = Number(Number(moldUntaxedAmount) * Number(taxRate) * 0.01).toFixed(2)
// 6 materialsTaxAmount = */100
let materialsTaxAmount = Number(Number(materialsUntaxedAmount) * Number(taxRate) * 0.01).toFixed(2)
// 8 alreadyMoldTaxAmount = **
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({
//
taxAmount:mainTaxAmount,
// mainAdTaxAmount =+
adTaxAmount: (beforeTaxAmount + parseFloat(taxAmount)).toFixed(2),
//
moldTaxAmount:moldTaxAmount,
// - = +
moldTaxTotal: (Number(moldUntaxedAmount) + Number(moldTaxAmount)).toFixed(2),
// -
materialsTaxAmount: materialsTaxAmount,
// -= +
materialsTaxTotal: (Number(materialsUntaxedAmount) + Number(materialsTaxAmount)).toFixed(2),
//
alreadyMoldTaxAmount: alreadyMoldTaxAmount,
})
}
}
@ -332,7 +316,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
//
const initTableDataPrice = ()=>{
tableData.value.forEach(item=>{
item['sumPrice'] = (item['price'] + item['allocationPrice']).toFixed(5)
item['sumPrice'] = (item['price'] + item['allocationPrice']).toFixed(11)
// *2
item['beforeTaxAmount'] = Number(new Decimal(Number(item['sumPrice'])).mul(new Decimal(item['qty'])).toNumber().toFixed(2))

Loading…
Cancel
Save