update 项目合规评估流程、不需要转办的节点处理

This commit is contained in:
赵霄
2023-12-20 15:27:09 +08:00
parent f627069639
commit 3bd3493898
2 changed files with 36 additions and 9 deletions
@@ -97,7 +97,12 @@ import {
EsInspectionProcess,
InspectionExtensionRequestProcess,
EsInspectionRectification,
PermissionApply, PostMeetingManage
PermissionApply,
PostMeetingManage,
FGEntryChangeProcessNode,
ConsultationProcess,
ProjectComplianceEvaluationProcessNode,
ProcurementProcessNodes
} from '@/enums/commonEnums'
export default {
@@ -164,17 +169,17 @@ export default {
// 每个流程不显示待办按钮的节点nodeId
notTurnToBtn: {
// 标准法规入库/变更流程
[ProcessType.FB_ENTRY_CHANGE.value]: [],
[ProcessType.FB_ENTRY_CHANGE.value]: [FGEntryChangeProcessNode.initiate.value],
// 征求意见流程
[ProcessType.CONSULTATION.value]: [],
[ProcessType.CONSULTATION.value]: [ConsultationProcess.initiate.value],
// 项目合规评估流程
[ProcessType.PROJECT_COMPLIANCE_EVALUATION.value]: [],
[ProcessType.PROJECT_COMPLIANCE_EVALUATION.value]: [ProjectComplianceEvaluationProcessNode.initiate.value],
// 未符合项跟踪流程
[ProcessType.NO_MATCH_TRACKING.value]: [],
// 法规合规评估流程
[ProcessType.REGULATORY_COMPLIANCE_ASSESSMENT.value]: [],
// 法规采购流程
[ProcessType.LEGAL_PROCUREMENT.value]: [],
[ProcessType.LEGAL_PROCUREMENT.value]: [ProcurementProcessNodes.initiate.value, ProcurementProcessNodes.regulatoryEngineerConfirmation.value],
// 企标立项/变更计划
[ProcessType.ES_INIT_CHANGE.value]: [
EsInitChangeNodes.mainDrafterStart.value,
@@ -358,7 +363,7 @@ export default {
// 是否显示转办按钮
isShowTurnTo (record) {
if (record.prcType && record.nodeId) {
return !this.notTurnToBtn[record.prcType + ''].includes(record.nodeId)
return !this.notTurnToBtn[record.prcType + ''].some(tt => record.nodeId.indexOf(tt) !== -1)
} else {
return false
}