Quellcode durchsuchen

借款、预算加董事长相关字段;修改子流程发起设置

lamphua vor 11 Monaten
Ursprung
Commit
d03e8bcdd8

+ 1
- 1
oa-back/ruoyi-flowable/src/main/java/com/ruoyi/flowable/oa/CallBudgetActivityExecutionListener.java Datei anzeigen

@@ -13,6 +13,6 @@ public class CallBudgetActivityExecutionListener implements ExecutionListener {
13 13
     public void notify(DelegateExecution delegateExecution) {
14 14
         Map<String, Object> variables = delegateExecution.getVariables();
15 15
         Authentication.setAuthenticatedUserId(variables.get("budgetInitiator").toString());
16
-        delegateExecution.setVariable("approval", variables.get("budgetInitiator").toString());
16
+        delegateExecution.setVariableLocal("approval", variables.get("budgetInitiator"));
17 17
     }
18 18
 }

+ 1
- 1
oa-back/ruoyi-flowable/src/main/java/com/ruoyi/flowable/oa/CallPlanActivityExecutionListener.java Datei anzeigen

@@ -15,6 +15,6 @@ public class CallPlanActivityExecutionListener implements ExecutionListener {
15 15
     public void notify(DelegateExecution delegateExecution) {
16 16
         Map<String, Object> variables = delegateExecution.getVariables();
17 17
         Authentication.setAuthenticatedUserId(variables.get("planInitiator").toString());
18
-        delegateExecution.setVariable("approval", variables.get("planInitiator").toString());
18
+        delegateExecution.setVariableLocal("approval", variables.get("planInitiator"));
19 19
     }
20 20
 }

+ 3
- 3
oa-back/ruoyi-flowable/src/main/java/com/ruoyi/flowable/oa/CallSafeActivityExecutionListener.java Datei anzeigen

@@ -13,8 +13,8 @@ public class CallSafeActivityExecutionListener implements ExecutionListener {
13 13
     @Override
14 14
     public void notify(DelegateExecution delegateExecution) {
15 15
         SysUserPostMapper userPostMapper = SpringUtils.getBean(SysUserPostMapper.class);
16
-        String userId = userPostMapper.selectUserListByPostName("专职安全员").get(0).getUserId().toString();
17
-        Authentication.setAuthenticatedUserId(userId);
18
-        delegateExecution.setVariable("approval", userId);
16
+        Long userId = userPostMapper.selectUserListByPostName("专职安全员").get(0).getUserId();
17
+        Authentication.setAuthenticatedUserId(userId.toString());
18
+        delegateExecution.setVariableLocal("approval", userId);
19 19
     }
20 20
 }

+ 1
- 1
oa-back/ruoyi-flowable/src/main/java/com/ruoyi/flowable/oa/CallTechActivityExecutionListener.java Datei anzeigen

@@ -13,6 +13,6 @@ public class CallTechActivityExecutionListener implements ExecutionListener {
13 13
     public void notify(DelegateExecution delegateExecution) {
14 14
         Map<String, Object> variables = delegateExecution.getVariables();
15 15
         Authentication.setAuthenticatedUserId(variables.get("techInitiator").toString());
16
-        delegateExecution.setVariable("approval", variables.get("techInitiator").toString());
16
+        delegateExecution.setVariableLocal("approval", variables.get("techInitiator"));
17 17
     }
18 18
 }

+ 53
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBorrow.java Datei anzeigen

@@ -68,6 +68,10 @@ public class CmcBorrow extends BaseEntity
68 68
     private String zjlUserName;
69 69
     private SysUser zjlUser;
70 70
 
71
+    @Excel(name = "董事长")
72
+    private String dszUserName;
73
+    private SysUser dszUser;
74
+
71 75
     @Excel(name = "党工团审批人")
72 76
     private String unionUserName;
73 77
     private SysUser unionUser;
