Browse Source

保证金申请发起

lamphua 8 months ago
parent
commit
3835246646

+ 1
- 1
oa-ui/src/views/flowable/form/access/cwTable.vue View File

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

+ 1
- 1
oa-ui/src/views/flowable/form/access/jsTable.vue View File

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

+ 1
- 1
oa-ui/src/views/flowable/form/access/jyTable.vue View File

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

+ 1
- 1
oa-ui/src/views/flowable/form/access/scTable.vue View File

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

+ 1
- 1
oa-ui/src/views/flowable/form/access/xmTable.vue View File

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

+ 1
- 1
oa-ui/src/views/flowable/form/access/zhTable.vue View File

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

+ 18
- 4
oa-ui/src/views/flowable/form/finance/depositForm.vue View File

248
       default: true
248
       default: true
249
     }
249
     }
250
   },
250
   },
251
-  watch:{
252
-    'taskForm.formId'(){
251
+  watch: {
252
+    'taskForm.formId'() {
253
       this.initForm();
253
       this.initForm();
254
     }
254
     }
255
   },
255
   },
486
             });
486
             });
487
             const params = { taskId: this.taskForm.taskId };
487
             const params = { taskId: this.taskForm.taskId };
488
             getNextFlowNode(params).then(res => {
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
               if (this.taskName == '分管审批') {
501
               if (this.taskName == '分管审批') {
490
                 let approvalList = [];
502
                 let approvalList = [];
491
                 getUsersDeptLeaderByDept({ deptId: 106 }).then(res => {
503
                 getUsersDeptLeaderByDept({ deptId: 106 }).then(res => {
518
             });
530
             });
519
             const params = { taskId: this.taskForm.taskId };
531
             const params = { taskId: this.taskForm.taskId };
520
             getNextFlowNode(params).then(res => {
532
             getNextFlowNode(params).then(res => {
533
+              let approvalList = [];
521
               getUsersManageLeader({ userId: this.$store.getters.userId }).then(res => {
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
                 complete(this.taskForm).then(response => {
538
                 complete(this.taskForm).then(response => {
525
                   this.$modal.msgSuccess(response.msg);
539
                   this.$modal.msgSuccess(response.msg);
526
                   this.$emit('goBack')
540
                   this.$emit('goBack')

Loading…
Cancel
Save