完善销售订单、订单审核
This commit is contained in:
@@ -885,6 +885,7 @@ export default {
|
||||
// 计算折后单价 = 单价 * 折扣率
|
||||
discountPriceInput(row) {
|
||||
row.discountPrice = Math.round((parseFloat(row.price !== '' ? row.price : '0') * parseFloat(row.discountRtate !== '' ? row.discountRtate : '0') / 100) * 100) / 100
|
||||
// 折扣单价改变,重新计算应收款、惠后金额等
|
||||
this.dueAmountInput(row)
|
||||
},
|
||||
// 计算应收款, 同时计算惠后金额
|
||||
@@ -893,6 +894,8 @@ export default {
|
||||
row.dueAmount = Math.round((parseFloat(row.discountPrice !== '' ? row.discountPrice : '0') * parseFloat(row.count !== '' ? row.count : '0')) * 100) / 100
|
||||
// 惠后金额 = 应收款 - 分摊金额
|
||||
row.amount = Math.round((parseFloat(row.dueAmount) - parseFloat(row.discountAmount)) * 100) / 100
|
||||
// 重新计算税额等
|
||||
this.taxAmountInput(row)
|
||||
},
|
||||
// 计算税额。同时计算未含税价及未含税总额
|
||||
taxAmountInput(row) {
|
||||
|
||||
Reference in New Issue
Block a user