[update] 修改bug81358,81345,81342

This commit is contained in:
lideqin
2024-01-30 11:16:34 +08:00
parent 27dad05146
commit 907d208920
@@ -595,33 +595,35 @@ export default {
this.formInline = Object.assign({}, baseInfoForm)
baseInfoForm.projectType = this.model.dataList[0] ? this.model.dataList[0].projectType : undefined
this.formInline = Object.assign({}, baseInfoForm)
// 初始化人员信息
if (this.formInline.applicationCategory === ApplicationCategory.INITIATION.value) {
// 立项
this.resetPersonInfoStructure('1')
} else if (this.formInline.applicationCategory === ApplicationCategory.CHANGE.value &&
this.formInline.projectType !== ProjectType.RESPONSIBLE_DEPT_CHANGE.value) {
// 非责任部门变更
this.resetPersonInfoStructure('2')
} else if (this.formInline.applicationCategory === ApplicationCategory.CHANGE.value &&
this.formInline.projectType === ProjectType.RESPONSIBLE_DEPT_CHANGE.value) {
// 变更的责任部门变更
this.resetPersonInfoStructure('3')
}
// 对人员信息进行处理
if (this.$route.query.processInstanceId) {
if (this.currentNode === 1) {
this.initPersonInfoData(true)
} else {
// 如果不是第一个节点,人员信息全部不可选
this.initPersonInfoData(false)
setTimeout(() => {
// 初始化人员信息
if (this.formInline.applicationCategory === ApplicationCategory.INITIATION.value) {
// 立项
this.resetPersonInfoStructure('1')
} else if (this.formInline.applicationCategory === ApplicationCategory.CHANGE.value &&
this.formInline.projectType !== ProjectType.RESPONSIBLE_DEPT_CHANGE.value) {
// 非责任部门变更
this.resetPersonInfoStructure('2')
} else if (this.formInline.applicationCategory === ApplicationCategory.CHANGE.value &&
this.formInline.projectType === ProjectType.RESPONSIBLE_DEPT_CHANGE.value) {
// 变更的责任部门变更
this.resetPersonInfoStructure('3')
}
}
// 如果是草稿节点1的保存回显人员信息
if (type === 'draft' && this.currentNode === 1) {
const personnelObj = JSON.parse(this.model.infoJsonStr).personnelObj || JSON.parse(this.model.infoJsonStr).flowUserInfoVO
this.draftInitPersonInfo(personnelObj)
}
// 对人员信息进行处理
if (this.$route.query.processInstanceId) {
if (this.currentNode === 1) {
this.initPersonInfoData(true)
} else {
// 如果不是第一个节点,人员信息全部不可选
this.initPersonInfoData(false)
}
}
// 如果是草稿节点1的保存回显人员信息
if (type === 'draft' && this.currentNode === 1) {
const personnelObj = JSON.parse(this.model.infoJsonStr).personnelObj || JSON.parse(this.model.infoJsonStr).flowUserInfoVO
this.draftInitPersonInfo(personnelObj)
}
}, 100)
// 初始化业务基本信息中组件内容
if (this.formInline.applicationCategory === ApplicationCategory.INITIATION.value) {
// 是立项