优化收预付款的逻辑
This commit is contained in:
@@ -155,6 +155,9 @@ export const FinancialModalMixin = {
|
||||
autoChangeAmount(target) {
|
||||
let allEachAmount = target.statisticsColumns.eachAmount-0
|
||||
let discountMoney = this.form.getFieldValue('discountMoney')-0
|
||||
if(!discountMoney) {
|
||||
discountMoney = 0
|
||||
}
|
||||
let changeAmount = (allEachAmount-discountMoney).toFixed(2)
|
||||
this.$nextTick(() => {
|
||||
this.form.setFieldsValue({'totalPrice':allEachAmount, 'changeAmount':changeAmount})
|
||||
|
||||
Reference in New Issue
Block a user