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