parent
4056eae94f
commit
bd97ca779d
|
|
@ -373,6 +373,7 @@ export default {
|
||||||
tableId: this.selTable.tableId,
|
tableId: this.selTable.tableId,
|
||||||
useType: this.selTable.useType,
|
useType: this.selTable.useType,
|
||||||
maxCapacity:this.selTable.maxCapacity,
|
maxCapacity:this.selTable.maxCapacity,
|
||||||
|
masterId:this.selTable.masterId,
|
||||||
...query,
|
...query,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
@click="changeKey('paysSel', index)"
|
@click="changeKey('paysSel', index)"
|
||||||
v-for="(item, index) in pays"
|
v-for="(item, index) in pays"
|
||||||
:key="index"
|
:key="index"
|
||||||
:type="paysSel == index ? 'success' : ''"
|
:type="paysSel == index ? 'primary' : ''"
|
||||||
>{{ item.text }}</el-button
|
>{{ item.text }}</el-button
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -189,10 +189,12 @@ export default {
|
||||||
open() {
|
open() {
|
||||||
this.show = true;
|
this.show = true;
|
||||||
this.form.money = Number(this.price).toFixed(2);
|
this.form.money = Number(this.price).toFixed(2);
|
||||||
$getOrderPayUrl({ orderId: this.order.id }).then((res) => {
|
if (this.openSwitch) {
|
||||||
console.log(res);
|
$getOrderPayUrl({ orderId: this.order.id }).then((res) => {
|
||||||
this.paymentQrcode = res;
|
console.log(res);
|
||||||
});
|
this.paymentQrcode = res;
|
||||||
|
});
|
||||||
|
}
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.refInputCode.focus();
|
this.$refs.refInputCode.focus();
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -1753,7 +1753,7 @@ export default {
|
||||||
//台桌变化时重新获取取餐号、购物车数据,如果是正在结账状态,创建订单到待支付页面
|
//台桌变化时重新获取取餐号、购物车数据,如果是正在结账状态,创建订单到待支付页面
|
||||||
async onTableChange() {
|
async onTableChange() {
|
||||||
const res = await this.getMasterId();
|
const res = await this.getMasterId();
|
||||||
this.masterId = res.masterId;
|
this.masterId = this.key=='isPayOrder'? this.table.masterId : res.masterId;
|
||||||
//空闲并且免餐位费设置默认就餐人数1
|
//空闲并且免餐位费设置默认就餐人数1
|
||||||
if (
|
if (
|
||||||
!this.perpole &&
|
!this.perpole &&
|
||||||
|
|
@ -2944,6 +2944,7 @@ export default {
|
||||||
tableId: params.tableId,
|
tableId: params.tableId,
|
||||||
useType: params.useType,
|
useType: params.useType,
|
||||||
maxCapacity: params.maxCapacity * 1,
|
maxCapacity: params.maxCapacity * 1,
|
||||||
|
masterId:params.masterId
|
||||||
},
|
},
|
||||||
key = params.key,
|
key = params.key,
|
||||||
perpoleNumber = params.num;
|
perpoleNumber = params.num;
|
||||||
|
|
@ -2959,6 +2960,7 @@ export default {
|
||||||
this.isCreateOrder = this.key == "isPayOrder" ? true : false;
|
this.isCreateOrder = this.key == "isPayOrder" ? true : false;
|
||||||
this.perpole = perpoleNumber;
|
this.perpole = perpoleNumber;
|
||||||
this.table = item;
|
this.table = item;
|
||||||
|
this.masterId = item.masterId;
|
||||||
},
|
},
|
||||||
close() {
|
close() {
|
||||||
if (this.table.tableId) {
|
if (this.table.tableId) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue