增加代客下单结账权限校验
This commit is contained in:
@@ -66,6 +66,7 @@
|
||||
import * as Api from '@/http/yskApi/Instead.js'
|
||||
import myButton from '@/components/my-components/my-button'
|
||||
import go from '@/commons/utils/go.js'
|
||||
import {hasPermission} from '@/commons/utils/hasPermission.js'
|
||||
import {
|
||||
$status
|
||||
} from '@/commons/table-status.js'
|
||||
@@ -147,14 +148,19 @@
|
||||
}
|
||||
|
||||
|
||||
function diancan() {
|
||||
const useType = props.status == 'using' ? props.data.useType : undefined
|
||||
go.to('PAGES_CREATE_ORDER', {
|
||||
tableId: props.data.tableId,
|
||||
name: props.data.name,
|
||||
maxCapacity: props.data.maxCapacity,
|
||||
status: props.data.status,
|
||||
async function diancan() {
|
||||
hasPermission('允许下单').then(res=>{
|
||||
if(res){
|
||||
const useType = props.status == 'using' ? props.data.useType : undefined
|
||||
go.to('PAGES_CREATE_ORDER', {
|
||||
tableId: props.data.tableId,
|
||||
name: props.data.name,
|
||||
maxCapacity: props.data.maxCapacity,
|
||||
status: props.data.status,
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
function toOrderDetail() {
|
||||
|
||||
Reference in New Issue
Block a user