From cd0fbadc34b20f8539452d16083d5268520eb65f Mon Sep 17 00:00:00 2001 From: yinq Date: Wed, 11 Mar 2026 18:05:57 +0800 Subject: [PATCH] =?UTF-8?q?1.0.86=20=E9=83=A8=E9=97=A8=E7=BB=8F=E7=90=86?= =?UTF-8?q?=EF=BC=88BMJL=20=E8=A7=92=E8=89=B2=EF=BC=89=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E7=94=B3=E8=AF=B7=E9=A2=84=E6=8A=95=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/oa/erp/projectInfo/index.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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),