Kaynağa Gözat

预结算工作量类型调整

lamphua 1 yıl önce
ebeveyn
işleme
8e6dfb6d90

+ 3
- 3
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBudgetSettle.java Dosyayı Görüntüle

@@ -31,7 +31,7 @@ public class CmcBudgetSettle extends BaseEntity
31 31
 
32 32
     /** 工作量 */
33 33
     @Excel(name = "工作量")
34
-    private Long workload;
34
+    private Double workload;
35 35
 
36 36
     /** 系数 */
37 37
     @Excel(name = "系数")
@@ -77,12 +77,12 @@ public class CmcBudgetSettle extends BaseEntity
77 77
     {
78 78
         return price;
79 79
     }
80
-    public void setWorkload(Long workload) 
80
+    public void setWorkload(Double workload)
81 81
     {
82 82
         this.workload = workload;
83 83
     }
84 84
 
85
-    public Long getWorkload() 
85
+    public Double getWorkload()
86 86
     {
87 87
         return workload;
88 88
     }

+ 26
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcCarApproval.java Dosyayı Görüntüle

@@ -103,6 +103,14 @@ public class CmcCarApproval extends BaseEntity
103 103
     @Excel(name = "工会审批意见")
104 104
     private String unionComment;
105 105
 
106
+    /** 总经理审批人 */
107
+    @Excel(name = "总经理审批人")
108
+    private Long gmUserId;
109
+
110
+    /** 总经理审批意见 */
111
+    @Excel(name = "总经理审批意见")
112
+    private String gmComment;
113
+
106 114
     /** 调度员 */
107 115
     @Excel(name = "调度员")
108 116
     private Long dispatcher;
@@ -318,6 +326,24 @@ public class CmcCarApproval extends BaseEntity
318 326
     {
319 327
         return unionComment;
320 328
     }
329
+    public void setGmUserId(Long gmUserId)
330
+    {
331
+        this.gmUserId = gmUserId;
332
+    }
333
+
334
+    public Long getGmUserId()
335
+    {
336
+        return gmUserId;
337
+    }
338
+    public void setGmComment(String gmComment)
339
+    {
340
+        this.gmComment = gmComment;
341
+    }
342
+
343
+    public String getGmComment()
344
+    {
345
+        return gmComment;
346
+    }
321 347
     public void setDispatcher(Long dispatcher)
