项目评估流程标准 提交重复
This commit is contained in:
@@ -401,6 +401,8 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
//用来判断提交事件条件是否满足
|
||||||
|
satisfyFlag: true,
|
||||||
active: "1",
|
active: "1",
|
||||||
standModel: false,
|
standModel: false,
|
||||||
sarAccessListDatas: [],
|
sarAccessListDatas: [],
|
||||||
@@ -701,14 +703,19 @@ export default {
|
|||||||
//提交事件
|
//提交事件
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
if (this.dataList.length < 1) {
|
if (this.dataList.length < 1) {
|
||||||
|
this.satisfyFlag = false
|
||||||
this.$message.warning("请添加产品线信息");
|
this.$message.warning("请添加产品线信息");
|
||||||
}
|
}
|
||||||
this.dataList.forEach(item => {
|
this.dataList.forEach(item => {
|
||||||
if (item.distributePerson === "" || item.distributePerson === null || item.distributePerson === undefined) {
|
if (item.distributePerson === "" || item.distributePerson === null || item.distributePerson === undefined) {
|
||||||
|
this.satisfyFlag = false
|
||||||
this.$message.warning("请选择分发责任人");
|
this.$message.warning("请选择分发责任人");
|
||||||
} else {
|
}
|
||||||
|
});
|
||||||
|
if(this.satisfyFlag){
|
||||||
|
this.isSubmit = true;
|
||||||
|
this.listForm.commentText = this.commentText;
|
||||||
var json = Object.assign(this.listForm, this.roleForm);
|
var json = Object.assign(this.listForm, this.roleForm);
|
||||||
this.isSubmit = true
|
|
||||||
this.$refs["listForm"].validate((valid) => {
|
this.$refs["listForm"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$refs["roleForm"].validate((valid) => {
|
this.$refs["roleForm"].validate((valid) => {
|
||||||
@@ -728,23 +735,21 @@ export default {
|
|||||||
this.$message.success(res.message);
|
this.$message.success(res.message);
|
||||||
this.$router.push("/processCenter");
|
this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.isSubmit = false
|
this.isSubmit = false;
|
||||||
return this.$message.warning("请完善人员信息");
|
return this.$message.warning("请完善人员信息");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.isSubmit = false
|
this.isSubmit = false;
|
||||||
return this.$message.warning("请完善基础信息");
|
return this.$message.warning("请完善基础信息");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
|
||||||
|
|
||||||
},
|
},
|
||||||
//选择拆分标准取消事件
|
//选择拆分标准取消事件
|
||||||
closeDrawer() {
|
closeDrawer() {
|
||||||
|
|||||||
@@ -389,6 +389,8 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
//用来判断提交事件条件是否满足
|
||||||
|
satisfyFlag: true,
|
||||||
active: "1",
|
active: "1",
|
||||||
standModel: false,
|
standModel: false,
|
||||||
sarAccessListDatas: [],
|
sarAccessListDatas: [],
|
||||||
@@ -674,12 +676,16 @@ export default {
|
|||||||
//提交事件
|
//提交事件
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
if (this.dataList.length < 1) {
|
if (this.dataList.length < 1) {
|
||||||
|
this.satisfyFlag = false
|
||||||
this.$message.warning("请添加产品线信息");
|
this.$message.warning("请添加产品线信息");
|
||||||
}
|
}
|
||||||
this.dataList.forEach(item => {
|
this.dataList.forEach(item => {
|
||||||
if (item.distributePerson === "" || item.distributePerson === null || item.distributePerson === undefined) {
|
if (item.distributePerson === "" || item.distributePerson === null || item.distributePerson === undefined) {
|
||||||
|
this.satisfyFlag = false
|
||||||
this.$message.warning("请选择分发责任人");
|
this.$message.warning("请选择分发责任人");
|
||||||
} else {
|
}
|
||||||
|
});
|
||||||
|
if(this.satisfyFlag){
|
||||||
this.isSubmit = true;
|
this.isSubmit = true;
|
||||||
this.listForm.commentText = this.commentText;
|
this.listForm.commentText = this.commentText;
|
||||||
var json = Object.assign(this.listForm, this.roleForm);
|
var json = Object.assign(this.listForm, this.roleForm);
|
||||||
@@ -717,8 +723,6 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
|
||||||
|
|
||||||
},
|
},
|
||||||
//选择拆分标准取消事件
|
//选择拆分标准取消事件
|
||||||
closeDrawer() {
|
closeDrawer() {
|
||||||
|
|||||||
Reference in New Issue
Block a user