增加员工权限校验
This commit is contained in:
@@ -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)
|
||||
// 获取支付密码
|
||||
|
||||
Reference in New Issue
Block a user