From ea6b9a83eb6c2b5e100098e13b5443ef870be1e0 Mon Sep 17 00:00:00 2001 From: zhutianqi Date: Wed, 18 Aug 2021 16:48:42 +0800 Subject: [PATCH] commit --- .../pages/creatProcess/bzzqyj/step3.vue | 50 ++++++++++---- .../pages/creatProcess/bzzqyj/step4.vue | 16 +++++ .../pages/creatProcess/bzzqyj/step5.vue | 65 +++++++++++++----- .../pages/creatProcess/bzzqyj/step6.vue | 66 +++++++++---------- .../pages/creatProcess/bzzqyj/step7.vue | 66 +++++++++---------- .../pages/creatProcess/bzzqyj/step8.vue | 66 +++++++++---------- .../pages/creatProcess/bzzqyj/step9.vue | 66 +++++++++---------- 7 files changed, 225 insertions(+), 170 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/bzzqyj/step3.vue b/src/pages/processCenter/pages/creatProcess/bzzqyj/step3.vue index e30b056fb..1d19fe428 100644 --- a/src/pages/processCenter/pages/creatProcess/bzzqyj/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/bzzqyj/step3.vue @@ -96,17 +96,40 @@ + label="章节名称" + width="170px"> - + + + + + + + + + @@ -288,6 +311,9 @@ chapterNumber: '', chapterName: '', commentText: '', + oldText: '', + newText: '', + reason: '', id: id, responUserName: this.$store.getters.userInfo.userName, responUser: this.$store.getters.userInfo.userId, @@ -305,7 +331,7 @@ } else { var a = 0 var b = 0 - var c = 0 + // var c = 0 for (let s1 = 0; s1 < this.data.length; s1++) { if (!this.data[s1].chapterNumber) { a++ @@ -313,17 +339,19 @@ if (!this.data[s1].chapterName) { b++ } - if (!this.data[s1].commentText) { - c++ - } + // if (!this.data[s1].commentText) { + // c++ + // } } if (a > 0) { this.$message.warning('请输入章节编号') } else if (b > 0) { this.$message.warning('请输入章节名称') - } else if (c > 0) { - this.$message.warning('请输入意见内容') - } else { + } + // else if (c > 0) { + // this.$message.warning('请输入意见内容') + // } + else { this.isSubmit = true var json = this.json json.commentText = this.commentText diff --git a/src/pages/processCenter/pages/creatProcess/bzzqyj/step4.vue b/src/pages/processCenter/pages/creatProcess/bzzqyj/step4.vue index 02bd944af..4e3e3e5b3 100644 --- a/src/pages/processCenter/pages/creatProcess/bzzqyj/step4.vue +++ b/src/pages/processCenter/pages/creatProcess/bzzqyj/step4.vue @@ -80,8 +80,24 @@ label="章节名称"> + + + + + + - + + + + + + + + + 0) { this.$message.warning('请输入章节编号') } else if (b > 0) { this.$message.warning('请输入章节名称') - } else if (c > 0) { - this.$message.warning('请输入意见内容') - } else { + } + // else if (c > 0) { + // this.$message.warning('请输入意见内容') + // } + else { this.isSubmit = true var json = this.json json.oldinfo = this.oldData @@ -320,6 +354,7 @@ this.form.cid = data.cid this.form.endTime = data.endTime this.form.cname = data.cname + console.log(data); this.oldData = JSON.parse(JSON.stringify(data.summaryList)) data.summaryList.forEach( item => { if (item.state) { diff --git a/src/pages/processCenter/pages/creatProcess/bzzqyj/step6.vue b/src/pages/processCenter/pages/creatProcess/bzzqyj/step6.vue index 4b9137935..e59a2bec0 100644 --- a/src/pages/processCenter/pages/creatProcess/bzzqyj/step6.vue +++ b/src/pages/processCenter/pages/creatProcess/bzzqyj/step6.vue @@ -91,7 +91,23 @@ + + + + + + { + if (res.success) { + this.$message.success('提交成功') + this.$router.push('/processCenter') } - if (!this.data[s1].chapterName) { - b++ - } - if (!this.data[s1].commentText) { - c++ - } - } - if (a > 0) { - this.$message.warning('请输入章节编号') - } else if (b > 0) { - this.$message.warning('请输入章节名称') - } else if (c > 0) { - this.$message.warning('请输入意见内容') - } else { - this.isSubmit = true - var json = this.json - json.actionFlag = 0 - json.commentText = this.commentText - this.$http.post('lawss/activiti/completeTask', { - json: JSON.stringify(json), - taskId: this.taskIds, - userId: this.$store.getters.userInfo.userId - }, {}, res => { - if (res.success) { - this.$message.success('提交成功') - this.$router.push('/processCenter') - } - this.isSubmit = false - }) - } + this.isSubmit = false + }) } }, handleSubmitNo() { diff --git a/src/pages/processCenter/pages/creatProcess/bzzqyj/step7.vue b/src/pages/processCenter/pages/creatProcess/bzzqyj/step7.vue index d24b55f8d..813827b12 100644 --- a/src/pages/processCenter/pages/creatProcess/bzzqyj/step7.vue +++ b/src/pages/processCenter/pages/creatProcess/bzzqyj/step7.vue @@ -90,8 +90,24 @@ label="章节名称"> + + + + + + { + if (res.success) { + this.$message.success('提交成功') + this.$router.push('/processCenter') } - if (!this.data[s1].chapterName) { - b++ - } - if (!this.data[s1].commentText) { - c++ - } - } - if (a > 0) { - this.$message.warning('请输入章节编号') - } else if (b > 0) { - this.$message.warning('请输入章节名称') - } else if (c > 0) { - this.$message.warning('请输入意见内容') - } else { - this.isSubmit = true - var json = this.json - json.actionFlag = 0 - json.commentText = this.commentText - this.$http.post('lawss/activiti/completeTask', { - json: JSON.stringify(json), - taskId: this.taskIds, - userId: this.$store.getters.userInfo.userId - }, {}, res => { - if (res.success) { - this.$message.success('提交成功') - this.$router.push('/processCenter') - } - this.isSubmit = false - }) - } + this.isSubmit = false + }) } }, handleSubmitNo() { diff --git a/src/pages/processCenter/pages/creatProcess/bzzqyj/step8.vue b/src/pages/processCenter/pages/creatProcess/bzzqyj/step8.vue index f97564089..1144cfc97 100644 --- a/src/pages/processCenter/pages/creatProcess/bzzqyj/step8.vue +++ b/src/pages/processCenter/pages/creatProcess/bzzqyj/step8.vue @@ -91,7 +91,23 @@ + + + + + + { + if (res.success) { + this.$message.success('提交成功') + this.$router.push('/processCenter') } - if (!this.data[s1].chapterName) { - b++ - } - if (!this.data[s1].commentText) { - c++ - } - } - if (a > 0) { - this.$message.warning('请输入章节编号') - } else if (b > 0) { - this.$message.warning('请输入章节名称') - } else if (c > 0) { - this.$message.warning('请输入意见内容') - } else { - this.isSubmit = true - var json = this.json - json.actionFlag = 0 - json.commentText = this.commentText - this.$http.post('lawss/activiti/completeTask', { - json: JSON.stringify(json), - taskId: this.taskIds, - userId: this.$store.getters.userInfo.userId - }, {}, res => { - if (res.success) { - this.$message.success('提交成功') - this.$router.push('/processCenter') - } - this.isSubmit = false - }) - } + this.isSubmit = false + }) } }, handleSubmitNo() { diff --git a/src/pages/processCenter/pages/creatProcess/bzzqyj/step9.vue b/src/pages/processCenter/pages/creatProcess/bzzqyj/step9.vue index 92fcf5d36..72dfadb99 100644 --- a/src/pages/processCenter/pages/creatProcess/bzzqyj/step9.vue +++ b/src/pages/processCenter/pages/creatProcess/bzzqyj/step9.vue @@ -90,8 +90,24 @@ label="章节名称"> + + + + + + { + if (res.success) { + this.$message.success('提交成功') + this.$router.push('/processCenter') } - if (!this.data[s1].chapterName) { - b++ - } - if (!this.data[s1].commentText) { - c++ - } - } - if (a > 0) { - this.$message.warning('请输入章节编号') - } else if (b > 0) { - this.$message.warning('请输入章节名称') - } else if (c > 0) { - this.$message.warning('请输入意见内容') - } else { - this.isSubmit = true - var json = this.json - json.actionFlag = 0 - json.commentText = this.commentText - this.$http.post('lawss/activiti/completeTask', { - json: JSON.stringify(json), - taskId: this.taskIds, - userId: this.$store.getters.userInfo.userId - }, {}, res => { - if (res.success) { - this.$message.success('提交成功') - this.$router.push('/processCenter') - } - this.isSubmit = false - }) - } + this.isSubmit = false + }) } }, handleSubmitNo() {