增加员工权限校验

This commit is contained in:
gyq
2024-10-21 13:48:57 +08:00
parent 9d73a49a06
commit db8c41fd16
7 changed files with 126 additions and 47 deletions

View File

@@ -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);
}
}
// 线上充值退款