[update] 企标更改流程加标准id
This commit is contained in:
@@ -633,6 +633,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
const result = res.result
|
const result = res.result
|
||||||
const formInline = {}
|
const formInline = {}
|
||||||
|
// 企标id
|
||||||
|
formInline.standardId = result.id
|
||||||
// 标准等级分类
|
// 标准等级分类
|
||||||
formInline.gradeClassification = result.grade_classification || undefined
|
formInline.gradeClassification = result.grade_classification || undefined
|
||||||
// 授权部门
|
// 授权部门
|
||||||
|
|||||||
@@ -469,20 +469,40 @@ export default {
|
|||||||
// 外层获取数据要过校验,返回false表示没有通过校验
|
// 外层获取数据要过校验,返回false表示没有通过校验
|
||||||
async getDataValidate () {
|
async getDataValidate () {
|
||||||
let data = {}
|
let data = {}
|
||||||
const formInline = await this.$refs.baseInfoForm.getDataValidate()
|
let formInline = {}
|
||||||
await this.$refs.ruleForm.validate(async valid => {
|
if (formInline = await this.$refs.baseInfoForm.getDataValidate()) {
|
||||||
if (valid) {
|
this.$refs.ruleForm.validate(async valid => {
|
||||||
if (formInline && this.dataSource.length > 0) {
|
if (valid) {
|
||||||
data.formInline = { ...formInline, ...this.formInline }
|
if (this.dataSource.length > 0) {
|
||||||
data.dataSource = this.dataSource
|
data.formInline = { ...formInline, ...this.formInline }
|
||||||
} else if (this.dataSource.length <= 0) {
|
data.dataSource = this.dataSource
|
||||||
this.$message.warning(this.$t('addAtLeastOneRowOfData'))
|
} else {
|
||||||
data = false
|
this.$message.warning(this.$t('addAtLeastOneRowOfData'))
|
||||||
|
data = false
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
data = false
|
data = false
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
})
|
} else {
|
||||||
|
data = false
|
||||||
|
}
|
||||||
|
// await this.$refs.ruleForm.validate(async valid => {
|
||||||
|
// if (valid) {
|
||||||
|
// const formInline = await this.$refs.baseInfoForm.getDataValidate()
|
||||||
|
// if (formInline && this.dataSource.length > 0) {
|
||||||
|
// data.formInline = { ...formInline, ...this.formInline }
|
||||||
|
// data.dataSource = this.dataSource
|
||||||
|
// } else if (this.dataSource.length <= 0) {
|
||||||
|
// this.$message.warning(this.$t('addAtLeastOneRowOfData'))
|
||||||
|
// data = false
|
||||||
|
// } else {
|
||||||
|
// data = false
|
||||||
|
// }
|
||||||
|
// } else {
|
||||||
|
// data = false
|
||||||
|
// }
|
||||||
|
// })
|
||||||
return data
|
return data
|
||||||
},
|
},
|
||||||
// 企标编号和名称修改触发流程名称的修改
|
// 企标编号和名称修改触发流程名称的修改
|
||||||
|
|||||||
Reference in New Issue
Block a user