Browse Source

去掉索赔总额计算

intex
zhang_li 1 week ago
parent
commit
d11a80ef2c
  1. 7
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

7
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

@ -88,7 +88,6 @@
beforeTaxDiffAmount = 0,
taxAmountDiff = 0,
rebateTax=0,
claimAmount=0
} = formModel
// 2X*2
if (formType == 'update') {
@ -103,7 +102,7 @@
updateOriginFormModel(formModel)
}
formRef.value.setValues({
afterTaxAmount: amount + taxAmount - claimAmount, // 3+-
afterTaxAmount: amount + taxAmount, // 3+-
adTaxAmount: beforeTaxAmount + totalTaxAmount, //6+
beforeTaxDiffAmount: beforeTaxAmount - amount, //-
taxAmountDiff: totalTaxAmount - taxAmount, // -
@ -131,7 +130,7 @@
}
formRef.value.setValues({
taxAmount: taxAmount_,
afterTaxAmount: amount + taxAmount - claimAmount, // 3+-
afterTaxAmount: amount + taxAmount, // 3+-
adTaxAmount: beforeTaxAmount + totalTaxAmount, //6+
beforeTaxDiffAmount: beforeTaxAmount - amount, //-
taxAmountDiff: totalTaxAmount - taxAmount, // -
@ -969,8 +968,6 @@ const claimDetailsList = ref([])
const claimDetails = async (supplierCode) => {
claimDetailsList.value = await PurchaseClaimRequestDetailApi.getPurchaseClaimRequestDetailList(supplierCode)
formRef.value.formRef.formModel.claimAmount = claimDetailsList.value.map(item => item.claimAmount).reduce((prev, item) => prev + item).toFixed(5)
formRef.value.formRef.formModel.afterTaxAmount = (parseFloat(formRef.value.formRef.formModel.afterTaxAmount) - parseFloat(formRef.value.formRef.formModel.claimAmount)).toFixed(2)
console.log(formRef.value.formRef.formModel.afterTaxAmount)
}
//
const checkInvoicingCalendar = async () => {

Loading…
Cancel
Save