Browse Source

新增运单批量审核权限按钮

dev-xx
qb 5 months ago
parent
commit
e1d472c48b
  1. 15
      src/views/finance/WaybillAudit.vue

15
src/views/finance/WaybillAudit.vue

@ -72,7 +72,12 @@
<!-- 头部左侧按钮模块 -->
<div class="avue-crud__left">
<!-- 批量审核 -->
<el-button type="primary" icon="CircleCheck" @click="handleBatchAudit">
<el-button
type="primary"
icon="CircleCheck"
v-if="permissionObj.WaybillAudit_BatchAudit"
@click="handleBatchAudit"
>
批量审核
</el-button>
@ -245,12 +250,14 @@ import {
} from '@/utils/util';
import { columnList } from '@/option/finance/WaybillAudit';
import { useRouter } from 'vue-router';
import { useStore } from 'vuex';
import { deepClone } from '@/utils/util';
import { getToken } from '@/utils/auth';
import { ElMessage, ElMessageBox, type UploadProps } from 'element-plus';
//
const $router = useRouter();
const $store = useStore();
const details = reactive<any>({
/** 是否开启搜索 */
@ -339,6 +346,12 @@ const { search, query, shortcuts, selectionList, drawerShow, page } = toRefs(det
/** vuex */
const permission = computed(() => mapGetters(['permission', 'tagWel', 'tagList']));
/** 权限 */
const permissionObj = reactive({
/** 批量审核 */
WaybillAudit_BatchAudit: computed(() => $store.getters.permission.WaybillAudit_BatchAudit),
});
console.log('permission :>> ', permission);
details.query.checkStatus = 0;

Loading…
Cancel
Save