在线编辑校验问题
This commit is contained in:
@@ -1021,16 +1021,14 @@ export default {
|
||||
this.$refs.qbfsForm.validateField('resPersonName');
|
||||
}
|
||||
},
|
||||
validateForm () {
|
||||
let flag = null
|
||||
validateForm (callback) {
|
||||
this.$refs['qbfsForm'].validate((valid) => {
|
||||
if (valid) {
|
||||
flag = true
|
||||
} else {
|
||||
flag = false
|
||||
callback && callback()
|
||||
} else{
|
||||
this.$message.warning("请完善基础信息");
|
||||
}
|
||||
})
|
||||
return flag
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
@@ -527,9 +527,8 @@ export default {
|
||||
this.$message.warning('企标名称已存在,请更改!')
|
||||
}else {
|
||||
if (this.$route.query.prcNum === undefined) {
|
||||
let flag = this.$refs["childForm"].validateForm();
|
||||
let qbzxdFrom = this.$refs["childForm"].qbfsForm;
|
||||
if (flag) {
|
||||
this.$refs["childForm"].validateForm(()=>{
|
||||
let qbzxdFrom = this.$refs["childForm"].qbfsForm;
|
||||
this.$refs["roleForm"].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true;
|
||||
@@ -578,13 +577,16 @@ export default {
|
||||
this.$message.warning("请完善人员信息");
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.$message.warning("请完善基础信息");
|
||||
}
|
||||
});
|
||||
|
||||
// if (flag) {
|
||||
//
|
||||
// } else {
|
||||
// this.$message.warning("请完善基础信息");
|
||||
// }
|
||||
} else {
|
||||
let flag = this.$refs["childForm"].validateForm();
|
||||
let qbzxdFrom = this.$refs["childForm"].qbfsForm;
|
||||
if (flag) {
|
||||
let flag = this.$refs["childForm"].validateForm(() => {
|
||||
let qbzxdFrom = this.$refs["childForm"].qbfsForm;
|
||||
this.$refs["roleForm"].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true;
|
||||
@@ -609,9 +611,13 @@ export default {
|
||||
this.$message.warning("请完善人员信息");
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.$message.warning("请完善基础信息");
|
||||
}
|
||||
});
|
||||
|
||||
// if (flag) {
|
||||
//
|
||||
// } else {
|
||||
// this.$message.warning("请完善基础信息");
|
||||
// }
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user