1.0.86 部门经理(BMJL 角色)可以申请预投项目

dev
yinq 1 week ago
parent b8b48e3a04
commit cd0fbadc34

@ -70,7 +70,7 @@
<el-dropdown-item command="1">销售项目实施物流</el-dropdown-item>
<el-dropdown-item command="2">销售项目备件</el-dropdown-item>
<el-dropdown-item command="3">研发项目</el-dropdown-item>
<el-dropdown-item command="4">预投项目</el-dropdown-item>
<el-dropdown-item command="4" :disabled="!isBmjl">预投项目</el-dropdown-item>
</el-dropdown-menu>
</template>
</el-dropdown>
@ -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<any>(
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),

Loading…
Cancel
Save