@@ -113,10 +117,17 @@ public class CmcBorrow extends BaseEntity
113 117
     /** 总经理审批人 */
114 118
     private Long zjlUserId;
115 119
 
120
+    /** 董事长审批人 */
121
+    private Long dszUserId;
122
+
116 123
     /** 总经理审批意见 */
117 124
     @Excel(name = "总经理审批意见")
118 125
     private String zjlComment;
119 126
 
127
+    /** 董事长审批意见 */
128
+    @Excel(name = "董事长审批意见")
129
+    private String dszComment;
130
+
120 131
     /** 工会审批人 */
121 132
     private Long unionUserId;
122 133
 
@@ -159,6 +170,11 @@ public class CmcBorrow extends BaseEntity
159 170
     @Excel(name = "总经理审批时间", width = 30, dateFormat = "yyyy-MM-dd")
160 171
     private Date zjlTime;
161 172
 
173
+    /** 董事长审批时间 */
174
+    @JsonFormat(pattern = "yyyy-MM-dd")
175
+    @Excel(name = "董事长审批时间", width = 30, dateFormat = "yyyy-MM-dd")
176
+    private Date dszTime;
177
+
162 178
     /** 工会审批时间 */
163 179
     @JsonFormat(pattern = "yyyy-MM-dd")
164 180
     @Excel(name = "工会审批时间", width = 30, dateFormat = "yyyy-MM-dd")
@@ -293,6 +309,16 @@ public class CmcBorrow extends BaseEntity
293 309
     {
294 310
         return zjlUser;
295 311
     }
312
+    public void setDszUser(SysUser dszUser)
313
+    {
314
+        this.dszUser = dszUser;
315
+        this.dszUserName = dszUser == null ? "" : dszUser.getNickName();
316
+    }
317
+
318
+    public SysUser getDszUser()
319
+    {
320
+        return dszUser;
321
+    }
296 322
     public void setUnionUser(SysUser unionUser)
