feat: 代客下单优惠券更新,挂账更新
This commit is contained in:
@@ -143,7 +143,7 @@
|
||||
>
|
||||
<el-button
|
||||
type="primary"
|
||||
:disabled="!item.tableId || item.status === 'closed'"
|
||||
:disabled="!item.tableCode || item.status === 'closed'"
|
||||
@click="diancanShow(item)"
|
||||
>
|
||||
点餐
|
||||
@@ -334,7 +334,37 @@ async function areainit() {
|
||||
return prve;
|
||||
}, {});
|
||||
}
|
||||
|
||||
async function diancanShow(item, key) {
|
||||
// if (key === "isPayOrder") {
|
||||
// const canShoukuan = await hasPermission("允许收款");
|
||||
// if (!canShoukuan) {
|
||||
// return;
|
||||
// }
|
||||
// }
|
||||
// const canXiadan = await hasPermission("允许下单");
|
||||
// if (!canXiadan) {
|
||||
// return;
|
||||
// }
|
||||
// if (key === "subscribe") {
|
||||
// this.$refs.subscribe.show();
|
||||
// return;
|
||||
// }
|
||||
// key isAddGoods 加菜
|
||||
// key isPayOrder 结账
|
||||
this.selTable = item;
|
||||
if (this.shopInfo.isTableFee) {
|
||||
// 免餐位费
|
||||
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.toInstead({ num: num, key });
|
||||
// this.$refs.diancan.open(item, key, num);
|
||||
}
|
||||
const tabClick = (tab) => {
|
||||
console.log(tab);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user