[fix 87650] 标准解读流程-主解读人审核按钮提交改成同意,处理一个节点对应多个nodeId
This commit is contained in:
+36
-1
@@ -106,7 +106,7 @@
|
||||
<!-- 人员信息 -->
|
||||
<div v-show="switchValue === 'user'" class="detail-page-scroll-content p-0">
|
||||
<process-detail-list :processKey="processKey">
|
||||
<personnel-info slot="personnelInfo" ref="personnelInfo" :data="personnelInfoData" :currentNode="currentNodeId"></personnel-info>
|
||||
<personnel-info slot="personnelInfo" ref="personnelInfo" :data="personnelInfoData" :currentNode="currentNodeId" :currentNodeArr="currentNodeArr"></personnel-info>
|
||||
</process-detail-list>
|
||||
</div>
|
||||
<!-- 操作按钮 -->
|
||||
@@ -239,6 +239,41 @@ export default {
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
/**
|
||||
* 当前节点数组
|
||||
* 一个节点对应多个nodeId
|
||||
* @return []
|
||||
*/
|
||||
currentNodeArr () {
|
||||
const obj = {
|
||||
// 主解读人分发节点
|
||||
distributeNodes: [
|
||||
StandardInterpretationNodes.standardInterpreterDistribution.value,
|
||||
StandardInterpretationNodes.standardInterpreterReDistribution.value
|
||||
],
|
||||
// 会签节点
|
||||
countersignNodes: [
|
||||
StandardInterpretationNodes.countersignOne.value,
|
||||
StandardInterpretationNodes.countersignTwo.value
|
||||
],
|
||||
// 部门审批节点
|
||||
departCheckNodes: [
|
||||
StandardInterpretationNodes.departManagerReviewOne.value,
|
||||
StandardInterpretationNodes.departManagerReviewTwo.value
|
||||
],
|
||||
// 主控部门审批节点
|
||||
mainDepartCheckNodes: [
|
||||
StandardInterpretationNodes.manageOrTechnicalOfficerApprovalOne.value,
|
||||
StandardInterpretationNodes.manageOrTechnicalOfficerApprovalTwo.value
|
||||
]
|
||||
}
|
||||
for (const key in obj) {
|
||||
if (obj[key].includes(this.currentNodeId)) {
|
||||
return obj[key]
|
||||
}
|
||||
}
|
||||
return []
|
||||
},
|
||||
// 是否发起节点
|
||||
isInitiate () {
|
||||
return this.currentNodeId === StandardInterpretationNodes.initiated.value
|
||||
|
||||
Reference in New Issue
Block a user