[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) this.formInline = Object.assign({}, baseInfoForm)
baseInfoForm.projectType = this.model.dataList[0] ? this.model.dataList[0].projectType : undefined baseInfoForm.projectType = this.model.dataList[0] ? this.model.dataList[0].projectType : undefined
this.formInline = Object.assign({}, baseInfoForm) this.formInline = Object.assign({}, baseInfoForm)
// 初始化人员信息 setTimeout(() => {
if (this.formInline.applicationCategory === ApplicationCategory.INITIATION.value) { // 初始化人员信息
// 立项 if (this.formInline.applicationCategory === ApplicationCategory.INITIATION.value) {
this.resetPersonInfoStructure('1') // 立项
} else if (this.formInline.applicationCategory === ApplicationCategory.CHANGE.value && this.resetPersonInfoStructure('1')
this.formInline.projectType !== ProjectType.RESPONSIBLE_DEPT_CHANGE.value) { } 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.resetPersonInfoStructure('2')
this.formInline.projectType === ProjectType.RESPONSIBLE_DEPT_CHANGE.value) { } else if (this.formInline.applicationCategory === ApplicationCategory.CHANGE.value &&
// 变更的责任部门变更 this.formInline.projectType === ProjectType.RESPONSIBLE_DEPT_CHANGE.value) {
this.resetPersonInfoStructure('3') // 变更的责任部门变更
} this.resetPersonInfoStructure('3')
// 对人员信息进行处理
if (this.$route.query.processInstanceId) {
if (this.currentNode === 1) {
this.initPersonInfoData(true)
} else {
// 如果不是第一个节点,人员信息全部不可选
this.initPersonInfoData(false)
} }
} // 对人员信息进行处理
// 如果是草稿节点1的保存回显人员信息 if (this.$route.query.processInstanceId) {
if (type === 'draft' && this.currentNode === 1) { if (this.currentNode === 1) {
const personnelObj = JSON.parse(this.model.infoJsonStr).personnelObj || JSON.parse(this.model.infoJsonStr).flowUserInfoVO this.initPersonInfoData(true)
this.draftInitPersonInfo(personnelObj) } 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) { if (this.formInline.applicationCategory === ApplicationCategory.INITIATION.value) {
// 是立项 // 是立项