diff --git a/src/enums/commonEnums.js b/src/enums/commonEnums.js index d079f91..b55306e 100644 --- a/src/enums/commonEnums.js +++ b/src/enums/commonEnums.js @@ -190,7 +190,7 @@ export const StandardInterpretationNodes = new EsEnums({ initiated: { text: '法规工程师发起', value: 'regulatory_engineer_start', btn: ['save', 'submit'] }, controlDepartLiaisonDistribution: { text: '主控部门联络人分发', value: 'contact_person_distribute', btn: ['transfer', 'save', 'submit'] }, standardInterpreterDistribution: { text: '标准主解读人分发', value: 'master_interpret_distribute', btn: ['reject', 'transfer', 'save', 'submit'] }, - standardInterpreterReDistribution: { text: '标准主解读人分发', value: 'master_interpret_again_distribute', btn: ['transfer', 'save', 'submit'] }, + standardInterpreterReDistribution: { text: '标准主解读人分发', value: 'master_interpret_again_distribute', btn: ['save', 'submit'] }, interpreterFillInfo: { text: '解读人填写信息', value: 'interpreting_people_fillout', btn: ['reject', 'transfer', 'save', 'submit'] }, mainInterpreterSingleLineReview: { text: '标准主解读人审核', value: 'master_interpret_approve', btn: ['reject', 'transfer', 'save', 'agree'] }, standardInterpreterSummary: { text: '标准主解读人汇总', value: 'master_interpret_summary', btn: ['transfer', 'save', 'submit'] }, diff --git a/src/views/workCenter/processCenter/table/TodoList.vue b/src/views/workCenter/processCenter/table/TodoList.vue index 059da6a..98e22e8 100644 --- a/src/views/workCenter/processCenter/table/TodoList.vue +++ b/src/views/workCenter/processCenter/table/TodoList.vue @@ -77,7 +77,7 @@ import { import { ProcessType, MarketListReleaseNodes, - NewRegulationsImportNodes, StandardInterpretationNodes + NewRegulationsImportNodes, StandardInterpretationNodes, YesOrNoEnum } from '@/enums/commonEnums' import { getAction } from '../../../../api/manage' import { RegulatoryComplianceCheckNodes } from '../../../../enums/commonEnums' @@ -160,7 +160,10 @@ export default { // 新法规导入流程 [ProcessType.NEW_REGULATIONS_IMPORT.value]: [NewRegulationsImportNodes.initiated.value], // 标准解读流程 - [ProcessType.STANDARD_INTERPRETATION_PROCESS.value]: [StandardInterpretationNodes.initiated.value], + [ProcessType.STANDARD_INTERPRETATION_PROCESS.value]: [ + StandardInterpretationNodes.initiated.value, + StandardInterpretationNodes.standardInterpreterReDistribution.value + ], // 法规符合性排查流程 [ProcessType.REGULATORY_COMPLIANCE_CHECK.value]: [RegulatoryComplianceCheckNodes.initiated.value], // 市场清单发布流程 @@ -259,6 +262,10 @@ export default { }, // 是否显示转办按钮 isShowTurnTo (record) { + // 解读流程分发部分数据后去掉转办按钮 + if (record.prcType + '' === ProcessType.STANDARD_INTERPRETATION_PROCESS.value && StandardInterpretationNodes.standardInterpreterDistribution.value === record.nodeId) { + return YesOrNoEnum.NO.value === record.showRejectTransition + } if (record.prcType && record.nodeId) { return !this.notTurnToBtn[record.prcType + ''].some(tt => record.nodeId.indexOf(tt) !== -1) } else { diff --git a/src/views/workCenter/standardInterpretationProcess/StandardInterpretationProcess.vue b/src/views/workCenter/standardInterpretationProcess/StandardInterpretationProcess.vue index 1c7a190..8cff866 100644 --- a/src/views/workCenter/standardInterpretationProcess/StandardInterpretationProcess.vue +++ b/src/views/workCenter/standardInterpretationProcess/StandardInterpretationProcess.vue @@ -114,7 +114,7 @@ {{ $t('countersign') }} - {{ $t('turnTo') }} + {{ $t('turnTo') }} {{ $t('preservation') }} @@ -122,7 +122,7 @@ {{ $t('submit') }} - {{ $t('reject') }} + {{ $t('reject') }} @@ -140,7 +140,7 @@ import { ProcessKey, ProcessType, StandardInterpretationNodes, - StandardSource + StandardSource, YesOrNoEnum } from '@/enums/commonEnums' import { interpretGetProjectId, @@ -239,6 +239,17 @@ export default { } }, computed: { + // 是否部分数据已经分发(就不显示驳回和转办按钮) + isPartialDistribution () { + // 分发节点 + const isDistributeNode = StandardInterpretationNodes.standardInterpreterDistribution.value === this.currentNodeId + // 是否已经分发部分数据 + const dataStatus = this.info.data && this.info.data.processStandardInterpret && this.info.data.processStandardInterpret.showRejectTransition + if (isDistributeNode && (dataStatus === YesOrNoEnum.NO.value)) { + return false + } + return true + }, /** * 当前节点数组 * 一个节点对应多个nodeId