修复无台桌下单nan
This commit is contained in:
parent
85b92986a7
commit
c05a9ff000
|
|
@ -330,14 +330,13 @@
|
|||
defaultCateIndex: 0,
|
||||
})
|
||||
watch(() => userNumbers.defaultCateIndex, (newval) => {
|
||||
console.log(newval);
|
||||
updateChoseCount()
|
||||
})
|
||||
|
||||
//更新就餐人数
|
||||
async function updateChoseCount() {
|
||||
console.log($shop.value);
|
||||
if (!$shop.value.isTableFee) {
|
||||
if (!$shop.value.isTableFee&& table.value.tableId) {
|
||||
//不免餐位费
|
||||
const res = await Api.$choseCount({
|
||||
masterId: option.masterId,
|
||||
|
|
@ -530,8 +529,7 @@
|
|||
}else{
|
||||
$seatFee.totalAmount=0
|
||||
}
|
||||
|
||||
console.log(goods.list);
|
||||
console.log(userNumbers.defaultCateIndex);
|
||||
}
|
||||
|
||||
let $shop = ref({
|
||||
|
|
|
|||
Loading…
Reference in New Issue