diff --git a/src/views/oa/erp/projectInfo/index.vue b/src/views/oa/erp/projectInfo/index.vue
index cf8a344..8949974 100644
--- a/src/views/oa/erp/projectInfo/index.vue
+++ b/src/views/oa/erp/projectInfo/index.vue
@@ -70,7 +70,7 @@
销售项目(实施、物流)
销售项目(备件)
研发项目
- 预投项目
+ 预投项目
@@ -182,10 +182,17 @@ import { listProjectInfo, delProjectInfo } from '@/api/oa/erp/projectInfo';
import { ProjectInfoVO, ProjectInfoQuery } from '@/api/oa/erp/projectInfo/types';
import { cancelProcessApply } from '@/api/workflow/instance';
import ApprovalRecord from '@/components/Process/approvalRecord.vue';
+import { useUserStore } from '@/store/modules/user';
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const route = useRoute();
const router = useRouter();
+const userStore = useUserStore();
+
+const isBmjl = computed(() => {
+ const roles = userStore.roles || [];
+ return roles.includes('BMJL');
+});
const { business_direction, project_status, active_flag, contract_flag, project_category, spare_flag, wf_business_status } = toRefs(
proxy?.useDict('business_direction', 'project_status', 'active_flag', 'contract_flag', 'project_category', 'spare_flag', 'wf_business_status')
);
@@ -306,6 +313,10 @@ const getEditPathByCategory = (projectCategory?: string) => {
/** 新增按钮操作 */
const handleAdd = (projectCategory: string) => {
+ if (projectCategory === '4' && !isBmjl.value) {
+ proxy?.$modal.msgWarning('仅部门经理(BMJL 角色)可以申请预投项目');
+ return;
+ }
proxy.$tab.closePage(route);
router.push({
path: getEditPathByCategory(projectCategory),