Pārlūkot izejas kodu

报告签章没有电子章时,采用正常流程

lizhenhao 2 gadi atpakaļ
vecāks
revīzija
f7192a3b76

+ 18 - 6
src/views/modules/cw/reportManagement/ReportManagementSignatureForm.vue

@@ -521,13 +521,25 @@
             this.projectReportService.saveFlowableParam(this.inputForm).then(({data}) => {
               // 关闭当前页面
               this.$store.dispatch('tagsView/delView', {fullPath: this.$route.fullPath})
-              // 跳转回指定页面
-              if (param.num === '2') {
-                this.$router.push({path: '/sys/dashboard/workBench/Pending', query: {signatureUrl: data}})
-              } else if (param.num === '3') {
-                this.$router.push({path: '/sys/dashboard/workBench/PendingList', query: {signatureUrl: data}})
+              if (data === '操作成功') {
+                this.$message.success('审核完成')
+                // 跳转回指定页面
+                if (param.num === '2') {
+                  this.$router.push({path: '/sys/dashboard/workBench/Pending'})
+                } else if (param.num === '3') {
+                  this.$router.push({path: '/sys/dashboard/workBench/PendingList'})
+                } else {
+                  this.$router.push({path: '/flowable/task/TodoList'})
+                }
               } else {
-                this.$router.push({path: '/flowable/task/TodoList', query: {signatureUrl: data}})
+                // 跳转回指定页面
+                if (param.num === '2') {
+                  this.$router.push({path: '/sys/dashboard/workBench/Pending', query: {signatureUrl: data}})
+                } else if (param.num === '3') {
+                  this.$router.push({path: '/sys/dashboard/workBench/PendingList', query: {signatureUrl: data}})
+                } else {
+                  this.$router.push({path: '/flowable/task/TodoList', query: {signatureUrl: data}})
+                }
               }
               this.loading = false
               throw new Error()