项目评估流程标准 提交重复
This commit is contained in:
@@ -401,6 +401,8 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
//用来判断提交事件条件是否满足
|
||||
satisfyFlag: true,
|
||||
active: "1",
|
||||
standModel: false,
|
||||
sarAccessListDatas: [],
|
||||
@@ -701,50 +703,53 @@ 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 {
|
||||
var json = Object.assign(this.listForm, this.roleForm);
|
||||
this.isSubmit = true
|
||||
this.$refs["listForm"].validate((valid) => {
|
||||
if (valid) {
|
||||
this.$refs["roleForm"].validate((valid) => {
|
||||
if (valid) {
|
||||
this.$http.get("lawss/activiti/startProcess", { type: "5" }, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.ok) {
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: res.data,
|
||||
userId: this.$store.getters.userInfo.userId,
|
||||
json: JSON.stringify(json)
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message);
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false
|
||||
});
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.isSubmit = false
|
||||
return this.$message.warning("请完善人员信息");
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.isSubmit = false
|
||||
return this.$message.warning("请完善基础信息");
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
if(this.satisfyFlag){
|
||||
this.isSubmit = true;
|
||||
this.listForm.commentText = this.commentText;
|
||||
var json = Object.assign(this.listForm, this.roleForm);
|
||||
this.$refs["listForm"].validate((valid) => {
|
||||
if (valid) {
|
||||
this.$refs["roleForm"].validate((valid) => {
|
||||
if (valid) {
|
||||
this.$http.get("lawss/activiti/startProcess", { type: "5" }, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.ok) {
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: res.data,
|
||||
userId: this.$store.getters.userInfo.userId,
|
||||
json: JSON.stringify(json)
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message);
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false;
|
||||
});
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.isSubmit = false;
|
||||
return this.$message.warning("请完善人员信息");
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.isSubmit = false;
|
||||
return this.$message.warning("请完善基础信息");
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
//选择拆分标准取消事件
|
||||
closeDrawer() {
|
||||
|
||||
@@ -389,6 +389,8 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
//用来判断提交事件条件是否满足
|
||||
satisfyFlag: true,
|
||||
active: "1",
|
||||
standModel: false,
|
||||
sarAccessListDatas: [],
|
||||
@@ -674,51 +676,53 @@ 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 {
|
||||
this.isSubmit = true;
|
||||
this.listForm.commentText = this.commentText;
|
||||
var json = Object.assign(this.listForm, this.roleForm);
|
||||
this.$refs["listForm"].validate((valid) => {
|
||||
if (valid) {
|
||||
this.$refs["roleForm"].validate((valid) => {
|
||||
if (valid) {
|
||||
this.$http.get("lawss/activiti/startProcess", { type: "5" }, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.ok) {
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: res.data,
|
||||
userId: this.$store.getters.userInfo.userId,
|
||||
json: JSON.stringify(json)
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message);
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false;
|
||||
});
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.isSubmit = false;
|
||||
return this.$message.warning("请完善人员信息");
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.isSubmit = false;
|
||||
return this.$message.warning("请完善基础信息");
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
if(this.satisfyFlag){
|
||||
this.isSubmit = true;
|
||||
this.listForm.commentText = this.commentText;
|
||||
var json = Object.assign(this.listForm, this.roleForm);
|
||||
this.$refs["listForm"].validate((valid) => {
|
||||
if (valid) {
|
||||
this.$refs["roleForm"].validate((valid) => {
|
||||
if (valid) {
|
||||
this.$http.get("lawss/activiti/startProcess", { type: "5" }, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.ok) {
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: res.data,
|
||||
userId: this.$store.getters.userInfo.userId,
|
||||
json: JSON.stringify(json)
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message);
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false;
|
||||
});
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.isSubmit = false;
|
||||
return this.$message.warning("请完善人员信息");
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.isSubmit = false;
|
||||
return this.$message.warning("请完善基础信息");
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
//选择拆分标准取消事件
|
||||
closeDrawer() {
|
||||
|
||||
Reference in New Issue
Block a user