Przeglądaj źródła

修改借款申请签名没传值的问题

余思翰 5 miesięcy temu
rodzic
commit
f427bd9840

+ 29
- 8
oa-ui/src/views/flowable/form/finance/borrowForm.vue Wyświetl plik

416
       hasBorrow: 0,
416
       hasBorrow: 0,
417
       printOpen: false,
417
       printOpen: false,
418
       showAlter: true,
418
       showAlter: true,
419
-      returnOpen:false,
419
+      returnOpen: false,
420
     };
420
     };
421
   },
421
   },
422
   created() {
422
   created() {
423
     if (this.taskName == '部门审核') {
423
     if (this.taskName == '部门审核') {
424
       this.deptUser = this.$store.getters.name;
424
       this.deptUser = this.$store.getters.name;
425
-      this.form.deptUserId = this.$store.getters.userId;
426
       this.deptTime = parseTime(new Date(), '{y}-{m}-{d}')
425
       this.deptTime = parseTime(new Date(), '{y}-{m}-{d}')
427
     }
426
     }
428
     if (this.taskName == '分管审核') {
427
     if (this.taskName == '分管审核') {
429
       this.managerUser = this.$store.getters.name;
428
       this.managerUser = this.$store.getters.name;
430
-      this.form.managerUserId = this.$store.getters.userId;
431
       this.managerTime = parseTime(new Date(), '{y}-{m}-{d}')
429
       this.managerTime = parseTime(new Date(), '{y}-{m}-{d}')
432
     }
430
     }
433
     if (this.taskName == '总经理审核') {
431
     if (this.taskName == '总经理审核') {
434
       this.zjlUser = this.$store.getters.name;
432
       this.zjlUser = this.$store.getters.name;
435
-      this.form.zjlUserId = this.$store.getters.userId;
436
       this.zjlTime = parseTime(new Date(), '{y}-{m}-{d}')
433
       this.zjlTime = parseTime(new Date(), '{y}-{m}-{d}')
437
     }
434
     }
438
     if (this.taskName == '董事长批准') {
435
     if (this.taskName == '董事长批准') {
439
       this.dszUser = this.$store.getters.name;
436
       this.dszUser = this.$store.getters.name;
440
-      this.form.dszUserId = this.$store.getters.userId;
441
       this.dszTime = parseTime(new Date(), '{y}-{m}-{d}')
437
       this.dszTime = parseTime(new Date(), '{y}-{m}-{d}')
442
     }
438
     }
443
     if (this.taskName == '党工团审核') {
439
     if (this.taskName == '党工团审核') {
444
       this.unionUser = this.$store.getters.name;
440
       this.unionUser = this.$store.getters.name;
445
-      this.form.unionUserId = this.$store.getters.userId;
446
       this.unionTime = parseTime(new Date(), '{y}-{m}-{d}')
441
       this.unionTime = parseTime(new Date(), '{y}-{m}-{d}')
447
     }
442
     }
448
     if (this.taskName == '财务处理') {
443
     if (this.taskName == '财务处理') {
449
       this.cwUser = this.$store.getters.name;
444
       this.cwUser = this.$store.getters.name;
450
-      this.form.cwUserId = this.$store.getters.userId;
451
       this.lendTime = parseTime(new Date(), '{y}-{m}-{d}')
445
       this.lendTime = parseTime(new Date(), '{y}-{m}-{d}')
452
     }
446
     }
453
     this.form.applyDate = new Date();
447
     this.form.applyDate = new Date();
475
     this.initForm();
469
     this.initForm();
476
   },
470
   },
477
   methods: {
471
   methods: {
472
+    initSign(){
473
+      
474
+    },
478
     initRules() {
475
     initRules() {
479
       if (this.taskName == '借款申请') {
476
       if (this.taskName == '借款申请') {
480
         this.rules = {
477
         this.rules = {
675
                 addBorrowDetail(detail)
672
                 addBorrowDetail(detail)
676
               })
673
               })
677
             })
674
             })
675
+            if (this.taskName == '部门审核') {
676
+              this.form.deptUserId = this.$store.getters.userId;
677
+              this.form.deptTime = parseTime(new Date(), '{y}-{m}-{d}')
678
+            }
679
+            if (this.taskName == '分管审核') {
680
+              this.form.managerUserId = this.$store.getters.userId;
681
+              this.form.managerTime = parseTime(new Date(), '{y}-{m}-{d}')
682
+            }
683
+            if (this.taskName == '总经理审核') {
684
+              this.form.zjlUserId = this.$store.getters.userId;
685
+              this.form.zjlTime = parseTime(new Date(), '{y}-{m}-{d}')
686
+            }
687
+            if (this.taskName == '董事长批准') {
688
+              this.form.dszUserId = this.$store.getters.userId;
689
+              this.form.dszTime = parseTime(new Date(), '{y}-{m}-{d}')
690
+            }
691
+            if (this.taskName == '党工团审核') {
692
+              this.form.unionUserId = this.$store.getters.userId;
693
+              this.form.unionTime = parseTime(new Date(), '{y}-{m}-{d}')
694
+            }
695
+            if (this.taskName == '财务处理') {
696
+              this.form.cwUserId = this.$store.getters.userId;
697
+              this.form.lendTime = parseTime(new Date(), '{y}-{m}-{d}')
698
+            }
678
             // 更新借款审批表
699
             // 更新借款审批表
679
             updateBorrow(this.form);
700
             updateBorrow(this.form);
680
             const params = { taskId: this.taskForm.taskId };
701
             const params = { taskId: this.taskForm.taskId };
953
     padding: .0625rem;
974
     padding: .0625rem;
954
   }
975
   }
955
 }
976
 }
977
+
956
 ::v-deep .el-descriptions-item__label.is-bordered-label {
978
 ::v-deep .el-descriptions-item__label.is-bordered-label {
957
   width: 110px;
979
   width: 110px;
958
 }
980
 }
959
-
960
 </style>
981
 </style>

Ładowanie…
Anuluj
Zapisz