[update] 修改bug80156

This commit is contained in:
lideqin
2024-01-05 18:09:19 +08:00
parent c0da47c5a3
commit a01793b9ea
3 changed files with 28 additions and 1 deletions
@@ -120,6 +120,7 @@
ref="approvalBaseInfo"
:disabled="disabled"
:currentNode="currentNode"
:isInitData="isInitData"
@processNameChange="processNameChange"
:projectType="formInline.projectType">
</approval-base-info>
@@ -156,6 +157,7 @@
v-else-if="formInline.applicationCategory === ApplicationCategory.CHANGE.value && formInline.projectType === ProjectType.MERGE.value"
ref="changeBaseInfo"
:disabled="disabled"
:isInitData="isInitData"
@processNameChange="processNameChange"
:projectType="formInline.projectType"
>
@@ -459,7 +461,8 @@ export default {
personnelInfoData: [], // 传给人员信息组件的人员信息
url: {
list: '' // 人员信息的右侧表格获取接口
}
},
isInitData: false // 是否正在初始化数据,正在初始化数据的时候不获取企标编号
}
},
methods: {
@@ -510,6 +513,7 @@ export default {
// 根据流程id获取数据并回显
getProcessData (type, param) {
this.loading = true
this.isInitData = true
let func
let params = {}
if (type === 'todo') {
@@ -612,6 +616,9 @@ export default {
}
}).finally(() => {
this.loading = false
setTimeout(() => {
this.isInitData = false
}, 500)
})
},
// 头部tab改变
@@ -619,6 +619,12 @@ export default {
type: Boolean,
required: false,
default: false
},
// 是否正在初始化数据,是的话不获取企标编号
isInitData: {
type: Boolean,
required: false,
default: false
}
},
watch: {
@@ -874,6 +880,10 @@ export default {
},
// 根据三个代号和一个年代号获取企标编号
getEnStandardNo () {
// 正在初始化数据,不获取新企标编号
if (this.isInitData) {
return
}
// 如果是制定根据填的三个代号和一个年代号获取
if (this.projectType === ProjectType.ENACT.value) {
if (!this.formInline.enStandardCode || !this.formInline.enNameCode ||
@@ -476,6 +476,12 @@ export default {
type: [Number, String],
required: false,
default: 1
},
// 是否正在初始化数据,是的话不获取企标编号
isInitData: {
type: Boolean,
required: false,
default: false
}
},
watch: {
@@ -691,6 +697,10 @@ export default {
},
// 根据三个代号和一个年代号获取企标编号
getEnStandardNo () {
// 正在初始化数据,不获取新企标编号
if (this.isInitData) {
return
}
if (!this.formInline.enStandardCode || !this.formInline.enNameCode ||
!this.formInline.standardCategoryCode || !this.formInline.decadeCode) {
return