项目评估流程标准 提交重复

This commit is contained in:
wangxiahui@91isoft.com
2021-09-15 16:46:27 +08:00
parent 6ed6d88b8e
commit a3edd332f6
2 changed files with 84 additions and 75 deletions
@@ -401,6 +401,8 @@ export default {
},
data() {
return {
//用来判断提交事件条件是否满足
satisfyFlag: true,
active: "1",
standModel: false,
sarAccessListDatas: [],
@@ -701,14 +703,19 @@ export default {
//提交事件
handleSubmit() {
if (this.dataList.length < 1) {
this.satisfyFlag = false
this.$message.warning("请添加产品线信息");
}
this.dataList.forEach(item => {
if (item.distributePerson === "" || item.distributePerson === null || item.distributePerson === undefined) {
this.satisfyFlag = false
this.$message.warning("请选择分发责任人");
} else {
}
});
if(this.satisfyFlag){
this.isSubmit = true;
this.listForm.commentText = this.commentText;
var json = Object.assign(this.listForm, this.roleForm);
this.isSubmit = true
this.$refs["listForm"].validate((valid) => {
if (valid) {
this.$refs["roleForm"].validate((valid) => {
@@ -728,23 +735,21 @@ export default {
this.$message.success(res.message);
this.$router.push("/processCenter");
}
this.isSubmit = false
this.isSubmit = false;
});
}
});
} else {
this.isSubmit = false
this.isSubmit = false;
return this.$message.warning("请完善人员信息");
}
});
} else {
this.isSubmit = false
this.isSubmit = false;
return this.$message.warning("请完善基础信息");
}
});
}
});
},
//选择拆分标准取消事件
closeDrawer() {
@@ -389,6 +389,8 @@ export default {
},
data() {
return {
//用来判断提交事件条件是否满足
satisfyFlag: true,
active: "1",
standModel: false,
sarAccessListDatas: [],
@@ -674,12 +676,16 @@ export default {
//提交事件
handleSubmit() {
if (this.dataList.length < 1) {
this.satisfyFlag = false
this.$message.warning("请添加产品线信息");
}
this.dataList.forEach(item => {
if (item.distributePerson === "" || item.distributePerson === null || item.distributePerson === undefined) {
this.satisfyFlag = false
this.$message.warning("请选择分发责任人");
} else {
}
});
if(this.satisfyFlag){
this.isSubmit = true;
this.listForm.commentText = this.commentText;
var json = Object.assign(this.listForm, this.roleForm);
@@ -717,8 +723,6 @@ export default {
}
});
}
});
},
//选择拆分标准取消事件
closeDrawer() {