ソースを参照

预结算工作量类型调整

lamphua 1年前
コミット
8e6dfb6d90

+ 3
- 3
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBudgetSettle.java ファイルの表示

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

+ 26
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcCarApproval.java ファイルの表示

103
     @Excel(name = "工会审批意见")
103
     @Excel(name = "工会审批意见")
104
     private String unionComment;
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
     @Excel(name = "调度员")
115
     @Excel(name = "调度员")
108
     private Long dispatcher;
116
     private Long dispatcher;
318
     {
326
     {
319
         return unionComment;
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
     public void setDispatcher(Long dispatcher)
347
     public void setDispatcher(Long dispatcher)
322
     {
348
     {
323
         this.dispatcher = dispatcher;
349
         this.dispatcher = dispatcher;

+ 11
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcCarApprovalMapper.xml ファイルの表示

25
         <result property="managerComment"    column="manager_comment"    />
25
         <result property="managerComment"    column="manager_comment"    />
26
         <result property="unionUserId"    column="union_user_id"    />
26
         <result property="unionUserId"    column="union_user_id"    />
27
         <result property="unionComment"    column="union_comment"    />
27
         <result property="unionComment"    column="union_comment"    />
28
+        <result property="gmUserId"    column="gm_user_id"    />
29
+        <result property="gmComment"    column="gm_comment"    />
28
         <result property="dispatcher"    column="dispatcher"    />
30
         <result property="dispatcher"    column="dispatcher"    />
29
         <result property="dispatchComment"    column="dispatch_comment"    />
31
         <result property="dispatchComment"    column="dispatch_comment"    />
30
         <result property="estimateCost"    column="estimate_cost"    />
32
         <result property="estimateCost"    column="estimate_cost"    />
50
     </resultMap>
52
     </resultMap>
51
 
53
 
52
     <sql id="selectCmcCarApprovalVo">
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
             left join sys_user as u on u.user_id = ca.applier
56
             left join sys_user as u on u.user_id = ca.applier
55
             left join sys_dept as d on d.dept_id = ca.use_dept
57
             left join sys_dept as d on d.dept_id = ca.use_dept
56
             left join cmc_project as p on ca.project_id = p.project_id
58
             left join cmc_project as p on ca.project_id = p.project_id
78
             <if test="managerComment != null  and managerComment != ''"> and ca.manager_comment = #{managerComment}</if>
80
             <if test="managerComment != null  and managerComment != ''"> and ca.manager_comment = #{managerComment}</if>
79
             <if test="unionUserId != null "> and ca.union_user_id = #{unionUserId}</if>
81
             <if test="unionUserId != null "> and ca.union_user_id = #{unionUserId}</if>
80
             <if test="unionComment != null  and unionComment != ''"> and ca.union_comment = #{unionComment}</if>
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
             <if test="dispatcher != null "> and ca.dispatcher = #{dispatcher}</if>
85
             <if test="dispatcher != null "> and ca.dispatcher = #{dispatcher}</if>
82
             <if test="dispatchComment != null  and dispatchComment != ''"> and ca.dispatch_comment = #{dispatchComment}</if>
86
             <if test="dispatchComment != null  and dispatchComment != ''"> and ca.dispatch_comment = #{dispatchComment}</if>
83
             <if test="estimateCost != null "> and ca.estimate_cost = #{estimateCost}</if>
87
             <if test="estimateCost != null "> and ca.estimate_cost = #{estimateCost}</if>
112
             <if test="managerComment != null">manager_comment,</if>
116
             <if test="managerComment != null">manager_comment,</if>
113
             <if test="unionUserId != null">union_user_id,</if>
117
             <if test="unionUserId != null">union_user_id,</if>
114
             <if test="unionComment != null">union_comment,</if>
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
             <if test="dispatcher != null">dispatcher,</if>
121
             <if test="dispatcher != null">dispatcher,</if>
116
             <if test="dispatchComment != null">dispatch_comment,</if>
122
             <if test="dispatchComment != null">dispatch_comment,</if>
117
             <if test="estimateCost != null">estimate_cost,</if>
123
             <if test="estimateCost != null">estimate_cost,</if>
137
             <if test="managerComment != null">#{managerComment},</if>
143
             <if test="managerComment != null">#{managerComment},</if>
138
             <if test="unionUserId != null">#{unionUserId},</if>
144
             <if test="unionUserId != null">#{unionUserId},</if>
139
             <if test="unionComment != null">#{unionComment},</if>
145
             <if test="unionComment != null">#{unionComment},</if>
146
+            <if test="gmUserId != null">#{gmUserId},</if>
147
+            <if test="gmComment != null">#{gmComment},</if>
140
             <if test="dispatcher != null">#{dispatcher},</if>
148
             <if test="dispatcher != null">#{dispatcher},</if>
141
             <if test="dispatchComment != null">#{dispatchComment},</if>
149
             <if test="dispatchComment != null">#{dispatchComment},</if>
142
             <if test="estimateCost != null">#{estimateCost},</if>
150
             <if test="estimateCost != null">#{estimateCost},</if>
165
             <if test="managerComment != null">manager_comment = #{managerComment},</if>
173
             <if test="managerComment != null">manager_comment = #{managerComment},</if>
166
             <if test="unionUserId != null">union_user_id = #{unionUserId},</if>
174
             <if test="unionUserId != null">union_user_id = #{unionUserId},</if>
167
             <if test="unionComment != null">union_comment = #{unionComment},</if>
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
             <if test="dispatcher != null">dispatcher = #{dispatcher},</if>
178
             <if test="dispatcher != null">dispatcher = #{dispatcher},</if>
169
             <if test="dispatchComment != null">dispatch_comment = #{dispatchComment},</if>
179
             <if test="dispatchComment != null">dispatch_comment = #{dispatchComment},</if>
170
             <if test="estimateCost != null">estimate_cost = #{estimateCost},</if>
180
             <if test="estimateCost != null">estimate_cost = #{estimateCost},</if>

+ 13
- 16
oa-back/sql/sql.sql
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 5
- 0
oa-ui/src/store/modules/user.js ファイルの表示

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

読み込み中…
キャンセル
保存