[update] 企标流程联调

This commit is contained in:
lideqin
2023-11-01 19:33:54 +08:00
parent 172e6c8e3f
commit a035ac63aa
3 changed files with 86 additions and 82 deletions
@@ -85,7 +85,7 @@
<!-- 人员信息 -->
<div v-show="switchValue === 'user'" class="detail-page-scroll-content p-0">
<process-detail-list :url="url">
<process-detail-list>
<personnel-info slot="personnelInfo" ref="personnelInfo" :data="personnelInfoData" :currentNode="currentNode"></personnel-info>
</process-detail-list>
</div>
@@ -232,6 +232,25 @@ export default {
// 没有taskId说明是新建进来的,初始化人员信息
this.personnelInfoData = personData
}
// 初始化节点
const taskName = this.$route.query.taskName
if (taskName) {
if (taskName === '标准化工程师发起') {
this.currentNode = 1
} else if (taskName === '各部所联络人 填写/下发任务') {
this.currentNode = 2
} else if (taskName === '主起草单位主管级领导审批下发') {
this.currentNode = 3
} else if (taskName === '主起草人填写信息') {
this.currentNode = 4
} else if (taskName === '部所联络人汇总') {
this.currentNode = 5
} else if (taskName === '主起草单位主管级领导批准') {
this.currentNode = 6
} else {
this.currentNode = 7
}
}
// 如果是查看进入的,不可编辑,不可操作
if (this.$route.query.onlyLook) {
this.onlyLook = this.$route.query.onlyLook
@@ -302,24 +321,6 @@ export default {
// 初始化流程审批信息,todo:需要判断是不是草稿进来的,草稿进来的才回显审批信息
// this.approvalInfoForm.setFieldsValue(pick(this.model[0], 'commitText', 'commitFile'))
})
const taskName = this.$route.query.taskName
if (taskName) {
if (taskName === '标准化工程师发起') {
this.currentNode = 1
} else if (taskName === '部所联络人选取审批人') {
this.currentNode = 2
} else if (taskName === '主起草单位主管级领导审批下发') {
this.currentNode = 3
} else if (taskName === '主起草人填写信息') {
this.currentNode = 4
} else if (taskName === '部所联络人汇总') {
this.currentNode = 5
} else if (taskName === '主起草单位主管级领导批准') {
this.currentNode = 6
} else {
this.currentNode = 7
}
}
if (this.currentNode === 1) {
this.personnelInfoData = personData.map(item => {
if (item.fieldName) {