修改代客下单切换会员逻辑

This commit is contained in:
2024-11-19 15:21:20 +08:00
parent 8318b9ed80
commit 07d072ce4c

View File

@@ -1609,6 +1609,7 @@ export default {
total: 0, total: 0,
}, },
order: { order: {
status:'',
packFee: { packFee: {
totalNumber: 0, totalNumber: 0,
status: "", status: "",
@@ -2038,9 +2039,9 @@ export default {
// this.masterId = masterId; // this.masterId = masterId;
console.log("this.createOrder.data"); console.log("this.createOrder.data");
console.log(this.createOrder.data); console.log(this.createOrder.data);
if(this.createOrder.data.memberId==val){ if(this.order.status=='finish'){
return return
} }
$setUser({ $setUser({
tableId: this.table.tableId, tableId: this.table.tableId,
masterId: this.masterId, masterId: this.masterId,
@@ -2053,6 +2054,8 @@ export default {
this.getOrderData().then(() => { this.getOrderData().then(() => {
this.pointsValueChange(this.points.value); this.pointsValueChange(this.points.value);
}); });
}else{
this.getCart()
} }
}); });
}, },
@@ -2834,6 +2837,7 @@ export default {
title: "支付成功", title: "支付成功",
type: "success", type: "success",
}); });
this.order.status='finish'
this.close(); this.close();
// this.reset(); // this.reset();
}, },