diff --git a/src/views/workCenter/processCenter/table/TodoList.vue b/src/views/workCenter/processCenter/table/TodoList.vue index 00b168ea..57938be3 100644 --- a/src/views/workCenter/processCenter/table/TodoList.vue +++ b/src/views/workCenter/processCenter/table/TodoList.vue @@ -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 } diff --git a/src/views/workCenter/projectComplianceEvaluationProcess/ProjectComplianceEvaluationProcess.vue b/src/views/workCenter/projectComplianceEvaluationProcess/ProjectComplianceEvaluationProcess.vue index 6e2f9bf8..e81f9ad0 100644 --- a/src/views/workCenter/projectComplianceEvaluationProcess/ProjectComplianceEvaluationProcess.vue +++ b/src/views/workCenter/projectComplianceEvaluationProcess/ProjectComplianceEvaluationProcess.vue @@ -203,7 +203,7 @@