{
- if (res.success) {
- this.$message.success(res.message)
- this.$router.push('/processCenter')
- }
- this.isSubmit = false
- }, e => {
- });
+ if(!this.commentText){
+ this.$message.warning('请填写审批意见')
+ }else{
+ this.isSubmit = true
+ this.qbfsForm.passFlag = '1'
+ this.qbfsForm.commentText = this.commentText
+ let json = JSON.stringify(this.qbfsForm);
+ this.$http.post('lawss/activiti/completeTask', {
+ taskIds: this.$route.query.taskIds,
+ userId: this.$store.getters.userInfo.userId,
+ json: json,
+ }, {
+ _this: this
+ }, res => {
+ if (res.success) {
+ this.$message.success(res.message)
+ this.$router.push('/processCenter')
+ }
+ this.isSubmit = false
+ }, e => {
+ });
+ }
},
-
},
};
diff --git a/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step3.vue b/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step3.vue
index 1ecb8b369..57e57c3f0 100644
--- a/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step3.vue
+++ b/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step3.vue
@@ -148,7 +148,7 @@
-
+
{
- if (res.success) {
- this.$message.success(res.message)
- this.$router.push('/processCenter')
- }
- this.isSubmit = false
- }, e => {
- });
+ if(!this.commentText){
+ this.$message.warning('请填写审批意见')
+ }else{
+ this.isSubmit = true
+ this.qbfsForm.deptCenterFlag = '1'
+ this.qbfsForm.commentText = this.commentText
+ let json = JSON.stringify(this.qbfsForm);
+ this.$http.post('lawss/activiti/completeTask', {
+ taskIds: this.$route.query.taskIds,
+ userId: this.$store.getters.userInfo.userId,
+ json: json,
+ }, {
+ _this: this
+ }, res => {
+ if (res.success) {
+ this.$message.success(res.message)
+ this.$router.push('/processCenter')
+ }
+ this.isSubmit = false
+ }, e => {
+ });
+ }
},
-
},
};
diff --git a/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step4.vue b/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step4.vue
index 9a3df7276..7fd695344 100644
--- a/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step4.vue
+++ b/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step4.vue
@@ -148,7 +148,7 @@
-
+
{
- if (res.success) {
- this.$message.success(res.message)
- this.$router.push('/processCenter')
- }
- this.isSubmit = false
- }, e => {
- });
+ if(!this.commentText){
+ this.$message.warning('请填写审批意见')
+ }else{
+ this.isSubmit = true
+ this.qbfsForm.bzFlag = '1'
+ this.qbfsForm.commentText = this.commentText
+ let json = JSON.stringify(this.qbfsForm);
+ this.$http.post('lawss/activiti/completeTask', {
+ taskIds: this.$route.query.taskIds,
+ userId: this.$store.getters.userInfo.userId,
+ json: json,
+ }, {
+ _this: this
+ }, res => {
+ if (res.success) {
+ this.$message.success(res.message)
+ this.$router.push('/processCenter')
+ }
+ this.isSubmit = false
+ }, e => {
+ });
+ }
},
},
diff --git a/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step5.vue b/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step5.vue
index d23f72d5a..903dbd509 100644
--- a/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step5.vue
+++ b/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step5.vue
@@ -148,7 +148,7 @@
-
+
{
- if (res.success) {
- this.$message.success(res.message)
- this.$router.push('/processCenter')
- }
- this.isSubmit = false
- }, e => {
- });
+ if(!this.commentText){
+ this.$message.warning('请填写审批意见')
+ }else{
+ this.isSubmit = true
+ this.qbfsForm.bzfgbzFlag = '1'
+ this.qbfsForm.commentText = this.commentText
+ let json = JSON.stringify(this.qbfsForm);
+ this.$http.post('lawss/activiti/completeTask', {
+ taskIds: this.$route.query.taskIds,
+ userId: this.$store.getters.userInfo.userId,
+ json: json,
+ }, {
+ _this: this
+ }, res => {
+ if (res.success) {
+ this.$message.success(res.message)
+ this.$router.push('/processCenter')
+ }
+ this.isSubmit = false
+ }, e => {
+ });
+ }
},
},