台桌列表增加清台弹窗

This commit is contained in:
2024-09-13 15:59:34 +08:00
parent f767d12f4a
commit 0f39d2cde1
2 changed files with 38 additions and 11 deletions

View File

@@ -1407,6 +1407,9 @@ export default {
}
},
"vipUser.id": async function (val) {
if(!this.table.tableId){
return
}
let masterId = this.order.masterId;
if (!masterId) {
const res = await this.getMasterId();
@@ -1822,6 +1825,9 @@ export default {
// 获取取餐号
getMasterId() {
// if(!this.table.tableId){
// return this.$message.error("请选择桌台");
// }
return $getMasterId({
tableId: this.table.tableId,
vipUserId: this.vipUser.id,
@@ -2417,7 +2423,6 @@ export default {
// this.goods.list = [];
this.loading = false;
this.table = "";
this.order.masterId = "";
this.order.list = [];
this.order.query.page = 1;
this.goods.total = 0;
@@ -2435,6 +2440,7 @@ export default {
this.createOrder.code = "";
this.note.content = "";
this.vipUser = { id: "" };
this.order.masterId = "";
this.allPack = false;
this.note.content = "";
this.isPrverOrder = false;