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