master
Wangxubin1999 3 years ago
parent 79a7898819
commit b25b3fc35b

@ -1844,9 +1844,9 @@ export default {
let payLists = []; let payLists = [];
let rechargeAccountList = []; let rechargeAccountList = [];
this.payLists.forEach(item => { this.payLists.forEach(item => {
this.payMoneysum = this.payMoneysum * 1 + item.payMoney * 1; // this.payMoneysum = this.payMoneysum * 1 + item.payMoney * 1;
this.payMoneysums = this.payMoneysum / this.list.length; // this.payMoneysums = this.payMoneysum / this.list.length;
if (item.payMoney > 0) { if (item.payMoney > 0) {
let items = { let items = {
@ -1874,34 +1874,19 @@ export default {
} }
}); });
// console.log("🚀 ~ file: service.vue ~ line 1796 ~ addCashConfirm ~ list", list) let collectionAmountsum=0
// list.forEach(item => { list.forEach(item => {
// console.log(item.collectionAmount) collectionAmountsum=item.collectionAmount*1+collectionAmountsum*1;
// collectionAmountsum=item.collectionAmount*1+collectionAmountsum*1; });
// });
// console.log("🚀 ~ file: service.vue ~ line 1800 ~ addCashConfirm ~ collectionAmountsum", collectionAmountsum)
this.formData.append("cashListRequestList", JSON.stringify(list)); this.formData.append("cashListRequestList", JSON.stringify(list));
// collectionAmount // collectionAmount
if (this.payMoneysums != this.appearPrices) { if (collectionAmountsum==0) {
this.$alert("还未进行支付", "提示", { this.$alert("还未进行支付", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
confirmButtonClass: "confirmbtnFalses", confirmButtonClass: "confirmbtnFalses",
type: "warning", type: "warning",
center: true, center: true,
callback: action => { callback: action => {}
this.payMoneysum = 0;
this.payMoneysums = 0;
this.payLists.forEach(item=>{
item.payMoney=0
});
var that = this;
setTimeout(() => {
that.$nextTick(() => {
that.$refs.payment.show(that.form, that.payLists);
});
}, 500);
}
}); });
this.formData = new FormData(); this.formData = new FormData();
} else { } else {

Loading…
Cancel
Save