修改部分请求顺序

This commit is contained in:
2024-09-25 14:32:44 +08:00
parent 6f952970d6
commit 66e15de9eb

View File

@@ -1648,6 +1648,14 @@ export default {
this.getCart();
this.getCacheOrder();
console.log(this.isCreateOrder)
if (!this.shopInfo.isTableFee && this.table.tableId&&this.perpole>0) {
//不免餐位费
await $choseCount({
masterId: this.masterId,
tableId: this.table.tableId,
num: this.perpole,
});
}
if (this.isCreateOrder) {
this.toCreateOrder(true);
}
@@ -2765,14 +2773,7 @@ export default {
}
if (!this.shopInfo.isTableFee && item&&this.perpole>0) {
//不免餐位费
await $choseCount({
masterId: this.masterId,
tableId: this.table.tableId,
num: this.perpole,
});
}
// this.getCart();
// this.getGoods();