|
@ -88,7 +88,6 @@ |
|
|
beforeTaxDiffAmount = 0, |
|
|
beforeTaxDiffAmount = 0, |
|
|
taxAmountDiff = 0, |
|
|
taxAmountDiff = 0, |
|
|
rebateTax=0, |
|
|
rebateTax=0, |
|
|
claimAmount=0 |
|
|
|
|
|
} = formModel |
|
|
} = formModel |
|
|
// 2、系统税额:每条数据的合同价格X可开票数量,计算结果取两位小数之后*税率的计算结果,再保留2位。所有子表数据再求和 |
|
|
// 2、系统税额:每条数据的合同价格X可开票数量,计算结果取两位小数之后*税率的计算结果,再保留2位。所有子表数据再求和 |
|
|
if (formType == 'update') { |
|
|
if (formType == 'update') { |
|
@ -103,7 +102,7 @@ |
|
|
updateOriginFormModel(formModel) |
|
|
updateOriginFormModel(formModel) |
|
|
} |
|
|
} |
|
|
formRef.value.setValues({ |
|
|
formRef.value.setValues({ |
|
|
afterTaxAmount: amount + taxAmount - claimAmount, // 3、系统价税合计:系统未税金额+系统税额-索赔总额 |
|
|
afterTaxAmount: amount + taxAmount, // 3、系统价税合计:系统未税金额+系统税额-索赔总额 |
|
|
adTaxAmount: beforeTaxAmount + totalTaxAmount, //6、价税合计金额:未税金额+税额 |
|
|
adTaxAmount: beforeTaxAmount + totalTaxAmount, //6、价税合计金额:未税金额+税额 |
|
|
beforeTaxDiffAmount: beforeTaxAmount - amount, //未税差额:未税金额-系统未税金额 |
|
|
beforeTaxDiffAmount: beforeTaxAmount - amount, //未税差额:未税金额-系统未税金额 |
|
|
taxAmountDiff: totalTaxAmount - taxAmount, // 税额差异:税额-系统税额 |
|
|
taxAmountDiff: totalTaxAmount - taxAmount, // 税额差异:税额-系统税额 |
|
@ -131,7 +130,7 @@ |
|
|
} |
|
|
} |
|
|
formRef.value.setValues({ |
|
|
formRef.value.setValues({ |
|
|
taxAmount: taxAmount_, |
|
|
taxAmount: taxAmount_, |
|
|
afterTaxAmount: amount + taxAmount - claimAmount, // 3、系统价税合计:系统未税金额+系统税额-索赔总额 |
|
|
afterTaxAmount: amount + taxAmount, // 3、系统价税合计:系统未税金额+系统税额-索赔总额 |
|
|
adTaxAmount: beforeTaxAmount + totalTaxAmount, //6、价税合计金额:未税金额+税额 |
|
|
adTaxAmount: beforeTaxAmount + totalTaxAmount, //6、价税合计金额:未税金额+税额 |
|
|
beforeTaxDiffAmount: beforeTaxAmount - amount, //未税差额:未税金额-系统未税金额 |
|
|
beforeTaxDiffAmount: beforeTaxAmount - amount, //未税差额:未税金额-系统未税金额 |
|
|
taxAmountDiff: totalTaxAmount - taxAmount, // 税额差异:税额-系统税额 |
|
|
taxAmountDiff: totalTaxAmount - taxAmount, // 税额差异:税额-系统税额 |
|
@ -969,8 +968,6 @@ const claimDetailsList = ref([]) |
|
|
const claimDetails = async (supplierCode) => { |
|
|
const claimDetails = async (supplierCode) => { |
|
|
claimDetailsList.value = await PurchaseClaimRequestDetailApi.getPurchaseClaimRequestDetailList(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.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 () => { |
|
|
const checkInvoicingCalendar = async () => { |
|
|