322 348
     {
323 349
         this.dispatcher = dispatcher;

+ 11
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcCarApprovalMapper.xml Dosyayı Görüntüle

@@ -25,6 +25,8 @@
25 25
         <result property="managerComment"    column="manager_comment"    />
26 26
         <result property="unionUserId"    column="union_user_id"    />
27 27
         <result property="unionComment"    column="union_comment"    />
28
+        <result property="gmUserId"    column="gm_user_id"    />
29
+        <result property="gmComment"    column="gm_comment"    />
28 30
         <result property="dispatcher"    column="dispatcher"    />
29 31
         <result property="dispatchComment"    column="dispatch_comment"    />
30 32
         <result property="estimateCost"    column="estimate_cost"    />
@@ -50,7 +52,7 @@
50 52
     </resultMap>
51 53
 
52 54
     <sql id="selectCmcCarApprovalVo">
53
-        select ca.car_apply_id, ca.applier, u.nick_name, ca.use_dept, d.dept_name, ca.cars, ca.drivers, ca.project_id, p.project_number, p.project_name, ca.apply_reason, ca.passengers, ca.apply_date, ca.begin_date, ca.begin_halfday, ca.end_date, ca.end_halfday, ca.days, ca.dept_user_id, ca.dept_comment, ca.manager_user_id, ca.manager_comment, ca.union_user_id, ca.union_comment, ca.dispatcher, ca.dispatch_comment, ca.estimate_cost from cmc_car_approval as ca
55
+        select ca.car_apply_id, ca.applier, u.nick_name, ca.use_dept, d.dept_name, ca.cars, ca.drivers, ca.project_id, p.project_number, p.project_name, ca.apply_reason, ca.passengers, ca.apply_date, ca.begin_date, ca.begin_halfday, ca.end_date, ca.end_halfday, ca.days, ca.dept_user_id, ca.dept_comment, ca.manager_user_id, ca.manager_comment, ca.union_user_id, ca.union_comment, ca.gm_user_id, ca.gm_comment, ca.dispatcher, ca.dispatch_comment, ca.estimate_cost from cmc_car_approval as ca
54 56
             left join sys_user as u on u.user_id = ca.applier
55 57
             left join sys_dept as d on d.dept_id = ca.use_dept
56 58
             left join cmc_project as p on ca.project_id = p.project_id
@@ -78,6 +80,8 @@
78 80
             <if test="managerComment != null  and managerComment != ''"> and ca.manager_comment = #{managerComment}</if>
79 81
             <if test="unionUserId != null "> and ca.union_user_id = #{unionUserId}</if>
80 82
             <if test="unionComment != null  and unionComment != ''"> and ca.union_comment = #{unionComment}</if>
83
+            <if test="gmUserId != null "> and ca.gm_user_id = #{gmUserId}</if>
84
+            <if test="gmComment != null  and gmComment != ''"> and ca.gm_comment = #{gmComment}</if>
81 85
             <if test="dispatcher != null "> and ca.dispatcher = #{dispatcher}</if>
82 86
             <if test="dispatchComment != null  and dispatchComment != ''"> and ca.dispatch_comment = #{dispatchComment}</if>
83 87
             <if test="estimateCost != null "> and ca.estimate_cost = #{estimateCost}</if>
@@ -112,6 +116,8 @@
112 116
             <if test="managerComment != null">manager_comment,</if>
113 117
             <if test="unionUserId != null">union_user_id,</if>
114 118
             <if test="unionComment != null">union_comment,</if>
119
+            <if test="gmUserId != null">gm_user_id,</if>
120
+            <if test="gmComment != null">gm_comment,</if>
115 121
             <if test="dispatcher != null">dispatcher,</if>
116 122
             <if test="dispatchComment != null">dispatch_comment,</if>
117 123
             <if test="estimateCost != null">estimate_cost,</if>
@@ -137,6 +143,8 @@
137 143
             <if test="managerComment != null">#{managerComment},</if>
138 144
             <if test="unionUserId != null">#{unionUserId},</if>
139 145
             <if test="unionComment != null">#{unionComment},</if>
146
+            <if test="gmUserId != null">#{gmUserId},</if>
147
+            <if test="gmComment != null">#{gmComment},</if>
140 148
             <if test="dispatcher != null">#{dispatcher},</if>
141 149
             <if test="dispatchComment != null">#{dispatchComment},</if>
142 150
             <if test="estimateCost != null">#{estimateCost},</if>
@@ -165,6 +173,8 @@
165 173
             <if test="managerComment != null">manager_comment = #{managerComment},</if>
166 174
             <if test="unionUserId != null">union_user_id = #{unionUserId},</if>
167 175
             <if test="unionComment != null">union_comment = #{unionComment},</if>
176
+            <if test="gmUserId != null">gm_user_id = #{gmUserId},</if>
177
+            <if test="gmComment != null">gm_comment = #{gmComment},</if>
168 178
             <if test="dispatcher != null">dispatcher = #{dispatcher},</if>
169 179
             <if test="dispatchComment != null">dispatch_comment = #{dispatchComment},</if>
170 180
             <if test="estimateCost != null">estimate_cost = #{estimateCost},</if>

+ 13
- 16
oa-back/sql/sql.sql
Dosya farkı çok büyük olduğundan ihmal edildi
Dosyayı Görüntüle


+ 5
- 0
oa-ui/src/store/modules/user.js Dosyayı Görüntüle

@@ -7,6 +7,7 @@ const user = {
7 7
     id: '',
8 8
     name: '',
9 9
     avatar: '',
10
+    deptId:'',
10 11
     deptName:'',
11 12
     roles: [],
12 13
     permissions: []
@@ -22,6 +23,9 @@ const user = {
22 23
     SET_NAME: (state, name) => {
23 24
       state.name = name
24 25
     },
26
+    SET_DEPTID:(state, deptId) => {
27
+      state.deptId = deptId
28
+    },
25 29
     SET_DEPTNAME:(state, deptName) => {
26 30
       state.deptName = deptName
27 31
     },
@@ -68,6 +72,7 @@ const user = {
68 72
           }
69 73
           commit('SET_ID', user.userId)
70 74
           commit('SET_NAME', user.nickName)
75
+          commit('SET_DEPTID',user.dept.deptId)
71 76
           commit('SET_DEPTNAME',user.dept.deptName)
72 77
           commit('SET_AVATAR', avatar)
73 78
           resolve(res)

Loading…
İptal
Kaydet