[update] 修改企标立项流程节点4和节点5的标题

This commit is contained in:
lideqin
2024-01-26 14:20:14 +08:00
parent 74b92ec94a
commit 47a0b3358d
@@ -311,6 +311,33 @@ export default {
} else {
return true
}
},
// 节点
currentNodeName () {
if (this.$route.query.taskName) {
// 说明是已发起流程
if (this.currentNode === 4) {
if (this.formInline.applicationCategory === ApplicationCategory.INITIATION.value) {
// 是立项
return EsInitChangeNodes.leaderApproval.initiationText
} else {
// 是变更
return EsInitChangeNodes.leaderApproval.changeText
}
} else if (this.currentNode === 5) {
if (this.formInline.applicationCategory === ApplicationCategory.INITIATION.value) {
// 是立项
return EsInitChangeNodes.leaderLeaderApproval.initiationText
} else {
// 是变更
return EsInitChangeNodes.leaderLeaderApproval.changeText
}
} else {
return this.$route.query.taskName
}
} else {
return '主起草人发起'
}
}
},
mounted () {
@@ -363,12 +390,6 @@ export default {
// 有草稿id,说明是从流程中心-草稿来的,需要初始化数据
this.getProcessData('draft', { draftId: this.$route.query.draftId, projectId: this.$route.query.projectId })
}
if (this.$route.query.taskName) {
// 说明是已发起流程
this.currentNodeName = this.$route.query.taskName
} else {
this.currentNodeName = '主起草人发起'
}
},
data () {
return {
@@ -380,7 +401,6 @@ export default {
disabled: false,
categoryTypeDisabled: false, // 申请类型和项目类别不可更改
currentNode: 1, // 当前节点
currentNodeName: '', // 当前节点名称
currentNodeId: EsInitChangeNodes.mainDrafterStart.value, // 当前节点id
model: [],
processInfoForm: this.$form.createForm(this),