Selaa lähdekoodia

同步更新移动端

lamphua 1 kuukausi sitten
vanhempi
commit
4eeb632131

+ 31
- 12
oa-ui-app/pages/form/borrow/borrow.vue Näytä tiedosto

@@ -232,6 +232,7 @@ export default {
232 232
       formTotal: 0,
233 233
       siteExpenses: 0, //预结算额
234 234
       exceed: false, //是否超预算
235
+      need: true, //是否需要分管审批
235 236
       hasBorrow: 0, //已申请借款
236 237
       deptId: undefined,
237 238
       returnBack: false,
@@ -302,7 +303,9 @@ export default {
302 303
       getBorrow(this.taskForm.formId).then(async res => {
303 304
         if (res.data) {
304 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 309
           if (!this.applierUserName) {
307 310
             this.applierUserName = this.form.applierUser.nickName;
308 311
           }
@@ -468,16 +471,32 @@ export default {
468 471
               // 处理借款申请节点
469 472
               await this.borrowApprovalFun();
470 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 500
             } else if (this.taskName == '分管审核') {
482 501
               // 得到总经理
483 502
               const res = await getUserByPost({ postName: '总经理' });
@@ -533,7 +552,7 @@ export default {
533 552
           const res = await getUserByPost({ postName: '党总支书记' });
534 553
           userId = res.data[0].userId;
535 554
         } else {
536
-          const res = await getUserByPost({ postName: '团书记' });
555
+          const res = await getUserByPost({ postName: '团支部书记' });
537 556
           userId = res.data[0].userId;
538 557
         }
539 558
         this.taskForm.variables.dept = this.deptId;

+ 1
- 1
oa-ui-app/pages/form/car/car.vue Näytä tiedosto

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

+ 1
- 1
oa-ui/src/assets/datas/publicData.js Näytä tiedosto

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

+ 1
- 1
oa-ui/src/views/flowable/form/finance/borrowForm.vue Näytä tiedosto

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

+ 1
- 1
oa-ui/src/views/flowable/form/oa/carForm.vue Näytä tiedosto

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

Loading…
Peruuta
Tallenna