This commit is contained in:
GaoHao
2025-03-10 17:26:39 +08:00
parent 490c513f48
commit cc97b6acca
26 changed files with 258 additions and 305 deletions

View File

@@ -373,7 +373,8 @@
}
})
}
pageData.seatNum = order.tableId!=null&&order.tableId!="undefined" ? order.seatNum : 0;
console.log("order==",order)
pageData.seatNum = order.seatNum;
}
const coupAllPrice = computed(() => {
const n = pays.quan.reduce((prve, cur) => {
@@ -429,7 +430,7 @@
const discountSaleAmount = computed(() => {
if(pageData.goodsList){
let price = pageData.goodsList.filter(v => v.discountSaleAmount > 0 && v.status !== "return").reduce((a, b) => {
return a + (b.num * b.discountSaleAmount)
return a + ((b.num * b.price) - (b.num * b.discountSaleAmount))
}, 0)
return price
}