代客下单修复就餐人数问题,台桌人数限制问题
This commit is contained in:
@@ -337,7 +337,8 @@ export default {
|
|||||||
this.$router.push({ path: "/tool/Instead/index", query: {
|
this.$router.push({ path: "/tool/Instead/index", query: {
|
||||||
table_name: this.selTable.name,
|
table_name: this.selTable.name,
|
||||||
tableId: this.selTable.tableId,
|
tableId: this.selTable.tableId,
|
||||||
useType: this.selTable.type,
|
maxCapacity:this.selTable.maxCapacity,
|
||||||
|
useType: this.selTable.useType,
|
||||||
...query
|
...query
|
||||||
}});
|
}});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1650,11 +1650,13 @@ export default {
|
|||||||
console.log(this.isCreateOrder)
|
console.log(this.isCreateOrder)
|
||||||
if (!this.shopInfo.isTableFee && this.table.tableId&&this.perpole>0) {
|
if (!this.shopInfo.isTableFee && this.table.tableId&&this.perpole>0) {
|
||||||
//不免餐位费
|
//不免餐位费
|
||||||
await $choseCount({
|
const seatFee= await $choseCount({
|
||||||
masterId: this.masterId,
|
masterId: this.masterId,
|
||||||
tableId: this.table.tableId,
|
tableId: this.table.tableId,
|
||||||
num: this.perpole,
|
num: this.perpole,
|
||||||
});
|
});
|
||||||
|
this.order.seatFee = seatFee;
|
||||||
|
this.perpole=seatFee.totalNumber
|
||||||
}
|
}
|
||||||
if (this.isCreateOrder) {
|
if (this.isCreateOrder) {
|
||||||
this.toCreateOrder(true);
|
this.toCreateOrder(true);
|
||||||
@@ -2756,7 +2758,7 @@ export default {
|
|||||||
//无台桌代客下单
|
//无台桌代客下单
|
||||||
return;
|
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,
|
key = params.key,
|
||||||
perpoleNumber = params.num;
|
perpoleNumber = params.num;
|
||||||
//有台桌时的代客下单
|
//有台桌时的代客下单
|
||||||
@@ -2771,10 +2773,6 @@ export default {
|
|||||||
? item.useType
|
? item.useType
|
||||||
: item.useType.replace(/-after|-before/g, "");
|
: item.useType.replace(/-after|-before/g, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// this.getCart();
|
// this.getCart();
|
||||||
// this.getGoods();
|
// this.getGoods();
|
||||||
// this.getCategory();
|
// this.getCategory();
|
||||||
|
|||||||
Reference in New Issue
Block a user