代客下单获取masterId增加传参orderId
This commit is contained in:
parent
bd97ca779d
commit
e8634dc187
|
|
@ -374,6 +374,7 @@ export default {
|
|||
useType: this.selTable.useType,
|
||||
maxCapacity:this.selTable.maxCapacity,
|
||||
masterId:this.selTable.masterId,
|
||||
orderId:this.selTable.orderId,
|
||||
...query,
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1753,7 +1753,7 @@ export default {
|
|||
//台桌变化时重新获取取餐号、购物车数据,如果是正在结账状态,创建订单到待支付页面
|
||||
async onTableChange() {
|
||||
const res = await this.getMasterId();
|
||||
this.masterId = this.key=='isPayOrder'? this.table.masterId : res.masterId;
|
||||
this.masterId = res.masterId;
|
||||
//空闲并且免餐位费设置默认就餐人数1
|
||||
if (
|
||||
!this.perpole &&
|
||||
|
|
@ -2112,6 +2112,7 @@ export default {
|
|||
if (this.table.tableId) {
|
||||
return $getMasterId({
|
||||
tableId: this.table.tableId,
|
||||
orderId:this.table.orderId,
|
||||
vipUserId: this.vipUser.id,
|
||||
useType: this.useTypes.sel == "takeout" ? "takeout" : "",
|
||||
});
|
||||
|
|
@ -2944,7 +2945,8 @@ export default {
|
|||
tableId: params.tableId,
|
||||
useType: params.useType,
|
||||
maxCapacity: params.maxCapacity * 1,
|
||||
masterId:params.masterId
|
||||
masterId:params.masterId,
|
||||
orderId:params.orderId,
|
||||
},
|
||||
key = params.key,
|
||||
perpoleNumber = params.num;
|
||||
|
|
|
|||
Loading…
Reference in New Issue