代客下单修复就餐人数问题,台桌人数限制问题

This commit is contained in:
2024-09-25 14:50:09 +08:00
parent 66e15de9eb
commit a210389439
2 changed files with 6 additions and 7 deletions

View File

@@ -337,7 +337,8 @@ export default {
this.$router.push({ path: "/tool/Instead/index", query: {
table_name: this.selTable.name,
tableId: this.selTable.tableId,
useType: this.selTable.type,
maxCapacity:this.selTable.maxCapacity,
useType: this.selTable.useType,
...query
}});
},

View File

@@ -1650,11 +1650,13 @@ export default {
console.log(this.isCreateOrder)
if (!this.shopInfo.isTableFee && this.table.tableId&&this.perpole>0) {
//不免餐位费
await $choseCount({
const seatFee= await $choseCount({
masterId: this.masterId,
tableId: this.table.tableId,
num: this.perpole,
});
this.order.seatFee = seatFee;
this.perpole=seatFee.totalNumber
}
if (this.isCreateOrder) {
this.toCreateOrder(true);
@@ -2756,7 +2758,7 @@ export default {
//无台桌代客下单
return;
}
const item = { name: params.table_name, tableId: params.tableId },
const item = { name: params.table_name, tableId: params.tableId , useType: params.useType,maxCapacity:params.maxCapacity*1},
key = params.key,
perpoleNumber = params.num;
//有台桌时的代客下单
@@ -2771,10 +2773,6 @@ export default {
? item.useType
: item.useType.replace(/-after|-before/g, "");
}
// this.getCart();
// this.getGoods();
// this.getCategory();