Bladeren bron

保证金申请发起

lamphua 7 maanden geleden
bovenliggende
commit
3835246646

+ 1
- 1
oa-ui/src/views/flowable/form/access/cwTable.vue Bestand weergeven

@@ -656,7 +656,7 @@ export default {
656 656
             })
657 657
           } else if (this.taskName == '部门审核') {
658 658
             getUsersManageLeader({ userId: this.tableForm.userId }).then(res => {
659
-              let userId = res.data.userId;
659
+              let userId = res.data[0].userId;
660 660
               this.$set(this.taskForm.variables, "approval", userId);
661 661
               complete(this.taskForm).then(response => {
662 662
                 this.$modal.msgSuccess(response.msg);

+ 1
- 1
oa-ui/src/views/flowable/form/access/jsTable.vue Bestand weergeven

@@ -850,7 +850,7 @@ export default {
850 850
             })
851 851
           } else if (this.taskName == '部门审核') {
852 852
             getUsersManageLeader({ userId: this.tableForm.userId }).then(res => {
853
-              let userId = res.data.userId;
853
+              let userId = res.data[0].userId;
854 854
               this.$set(this.taskForm.variables, "approval", userId);
855 855
               complete(this.taskForm).then(response => {
856 856
                 this.$modal.msgSuccess(response.msg);

+ 1
- 1
oa-ui/src/views/flowable/form/access/jyTable.vue Bestand weergeven

@@ -441,7 +441,7 @@ export default {
441 441
             })
442 442
           } else if (this.taskName == '部门审核') {
443 443
             getUsersManageLeader({ userId: this.tableForm.userId }).then(res => {
444
-              let userId = res.data.userId;
444
+              let userId = res.data[1].userId;
445 445
               this.$set(this.taskForm.variables, "approval", userId);
446 446
               complete(this.taskForm).then(response => {
447 447
                 this.$modal.msgSuccess(response.msg);

+ 1
- 1
oa-ui/src/views/flowable/form/access/scTable.vue Bestand weergeven

@@ -1787,7 +1787,7 @@ export default {
1787 1787
             })
1788 1788
           } else if (this.taskName == '部门审核') {
1789 1789
             getUsersManageLeader({ userId: this.tableForm.userId }).then(res => {
1790
-              let userId = res.data.userId;
1790
+              let userId = res.data[0].userId;
1791 1791
               this.$set(this.taskForm.variables, "approval", userId);
1792 1792
               complete(this.taskForm).then(response => {
1793 1793
                 this.$modal.msgSuccess(response.msg);

+ 1
- 1
oa-ui/src/views/flowable/form/access/xmTable.vue Bestand weergeven

@@ -469,7 +469,7 @@ export default {
469 469
             })
470 470
           } else if (this.taskName == '部门审核') {
471 471
             getUsersManageLeader({ userId: this.tableForm.userId }).then(res => {
472
-              let userId = res.data.userId;
472
+              let userId = res.data[0].userId;
473 473
               this.$set(this.taskForm.variables, "approval", userId);
474 474
               complete(this.taskForm).then(response => {
475 475
                 this.$modal.msgSuccess(response.msg);

+ 1
- 1
oa-ui/src/views/flowable/form/access/zhTable.vue Bestand weergeven

@@ -777,7 +777,7 @@ export default {
777 777
             })
778 778
           } else if (this.taskName == '部门审核') {
779 779
             getUsersManageLeader({ userId: this.tableForm.userId }).then(res => {
780
-              let userId = res.data.userId;
780
+              let userId = res.data[0].userId;
781 781
               this.$set(this.taskForm.variables, "approval", userId);
782 782
               complete(this.taskForm).then(response => {
783 783
                 this.$modal.msgSuccess(response.msg);

+ 18
- 4
oa-ui/src/views/flowable/form/finance/depositForm.vue Bestand weergeven

@@ -248,8 +248,8 @@ export default {
248 248
       default: true
249 249
     }
250 250
   },
251
-  watch:{
252
-    'taskForm.formId'(){
251
+  watch: {
252
+    'taskForm.formId'() {
253 253
       this.initForm();
254 254
     }
255 255
   },
@@ -486,6 +486,18 @@ export default {
486 486
             });
487 487
             const params = { taskId: this.taskForm.taskId };
488 488
             getNextFlowNode(params).then(res => {
489
+              if (this.taskName == '保证金申请') {
490
+                let approvalList = [];
491
+                getUsersManageLeader({ userId: this.$store.getters.userId }).then(res => {
492
+                  let userId = res.data[0].userId;
493
+                  approvalList.push(userId)
494
+                  this.$set(this.taskForm.variables, "approvalList", approvalList);
495
+                  complete(this.taskForm).then(response => {
496
+                    this.$modal.msgSuccess(response.msg);
497
+                    this.$emit('goBack')
498
+                  })
499
+                })
500
+              }
489 501
               if (this.taskName == '分管审批') {
490 502
                 let approvalList = [];
491 503
                 getUsersDeptLeaderByDept({ deptId: 106 }).then(res => {
@@ -518,9 +530,11 @@ export default {
518 530
             });
519 531
             const params = { taskId: this.taskForm.taskId };
520 532
             getNextFlowNode(params).then(res => {
533
+              let approvalList = [];
521 534
               getUsersManageLeader({ userId: this.$store.getters.userId }).then(res => {
522
-                let userId = res.data.userId;
523
-                this.$set(this.taskForm.variables, "approval", userId);
535
+                let userId = res.data[0].userId;
536
+                approvalList.push(userId)
537
+                this.$set(this.taskForm.variables, "approvalList", approvalList);
524 538
                 complete(this.taskForm).then(response => {
525 539
                   this.$modal.msgSuccess(response.msg);
526 540
                   this.$emit('goBack')

Laden…
Annuleren
Opslaan