[update 89221] 解读流程分发部分数据后去掉转办和驳回按钮

This commit is contained in:
danshihao
2024-08-22 09:49:42 +08:00
parent 364f4edcc1
commit f15d124d78
3 changed files with 24 additions and 6 deletions
@@ -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