增加代客下单权限校验
This commit is contained in:
@@ -229,6 +229,7 @@ import tableDiancan from "./components/table-diancan.vue";
|
||||
import $status from "./status.js";
|
||||
import chooseDinersNumber from "./components/table-diancan-components/choose-diners-number.vue";
|
||||
import { tbShopInfo } from "@/api/user";
|
||||
import { hasPermission } from "@/utils/limits.js";
|
||||
|
||||
import {
|
||||
tbShopTableGet,
|
||||
@@ -369,7 +370,12 @@ export default {
|
||||
onDiancanClose() {
|
||||
this.tbShopTableGet();
|
||||
},
|
||||
diancanShow(item, key) {
|
||||
async diancanShow(item, key) {
|
||||
const canXiadan=await hasPermission('允许下单')
|
||||
if(!canXiadan){
|
||||
return
|
||||
}
|
||||
|
||||
//key isAddGoods 加菜
|
||||
//key isPayOrder结账
|
||||
this.selTable = item;
|
||||
|
||||
Reference in New Issue
Block a user