修改 参与外部标准制修订信息提报流程 未填全信息时阻止提交
This commit is contained in:
@@ -692,14 +692,19 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
|
let isValid = true
|
||||||
if (this.participantsData.length < 1) {
|
if (this.participantsData.length < 1) {
|
||||||
this.$message.warning("项目信息不能为空");
|
this.$message.warning("项目信息不能为空");
|
||||||
} else {
|
} else {
|
||||||
this.participantsData.forEach(item => {
|
this.participantsData.forEach(item => {
|
||||||
if (item.projectNumber === undefined) {
|
if (item.projectNumber === undefined || item.projectNumber === '') {
|
||||||
this.$message.warning("请完善项目信息");
|
this.$message.warning("请完善项目信息");
|
||||||
|
isValid = false
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
if (!isValid){
|
||||||
|
return
|
||||||
|
}
|
||||||
this.wbbzform.commentText = this.commentStep;
|
this.wbbzform.commentText = this.commentStep;
|
||||||
let json = {
|
let json = {
|
||||||
participantsData: this.participantsData,
|
participantsData: this.participantsData,
|
||||||
|
|||||||
Reference in New Issue
Block a user