增加员工权限校验
This commit is contained in:
@@ -59,7 +59,7 @@ import { onMounted, reactive, ref } from 'vue'
|
||||
import { dayjs, ElMessage } from 'element-plus'
|
||||
import { formatDecimal } from '@/utils/index'
|
||||
import { returnFlow, memberqueryMemberAccount } from '@/api/member/index.js'
|
||||
import { queryPwdInfo } from '@/api/user.js'
|
||||
import { queryPwdInfo, staffPermission } from '@/api/user.js'
|
||||
import takeFoodCode from "@/components/takeFoodCode.vue";
|
||||
|
||||
const memberId = ref('')
|
||||
@@ -111,10 +111,15 @@ const loading = ref(false)
|
||||
const refundItem = ref({})
|
||||
const formRef = ref(null)
|
||||
|
||||
function showRefundHandle(item) {
|
||||
refundItem.value = item
|
||||
form.amount = item.amount
|
||||
showDialog.value = true
|
||||
async function showRefundHandle(item) {
|
||||
try {
|
||||
await staffPermission('yun_xu_tui_kuan')
|
||||
refundItem.value = item
|
||||
form.amount = item.amount
|
||||
showDialog.value = true
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
}
|
||||
}
|
||||
|
||||
// 线上充值退款
|
||||
|
||||
Reference in New Issue
Block a user