Wangxubin1999 3 years ago
commit 50deca8813

@ -1898,6 +1898,7 @@ export default {
let total = eval(this.$refs.payment.payLists.map(item=>{return item.payMoney?item.payMoney*1:0}).join("+")) let total = eval(this.$refs.payment.payLists.map(item=>{return item.payMoney?item.payMoney*1:0}).join("+"))
if(this.appearPrices*1 || total){ if(this.appearPrices*1 || total){
if(total>this.appearPrices*1){ if(total>this.appearPrices*1){
this.formData = new FormData();
return this.$alert(`现金金额多出${total-this.appearPrices*1}`, "提示", { return this.$alert(`现金金额多出${total-this.appearPrices*1}`, "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
confirmButtonClass: "confirmbtnFalses", confirmButtonClass: "confirmbtnFalses",
@ -1906,6 +1907,7 @@ export default {
callback: action => {} callback: action => {}
}); });
}else if(total<this.appearPrices*1){ }else if(total<this.appearPrices*1){
this.formData = new FormData();
return this.$alert(`现金金额还需支付${this.appearPrices*1 - total}`, "提示", { return this.$alert(`现金金额还需支付${this.appearPrices*1 - total}`, "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
confirmButtonClass: "confirmbtnFalses", confirmButtonClass: "confirmbtnFalses",
@ -2479,9 +2481,9 @@ export default {
).toFixed(2) * 1; ).toFixed(2) * 1;
money += debtMoney; money += debtMoney;
} }
collectionRechargeAmountg = collectionRechargeAmountg =collectionRechargeAmountg+
collectionRechargeAmountg + (item.collectionRechargeAmount.toFixed(2) * 1);
item.collectionRechargeAmount.toFixed(2) * 1;
}); });
// //

Loading…
Cancel
Save