浏览代码

分包合同线上会审新增会审人

qyx 16 小时前
父节点
当前提交
5716305009
共有 1 个文件被更改,包括 34 次插入4 次删除
  1. 34
    4
      oa-ui/src/views/flowable/form/business/subContract.vue

+ 34
- 4
oa-ui/src/views/flowable/form/business/subContract.vue 查看文件

538
           document: '',
538
           document: '',
539
           commentTime: undefined
539
           commentTime: undefined
540
         },
540
         },
541
+        {
542
+          deptId: 109,
543
+          userId: '',
544
+          comment: '',
545
+          document: '',
546
+          commentTime: undefined
547
+        },
541
       ],
548
       ],
542
       isSelect: false,
549
       isSelect: false,
543
       formTotal: 0,
550
       formTotal: 0,
693
                   document: '',
700
                   document: '',
694
                   commentTime: undefined
701
                   commentTime: undefined
695
                 },
702
                 },
703
+                {
704
+                  deptId: 109,
705
+                  userId: '',
706
+                  comment: '',
707
+                  document: '',
708
+                  commentTime: undefined
709
+                },
696
               ]
710
               ]
711
+              let num=0;
697
               for (let comment of this.commentList) {
712
               for (let comment of this.commentList) {
698
-                getUsersDeptLeaderByDept({ deptId: comment.deptId }).then(res => {
699
-                  comment.userId = res.data.userId;
713
+                num = num + 1;
714
+                if(num<=3){
715
+                  getUsersDeptLeaderByDept({ deptId: comment.deptId }).then(res => {
716
+                    comment.userId = res.data.userId;
717
+                })}
718
+                else{
719
+                  getUserByPost({ postName: '专职安全员' }).then(res => {
720
+                  comment.userId =res.data[0].userId;
700
                 })
721
                 })
722
+                }
701
               }
723
               }
702
             }
724
             }
703
           });
725
           });
811
       else if (val == '2') {
833
       else if (val == '2') {
812
         this.commentOpen = true;
834
         this.commentOpen = true;
813
         this.meetingOpen = false;
835
         this.meetingOpen = false;
836
+        let num=0;
814
         for (let comment of this.commentList) {
837
         for (let comment of this.commentList) {
815
-          getUsersDeptLeaderByDept({ deptId: comment.deptId }).then(res => {
816
-            comment.userId = res.data.userId;
838
+          num = num + 1;
839
+          if(num<=3){
840
+            getUsersDeptLeaderByDept({ deptId: comment.deptId }).then(res => {
841
+              comment.userId = res.data.userId;
842
+          })}
843
+          else{
844
+            getUserByPost({ postName: '专职安全员' }).then(res => {
845
+            comment.userId =res.data[0].userId;
817
           })
846
           })
847
+          }
818
         }
848
         }
819
       }
849
       }
820
     },
850
     },

正在加载...
取消
保存