代客下单页面增加获取台桌信息接口

This commit is contained in:
2024-10-12 14:47:18 +08:00
parent a5b8362e0f
commit 0dab2ee22d
11 changed files with 69 additions and 905 deletions

View File

@@ -346,9 +346,12 @@
productId,
skuId,
id,
number
number,
isPack,isGift
} = item
const par = {
isPack,
isGift,
masterId: option.masterId,
tableId: table.value.tableId,
productId,
@@ -453,11 +456,19 @@
totalNumber: 0,
totalAmount: 0,
})
const allPrice = computed(() => {
const goodsPrice = computed(() => {
const goodsTotalPrice = goods.list.reduce((prve, cur) => {
return prve + cur.salePrice * cur.number * (cur.isGift ? 0 : 1)
}, 0)
return (goodsTotalPrice + $seatFee.totalAmount || 0).toFixed(2)
return (goodsTotalPrice|| 0).toFixed(2)
})
const allPrice = computed(() => {
const n=goodsPrice.value*1 + ($seatFee.totalAmount || 0)
return n.toFixed(2)
// const goodsTotalPrice = goods.list.reduce((prve, cur) => {
// return prve + cur.salePrice * cur.number * (cur.isGift ? 0 : 1)
// }, 0)
// return (goodsTotalPrice + ($seatFee.totalAmount || 0)).toFixed(2)
})
function setGoodsItem(key, val) {