[update 89221] 解读流程分发部分数据后去掉转办和驳回按钮
This commit is contained in:
@@ -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'] },
|
||||
|
||||
@@ -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 {
|
||||
|
||||
+14
-3
@@ -114,7 +114,7 @@
|
||||
<!-- 加签 -->
|
||||
<a-button v-if="$route.query.countersignFlag + '' === '1'" type="primary" ghost :loading="loading" @click="handleCountersign" icon="plus">{{ $t('countersign') }}</a-button>
|
||||
<!-- 转办 -->
|
||||
<a-button v-if="btn.includes('transfer')" type="primary" ghost :loading="loading" @click="handleTurnTo" icon="arrow-up">{{ $t('turnTo') }}</a-button>
|
||||
<a-button v-if="btn.includes('transfer') && isPartialDistribution" type="primary" ghost :loading="loading" @click="handleTurnTo" icon="arrow-up">{{ $t('turnTo') }}</a-button>
|
||||
<!-- 保存 -->
|
||||
<a-button v-if="btn.includes('save')" type="primary" ghost :loading="loading" @click="handleSave"><i class="iconfont icon-save"></i> {{ $t('preservation') }}</a-button>
|
||||
<!-- 同意 -->
|
||||
@@ -122,7 +122,7 @@
|
||||
<!-- 提交 -->
|
||||
<a-button v-if="btn.includes('submit')" type="primary" :loading="loading" @click="handleSubmit" icon="upload">{{ $t('submit') }}</a-button>
|
||||
<!-- 驳回 -->
|
||||
<a-button v-if="btn.includes('reject')" type="primary" :loading="loading" @click="handleReject" icon="close-circle">{{ $t('reject') }}</a-button>
|
||||
<a-button v-if="btn.includes('reject') && isPartialDistribution" type="primary" :loading="loading" @click="handleReject" icon="close-circle">{{ $t('reject') }}</a-button>
|
||||
</div>
|
||||
|
||||
<!--转办选人-->
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user