代客下单修改
台桌列表跳转到代客下单立即结账时使用当前台桌的masterId
This commit is contained in:
@@ -1753,7 +1753,7 @@ export default {
|
||||
//台桌变化时重新获取取餐号、购物车数据,如果是正在结账状态,创建订单到待支付页面
|
||||
async onTableChange() {
|
||||
const res = await this.getMasterId();
|
||||
this.masterId = res.masterId;
|
||||
this.masterId = this.key=='isPayOrder'? this.table.masterId : res.masterId;
|
||||
//空闲并且免餐位费设置默认就餐人数1
|
||||
if (
|
||||
!this.perpole &&
|
||||
@@ -2944,6 +2944,7 @@ export default {
|
||||
tableId: params.tableId,
|
||||
useType: params.useType,
|
||||
maxCapacity: params.maxCapacity * 1,
|
||||
masterId:params.masterId
|
||||
},
|
||||
key = params.key,
|
||||
perpoleNumber = params.num;
|
||||
@@ -2959,6 +2960,7 @@ export default {
|
||||
this.isCreateOrder = this.key == "isPayOrder" ? true : false;
|
||||
this.perpole = perpoleNumber;
|
||||
this.table = item;
|
||||
this.masterId = item.masterId;
|
||||
},
|
||||
close() {
|
||||
if (this.table.tableId) {
|
||||
|
||||
Reference in New Issue
Block a user