代客下单从弹窗修改为页面,修改台桌列表弹窗为跳转,代客下单完毕后跳转至台桌页面
This commit is contained in:
@@ -252,13 +252,12 @@ export default {
|
||||
status: $status,
|
||||
selTable: "", //当前选中的桌台
|
||||
areaMap: {},
|
||||
shopInfo:{},
|
||||
shopInfo: {},
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.tbShopAreaGet();
|
||||
this.getShopInfo()
|
||||
|
||||
this.getShopInfo();
|
||||
},
|
||||
filters: {
|
||||
formatTime(time) {
|
||||
@@ -271,13 +270,13 @@ export default {
|
||||
try {
|
||||
const shopId = localStorage.getItem("shopId");
|
||||
const res = await tbShopInfo(shopId);
|
||||
this.shopInfo=res
|
||||
console.log(res)
|
||||
this.shopInfo = res;
|
||||
console.log(res);
|
||||
} catch (error) {}
|
||||
},
|
||||
// 清台
|
||||
cleanTableHandle(item) {
|
||||
this.$confirm("确定要清台:"+item.name, "提示", {
|
||||
this.$confirm("确定要清台:" + item.name, "提示", {
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "warning",
|
||||
@@ -321,21 +320,30 @@ export default {
|
||||
//key isAddGoods 加菜
|
||||
//key isPayOrder结账
|
||||
this.selTable = item;
|
||||
if(this.shopInfo.isTableFee){
|
||||
if (this.shopInfo.isTableFee) {
|
||||
//免餐位费
|
||||
this.$refs.diancan.open(item, key, '');
|
||||
return
|
||||
this.toInstead({num: 0,key});
|
||||
// this.$refs.diancan.open(item, key, '');
|
||||
return;
|
||||
}
|
||||
const num = item.useNum || 0;
|
||||
if (item.useNum <= 0) {
|
||||
return this.$refs.refChooseDinersNumber.open();
|
||||
}
|
||||
this.$refs.diancan.open(item, key, num);
|
||||
this.toInstead({num: num,key});
|
||||
// this.$refs.diancan.open(item, key, num);
|
||||
},
|
||||
toInstead(query) {
|
||||
this.$router.push({ path: "/tool/Instead/index", query: {
|
||||
table_name: this.selTable.name,
|
||||
tableId: this.selTable.tableId,
|
||||
useType: this.selTable.type,
|
||||
...query
|
||||
}});
|
||||
},
|
||||
chooseDinersNumberConfirm(num) {
|
||||
//就餐人数
|
||||
console.log(num);
|
||||
this.$refs.diancan.open(this.selTable, undefined, num);
|
||||
this.toInstead({num: num});
|
||||
// this.$refs.diancan.open(this.selTable, undefined, num);
|
||||
},
|
||||
tabClick() {
|
||||
this.tbShopTableGet();
|
||||
|
||||
Reference in New Issue
Block a user