增加员工权限校验

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

@@ -148,7 +148,7 @@
orderDetaildata.orderType != 'return' &&
(orderDetaildata.status == 'refund' ||
orderDetaildata.status == 'closed')
" type="primary" @click="recharge = true">退单</el-button>
" type="primary" @click="returnOrderHandle">退单</el-button>
</div>
<div class="orderbox_right_buttonbutton">
<el-button style="flex: 1" :loading="invoiceLoading" @click="invoiveHandle" v-if="
@@ -324,7 +324,7 @@ import {
cloudPrinterprint,
sendMessage,
} from "@/api/order/index.js";
import { queryPwdInfo } from '@/api/user.js'
import { queryPwdInfo, staffPermission } from '@/api/user.js'
import add from "@/views/order/components/add.vue";
import cashTable from "@/views/order/components/cashTable.vue";
import { clearNoNum, formatDecimal } from "@/utils";
@@ -385,6 +385,16 @@ function dateConfirm(time) {
asyncorderfindOrder();
}
// 显示退单
async function returnOrderHandle() {
try {
await staffPermission('yun_xu_tui_kuan')
recharge.value = true
} catch (error) {
console.log(error);
}
}
// 是否线上退款
const isOnline = ref(true)
// 获取支付密码