代客下单后付款修复

This commit is contained in:
YeMingfei666 2024-08-21 15:36:23 +08:00
parent 0a36882c8b
commit 0b3084a3f9
1 changed files with 8 additions and 4 deletions

View File

@ -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",