297 323
     {
298 324
         this.unionUser = unionUser;
@@ -403,6 +429,15 @@ public class CmcBorrow extends BaseEntity
403 429
     {
404 430
         return zjlUserId;
405 431
     }
432
+    public void setDszUserId(Long dszUserId)
433
+    {
434
+        this.dszUserId = dszUserId;
435
+    }
436
+
437
+    public Long getDszUserId()
438
+    {
439
+        return dszUserId;
440
+    }
406 441
     public void setZjlComment(String zjlComment) 
407 442
     {
408 443
         this.zjlComment = zjlComment;
@@ -412,6 +447,15 @@ public class CmcBorrow extends BaseEntity
412 447
     {
413 448
         return zjlComment;
414 449
     }
450
+    public void setDszComment(String dszComment)
451
+    {
452
+        this.dszComment = dszComment;
453
+    }
454
+
455
+    public String getDszComment()
456
+    {
457
+        return dszComment;
458
+    }
415 459
     public void setUnionUserId(Long unionUserId)
416 460
     {
417 461
         this.unionUserId = unionUserId;
@@ -484,6 +528,15 @@ public class CmcBorrow extends BaseEntity
484 528
     {
485 529
         return zjlTime;
486 530
     }
531
+    public void setDszTime(Date dszTime)
532
+    {
533
+        this.dszTime = dszTime;
534
+    }
535
+
536
+    public Date getDszTime()
537
+    {
538
+        return dszTime;
539
+    }
487 540
     public void setUnionTime(Date unionTime)
488 541
     {
489 542
         this.unionTime = unionTime;

+ 26
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBudget.java Datei anzeigen

@@ -101,6 +101,9 @@ public class CmcBudget extends BaseEntity
101 101
     /** 编制人 */
102 102
     private Long compiler;
103 103
 
104
+    /** 批准人 */
105
+    private Long approver;
106
+
104 107
     @Excel(name = "编制人")
105 108
     private String compilerUserName;
106 109
     private SysUser compilerUser;
@@ -109,6 +112,10 @@ public class CmcBudget extends BaseEntity
109 112
     private String auditorUserName;
110 113
     private SysUser auditorUser;
111 114
 
115
+    @Excel(name = "批准人")
116
+    private String approverUserName;
117
+    private SysUser approverUser;
118
+
112 119
     /** 审核人 */
113 120
     private Long auditor;
114 121
 
@@ -332,6 +339,25 @@ public class CmcBudget extends BaseEntity
332 339
     {
333 340
         return auditor;
334 341
     }
342
+    public void setApprover(Long approver)
343
+    {
344
+        this.approver = approver;
345
+    }
346
+
347
+    public Long getApprover()
348
+    {
349
+        return approver;
350
+    }
351
+    public void setApproverUser(SysUser approverUser)
352
+    {
353
+        this.approverUser = approverUser;
354
+        this.approverUserName = approverUser == null ? "" : approverUser.getNickName();
355
+    }
356
+
357
+    public SysUser getApproverUser()
358
+    {
359
+        return approverUser;
360
+    }
335 361
 
336 362
     @Override
337 363
     public String toString() {

+ 22
- 2
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBorrowMapper.xml Datei anzeigen

@@ -40,6 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
40 40
         <association property="managerUser"    javaType="SysUser"         resultMap="ManagerUserResult" />
41 41
         <association property="xmUser"    javaType="SysUser"         resultMap="XmUserResult" />
42 42
         <association property="zjlUser"    javaType="SysUser"         resultMap="ZjlUserResult" />
43
+        <association property="dszUser"    javaType="SysUser"         resultMap="DszUserResult" />
43 44
         <association property="unionUser"    javaType="SysUser"         resultMap="UnionUserResult" />
44 45
         <association property="cwUser"    javaType="SysUser"         resultMap="CwUserResult" />
45 46
         <association property="dept"    javaType="SysDept"         resultMap="SysDeptResult" />
@@ -71,6 +72,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
71 72
         <result property="nickName"    column="zjl_nick_name"    />
72 73
     </resultMap>
73 74
 
75
+    <resultMap type="SysUser" id="DszUserResult">
76
+        <result property="userId"    column="user_id"    />
77
+        <result property="nickName"    column="dsz_nick_name"    />
78
+    </resultMap>
79
+
74 80
     <resultMap type="SysUser" id="UnionUserResult">
75 81
         <result property="userId"    column="user_id"    />
76 82
         <result property="nickName"    column="union_nick_name"    />
@@ -95,8 +101,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
95 101
     <sql id="selectCmcBorrowVo">
96 102
         select b.borrow_id, b.project_id, p.project_number, p.project_name, b.apply_reason, b.applier, u.nick_name as applier_nick_name, d.dept_name, b.apply_dept, b.remark, b.borrow_usage,
97 103
                b.apply_date, b.apply_amount, b.manager_amount, b.dept_comment, b.dept_user_id, u1.nick_name as dept_nick_name, b.xm_user_id, u2.nick_name as xm_nick_name, b.xm_comment,
98
-               b.manager_comment, b.manager_user_id, u3.nick_name as manager_nick_name, b.zjl_user_id, u4.nick_name as zjl_nick_name, b.zjl_comment,  b.union_user_id, u5.nick_name as zjl_nick_name,
99
-               b.union_comment, b.cw_user_id, u6.nick_name as cw_nick_name, b.cw_comment, b.dept_time, b.xm_time, b.manager_time, b.zjl_time, b.lend_time, b.lend_document, b.borrow_document, b.union_time from cmc_borrow as b
104
+               b.manager_comment, b.manager_user_id, u3.nick_name as manager_nick_name, b.zjl_user_id, u4.nick_name as zjl_nick_name, b.zjl_comment, b.dsz_comment,  b.union_user_id, 
105
+               u5.nick_name as zjl_nick_name, b.union_comment, b.cw_user_id, u6.nick_name as cw_nick_name, b.dsz_user_id, u7.nick_name as dsz_nick_name, b.cw_comment, b.dept_time, b.xm_time,
106
+               b.manager_time, b.zjl_time, b.dsz_time, b.lend_time, b.lend_document, b.borrow_document, b.union_time from cmc_borrow as b
100 107
         left join sys_user as u on u.user_id = b.applier
101 108
         left join sys_user as u1 on u1.user_id = b.dept_user_id
102 109
         left join sys_user as u2 on u2.user_id = b.xm_user_id
@@ -104,6 +111,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
104 111
         left join sys_user as u4 on u4.user_id = b.zjl_user_id
105 112
         left join sys_user as u5 on u5.user_id = b.union_user_id
106 113
         left join sys_user as u6 on u6.user_id = b.cw_user_id
114
+        left join sys_user as u7 on u7.user_id = b.dsz_user_id
107 115
         left join sys_dept as d on d.dept_id = b.apply_dept
108 116
         left join cmc_project as p on b.project_id = p.project_id
109 117
     </sql>
@@ -128,6 +136,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
128 136
             <if test="managerUserId != null "> and b.manager_user_id = #{managerUserId}</if>
129 137
             <if test="zjlUserId != null "> and b.zjl_user_id = #{zjlUserId}</if>
130 138
             <if test="zjlComment != null  and zjlComment != ''"> and b.zjl_comment = #{zjlComment}</if>
139
+            <if test="dszUserId != null "> and b.dsz_user_id = #{dszUserId}</if>
140
+            <if test="dszComment != null  and dszComment != ''"> and b.dsz_comment = #{dszComment}</if>
131 141
             <if test="unionUserId != null "> and b.union_user_id = #{unionUserId}</if>
132 142
             <if test="unionComment != null  and unionComment != ''"> and b.union_comment = #{unionComment}</if>
133 143
             <if test="cwUserId != null "> and b.cw_user_id = #{cwUserId}</if>
@@ -136,6 +146,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
136 146
             <if test="xmTime != null "> and b.xm_time = #{xmTime}</if>
137 147
             <if test="managerTime != null "> and b.manager_time = #{managerTime}</if>
138 148
             <if test="zjlTime != null "> and b.zjl_time = #{zjlTime}</if>
149
+            <if test="dszTime != null "> and b.dsz_time = #{dszTime}</if>
139 150
             <if test="lendTime != null "> and b.lend_time = #{lendTime}</if>
140 151
             <if test="unionTime != null "> and b.union_time = #{unionTime}</if>
141 152
         </where>
@@ -168,6 +179,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
168 179
             <if test="managerUserId != null">manager_user_id,</if>
169 180
             <if test="zjlUserId != null">zjl_user_id,</if>
170 181
             <if test="zjlComment != null">zjl_comment,</if>
182
+            <if test="dszUserId != null">dsz_user_id,</if>
183
+            <if test="dszComment != null">dsz_comment,</if>
171 184
             <if test="unionUserId != null">union_user_id,</if>
172 185
             <if test="unionComment != null">union_comment,</if>
173 186
             <if test="cwUserId != null">cw_user_id,</if>
@@ -176,6 +189,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
176 189
             <if test="xmTime != null">xm_time,</if>
177 190
             <if test="managerTime != null">manager_time,</if>
178 191
             <if test="zjlTime != null">zjl_time,</if>
192
+            <if test="dszTime != null">dsz_time,</if>
179 193
             <if test="lendTime != null">lend_time,</if>
180 194
             <if test="unionTime != null">union_time,</if>
181 195
             <if test="lendDocument != null">lend_document,</if>
@@ -200,6 +214,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
200 214
             <if test="managerUserId != null">#{managerUserId},</if>
201 215
             <if test="zjlUserId != null">#{zjlUserId},</if>
202 216
             <if test="zjlComment != null">#{zjlComment},</if>
217
+            <if test="dszUserId != null">#{dszUserId},</if>
218
+            <if test="dszComment != null">#{dszComment},</if>
203 219
             <if test="unionUserId != null">#{unionUserId},</if>
204 220
             <if test="unionComment != null">#{unionComment},</if>
205 221
             <if test="cwUserId != null">#{cwUserId},</if>
@@ -208,6 +224,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
208 224
             <if test="xmTime != null">#{xmTime},</if>
209 225
             <if test="managerTime != null">#{managerTime},</if>
210 226
             <if test="zjlTime != null">#{zjlTime},</if>
227
+            <if test="dszTime != null">#{dszTime},</if>
211 228
             <if test="unionTime != null">#{unionTime},</if>
212 229
             <if test="lendTime != null">#{lendTime},</if>
213 230
             <if test="lendDocument != null">#{lendDocument},</if>
@@ -235,6 +252,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
235 252
             <if test="managerUserId != null">manager_user_id = #{managerUserId},</if>
236 253
             <if test="zjlUserId != null">zjl_user_id = #{zjlUserId},</if>
237 254
             <if test="zjlComment != null">zjl_comment = #{zjlComment},</if>
255
+            <if test="dszUserId != null">dsz_user_id = #{dszUserId},</if>
256
+            <if test="dszComment != null">dsz_comment = #{dszComment},</if>
238 257
             <if test="unionUserId != null">union_user_id = #{unionUserId},</if>
239 258
             <if test="unionComment != null">zjl_comment = #{unionComment},</if>
240 259
             <if test="cwUserId != null">cw_user_id = #{cwUserId},</if>
@@ -243,6 +262,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
243 262
             <if test="xmTime != null">xm_time = #{xmTime},</if>
244 263
             <if test="managerTime != null">manager_time = #{managerTime},</if>
245 264
             <if test="zjlTime != null">zjl_time = #{zjlTime},</if>
265
+            <if test="dszTime != null">dsz_time = #{dszTime},</if>
246 266
             <if test="unionTime != null">union_time = #{unionTime},</if>
247 267
             <if test="lendTime != null">lend_time = #{lendTime},</if>
248 268
             <if test="lendDocument != null">lend_document = #{lendDocument},</if>

+ 29
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBudgetMapper.xml Datei anzeigen

@@ -26,9 +26,15 @@
26 26
         <result property="totalBudget"    column="total_budget"    />
27 27
         <result property="compiler"    column="compiler"    />
28 28
         <result property="auditor"    column="auditor"    />
29
+        <result property="approver"    column="approver"    />
30
+        <result property="auditComment"    column="auditor_comment"    />
31
+        <result property="approveComment"    column="approve_comment"    />
32
+        <result property="auditTime"    column="audit_time"    />
33
+        <result property="approveTime"    column="approve_time"    />
29 34
         <result property="createTime"    column="create_time"    />
30 35
         <association property="compilerUser"    javaType="SysUser"         resultMap="CompilerResult" />
31 36
         <association property="auditorUser"    javaType="SysUser"         resultMap="AuditorResult" />
37
+        <association property="approverUser"    javaType="SysUser"         resultMap="ApproverResult" />
32 38
         <association property="project"    javaType="CmcProject"         resultMap="CmcProjectResult" />
33 39
     </resultMap>
34 40
 
@@ -42,6 +48,11 @@
42 48
         <result property="nickName"    column="auditor_nick_name"    />
43 49
     </resultMap>
44 50
 
51
+    <resultMap type="SysUser" id="ApproverResult">
52
+        <result property="userId"    column="user_id"    />
53
+        <result property="nickName"    column="approver_nick_name"    />
54
+    </resultMap>
55
+
45 56
     <resultMap type="CmcProject" id="CmcProjectResult">
46 57
         <result property="projectId"    column="project_id"    />
47 58
         <result property="projectNumber"    column="project_number"    />
@@ -51,9 +62,11 @@
51 62
     <sql id="selectCmcBudgetVo">
52 63
         select b.budget_id, b.project_id, p.project_number, p.project_name, b.staff_cost, b.car_cost, b.device_cost, b.fix_cost, b.settle_expense, b.out_expense, b.business_expense, b.tax_expense,
53 64
                b.rent_expense, b.other_expense, b.out_remark, b.business_remark, b.tax_remark, b.rent_remark, b.other_remark, b.direct_expense, b.total_budget, b.compiler,
54
-               u.nick_name as compiler_nick_name, b.auditor, u1.nick_name as auditor_nick_name, b.create_time from cmc_budget as b
65
+               u.nick_name as compiler_nick_name, b.auditor, u1.nick_name as auditor_nick_name, b.appover, u2.nick_name as appover_nick_name, b.create_time, b.audit_time, b.approve_time,
66
+               b.audit_comment, b.approve_comment from cmc_budget as b
55 67
             left join sys_user as u on u.user_id = b.compiler
56 68
             left join sys_user as u1 on u1.user_id = b.auditor
69
+            left join sys_user as u2 on u2.user_id = b.appover
57 70
             left join cmc_project as p on b.project_id = p.project_id
58 71
     </sql>
59 72
 
@@ -107,6 +120,11 @@
107 120
             <if test="totalBudget != null">total_budget,</if>
108 121
             <if test="compiler != null">compiler,</if>
109 122
             <if test="auditor != null">auditor,</if>
123
+            <if test="approver != null">approver,</if>
124
+            <if test="auditTime != null">audit_time,</if>
125
+            <if test="approveTime != null">approve_time,</if>
126
+            <if test="auditComment != null">audit_comment,</if>
127
+            <if test="approveComment != null">approve_comment,</if>
110 128
             create_time
111 129
         </trim>
112 130
         <trim prefix="values (" suffix=")" suffixOverrides=",">
@@ -131,6 +149,11 @@
131 149
             <if test="totalBudget != null">#{totalBudget},</if>
132 150
             <if test="compiler != null">#{compiler},</if>
133 151
             <if test="auditor != null">#{auditor},</if>
152
+            <if test="approver != null">#{approver},</if>
153
+            <if test="auditTime != null">#{auditTime},</if>
154
+            <if test="approveTime != null">#{approveTime},</if>
155
+            <if test="auditComment != null">#{auditComment},</if>
156
+            <if test="approveComment != null">#{approveComment},</if>
134 157
             sysdate()
135 158
         </trim>
136 159
     </insert>
@@ -158,6 +181,11 @@
158 181
             <if test="totalBudget != null">total_budget = #{totalBudget},</if>
159 182
             <if test="compiler != null">compiler = #{compiler},</if>
160 183
             <if test="auditor != null">auditor = #{auditor},</if>
184
+            <if test="approver != null">approver = #{approver},</if>
185
+            <if test="auditTime != null">audit_time = #{auditTime},</if>
186
+            <if test="approveTime != null">approve_time = #{approveTime},</if>
187
+            <if test="auditComment != null">audit_comment = #{auditComment},</if>
188
+            <if test="approveComment != null">approve_comment = #{approveComment},</if>
161 189
             <if test="createTime != null">create_time = #{createTime},</if>
162 190
         </trim>
163 191
         where budget_id = #{budgetId}

+ 8
- 0
oa-back/sql/sql.sql Datei anzeigen

@@ -6347,7 +6347,12 @@ create table `cmc_budget`  (
6347 6347
   `total_budget` 		decimal(10, 2) 	default null 	comment '预算总额',
6348 6348
   `compiler` 			bigint 			default null 	comment '编制人',
6349 6349
   `auditor` 			bigint 			default null 	comment '审核人',
6350
+  `approver` 			bigint 			default null 	comment '批准人',
6351
+  `audit_comment` 		varchar(255)	default null 	comment '审核人意见',
6352
+  `approve_comment` 	varchar(255)	default null 	comment '批准人意见',
6350 6353
   `create_time` 		date 			default null 	comment '创建时间',
6354
+  `audit_time` 			date			default null 	comment '审核时间',
6355
+  `approve_time` 		date			default null 	comment '批准时间',
6351 6356
   primary key (`budget_id`)
6352 6357
 ) engine = innodb comment = 'cmc预算管理表';
6353 6358
 
@@ -8571,6 +8576,8 @@ create table `cmc_borrow`  (
8571 8576
   `manager_user_id` bigint 			default null comment '分管审批人',
8572 8577
   `zjl_user_id` 	bigint 			default null comment '总经理审批人',
8573 8578
   `zjl_comment` 	varchar(255)  	default null comment '总经理审批意见',
8579
+  `dsz_user_id` 	bigint 			default null comment '董事长审批人',
8580
+  `dsz_comment` 	varchar(255)  	default null comment '董事长审批意见',
8574 8581
   `union_user_id` 	bigint 			default null comment '工会审批人',
8575 8582
   `union_comment` 	varchar(255)  	default null comment '工会审批意见',
8576 8583
   `cw_user_id` 		bigint 			default null comment '财务部经办人',
@@ -8580,6 +8587,7 @@ create table `cmc_borrow`  (
8580 8587
   `xm_time` 		date 			default null comment '项目部审批时间',
8581 8588
   `manager_time` 	date 			default null comment '分管审批时间',
8582 8589
   `zjl_time` 		date 			default null comment '总经理审批时间',
8590
+  `dsz_time` 		date 			default null comment '董事长审批时间',
8583 8591
   `union_time` 		date 			default null comment '工会审批时间',
8584 8592
   `lend_time` 		date 			default null comment '借款支付时间',
8585 8593
   primary key (`borrow_id`)

+ 5
- 5
oa-ui/src/views/flowable/form/projectProcess/arrangeProject.vue Datei anzeigen

@@ -1,8 +1,8 @@
1 1
 <!--
2 2
  * @Author: ysh
3 3
  * @Date: 2024-03-19 09:24:06
4
- * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2024-07-09 09:28:51
4
+ * @LastEditors: wrh
5
+ * @LastEditTime: 2024-07-09 21:30:44
6 6
 -->
7 7
 <template>
8 8
   <div class="app-container">
@@ -109,7 +109,7 @@
109 109
 <script>
110 110
 import { listDept } from '@/api/system/dept'
111 111
 import { listUser } from '@/api/system/user'
112
-import { getUsersDeptLeaderByDept, getDeptLeadersByDeptId } from '@/api/system/post'
112
+import { getUsersDeptLeaderByDept, getDeptLeadersByDeptId, getUsersManageLeaderByDept } from '@/api/system/post'
113 113
 import { complete, rejectTask, returnList, returnTask, getNextFlowNode, delegate, flowTaskForm, } from "@/api/flowable/todo";
114 114
 import { listProject, getProject, addProject, updateProject, delProject, submitProject, modifyProject } from "@/api/oa/project/project";
115 115
 export default {
@@ -253,10 +253,10 @@ export default {
253 253
         type: 'warning'
254 254
       }).then(async () => {
255 255
         this.save();
256
-        let resData = await getUsersDeptLeaderByDept({ deptId: 105 });
256
+        let resData = await getUsersManageLeaderByDept({ deptId: 105 });
257 257
         let approvalId;
258 258
         if (resData.data) {
259
-          approvalId = resData.data.userId;
259
+          approvalId = resData.data[0].userId;
260 260
         }
261 261
         console.log(approvalId);
262 262
         const params = { taskId: this.taskForm.taskId };

Laden…
Abbrechen
Speichern