This commit is contained in:
zhutianqi
2021-12-14 15:19:57 +08:00
parent 61840bcb42
commit 25b42d796a
3 changed files with 22 additions and 18 deletions
@@ -573,22 +573,26 @@ export default {
handleSave() { handleSave() {
}, },
handleSubmit() { handleSubmit() {
this.isSubmit = true this.$refs['bzzqyjForm'].validate((valid) => {
var json = this.json if (valid) {
json.actionFlag = 0 this.isSubmit = true
json.commentText = this.commentText var json = this.json
json.spId = this.form.spId json.actionFlag = 0
json.spName = this.form.spName json.commentText = this.commentText
this.$http.post('lawss/activiti/completeTask', { json.spId = this.form.spId
json: JSON.stringify(json), json.spName = this.form.spName
taskId: this.taskIds, this.$http.post('lawss/activiti/completeTask', {
userId: this.$store.getters.userInfo.userId json: JSON.stringify(json),
}, {}, res => { taskId: this.taskIds,
if (res.success) { userId: this.$store.getters.userInfo.userId
this.$message.success('提交成功') }, {}, res => {
this.$router.push('/processCenter') if (res.success) {
this.$message.success('提交成功')
this.$router.push('/processCenter')
}
this.isSubmit = false
})
} }
this.isSubmit = false
}) })
}, },
// handleSubmitNo() { // handleSubmitNo() {
@@ -427,7 +427,7 @@ export default {
} else { } else {
this.isSubmit = true; this.isSubmit = true;
var json = this.json; var json = this.json;
json.actionFlag = 0; json.hqFlag = '0';
json.commentText = this.commentText; json.commentText = this.commentText;
this.$http.post("lawss/activiti/completeTask", { this.$http.post("lawss/activiti/completeTask", {
json: JSON.stringify(json), json: JSON.stringify(json),
@@ -446,7 +446,7 @@ export default {
if (this.commentText) { if (this.commentText) {
this.isSubmit = true; this.isSubmit = true;
var json = this.json; var json = this.json;
json.actionFlag = 1; json.hqFlag = '1';
json.commentText = this.commentText; json.commentText = this.commentText;
this.$http.post("lawss/activiti/completeTask", { this.$http.post("lawss/activiti/completeTask", {
json: JSON.stringify(json), json: JSON.stringify(json),
@@ -658,7 +658,7 @@ export default {
prcType: row.prcType prcType: row.prcType
} }
}) })
} else if (row.taskInfo === '部长+对接人审核') { } else if (row.taskInfo === '标准法规工程师汇总') {
this.$router.push({ this.$router.push({
name: 'bzzqyjStep7', name: 'bzzqyjStep7',
query: { query: {