代客下单修复就餐人数问题,台桌人数限制问题
This commit is contained in:
@@ -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
|
||||
}});
|
||||
},
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user