优化收预付款的逻辑

This commit is contained in:
季圣华
2021-07-08 01:23:42 +08:00
parent ec87cd182b
commit d72baacfd8
6 changed files with 200 additions and 9 deletions

View File

@@ -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})