代客下单后付款修复
This commit is contained in:
@@ -156,7 +156,7 @@
|
|||||||
type="success"
|
type="success"
|
||||||
size="medium"
|
size="medium"
|
||||||
:disabled="!order.list.length"
|
:disabled="!order.list.length"
|
||||||
@click="toCreateOrder"
|
@click="toCreateOrder(false)"
|
||||||
>
|
>
|
||||||
仅下单
|
仅下单
|
||||||
</el-button>
|
</el-button>
|
||||||
@@ -167,7 +167,7 @@
|
|||||||
<el-button
|
<el-button
|
||||||
size="medium"
|
size="medium"
|
||||||
:disabled="!order.list.length"
|
:disabled="!order.list.length"
|
||||||
@click="toCreateOrder"
|
@click="toCreateOrder(true)"
|
||||||
>
|
>
|
||||||
去结账
|
去结账
|
||||||
</el-button>
|
</el-button>
|
||||||
@@ -1291,15 +1291,19 @@ export default {
|
|||||||
this.isCreateOrder = false;
|
this.isCreateOrder = false;
|
||||||
},
|
},
|
||||||
//生成订单
|
//生成订单
|
||||||
async toCreateOrder() {
|
async toCreateOrder(isNowPay=false) {
|
||||||
const res = await $createOrder({
|
const res = await $createOrder({
|
||||||
masterId: this.order.masterId || this.masterId,
|
masterId: this.order.masterId || this.masterId,
|
||||||
vipUserId: this.vipUser.id,
|
vipUserId: this.vipUser.id,
|
||||||
tableId: this.table.tableId,
|
tableId: this.table.tableId,
|
||||||
note: this.note.content,
|
note: this.note.content,
|
||||||
|
postPay:this.postPay
|
||||||
});
|
});
|
||||||
//后付款
|
//后付款
|
||||||
if(this.postPay){
|
console.log(this.postPay)
|
||||||
|
console.log(isNowPay)
|
||||||
|
console.log(this.postPay&&isNowPay)
|
||||||
|
if(this.postPay&&!isNowPay){
|
||||||
this.$notify({
|
this.$notify({
|
||||||
title: "下单成功",
|
title: "下单成功",
|
||||||
type: "success",
|
type: "success",
|
||||||
|
|||||||
Reference in New Issue
Block a user