代客下单页面增加获取台桌信息接口
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user