|
|
@ -86,7 +86,8 @@ |
|
|
|
totalTaxAmount = 0, |
|
|
|
discountAmount1 = 0, |
|
|
|
beforeTaxDiffAmount = 0, |
|
|
|
taxAmountDiff = 0 |
|
|
|
taxAmountDiff = 0, |
|
|
|
rebateTax=0 |
|
|
|
} = formModel |
|
|
|
// 2、系统税额:每条数据的合同价格X可开票数量,计算结果取两位小数之后*税率的计算结果,再保留2位。所有子表数据再求和 |
|
|
|
if (formType == 'update') { |
|
|
@ -131,7 +132,9 @@ |
|
|
|
adTaxAmount: beforeTaxAmount + totalTaxAmount, //6、价税合计金额:未税金额+税额 |
|
|
|
beforeTaxDiffAmount: beforeTaxAmount - amount - discountAmount1, //未税差额:未税金额-系统未税金额-折扣金额 |
|
|
|
taxAmountDiff: totalTaxAmount - taxAmount, // 税额差异:税额-系统税额 |
|
|
|
totalTaxDiffAmount: beforeTaxDiffAmount + taxAmountDiff // 价税合计差额=未税差额+税额差异 |
|
|
|
totalTaxDiffAmount: beforeTaxDiffAmount + taxAmountDiff, // 价税合计差额=未税差额+税额差异 |
|
|
|
rebateTax:Number(Number(discountAmount1*taxRate*0.01).toFixed(2)), |
|
|
|
rebateTotal:rebateTax+discountAmount1 |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
@ -309,6 +312,18 @@ |
|
|
|
@searchTableSuccessDetail="searchTableSuccessDetail" |
|
|
|
@handleMainFefresh="handleMainFefresh" |
|
|
|
> |
|
|
|
<!-- 价税合计尾差 --> |
|
|
|
<template #Descriptions_totalTaxDiffAmount="{ row }"> |
|
|
|
<span>{{row['totalTaxDiffAmount']}}<span class="red-text"> (含返利合计:{{ row['rebateTotal'] }})</span></span> |
|
|
|
</template> |
|
|
|
<!-- 未税尾差 --> |
|
|
|
<template #Descriptions_beforeTaxDiffAmount="{ row }"> |
|
|
|
<span>{{row['totalTaxDiffAmount']}}<span class="red-text"> (含返利未税:{{ row['discountAmount1'] }})</span></span> |
|
|
|
</template> |
|
|
|
<!-- 税额尾差 --> |
|
|
|
<template #Descriptions_taxAmountDiff="{ row }"> |
|
|
|
<span>{{row['totalTaxDiffAmount']}}<span class="red-text"> (含返利税额:{{ row['rebateTax'] }})</span></span> |
|
|
|
</template> |
|
|
|
<template #differencePrice="{ row }"> |
|
|
|
<span :class="{ 'red-text': row.differencePrice != 0 }">{{ row.differencePrice }}</span> |
|
|
|
</template> |
|
|
|