代客下单结账增加积分优惠券支付

This commit is contained in:
2024-11-05 16:28:01 +08:00
parent 63ef70ab6a
commit 67a892ac01
7 changed files with 535 additions and 69 deletions

View File

@@ -154,7 +154,7 @@ export default {
}
if (curretnMoney > money) {
this.$message.error("实收金额不能大于总金额");
this.form.curretnMoney = form.money;
this.form.curretnMoney = this.form.money;
}
this.form.reduceMoney = (money - this.form.curretnMoney).toFixed(2);
this.form.discount =toFixedNoRounding( ((this.form.curretnMoney / money) * 100).toFixed(3) );
@@ -173,7 +173,7 @@ export default {
},
open(data) {
console.log(data);
this.form.money = data.amount;
this.form.money = data.amount*1;
this.form.discount = data.discount?toFixedNoRounding(data.discount.toFixed(3)):100;
this.show = true;
this.init();