增加代客下单结账权限校验
This commit is contained in:
@@ -291,6 +291,7 @@
|
||||
import {
|
||||
getNowCart
|
||||
} from '@/pagesCreateOrder/util.js'
|
||||
import {hasPermission} from '@/commons/utils/hasPermission.js'
|
||||
const models = new Map();
|
||||
const modelData = reactive({
|
||||
data: {},
|
||||
@@ -561,6 +562,12 @@
|
||||
num: userNumbers.defaultCateIndex+1,
|
||||
})
|
||||
}
|
||||
if ($shop.value.registerType == 'munchies'||eatTypes.active=='takeout') {
|
||||
const canJiesuan=await hasPermission('允许收款')
|
||||
if(!canJiesuan){
|
||||
return
|
||||
}
|
||||
}
|
||||
// updateChoseCount()
|
||||
const res = await Api.$createOrder(par)
|
||||
uni.$emit('update:createOrderIndex')
|
||||
|
||||
Reference in New Issue
Block a user