增加代客下单结账权限校验
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view class="u-wrap">
|
||||
|
||||
<view class="u-fixed position-all" style="z-index: 999;" v-if="!canXiadan" @click="xiadanClick"></view>
|
||||
<view class="top bg-fff w-full">
|
||||
<template v-if="option.type!='add'">
|
||||
<view class="u-flex u-row-between choose-user" @tap="chooseTable">
|
||||
@@ -173,6 +173,12 @@
|
||||
import {
|
||||
tbShopInfo
|
||||
} from '@/http/yskApi/user.js'
|
||||
import {hasPermission} from '@/commons/utils/hasPermission.js'
|
||||
let canXiadan=ref(false)
|
||||
async function xiadanClick(){
|
||||
canXiadan.value=await hasPermission('允许下单')
|
||||
}
|
||||
xiadanClick()
|
||||
const instance = getCurrentInstance();
|
||||
//临时菜
|
||||
const lingshi = reactive({
|
||||
@@ -416,6 +422,7 @@
|
||||
});
|
||||
return [...prve, ...cur.childrenList];
|
||||
}, []);
|
||||
console.log(category);
|
||||
$category = category
|
||||
const goodsRes = await getGoods()
|
||||
const goods = goodsRes.records.filter((v) => {
|
||||
|
||||
Reference in New Issue
Block a user