소스 검색

合同登记借用功能修复

lizhenhao 2 년 전
부모
커밋
95dd155248
1개의 변경된 파일11개의 추가작업 그리고 4개의 파일을 삭제
  1. 11 4
      src/views/modules/flowable/task/TaskForm.vue

+ 11 - 4
src/views/modules/flowable/task/TaskForm.vue

@@ -87,7 +87,6 @@
         <el-button type="primary" v-if="button.code === '_flow_print'" v-print="printObj" :key="index" @click="submit(button, buttons)"  v-noMoreClick plain>{{button.name}}</el-button>
       </template>
   </template>
-
 </div>
 <task-back-nodes ref="taskBackNodes" @getBackTaskDefKey="back"/>
 <user-select-dialog title="选择转办用户" ref="transferUserSelectDialog" :limit="1" @doSubmit="selectUsersToTransferTask"></user-select-dialog>
@@ -213,6 +212,9 @@
       }
     },
     methods: {
+      changeBusiness () {
+        this.businessId = 'false'
+      },
       init () {
         this.taskSelectedTab = 'form-first'
         this.procDefId = this.$route.query.procDefId
@@ -262,7 +264,7 @@
         if (this.formType === '2') { // 外置表单
           this.$refs.form.saveForm(() => {
             this.$message.success('操作成功')
-            this.businessId = 'false'
+            this.changeBusiness()
             this.$store.dispatch('tagsView/delView', {fullPath: this.$route.fullPath})
             this.$router.push(this.$route.query.routePath)
             this.$refs.form.close()
@@ -288,6 +290,7 @@
               assignee: assignee
             }).then(({data}) => {
               this.$message.success('启动成功')
+              this.changeBusiness()
               this.$store.dispatch('tagsView/delView', {fullPath: this.$route.fullPath})
               if (!this.commonJS.isEmpty(this.$route.query.routePath)) {
                 this.$router.push(this.$route.query.routePath)
@@ -304,6 +307,7 @@
             title: this.title,
             assignee: this.auditForm.assignee
           }, (data) => {
+            this.changeBusiness()
             this.$store.dispatch('tagsView/delView', {fullPath: this.$route.fullPath})
             this.$router.push('/flowable/task/TodoList')
             this.cc(data)
@@ -354,8 +358,8 @@
         }).then(() => {
           this.taskService.backNodes(this.taskId).then(({data}) => {
             let backNodes = data
-            this.businessId = 'false'
             this.$refs.form.updateStatusById('reback')
+            this.changeBusiness()
             this.$store.dispatch('tagsView/delView', {fullPath: this.$route.fullPath})
             this.$router.push(this.$route.query.routePath)
             if (backNodes.length > 0) {
@@ -378,6 +382,7 @@
           ...this.auditForm
         }).then(({data}) => {
           this.$message.success('回退成功')
+          this.changeBusiness()
           this.$store.dispatch('tagsView/delView', {fullPath: this.$route.fullPath})
           var num = this.$route.query.num
           if (num === '2') {
@@ -445,7 +450,7 @@
       },
       // 关闭
       close () {
-        this.businessId = 'false'
+        this.changeBusiness()
         this.$store.dispatch('tagsView/delView', {fullPath: this.$route.fullPath})
         this.$router.push(this.$route.query.routePath)
         this.$refs.form.close()
@@ -467,6 +472,7 @@
               assignee: this.auditForm.assignee
             }).then(({data}) => {
               this.$message.success('提交成功')
+              this.changeBusiness()
               this.$store.dispatch('tagsView/delView', {fullPath: this.$route.fullPath})
               // this.$router.push('/flowable/task/TodoList')
               // this.cc(data)
@@ -484,6 +490,7 @@
           })
         } else { // 动态表单
           this.$refs.form.submitTaskFormData(vars, this.procInsId, this.taskId, this.auditForm.assignee, this.auditForm, (data) => {
+            this.changeBusiness()
             this.$store.dispatch('tagsView/delView', {fullPath: this.$route.fullPath})
             // this.$router.push('/flowable/task/TodoList')
             // this.cc(data)