Quellcode durchsuchen

同步更新移动端

lamphua vor 2 Monaten
Ursprung
Commit
4eeb632131

+ 31
- 12
oa-ui-app/pages/form/borrow/borrow.vue Datei anzeigen

232
       formTotal: 0,
232
       formTotal: 0,
233
       siteExpenses: 0, //预结算额
233
       siteExpenses: 0, //预结算额
234
       exceed: false, //是否超预算
234
       exceed: false, //是否超预算
235
+      need: true, //是否需要分管审批
235
       hasBorrow: 0, //已申请借款
236
       hasBorrow: 0, //已申请借款
236
       deptId: undefined,
237
       deptId: undefined,
237
       returnBack: false,
238
       returnBack: false,
302
       getBorrow(this.taskForm.formId).then(async res => {
303
       getBorrow(this.taskForm.formId).then(async res => {
303
         if (res.data) {
304
         if (res.data) {
304
           this.formTotal = 1;
305
           this.formTotal = 1;
305
-          this.form = res.data;
306
+          this.form = res.data;
307
+          if (this.form.applyDept == 104) //董事长分管的综合事务部,跳过分管审批
308
+            this.need = false;
306
           if (!this.applierUserName) {
309
           if (!this.applierUserName) {
307
             this.applierUserName = this.form.applierUser.nickName;
310
             this.applierUserName = this.form.applierUser.nickName;
308
           }
311
           }
468
               // 处理借款申请节点
471
               // 处理借款申请节点
469
               await this.borrowApprovalFun();
472
               await this.borrowApprovalFun();
470
             } else if (this.taskName == '部门审核') {
473
             } else if (this.taskName == '部门审核') {
471
-              // 得到分管领导根据部门
472
-              const res = await getUsersManageLeaderByDept({ deptId: this.form.applyDept });
473
-              let userIds = [];
474
-              if (res.data) {
475
-                res.data.forEach(item => {
476
-                  userIds.push(item.userId)
477
-                })
478
-              }
479
-              this.taskForm.variables.approvalList = userIds;
480
-              this.handleComplete(this.taskForm);
474
+              this.taskForm.variables.need = this.need;
475
+              if (this.need) {
476
+				  // 得到分管领导根据部门
477
+				  const res = await getUsersManageLeaderByDept({ deptId: this.form.applyDept });
478
+				  let userIds = [];
479
+				  if (res.data) {
480
+					res.data.forEach(item => {
481
+					  userIds.push(item.userId)
482
+					})
483
+				  }
484
+				  this.taskForm.variables.approvalList = userIds;
485
+				  this.handleComplete(this.taskForm);
486
+			  }
487
+			  else {
488
+				  const res = await getUsersManageLeaderByDept({ deptId: this.form.applyDept });
489
+				  let userIds = [];
490
+				  if (res.data) {
491
+					res.data.forEach(item => {
492
+					  userIds.push(item.userId)
493
+					})
494
+				  }
495
+				  this.taskForm.variables.approvalList = userIds;
496
+				  const response = await getUserByPost({ postName: '总经理' });
497
+				  this.taskForm.variables.approval = response.data[0].userId;
498
+				  this.handleComplete(this.taskForm);
499
+			  }
481
             } else if (this.taskName == '分管审核') {
500
             } else if (this.taskName == '分管审核') {
482
               // 得到总经理
501
               // 得到总经理
483
               const res = await getUserByPost({ postName: '总经理' });
502
               const res = await getUserByPost({ postName: '总经理' });
533
           const res = await getUserByPost({ postName: '党总支书记' });
552
           const res = await getUserByPost({ postName: '党总支书记' });
534
           userId = res.data[0].userId;
553
           userId = res.data[0].userId;
535
         } else {
554
         } else {
536
-          const res = await getUserByPost({ postName: '团书记' });
555
+          const res = await getUserByPost({ postName: '团支部书记' });
537
           userId = res.data[0].userId;
556
           userId = res.data[0].userId;
538
         }
557
         }
539
         this.taskForm.variables.dept = this.deptId;
558
         this.taskForm.variables.dept = this.deptId;

+ 1
- 1
oa-ui-app/pages/form/car/car.vue Datei anzeigen

694
         return '工会主席'
694
         return '工会主席'
695
       }
695
       }
696
       else
696
       else
697
-        return '团书记'
697
+        return '团支部书记'
698
     },
698
     },
699
     showFormItem(name) {
699
     showFormItem(name) {
700
       let isShow = false;
700
       let isShow = false;

+ 1
- 1
oa-ui/src/assets/datas/publicData.js Datei anzeigen

6
  */
6
  */
7
 const publicData = {
7
 const publicData = {
8
   partySecretary: 4, //党委书记
8
   partySecretary: 4, //党委书记
9
-  leagueSecretary: 15, //团书记
9
+  leagueSecretary: 15, //团支部书记
10
   gm: 7, //总经理
10
   gm: 7, //总经理
11
   chairman: 2,//董事长
11
   chairman: 2,//董事长
12
   zg: 9,
12
   zg: 9,

+ 1
- 1
oa-ui/src/views/flowable/form/finance/borrowForm.vue Datei anzeigen

883
           const res = await getUserByPost({ postName: '党总支书记' });
883
           const res = await getUserByPost({ postName: '党总支书记' });
884
           userId = res.data[0].userId;
884
           userId = res.data[0].userId;
885
         } else {
885
         } else {
886
-          const res = await getUserByPost({ postName: '团书记' });
886
+          const res = await getUserByPost({ postName: '团支部书记' });
887
           userId = res.data[0].userId;
887
           userId = res.data[0].userId;
888
         }
888
         }
889
         this.$set(this.taskForm.variables, "dept", this.deptId);
889
         this.$set(this.taskForm.variables, "dept", this.deptId);

+ 1
- 1
oa-ui/src/views/flowable/form/oa/carForm.vue Datei anzeigen

663
         return '工会主席'
663
         return '工会主席'
664
       }
664
       }
665
       else
665
       else
666
-        return '团书记'
666
+        return '团支部书记'
667
     },
667
     },
668
     // 查询项目列表
668
     // 查询项目列表
669
     getProjectList() {
669
     getProjectList() {

Laden…
Abbrechen
Speichern