瀏覽代碼

车辆、设备信息

lamphua 11 月之前
父節點
當前提交
d1dd83e7e4

+ 36
- 0
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcCarApprovalController.java 查看文件

9
 import com.ruoyi.common.utils.DateUtils;
9
 import com.ruoyi.common.utils.DateUtils;
10
 import com.ruoyi.oa.domain.*;
10
 import com.ruoyi.oa.domain.*;
11
 import com.ruoyi.oa.service.ICmcCarService;
11
 import com.ruoyi.oa.service.ICmcCarService;
12
+import com.ruoyi.system.service.ISysUserService;
12
 import org.springframework.beans.factory.annotation.Autowired;
13
 import org.springframework.beans.factory.annotation.Autowired;
13
 import org.springframework.web.bind.annotation.*;
14
 import org.springframework.web.bind.annotation.*;
14
 import com.ruoyi.common.annotation.Log;
15
 import com.ruoyi.common.annotation.Log;
35
     @Autowired
36
     @Autowired
36
     private ICmcCarService cmcCarService;
37
     private ICmcCarService cmcCarService;
37
 
38
 
39
+    @Autowired
40
+    private ISysUserService userService;
41
+
38
     /**
42
     /**
39
      * 查询cmc用车审批列表
43
      * 查询cmc用车审批列表
40
      */
44
      */
43
     {
47
     {
44
         startPage();
48
         startPage();
45
         List<CmcCarApproval> list = cmcCarApprovalService.selectCmcCarApprovalList(cmcCarApproval);
49
         List<CmcCarApproval> list = cmcCarApprovalService.selectCmcCarApprovalList(cmcCarApproval);
50
+        for(CmcCarApproval carApproval : list) {
51
+            String carIds = carApproval.getCars();
52
+            StringBuilder carNames = new StringBuilder();
53
+            if (carIds != null && !carIds.equals("") && carIds.split(",").length > 0) {
54
+                for (String carId : carIds.split(","))
55
+                    carNames.append(cmcCarService.selectCmcCarByCarId(Integer.parseInt(carId)).getLicensePlate()).append("、");
56
+                carApproval.setCarNames(carNames.substring(0, carNames.length() - 1));
57
+            }
58
+            String driverIds = carApproval.getDrivers();
59
+            StringBuilder driverNames = new StringBuilder();
60
+            if (driverIds != null && !driverIds.equals("") && driverIds.split(",").length > 0) {
61
+                for (String driverId : driverIds.split(","))
62
+                    driverNames.append(userService.selectUserById(Long.parseLong(driverId)).getNickName()).append("、");
63
+                carApproval.setDriverNames(driverNames.substring(0, driverNames.length() - 1));
64
+            }
65
+        }
46
         return getDataTable(list);
66
         return getDataTable(list);
47
     }
67
     }
48
 
68
 
54
     public void export(HttpServletResponse response, CmcCarApproval cmcCarApproval)
74
     public void export(HttpServletResponse response, CmcCarApproval cmcCarApproval)
55
     {
75
     {
56
         List<CmcCarApproval> list = cmcCarApprovalService.selectCmcCarApprovalList(cmcCarApproval);
76
         List<CmcCarApproval> list = cmcCarApprovalService.selectCmcCarApprovalList(cmcCarApproval);
77
+        for(CmcCarApproval carApproval : list) {
78
+            String carIds = carApproval.getCars();
79
+            StringBuilder carNames = new StringBuilder();
80
+            if (carIds != null && !carIds.equals("") && carIds.split(",").length > 0) {
81
+                for (String carId : carIds.split(","))
82
+                    carNames.append(cmcCarService.selectCmcCarByCarId(Integer.parseInt(carId)).getLicensePlate()).append("、");
83
+                carApproval.setCarNames(carNames.substring(0, carNames.length() - 1));
84
+            }
85
+            String driverIds = carApproval.getDrivers();
86
+            StringBuilder driverNames = new StringBuilder();
87
+            if (driverIds != null && !driverIds.equals("") && driverIds.split(",").length > 0) {
88
+                for (String driverId : driverIds.split(","))
89
+                    driverNames.append(userService.selectUserById(Long.parseLong(driverId)).getNickName()).append("、");
90
+                carApproval.setDriverNames(driverNames.substring(0, driverNames.length() - 1));
91
+            }
92
+        }
57
         ExcelUtil<CmcCarApproval> util = new ExcelUtil<CmcCarApproval>(CmcCarApproval.class);
93
         ExcelUtil<CmcCarApproval> util = new ExcelUtil<CmcCarApproval>(CmcCarApproval.class);
58
         util.exportExcel(response, list, "cmc用车审批数据");
94
         util.exportExcel(response, list, "cmc用车审批数据");
59
     }
95
     }

+ 82
- 0
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcDeviceApprovalController.java 查看文件

44
     {
44
     {
45
         startPage();
45
         startPage();
46
         List<CmcDeviceApproval> list = cmcDeviceApprovalService.selectCmcDeviceApprovalList(cmcDeviceApproval);
46
         List<CmcDeviceApproval> list = cmcDeviceApprovalService.selectCmcDeviceApprovalList(cmcDeviceApproval);
47
+        for(CmcDeviceApproval deviceApproval : list) {
48
+            String deviceIds = deviceApproval.getDevices();
49
+            StringBuilder deviceNames = new StringBuilder();
50
+            if (deviceIds != null && !deviceIds.equals("") && deviceIds.split(",").length > 0) {
51
+                for (String deviceId : deviceIds.split(",")) {
52
+                    CmcDevice device = cmcDeviceService.selectCmcDeviceByDeviceId(Integer.parseInt(deviceId));
53
+                    deviceNames.append(device.getName()).append("【").append(device.getBrand() != null ? device.getBrand() : "")
54
+                            .append(device.getSeries() != null ? "-" + device.getSeries() + "】" : "")
55
+                            .append(device.getCode() != null ? "(设备编号:" + device.getCode() + ")" : "").append("、");
56
+                }
57
+                deviceApproval.setDeviceNames(deviceNames.substring(0, deviceNames.length() - 1));
58
+            }
59
+            String modifyDeviceIds = deviceApproval.getModifyDevices();
60
+            StringBuilder modifyDeviceNames = new StringBuilder();
61
+            StringBuilder modifyDeviceNumbers = new StringBuilder();
62
+            if (modifyDeviceIds != null && !modifyDeviceIds.equals("") && modifyDeviceIds.split(",").length > 0) {
63
+                for (String deviceId : modifyDeviceIds.split(",")) {
64
+                    CmcDevice device = cmcDeviceService.selectCmcDeviceByDeviceId(Integer.parseInt(deviceId));
65
+                    modifyDeviceNumbers.append(device.getDeviceNumber());
66
+                    modifyDeviceNames.append(device.getName()).append("【").append(device.getBrand() != null ? device.getBrand() : "")
67
+                            .append(device.getSeries() != null ? "-" + device.getSeries() + "】" : "")
68
+                            .append(device.getCode() != null ? "(设备编号:" + device.getCode() + ")" : "").append("、");
69
+                }
70
+                deviceApproval.setModifyDeviceNumbers(modifyDeviceNumbers.substring(0, modifyDeviceNumbers.length() - 1));
71
+                deviceApproval.setModifyDeviceNames(modifyDeviceNames.substring(0, modifyDeviceNames.length() - 1));
72
+            }
73
+            String repairDeviceIds = deviceApproval.getRepairDevices();
74
+            StringBuilder repairDeviceNames = new StringBuilder();;
75
+            StringBuilder repairDeviceNumbers = new StringBuilder();
76
+            if (repairDeviceIds != null && !repairDeviceIds.equals("") && repairDeviceIds.split(",").length > 0) {
77
+                for (String deviceId : repairDeviceIds.split(",")) {
78
+                    CmcDevice device = cmcDeviceService.selectCmcDeviceByDeviceId(Integer.parseInt(deviceId));
79
+                    repairDeviceNumbers.append(device.getDeviceNumber());
80
+                    repairDeviceNames.append(device.getName()).append("【").append(device.getBrand() != null ? device.getBrand() : "")
81
+                            .append(device.getSeries() != null ? "-" + device.getSeries() + "】" : "")
82
+                            .append(device.getCode() != null ? "(设备编号:" + device.getCode() + ")" : "").append("、");
83
+                }
84
+                deviceApproval.setRepairDeviceNumbers(repairDeviceNumbers.substring(0, repairDeviceNumbers.length() - 1));
85
+                deviceApproval.setRepairDeviceNames(repairDeviceNames.substring(0, repairDeviceNames.length() - 1));
86
+            }
87
+        }
47
         return getDataTable(list);
88
         return getDataTable(list);
48
     }
89
     }
49
 
90
 
55
     public void export(HttpServletResponse response, CmcDeviceApproval cmcDeviceApproval)
96
     public void export(HttpServletResponse response, CmcDeviceApproval cmcDeviceApproval)
56
     {
97
     {
57
         List<CmcDeviceApproval> list = cmcDeviceApprovalService.selectCmcDeviceApprovalList(cmcDeviceApproval);
98
         List<CmcDeviceApproval> list = cmcDeviceApprovalService.selectCmcDeviceApprovalList(cmcDeviceApproval);
99
+        for(CmcDeviceApproval deviceApproval : list) {
100
+            String deviceIds = deviceApproval.getDevices();
101
+            StringBuilder deviceNames = new StringBuilder();
102
+            if (deviceIds != null && !deviceIds.equals("") && deviceIds.split(",").length > 0) {
103
+                for (String deviceId : deviceIds.split(",")) {
104
+                    CmcDevice device = cmcDeviceService.selectCmcDeviceByDeviceId(Integer.parseInt(deviceId));
105
+                    deviceNames.append(device.getName()).append("【").append(device.getBrand() != null ? device.getBrand() : "")
106
+                            .append(device.getSeries() != null ? "-" + device.getSeries() + "】" : "")
107
+                            .append(device.getCode() != null ? "(设备编号:" + device.getCode() + ")" : "").append("、");
108
+                }
109
+                deviceApproval.setDeviceNames(deviceNames.substring(0, deviceNames.length() - 1));
110
+            }
111
+            String modifyDeviceIds = deviceApproval.getModifyDevices();
112
+            StringBuilder modifyDeviceNames = new StringBuilder();
113
+            StringBuilder modifyDeviceNumbers = new StringBuilder();
114
+            if (modifyDeviceIds != null && !modifyDeviceIds.equals("") && modifyDeviceIds.split(",").length > 0) {
115
+                for (String deviceId : modifyDeviceIds.split(",")) {
116
+                    CmcDevice device = cmcDeviceService.selectCmcDeviceByDeviceId(Integer.parseInt(deviceId));
117
+                    modifyDeviceNumbers.append(device.getDeviceNumber());
118
+                    modifyDeviceNames.append(device.getName()).append("【").append(device.getBrand() != null ? device.getBrand() : "")
119
+                            .append(device.getSeries() != null ? "-" + device.getSeries() + "】" : "")
120
+                            .append(device.getCode() != null ? "(设备编号:" + device.getCode() + ")" : "").append("、");
121
+                }
122
+                deviceApproval.setModifyDeviceNumbers(modifyDeviceNumbers.substring(0, modifyDeviceNumbers.length() - 1));
123
+                deviceApproval.setModifyDeviceNames(modifyDeviceNames.substring(0, modifyDeviceNames.length() - 1));
124
+            }
125
+            String repairDeviceIds = deviceApproval.getRepairDevices();
126
+            StringBuilder repairDeviceNames = new StringBuilder();;
127
+            StringBuilder repairDeviceNumbers = new StringBuilder();
128
+            if (repairDeviceIds != null && !repairDeviceIds.equals("") && repairDeviceIds.split(",").length > 0) {
129
+                for (String deviceId : repairDeviceIds.split(",")) {
130
+                    CmcDevice device = cmcDeviceService.selectCmcDeviceByDeviceId(Integer.parseInt(deviceId));
131
+                    repairDeviceNumbers.append(device.getDeviceNumber());
132
+                    repairDeviceNames.append(device.getName()).append("【").append(device.getBrand() != null ? device.getBrand() : "")
133
+                            .append(device.getSeries() != null ? "-" + device.getSeries() + "】" : "")
134
+                            .append(device.getCode() != null ? "(设备编号:" + device.getCode() + ")" : "").append("、");
135
+                }
136
+                deviceApproval.setRepairDeviceNumbers(repairDeviceNumbers.substring(0, repairDeviceNumbers.length() - 1));
137
+                deviceApproval.setRepairDeviceNames(repairDeviceNames.substring(0, repairDeviceNames.length() - 1));
138
+            }
139
+        }
58
         ExcelUtil<CmcDeviceApproval> util = new ExcelUtil<CmcDeviceApproval>(CmcDeviceApproval.class);
140
         ExcelUtil<CmcDeviceApproval> util = new ExcelUtil<CmcDeviceApproval>(CmcDeviceApproval.class);
59
         util.exportExcel(response, list, "cmc设备审批数据");
141
         util.exportExcel(response, list, "cmc设备审批数据");
60
     }
142
     }

+ 48
- 12
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcCarApproval.java 查看文件

24
     private String carApplyId;
24
     private String carApplyId;
25
 
25
 
26
     /** 申请人 */
26
     /** 申请人 */
27
-    @Excel(name = "申请人")
28
     private Long applier;
27
     private Long applier;
29
 
28
 
29
+    @Excel(name = "申请人")
30
+    private String applierUserName;
30
     private SysUser applierUser;
31
     private SysUser applierUser;
31
 
32
 
33
+    @Excel(name = "部门审批人")
34
+    private String deptUserName;
32
     private SysUser deptUser;
35
     private SysUser deptUser;
33
 
36
 
37
+    @Excel(name = "分管审批人")
38
+    private String managerUserName;
34
     private SysUser managerUser;
39
     private SysUser managerUser;
35
 
40
 
41
+    @Excel(name = "党工团审批人")
42
+    private String unionUserName;
36
     private SysUser unionUser;
43
     private SysUser unionUser;
37
 
44
 
45
+    @Excel(name = "总经理")
46
+    private String gmUserName;
38
     private SysUser gmUser;
47
     private SysUser gmUser;
39
 
48
 
49
+    @Excel(name = "车辆管理员")
50
+    private String dispatchUserName;
40
     private SysUser dispatchUser;
51
     private SysUser dispatchUser;
41
 
52
 
42
     /** 使用部门 */
53
     /** 使用部门 */
43
-    @Excel(name = "使用部门")
44
     private Long useDept;
54
     private Long useDept;
45
-
55
+    @Excel(name = "使用部门")
56
+    private String deptName;
46
     private SysDept dept;
57
     private SysDept dept;
47
 
58
 
48
     /** 车辆id */
59
     /** 车辆id */
49
-    @Excel(name = "车辆id")
60
+    @Excel(name = "车牌号")
61
+    private String carNames;
50
     private String cars;
62
     private String cars;
51
 
63
 
52
     /** 驾驶员id */
64
     /** 驾驶员id */
53
-    @Excel(name = "驾驶员id")
65
+    @Excel(name = "驾驶员")
66
+    private String driverNames;
54
     private String drivers;
67
     private String drivers;
55
 
68
 
56
     /** 项目编号 */
69
     /** 项目编号 */
57
-    @Excel(name = "项目编号")
58
     private String projectId;
70
     private String projectId;
59
-
71
+    @Excel(name = "项目编号")
72
+    private String projectNumber;
73
+    @Excel(name = "项目名称")
74
+    private String projectName;
60
     private CmcProject project;
75
     private CmcProject project;
61
 
76
 
62
     /** 用车事由 */
77
     /** 用车事由 */
82
     private Long days;
97
     private Long days;
83
 
98
 
84
     /** 部门审批人 */
99
     /** 部门审批人 */
85
-    @Excel(name = "部门审批人")
86
     private Long deptUserId;
100
     private Long deptUserId;
87
 
101
 
88
     /** 部门审批意见 */
102
     /** 部门审批意见 */
90
     private String deptComment;
104
     private String deptComment;
91
 
105
 
92
     /** 分管审批人 */
106
     /** 分管审批人 */
93
-    @Excel(name = "分管审批人")
94
     private Long managerUserId;
107
     private Long managerUserId;
95
 
108
 
96
     /** 分管审批意见 */
109
     /** 分管审批意见 */
102
     private String carUsage;
115
     private String carUsage;
103
 
116
 
104
     /** 工会审批人 */
117
     /** 工会审批人 */
105
-    @Excel(name = "工会审批人")
106
     private Long unionUserId;
118
     private Long unionUserId;
107
 
119
 
108
     /** 工会审批意见 */
120
     /** 工会审批意见 */
110
     private String unionComment;
122
     private String unionComment;
111
 
123
 
112
     /** 总经理审批人 */
124
     /** 总经理审批人 */
113
-    @Excel(name = "总经理审批人")
114
     private Long gmUserId;
125
     private Long gmUserId;
115
 
126
 
116
     /** 总经理审批意见 */
127
     /** 总经理审批意见 */
118
     private String gmComment;
129
     private String gmComment;
119
 
130
 
120
     /** 调度员 */
131
     /** 调度员 */
121
-    @Excel(name = "调度员")
122
     private Long dispatcher;
132
     private Long dispatcher;
123
 
133
 
124
     /** 调度审批意见 */
134
     /** 调度审批意见 */
180
     public void setApplierUser(SysUser applierUser)
190
     public void setApplierUser(SysUser applierUser)
181
     {
191
     {
182
         this.applierUser = applierUser;
192
         this.applierUser = applierUser;
193
+        this.applierUserName = applierUser == null ? "" : applierUser.getNickName();
183
     }
194
     }
184
 
195
 
185
     public SysUser getApplierUser()
196
     public SysUser getApplierUser()
198
     public void setManagerUser(SysUser managerUser)
209
     public void setManagerUser(SysUser managerUser)
199
     {
210
     {
200
         this.managerUser = managerUser;
211
         this.managerUser = managerUser;
212
+        this.managerUserName = managerUser == null ? "" : managerUser.getNickName();
201
     }
213
     }
202
 
214
 
203
     public SysUser getManagerUser()
215
     public SysUser getManagerUser()
207
     public void setUnionUser(SysUser unionUser)
219
     public void setUnionUser(SysUser unionUser)
208
     {
220
     {
209
         this.unionUser = unionUser;
221
         this.unionUser = unionUser;
222
+        this.unionUserName = unionUser == null ? "" : unionUser.getNickName();
210
     }
223
     }
211
 
224
 
212
     public SysUser getUnionUser()
225
     public SysUser getUnionUser()
216
     public void setGmUser(SysUser gmUser)
229
     public void setGmUser(SysUser gmUser)
217
     {
230
     {
218
         this.gmUser = gmUser;
231
         this.gmUser = gmUser;
232
+        this.gmUserName = gmUser == null ? "" : gmUser.getNickName();
219
     }
233
     }
220
 
234
 
221
     public SysUser getGmUser()
235
     public SysUser getGmUser()
225
     public void setDispatchUser(SysUser dispatchUser)
239
     public void setDispatchUser(SysUser dispatchUser)
226
     {
240
     {
227
         this.dispatchUser = dispatchUser;
241
         this.dispatchUser = dispatchUser;
242
+        this.dispatchUserName = dispatchUser == null ? "" : dispatchUser.getNickName();
228
     }
243
     }
229
 
244
 
230
     public SysUser getDispatchUser()
245
     public SysUser getDispatchUser()
244
     public void setDept(SysDept dept)
259
     public void setDept(SysDept dept)
245
     {
260
     {
246
         this.dept = dept;
261
         this.dept = dept;
262
+        this.deptName = dept == null ? "" : dept.getDeptName();
247
     }
263
     }
248
 
264
 
249
     public SysDept getDept()
265
     public SysDept getDept()
259
     {
275
     {
260
         return cars;
276
         return cars;
261
     }
277
     }
278
+    public void setCarNames(String carNames)
279
+    {
280
+        this.carNames = carNames;
281
+    }
282
+
283
+    public String getCarNames()
284
+    {
285
+        return carNames;
286
+    }
262
     public void setDrivers(String drivers)
287
     public void setDrivers(String drivers)
263
     {
288
     {
264
         this.drivers = drivers;
289
         this.drivers = drivers;
268
     {
293
     {
269
         return drivers;
294
         return drivers;
270
     }
295
     }
296
+    public void setDriverNames(String driverNames)
297
+    {
298
+        this.driverNames = driverNames;
299
+    }
300
+
301
+    public String getDriverNames()
302
+    {
303
+        return driverNames;
304
+    }
271
     public void setProjectId(String projectId)
305
     public void setProjectId(String projectId)
272
     {
306
     {
273
         this.projectId = projectId;
307
         this.projectId = projectId;
280
     public void setProject(CmcProject project)
314
     public void setProject(CmcProject project)
281
     {
315
     {
282
         this.project = project;
316
         this.project = project;
317
+        this.projectNumber = project == null ? "" : project.getProjectNumber();
318
+        this.projectName = project == null ? "" : project.getProjectName();
283
     }
319
     }
284
 
320
 
285
     public CmcProject getProject()
321
     public CmcProject getProject()

+ 0
- 122
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcCarExpense.java 查看文件

1
-package com.ruoyi.oa.domain;
2
-
3
-import java.math.BigDecimal;
4
-import java.util.Date;
5
-import com.fasterxml.jackson.annotation.JsonFormat;
6
-import org.apache.commons.lang3.builder.ToStringBuilder;
7
-import org.apache.commons.lang3.builder.ToStringStyle;
8
-import com.ruoyi.common.annotation.Excel;
9
-import com.ruoyi.common.core.domain.BaseEntity;
10
-
11
-/**
12
- * cmc车辆费用对象 cmc_car_expense
13
- * 
14
- * @author cmc
15
- * @date 2024-03-12
16
- */
17
-public class CmcCarExpense extends BaseEntity
18
-{
19
-    private static final long serialVersionUID = 1L;
20
-
21
-    /** 车辆费用id */
22
-    private Integer carExpenseId;
23
-
24
-    /** 车辆id */
25
-    @Excel(name = "车牌号")
26
-    private String licensePlate;
27
-    private Integer carId;
28
-    private CmcCar car;
29
-
30
-    /** 费用类型(0保险费,1维修保养费,2轮胎费) */
31
-    @Excel(name = "费用类型", readConverterExp = "0=保险费,1=维修/保养费,2=轮胎费")
32
-    private String expenseType;
33
-
34
-    /** 费用金额 */
35
-    @Excel(name = "费用金额")
36
-    private BigDecimal expense;
37
-
38
-    /** 发生日期 */
39
-    @JsonFormat(pattern = "yyyy-MM-dd")
40
-    @Excel(name = "发生日期", width = 30, dateFormat = "yyyy-MM-dd")
41
-    private Date occurDate;
42
-
43
-    /** 附件 */
44
-    @Excel(name = "附件")
45
-    private String document;
46
-
47
-    public void setCarExpenseId(Integer carExpenseId)
48
-    {
49
-        this.carExpenseId = carExpenseId;
50
-    }
51
-
52
-    public Integer getCarExpenseId()
53
-    {
54
-        return carExpenseId;
55
-    }
56
-    public void setCarId(Integer carId) 
57
-    {
58
-        this.carId = carId;
59
-    }
60
-
61
-    public Integer getCarId() 
62
-    {
63
-        return carId;
64
-    }
65
-    public void setCar(CmcCar car)
66
-    {
67
-        this.car = car;
68
-        this.licensePlate = car != null ? car.getLicensePlate() : "";
69
-    }
70
-
71
-    public CmcCar getCar()
72
-    {
73
-        return car;
74
-    }
75
-    public void setExpenseType(String expenseType) 
76
-    {
77
-        this.expenseType = expenseType;
78
-    }
79
-
80
-    public String getExpenseType() 
81
-    {
82
-        return expenseType;
83
-    }
84
-    public void setExpense(BigDecimal expense) 
85
-    {
86
-        this.expense = expense;
87
-    }
88
-
89
-    public BigDecimal getExpense() 
90
-    {
91
-        return expense;
92
-    }
93
-    public void setOccurDate(Date occurDate)
94
-    {
95
-        this.occurDate = occurDate;
96
-    }
97
-
98
-    public Date getOccurDate()
99
-    {
100
-        return occurDate;
101
-    }
102
-    public void setDocument(String document)
103
-    {
104
-        this.document = document;
105
-    }
106
-
107
-    public String getDocument()
108
-    {
109
-        return document;
110
-    }
111
-
112
-    @Override
113
-    public String toString() {
114
-        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
115
-            .append("carExpenseId", getCarExpenseId())
116
-            .append("carId", getCarId())
117
-            .append("expenseType", getExpenseType())
118
-            .append("expense", getExpense())
119
-            .append("occurDate", getOccurDate())
120
-            .toString();
121
-    }
122
-}

+ 70
- 8
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcDeviceApproval.java 查看文件

28
     @Excel(name = "申请人")
28
     @Excel(name = "申请人")
29
     private Long applier;
29
     private Long applier;
30
 
30
 
31
+    @Excel(name = "申请人")
32
+    private String applierUserName;
31
     private SysUser applierUser;
33
     private SysUser applierUser;
32
 
34
 
35
+    @Excel(name = "分管审批人")
36
+    private String managerUserName;
33
     private SysUser managerUser;
37
     private SysUser managerUser;
34
 
38
 
39
+    @Excel(name = "设备管理员")
40
+    private String dispatchUserName;
35
     private SysUser dispatchUser;
41
     private SysUser dispatchUser;
36
 
42
 
37
     /** 使用部门 */
43
     /** 使用部门 */
38
-    @Excel(name = "使用部门")
39
     private Long useDept;
44
     private Long useDept;
40
-
45
+    @Excel(name = "使用部门")
46
+    private String deptName;
41
     private SysDept dept;
47
     private SysDept dept;
42
 
48
 
43
     /** 设备id */
49
     /** 设备id */
44
-    @Excel(name = "设备id")
50
+    @Excel(name = "申领设备")
51
+    private String deviceNames;
45
     private String devices;
52
     private String devices;
46
 
53
 
47
     /** 修改后设备id */
54
     /** 修改后设备id */
48
-    @Excel(name = "修改后设备id")
55
+    @Excel(name = "发放设备")
56
+    private String modifyDeviceNames;
57
+    @Excel(name = "发放设备序号")
58
+    private String modifyDeviceNumbers;
49
     private String modifyDevices;
59
     private String modifyDevices;
50
 
60
 
51
     /** 项目id */
61
     /** 项目id */
52
     @Excel(name = "项目id")
62
     @Excel(name = "项目id")
53
     private String projectId;
63
     private String projectId;
54
-
64
+    @Excel(name = "项目编号")
65
+    private String projectNumber;
66
+    @Excel(name = "项目名称")
67
+    private String projectName;
55
     private CmcProject project;
68
     private CmcProject project;
56
 
69
 
57
     /** 申领事由 */
70
     /** 申领事由 */
73
     private Long days;
86
     private Long days;
74
 
87
 
75
     /** 分管审批人 */
88
     /** 分管审批人 */
76
-    @Excel(name = "分管审批人")
77
     private Long managerUserId;
89
     private Long managerUserId;
78
 
90
 
79
     /** 分管审批意见 */
91
     /** 分管审批意见 */
81
     private String managerComment;
93
     private String managerComment;
82
 
94
 
83
     /** 调度员 */
95
     /** 调度员 */
84
-    @Excel(name = "调度员")
85
     private Long dispatcher;
96
     private Long dispatcher;
86
 
97
 
87
     /** 调度审批意见 */
98
     /** 调度审批意见 */
118
     private Date dispatchTime;
129
     private Date dispatchTime;
119
 
130
 
120
     /** 需维修设备id */
131
     /** 需维修设备id */
121
-    @Excel(name = "需维修设备id")
132
+    @Excel(name = "需维修设备")
133
+    private String repairDeviceNames;
134
+    @Excel(name = "需维修设备序号")
135
+    private String repairDeviceNumbers;
122
     private String repairDevices;
136
     private String repairDevices;
123
 
137
 
124
     public void setDeviceApplyId(String deviceApplyId)
138
     public void setDeviceApplyId(String deviceApplyId)
179
     public void setDept(SysDept dept)
193
     public void setDept(SysDept dept)
180
     {
194
     {
181
         this.dept = dept;
195
         this.dept = dept;
196
+        this.deptName = dept == null ? "" : dept.getDeptName();
182
     }
197
     }
183
 
198
 
184
     public SysDept getDept()
199
     public SysDept getDept()
194
     {
209
     {
195
         return devices;
210
         return devices;
196
     }
211
     }
212
+    public void setDeviceNames(String deviceNames)
213
+    {
214
+        this.deviceNames = deviceNames;
215
+    }
216
+
217
+    public String getDeviceNames()
218
+    {
219
+        return deviceNames;
220
+    }
221
+    public void setModifyDeviceNumbers(String modifyDeviceNumbers)
222
+    {
223
+        this.modifyDeviceNumbers = modifyDeviceNumbers;
224
+    }
225
+
226
+    public String getModifyDeviceNumbers()
227
+    {
228
+        return modifyDeviceNumbers;
229
+    }
197
     public void setModifyDevices(String modifyDevices)
230
     public void setModifyDevices(String modifyDevices)
198
     {
231
     {
199
         this.modifyDevices = modifyDevices;
232
         this.modifyDevices = modifyDevices;
203
     {
236
     {
204
         return modifyDevices;
237
         return modifyDevices;
205
     }
238
     }
239
+    public void setModifyDeviceNames(String modifyDeviceNames)
240
+    {
241
+        this.modifyDeviceNames = modifyDeviceNames;
242
+    }
243
+
244
+    public String getModifyDeviceNames()
245
+    {
246
+        return modifyDeviceNames;
247
+    }
206
     public void setProjectId(String projectId)
248
     public void setProjectId(String projectId)
207
     {
249
     {
208
         this.projectId = projectId;
250
         this.projectId = projectId;
215
     public void setProject(CmcProject project)
257
     public void setProject(CmcProject project)
216
     {
258
     {
217
         this.project = project;
259
         this.project = project;
260
+        this.projectNumber = project == null ? "" : project.getProjectNumber();
261
+        this.projectName = project == null ? "" : project.getProjectName();
218
     }
262
     }
219
 
263
 
220
     public CmcProject getProject()
264
     public CmcProject getProject()
356
     {
400
     {
357
         return repairDevices;
401
         return repairDevices;
358
     }
402
     }
403
+    public void setRepairDeviceNames(String repairDeviceNames)
404
+    {
405
+        this.repairDeviceNames = repairDeviceNames;
406
+    }
407
+
408
+    public String getRepairDeviceNames()
409
+    {
410
+        return repairDeviceNames;
411
+    }
412
+    public void setRepairDeviceNumbers(String repairDeviceNumbers)
413
+    {
414
+        this.repairDeviceNumbers = repairDeviceNumbers;
415
+    }
416
+
417
+    public String getRepairDeviceNumbers()
418
+    {
419
+        return repairDeviceNumbers;
420
+    }
359
 
421
 
360
     @Override
422
     @Override
361
     public String toString() {
423
     public String toString() {

+ 46
- 2
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcDeviceScrap.java 查看文件

22
     private Integer deviceScrapId;
22
     private Integer deviceScrapId;
23
 
23
 
24
     /** 设备id */
24
     /** 设备id */
25
-    @Excel(name = "设备id")
26
     private Integer deviceId;
25
     private Integer deviceId;
26
+    private CmcDevice device;
27
 
27
 
28
     /** 车辆id */
28
     /** 车辆id */
29
-    @Excel(name = "车辆id")
30
     private Integer carId;
29
     private Integer carId;
30
+    private CmcCar car;
31
+
32
+    @Excel(name = "车牌号")
33
+    private String licensePlate;
34
+
35
+    @Excel(name = "设备编码")
36
+    private String deviceNumber;
37
+
38
+    @Excel(name = "设备名称")
39
+    private String name;
40
+
41
+    @Excel(name = "出厂编号")
42
+    private String code;
43
+
44
+    @Excel(name = "品牌")
45
+    private String brand;
46
+
47
+    @Excel(name = "系列")
48
+    private String series;
31
 
49
 
32
     /** 原价值 */
50
     /** 原价值 */
33
     @Excel(name = "原价值")
51
     @Excel(name = "原价值")
68
     {
86
     {
69
         return deviceId;
87
         return deviceId;
70
     }
88
     }
89
+    public void setDevice(CmcDevice device)
90
+    {
91
+        this.device = device;
92
+        if (device != null) {
93
+            this.deviceNumber = device.getDeviceNumber();
94
+            this.brand = device.getBrand();
95
+            this.series = device.getSeries();
96
+            this.name = device.getName();
97
+            this.code = device.getCode();
98
+        }
99
+    }
100
+
101
+    public CmcDevice getDevice()
102
+    {
103
+        return device;
104
+    }
71
     public void setCarId(Integer carId)
105
     public void setCarId(Integer carId)
72
     {
106
     {
73
         this.carId = carId;
107
         this.carId = carId;
77
     {
111
     {
78
         return carId;
112
         return carId;
79
     }
113
     }
114
+    public void setCar(CmcCar car)
115
+    {
116
+        this.car = car;
117
+        this.licensePlate = car == null ? "" :car.getLicensePlate();
118
+    }
119
+
120
+    public CmcCar getCar()
121
+    {
122
+        return car;
123
+    }
80
     public void setCost(BigDecimal cost) 
124
     public void setCost(BigDecimal cost) 
81
     {
125
     {
82
         this.cost = cost;
126
         this.cost = cost;

+ 14
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcSafe.java 查看文件

59
     @Excel(name = "安全交底意见")
59
     @Excel(name = "安全交底意见")
60
     private String disclosureComment;
60
     private String disclosureComment;
61
 
61
 
62
+    /** 接受交底意见 */
63
+    @Excel(name = "接受交底意见")
64
+    private String acceptComment;
65
+
62
     /** 安全交底时间 */
66
     /** 安全交底时间 */
63
     @JsonFormat(pattern = "yyyy-MM-dd")
67
     @JsonFormat(pattern = "yyyy-MM-dd")
64
     @Excel(name = "安全交底时间", width = 30, dateFormat = "yyyy-MM-dd")
68
     @Excel(name = "安全交底时间", width = 30, dateFormat = "yyyy-MM-dd")
173
     {
177
     {
174
         return disclosureComment;
178
         return disclosureComment;
175
     }
179
     }
180
+    public void setAcceptComment(String acceptComment)
181
+    {
182
+        this.acceptComment = acceptComment;
183
+    }
184
+
185
+    public String getAcceptComment()
186
+    {
187
+        return acceptComment;
188
+    }
176
     public void setDisclosureTime(Date disclosureTime) 
189
     public void setDisclosureTime(Date disclosureTime) 
177
     {
190
     {
178
         this.disclosureTime = disclosureTime;
191
         this.disclosureTime = disclosureTime;
203
             .append("outsideComment", getOutsideComment())
216
             .append("outsideComment", getOutsideComment())
204
             .append("insideComment", getInsideComment())
217
             .append("insideComment", getInsideComment())
205
             .append("disclosureComment", getDisclosureComment())
218
             .append("disclosureComment", getDisclosureComment())
219
+            .append("acceptComment", getAcceptComment())
206
             .append("disclosureTime", getDisclosureTime())
220
             .append("disclosureTime", getDisclosureTime())
207
             .append("acceptTime", getAcceptTime())
221
             .append("acceptTime", getAcceptTime())
208
             .toString();
222
             .toString();

+ 130
- 8
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcSettle.java 查看文件

2
 
2
 
3
 import java.util.Date;
3
 import java.util.Date;
4
 import com.fasterxml.jackson.annotation.JsonFormat;
4
 import com.fasterxml.jackson.annotation.JsonFormat;
5
+import com.ruoyi.common.core.domain.entity.SysUser;
5
 import org.apache.commons.lang3.builder.ToStringBuilder;
6
 import org.apache.commons.lang3.builder.ToStringBuilder;
6
 import org.apache.commons.lang3.builder.ToStringStyle;
7
 import org.apache.commons.lang3.builder.ToStringStyle;
7
 import com.ruoyi.common.annotation.Excel;
8
 import com.ruoyi.common.annotation.Excel;
21
     private String settleId;
22
     private String settleId;
22
 
23
 
23
     /** 项目id */
24
     /** 项目id */
24
-    @Excel(name = "项目id")
25
     private String projectId;
25
     private String projectId;
26
+    @Excel(name = "项目编号")
27
+    private String projectNumber;
28
+    @Excel(name = "项目名称")
29
+    private String projectName;
30
+    private CmcProject project;
26
 
31
 
27
     /** 工作量上报说明 */
32
     /** 工作量上报说明 */
28
     @Excel(name = "工作量上报说明")
33
     @Excel(name = "工作量上报说明")
29
     private String workloadReport;
34
     private String workloadReport;
30
 
35
 
31
     /** 上报人 */
36
     /** 上报人 */
32
-    @Excel(name = "上报人")
33
     private Long reporter;
37
     private Long reporter;
34
 
38
 
39
+    @Excel(name = "项目负责人")
40
+    private String reporterUserName;
41
+    private SysUser reporterUser;
42
+
43
+    @Excel(name = "综合事务部审核人")
44
+    private String zhUserName;
45
+    private SysUser zhUser;
46
+
47
+    @Excel(name = "技术质量部审核人")
48
+    private String jsUserName;
49
+    private SysUser jsUser;
50
+
51
+    @Excel(name = "项目管理部审核人")
52
+    private String xmUserName;
53
+    private SysUser xmUser;
54
+
55
+    @Excel(name = "承担部门审核人")
56
+    private String deptUserName;
57
+    private SysUser deptUser;
58
+
59
+    @Excel(name = "经营发展部审核人")
60
+    private String jyUserName;
61
+    private SysUser jyUser;
62
+
63
+    @Excel(name = "分管审核人")
64
+    private String managerUserName;
65
+    private SysUser managerUser;
66
+
67
+    @Excel(name = "总经理")
68
+    private String gmUserName;
69
+    private SysUser gmUser;
70
+
35
     /** 上报日期 */
71
     /** 上报日期 */
36
     @JsonFormat(pattern = "yyyy-MM-dd")
72
     @JsonFormat(pattern = "yyyy-MM-dd")
37
     @Excel(name = "上报日期", width = 30, dateFormat = "yyyy-MM-dd")
73
     @Excel(name = "上报日期", width = 30, dateFormat = "yyyy-MM-dd")
42
     private String settleComment;
78
     private String settleComment;
43
 
79
 
44
     /** 综合事务部审核人 */
80
     /** 综合事务部审核人 */
45
-    @Excel(name = "综合事务部审核人")
46
     private Long zhUserId;
81
     private Long zhUserId;
47
 
82
 
48
     /** 综合事务部审核日期 */
83
     /** 综合事务部审核日期 */
55
     private String zhComment;
90
     private String zhComment;
56
 
91
 
57
     /** 技术质量部审核人 */
92
     /** 技术质量部审核人 */
58
-    @Excel(name = "技术质量部审核人")
59
     private Long jsUserId;
93
     private Long jsUserId;
60
 
94
 
61
     /** 技术质量部审核日期 */
95
     /** 技术质量部审核日期 */
68
     private String jsComment;
102
     private String jsComment;
69
 
103
 
70
     /** 项目管理部审核人 */
104
     /** 项目管理部审核人 */
71
-    @Excel(name = "项目管理部审核人")
72
     private Long xmUserId;
105
     private Long xmUserId;
73
 
106
 
74
     /** 项目管理部审核日期 */
107
     /** 项目管理部审核日期 */
81
     private String xmComment;
114
     private String xmComment;
82
 
115
 
83
     /** 承担部门审核人 */
116
     /** 承担部门审核人 */
84
-    @Excel(name = "承担部门审核人")
85
     private Long deptUserId;
117
     private Long deptUserId;
86
 
118
 
87
     /** 承担部门审核日期 */
119
     /** 承担部门审核日期 */
107
     private String jyComment;
139
     private String jyComment;
108
 
140
 
109
     /** 分管审核人 */
141
     /** 分管审核人 */
110
-    @Excel(name = "分管审核人")
111
     private Long managerUserId;
142
     private Long managerUserId;
112
 
143
 
113
     /** 分管审核日期 */
144
     /** 分管审核日期 */
141
     private String modifyDocument;
172
     private String modifyDocument;
142
 
173
 
143
     /** 最终算表 */
174
     /** 最终算表 */
144
-    @Excel(name = "最终算表")
175
+    @Excel(name = "最终算表")
145
     private String finalDocument;
176
     private String finalDocument;
146
 
177
 
147
     public void setSettleId(String settleId) 
178
     public void setSettleId(String settleId) 
162
     {
193
     {
163
         return projectId;
194
         return projectId;
164
     }
195
     }
196
+    public void setProject(CmcProject project)
197
+    {
198
+        this.project = project;
199
+        this.projectNumber = project == null ? "" : project.getProjectNumber();
200
+        this.projectName = project == null ? "" : project.getProjectName();
201
+    }
202
+
203
+    public CmcProject getProject()
204
+    {
205
+        return project;
206
+    }
165
     public void setWorkloadReport(String workloadReport) 
207
     public void setWorkloadReport(String workloadReport) 
166
     {
208
     {
167
         this.workloadReport = workloadReport;
209
         this.workloadReport = workloadReport;
414
     {
456
     {
415
         return finalDocument;
457
         return finalDocument;
416
     }
458
     }
459
+    public void setReporterUser(SysUser reporterUser)
460
+    {
461
+        this.reporterUser = reporterUser;
462
+        this.reporterUserName = reporterUser == null ? "" : reporterUser.getNickName();
463
+    }
464
+
465
+    public SysUser getReporterUser()
466
+    {
467
+        return reporterUser;
468
+    }
469
+    public void setDeptUser(SysUser deptUser)
470
+    {
471
+        this.deptUser = deptUser;
472
+        this.deptUserName = deptUser == null ? "" : deptUser.getNickName();
473
+    }
474
+
475
+    public SysUser getDeptUser()
476
+    {
477
+        return deptUser;
478
+    }
479
+    public void setZhUser(SysUser zhUser)
480
+    {
481
+        this.zhUser = zhUser;
482
+        this.zhUserName = zhUser == null ? "" : zhUser.getNickName();
483
+    }
484
+
485
+    public SysUser getZhUser()
486
+    {
487
+        return zhUser;
488
+    }
489
+    public void setJyUser(SysUser jyUser)
490
+    {
491
+        this.jyUser = jyUser;
492
+        this.jyUserName = jyUser == null ? "" : jyUser.getNickName();
493
+    }
494
+
495
+    public SysUser getJyUser()
496
+    {
497
+        return jyUser;
498
+    }
499
+    public void setJsUser(SysUser jsUser)
500
+    {
501
+        this.jsUser = jsUser;
502
+        this.jsUserName = jsUser == null ? "" : jsUser.getNickName();
503
+    }
504
+
505
+    public SysUser getJsUser()
506
+    {
507
+        return jsUser;
508
+    }
509
+    public void setXmUser(SysUser xmUser)
510
+    {
511
+        this.xmUser = xmUser;
512
+        this.xmUserName = xmUser == null ? "" : xmUser.getNickName();
513
+    }
514
+
515
+    public SysUser getXmUser()
516
+    {
517
+        return xmUser;
518
+    }
519
+    public void setManagerUser(SysUser managerUser)
520
+    {
521
+        this.managerUser = managerUser;
522
+        this.managerUserName = managerUser == null ? "" : managerUser.getNickName();
523
+    }
524
+
525
+    public SysUser getManagerUser()
526
+    {
527
+        return managerUser;
528
+    }
529
+    public void setGmUser(SysUser gmUser)
530
+    {
531
+        this.gmUser = gmUser;
532
+        this.gmUserName = gmUser == null ? "" : gmUser.getNickName();
533
+    }
534
+
535
+    public SysUser getGmUser()
536
+    {
537
+        return reporterUser;
538
+    }
417
 
539
 
418
     @Override
540
     @Override
419
     public String toString() {
541
     public String toString() {

+ 0
- 88
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcCarExpenseMapper.xml 查看文件

1
-<?xml version="1.0" encoding="UTF-8" ?>
2
-<!DOCTYPE mapper
3
-PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
-"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
-<mapper namespace="com.ruoyi.oa.mapper.CmcCarExpenseMapper">
6
-    
7
-    <resultMap type="CmcCarExpense" id="CmcCarExpenseResult">
8
-        <result property="carExpenseId"    column="car_expense_id"    />
9
-        <result property="carId"    column="car_id"    />
10
-        <result property="expenseType"    column="expense_type"    />
11
-        <result property="expense"    column="expense"    />
12
-        <result property="occurDate"    column="occur_date"    />
13
-        <result property="remark"    column="remark"    />
14
-        <result property="document"    column="document"    />
15
-        <association property="car"    javaType="CmcCar"         resultMap="CmcCarResult" />
16
-    </resultMap>
17
-
18
-    <resultMap type="CmcCar" id="CmcCarResult">
19
-        <result property="carId"    column="car_id"    />
20
-        <result property="licensePlate"    column="license_plate"    />
21
-    </resultMap>
22
-
23
-    <sql id="selectCmcCarExpenseVo">
24
-        select ce.car_expense_id, ce.car_id, c.license_plate, ce.expense_type, ce.expense, ce.occur_date, ce.remark, ce.document from cmc_car_expense as ce
25
-        left join cmc_car as c on c.car_id = ce.car_id
26
-    </sql>
27
-
28
-    <select id="selectCmcCarExpenseList" parameterType="CmcCarExpense" resultMap="CmcCarExpenseResult">
29
-        <include refid="selectCmcCarExpenseVo"/>
30
-        <where>  
31
-            <if test="carId != null "> and ce.car_id = #{carId}</if>
32
-            <if test="expenseType != null  and expenseType != ''"> and ce.expense_type = #{expenseType}</if>
33
-            <if test="expense != null "> and ce.expense = #{expense}</if>
34
-            <if test="occurDate != null "> and ce.occur_date = #{occurDate}</if>
35
-        </where>
36
-    </select>
37
-    
38
-    <select id="selectCmcCarExpenseByCarExpenseId" parameterType="String" resultMap="CmcCarExpenseResult">
39
-        <include refid="selectCmcCarExpenseVo"/>
40
-        where ce.car_expense_id = #{carExpenseId}
41
-    </select>
42
-        
43
-    <insert id="insertCmcCarExpense" parameterType="CmcCarExpense">
44
-        insert into cmc_car_expense
45
-        <trim prefix="(" suffix=")" suffixOverrides=",">
46
-            <if test="carExpenseId != null">car_expense_id,</if>
47
-            <if test="carId != null">car_id,</if>
48
-            <if test="expenseType != null">expense_type,</if>
49
-            <if test="expense != null">expense,</if>
50
-            <if test="occurDate != null">occur_date,</if>
51
-            <if test="remark != null">remark,</if>
52
-            <if test="document != null">document,</if>
53
-         </trim>
54
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
55
-            <if test="carExpenseId != null">#{carExpenseId},</if>
56
-            <if test="carId != null">#{carId},</if>
57
-            <if test="expenseType != null">#{expenseType},</if>
58
-            <if test="expense != null">#{expense},</if>
59
-            <if test="occurDate != null">#{occurDate},</if>
60
-            <if test="remark != null">#{remark},</if>
61
-            <if test="document != null">#{document},</if>
62
-         </trim>
63
-    </insert>
64
-
65
-    <update id="updateCmcCarExpense" parameterType="CmcCarExpense">
66
-        update cmc_car_expense
67
-        <trim prefix="SET" suffixOverrides=",">
68
-            <if test="carId != null">car_id = #{carId},</if>
69
-            <if test="expenseType != null">expense_type = #{expenseType},</if>
70
-            <if test="expense != null">expense = #{expense},</if>
71
-            <if test="occurDate != null">occur_date = #{occurDate},</if>
72
-            <if test="remark != null">remark = #{remark},</if>
73
-            <if test="document != null">document = #{document},</if>
74
-        </trim>
75
-        where car_expense_id = #{carExpenseId}
76
-    </update>
77
-
78
-    <delete id="deleteCmcCarExpenseByCarExpenseId" parameterType="String">
79
-        delete from cmc_car_expense where car_expense_id = #{carExpenseId}
80
-    </delete>
81
-
82
-    <delete id="deleteCmcCarExpenseByCarExpenseIds" parameterType="String">
83
-        delete from cmc_car_expense where car_expense_id in 
84
-        <foreach item="carExpenseId" collection="array" open="(" separator="," close=")">
85
-            #{carExpenseId}
86
-        </foreach>
87
-    </delete>
88
-</mapper>

+ 26
- 8
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcDeviceScrapMapper.xml 查看文件

14
         <result property="deal"    column="deal"    />
14
         <result property="deal"    column="deal"    />
15
         <result property="remark"    column="remark"    />
15
         <result property="remark"    column="remark"    />
16
         <result property="document"    column="document"    />
16
         <result property="document"    column="document"    />
17
+        <association property="device"    javaType="CmcDevice"         resultMap="CmcDeviceResult" />
18
+        <association property="car"    javaType="CmcCar"         resultMap="CmcCarResult" />
19
+    </resultMap>
20
+
21
+    <resultMap type="CmcCar" id="CmcCarResult">
22
+        <result property="carId"    column="car_id"    />
23
+        <result property="licensePlate"    column="license_plate"    />
24
+    </resultMap>
25
+
26
+    <resultMap type="CmcDevice" id="CmcDeviceResult">
27
+        <result property="deviceId"    column="device_id"    />
28
+        <result property="deviceNumber"    column="device_number"    />
29
+        <result property="code"    column="code"    />
30
+        <result property="name"    column="name"    />
31
+        <result property="series"    column="series"    />
32
+        <result property="brand"    column="brand"    />
17
     </resultMap>
33
     </resultMap>
18
 
34
 
19
     <sql id="selectCmcDeviceScrapVo">
35
     <sql id="selectCmcDeviceScrapVo">
20
-        select device_scrap_id, device_id, car_id, cost, scrap_date, reason, deal, remark, document from cmc_device_scrap
36
+        select ds.device_scrap_id, ds.device_id, ds.car_id, c.license_plate, d.device_number, d.code, d.name, d.brand, d.series, ds.cost, ds.scrap_date, ds.reason, ds.deal, ds.remark, ds.document from cmc_device_scrap as ds
37
+        left join cmc_device as d on d.device_id = ds.device_id
38
+        left join cmc_car as c on c.car_id = ds.car_id
21
     </sql>
39
     </sql>
22
 
40
 
23
     <select id="selectCmcDeviceScrapList" parameterType="CmcDeviceScrap" resultMap="CmcDeviceScrapResult">
41
     <select id="selectCmcDeviceScrapList" parameterType="CmcDeviceScrap" resultMap="CmcDeviceScrapResult">
24
         <include refid="selectCmcDeviceScrapVo"/>
42
         <include refid="selectCmcDeviceScrapVo"/>
25
         <where>  
43
         <where>  
26
-            <if test="deviceId != null "> and device_id = #{deviceId}</if>
27
-            <if test="carId != null "> and car_id = #{carId}</if>
28
-            <if test="cost != null "> and cost = #{cost}</if>
29
-            <if test="scrapDate != null "> and scrap_date = #{scrapDate}</if>
30
-            <if test="reason != null  and reason != ''"> and reason = #{reason}</if>
31
-            <if test="deal != null  and deal != ''"> and deal = #{deal}</if>
32
-            <if test="document != null  and document != ''"> and document = #{document}</if>
44
+            <if test="deviceId != null "> and ds.device_id = #{deviceId}</if>
45
+            <if test="carId != null "> and ds.car_id = #{carId}</if>
46
+            <if test="cost != null "> and ds.cost = #{cost}</if>
47
+            <if test="scrapDate != null "> and ds.scrap_date = #{scrapDate}</if>
48
+            <if test="reason != null  and reason != ''"> and ds.reason = #{reason}</if>
49
+            <if test="deal != null  and deal != ''"> and ds.deal = #{deal}</if>
50
+            <if test="document != null  and document != ''"> and ds.document = #{document}</if>
33
         </where>
51
         </where>
34
     </select>
52
     </select>
35
     
53
     

+ 1
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcProjectMapper.xml 查看文件

97
             <if test="entryTime != null "> and p.entry_time = #{entryTime}</if>
97
             <if test="entryTime != null "> and p.entry_time = #{entryTime}</if>
98
             <if test="exitTime != null "> and p.exit_time = #{exitTime}</if>
98
             <if test="exitTime != null "> and p.exit_time = #{exitTime}</if>
99
         </where>
99
         </where>
100
-        order by project_number desc
100
+        order by p.register_time desc
101
     </select>
101
     </select>
102
 
102
 
103
     <select id="selectCmcProjectByProjectId" parameterType="String" resultMap="CmcProjectResult">
103
     <select id="selectCmcProjectByProjectId" parameterType="String" resultMap="CmcProjectResult">

+ 6
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcSafeMapper.xml 查看文件

13
         <result property="outsideComment"    column="outside_comment"    />
13
         <result property="outsideComment"    column="outside_comment"    />
14
         <result property="insideComment"    column="inside_comment"    />
14
         <result property="insideComment"    column="inside_comment"    />
15
         <result property="disclosureComment"    column="disclosure_comment"    />
15
         <result property="disclosureComment"    column="disclosure_comment"    />
16
+        <result property="acceptComment"    column="accept_comment"    />
16
         <result property="disclosureTime"    column="disclosure_time"    />
17
         <result property="disclosureTime"    column="disclosure_time"    />
17
         <result property="acceptTime"    column="accept_time"    />
18
         <result property="acceptTime"    column="accept_time"    />
18
         <association property="accepterUser"    javaType="SysUser"         resultMap="AccepterUserResult" />
19
         <association property="accepterUser"    javaType="SysUser"         resultMap="AccepterUserResult" />
37
     </resultMap>
38
     </resultMap>
38
 
39
 
39
     <sql id="selectCmcSafeVo">
40
     <sql id="selectCmcSafeVo">
40
-        select s.safe_id, s.project_id, p.project_number, p.project_name, s.disclosure_accepter, u.nick_name as accepter_nick_name, s.disclosurer, u1.nick_name as disclosurer_nick_name, s.environment_comment, s.outside_comment, s.inside_comment, s.disclosure_comment, s.disclosure_time, s.accept_time from cmc_safe as s
41
+        select s.safe_id, s.project_id, p.project_number, p.project_name, s.disclosure_accepter, u.nick_name as accepter_nick_name, s.disclosurer, u1.nick_name as disclosurer_nick_name,
42
+               s.environment_comment, s.outside_comment, s.inside_comment, s.disclosure_comment, s.accept_comment, s.disclosure_time, s.accept_time from cmc_safe as s
41
         left join sys_user as u on u.user_id = s.disclosure_accepter
43
         left join sys_user as u on u.user_id = s.disclosure_accepter
42
         left join sys_user as u1 on u1.user_id = s.disclosurer
44
         left join sys_user as u1 on u1.user_id = s.disclosurer
43
         left join cmc_project as p on p.project_id = s.project_id
45
         left join cmc_project as p on p.project_id = s.project_id
74
             <if test="outsideComment != null">outside_comment,</if>
76
             <if test="outsideComment != null">outside_comment,</if>
75
             <if test="insideComment != null">inside_comment,</if>
77
             <if test="insideComment != null">inside_comment,</if>
76
             <if test="disclosureComment != null">disclosure_comment,</if>
78
             <if test="disclosureComment != null">disclosure_comment,</if>
79
+            <if test="acceptComment != null">accept_comment,</if>
77
             <if test="disclosureTime != null">disclosure_time,</if>
80
             <if test="disclosureTime != null">disclosure_time,</if>
78
             <if test="acceptTime != null">accept_time,</if>
81
             <if test="acceptTime != null">accept_time,</if>
79
          </trim>
82
          </trim>
86
             <if test="outsideComment != null">#{outsideComment},</if>
89
             <if test="outsideComment != null">#{outsideComment},</if>
87
             <if test="insideComment != null">#{insideComment},</if>
90
             <if test="insideComment != null">#{insideComment},</if>
88
             <if test="disclosureComment != null">#{disclosureComment},</if>
91
             <if test="disclosureComment != null">#{disclosureComment},</if>
92
+            <if test="acceptComment != null">#{acceptComment},</if>
89
             <if test="disclosureTime != null">#{disclosureTime},</if>
93
             <if test="disclosureTime != null">#{disclosureTime},</if>
90
             <if test="acceptTime != null">#{acceptTime},</if>
94
             <if test="acceptTime != null">#{acceptTime},</if>
91
          </trim>
95
          </trim>
101
             <if test="outsideComment != null">outside_comment = #{outsideComment},</if>
105
             <if test="outsideComment != null">outside_comment = #{outsideComment},</if>
102
             <if test="insideComment != null">inside_comment = #{insideComment},</if>
106
             <if test="insideComment != null">inside_comment = #{insideComment},</if>
103
             <if test="disclosureComment != null">disclosure_comment = #{disclosureComment},</if>
107
             <if test="disclosureComment != null">disclosure_comment = #{disclosureComment},</if>
108
+            <if test="acceptComment != null">accept_comment = #{acceptComment},</if>
104
             <if test="disclosureTime != null">disclosure_time = #{disclosureTime},</if>
109
             <if test="disclosureTime != null">disclosure_time = #{disclosureTime},</if>
105
             <if test="acceptTime != null">accept_time = #{acceptTime},</if>
110
             <if test="acceptTime != null">accept_time = #{acceptTime},</if>
106
         </trim>
111
         </trim>

+ 88
- 29
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcSettleMapper.xml 查看文件

35
         <result property="settleDocument"    column="settle_document"    />
35
         <result property="settleDocument"    column="settle_document"    />
36
         <result property="modifyDocument"    column="modify_document"    />
36
         <result property="modifyDocument"    column="modify_document"    />
37
         <result property="finalDocument"    column="final_document"    />
37
         <result property="finalDocument"    column="final_document"    />
38
+        <association property="reporterUser"    javaType="SysUser"         resultMap="ReporterUserResult" />
39
+        <association property="zhUser"    javaType="SysUser"         resultMap="ZhUserResult" />
40
+        <association property="jsUser"    javaType="SysUser"         resultMap="JsUserResult" />
41
+        <association property="xmUser"    javaType="SysUser"         resultMap="XmUserResult" />
42
+        <association property="deptUser"    javaType="SysUser"         resultMap="DeptUserResult" />
43
+        <association property="jyUser"    javaType="SysUser"         resultMap="JyUserResult" />
44
+        <association property="managerUser"    javaType="SysUser"         resultMap="ManagerUserResult" />
45
+        <association property="gmUser"    javaType="SysUser"         resultMap="GmUserResult" />
46
+    </resultMap>
47
+
48
+    <resultMap type="SysUser" id="ReporterUserResult">
49
+        <result property="userId"    column="user_id"    />
50
+        <result property="nickName"    column="reporter_nick_name"    />
51
+    </resultMap>
52
+
53
+    <resultMap type="SysUser" id="ZhUserResult">
54
+        <result property="userId"    column="user_id"    />
55
+        <result property="nickName"    column="zh_nick_name"    />
56
+    </resultMap>
57
+
58
+    <resultMap type="SysUser" id="JsUserResult">
59
+        <result property="userId"    column="user_id"    />
60
+        <result property="nickName"    column="js_nick_name"    />
61
+    </resultMap>
62
+
63
+    <resultMap type="SysUser" id="XmUserResult">
64
+        <result property="userId"    column="user_id"    />
65
+        <result property="nickName"    column="xm_nick_name"    />
66
+    </resultMap>
67
+
68
+    <resultMap type="SysUser" id="DeptUserResult">
69
+        <result property="userId"    column="user_id"    />
70
+        <result property="nickName"    column="dept_nick_name"    />
71
+    </resultMap>
72
+
73
+    <resultMap type="SysUser" id="JyUserResult">
74
+        <result property="userId"    column="user_id"    />
75
+        <result property="nickName"    column="jy_nick_name"    />
76
+    </resultMap>
77
+
78
+    <resultMap type="SysUser" id="ManagerUserResult">
79
+        <result property="userId"    column="user_id"    />
80
+        <result property="nickName"    column="manager_nick_name"    />
81
+    </resultMap>
82
+
83
+    <resultMap type="SysUser" id="GmUserResult">
84
+        <result property="userId"    column="user_id"    />
85
+        <result property="nickName"    column="gm_nick_name"    />
38
     </resultMap>
86
     </resultMap>
39
 
87
 
40
     <sql id="selectCmcSettleVo">
88
     <sql id="selectCmcSettleVo">
41
-        select settle_id, project_id, workload_report, reporter, report_time, settle_comment, zh_user_id, zh_time, zh_comment, js_user_id, js_time, js_comment, xm_user_id, xm_time, xm_comment, dept_user_id, dept_time, dept_comment, jy_user_id, jy_time, jy_comment, manager_user_id, manager_time, manager_comment, gm_user_id, gm_time, gm_comment, settle_document, modify_document, final_document from cmc_settle
89
+        select s.settle_id, s.project_id, s.workload_report, s.reporter, u.nick_name as reporter_nick_name, s.report_time, s.settle_comment, s.zh_user_id, u1.nick_name as zh_nick_name, 
90
+               s.zh_time, s.zh_comment, s.js_user_id, u2.nick_name as js_nick_name, s.js_time, s.js_comment, s.xm_user_id, u3.nick_name as xm_nick_name, s.xm_time, s.xm_comment, s.dept_user_id,
91
+               u4.nick_name as dept_nick_name, s.dept_time, s.dept_comment, s.jy_user_id, u5.nick_name as jy_nick_name, s.jy_time, s.jy_comment, s.manager_user_id, u6.nick_name as manager_nick_name, 
92
+               s.manager_time, s.manager_comment, s.gm_user_id, u7.nick_name as gm_nick_name, s.gm_time, s.gm_comment, s.settle_document, s.modify_document, s.final_document from cmc_settle as s
93
+        left join sys_user as u on u.user_id = s.reporter
94
+        left join sys_user as u1 on u1.user_id = s.zh_user_id
95
+        left join sys_user as u2 on u2.user_id = s.js_user_id
96
+        left join sys_user as u3 on u3.user_id = s.xm_user_id
97
+        left join sys_user as u4 on u4.user_id = s.dept_user_id
98
+        left join sys_user as u5 on u5.user_id = s.jy_user_id
99
+        left join sys_user as u6 on u6.user_id = s.manager_user_id
100
+        left join sys_user as u7 on u7.user_id = s.gm_user_id
42
     </sql>
101
     </sql>
43
 
102
 
44
     <select id="selectCmcSettleList" parameterType="CmcSettle" resultMap="CmcSettleResult">
103
     <select id="selectCmcSettleList" parameterType="CmcSettle" resultMap="CmcSettleResult">
45
         <include refid="selectCmcSettleVo"/>
104
         <include refid="selectCmcSettleVo"/>
46
         <where>
105
         <where>
47
-            <if test="settleId != null  and settleId != ''"> and settle_id = #{settleId}</if>
48
-            <if test="projectId != null  and projectId != ''"> and project_id = #{projectId}</if>
49
-            <if test="workloadReport != null  and workloadReport != ''"> and workload_report = #{workloadReport}</if>
50
-            <if test="reporter != null "> and reporter = #{reporter}</if>
51
-            <if test="reportTime != null "> and report_time = #{reportTime}</if>
52
-            <if test="settleComment != null  and settleComment != ''"> and settle_comment = #{settleComment}</if>
53
-            <if test="zhUserId != null "> and zh_user_id = #{zhUserId}</if>
54
-            <if test="zhTime != null "> and zh_time = #{zhTime}</if>
55
-            <if test="zhComment != null  and zhComment != ''"> and zh_comment = #{zhComment}</if>
56
-            <if test="jsUserId != null "> and js_user_id = #{jsUserId}</if>
57
-            <if test="jsTime != null "> and js_time = #{jsTime}</if>
58
-            <if test="jsComment != null  and jsComment != ''"> and js_comment = #{jsComment}</if>
59
-            <if test="xmUserId != null "> and xm_user_id = #{xmUserId}</if>
60
-            <if test="xmTime != null "> and xm_time = #{xmTime}</if>
61
-            <if test="xmComment != null  and xmComment != ''"> and xm_comment = #{xmComment}</if>
62
-            <if test="deptUserId != null "> and dept_user_id = #{deptUserId}</if>
63
-            <if test="deptTime != null "> and dept_time = #{deptTime}</if>
64
-            <if test="deptComment != null  and deptComment != ''"> and dept_comment = #{deptComment}</if>
65
-            <if test="jyUserId != null "> and jy_user_id = #{jyUserId}</if>
66
-            <if test="jyTime != null "> and jy_time = #{jyTime}</if>
67
-            <if test="jyComment != null  and jyComment != ''"> and jy_comment = #{jyComment}</if>
68
-            <if test="managerUserId != null "> and manager_user_id = #{managerUserId}</if>
69
-            <if test="managerTime != null "> and manager_time = #{managerTime}</if>
70
-            <if test="managerComment != null  and managerComment != ''"> and manager_comment = #{managerComment}</if>
71
-            <if test="gmUserId != null "> and gm_user_id = #{gmUserId}</if>
72
-            <if test="gmTime != null "> and gm_time = #{gmTime}</if>
73
-            <if test="gmComment != null  and gmComment != ''"> and gm_comment = #{gmComment}</if>
106
+            <if test="settleId != null  and settleId != ''"> and s.settle_id = #{settleId}</if>
107
+            <if test="projectId != null  and projectId != ''"> and s.project_id = #{projectId}</if>
108
+            <if test="workloadReport != null  and workloadReport != ''"> and s.workload_report = #{workloadReport}</if>
109
+            <if test="reporter != null "> and s.reporter = #{reporter}</if>
110
+            <if test="reportTime != null "> and s.report_time = #{reportTime}</if>
111
+            <if test="settleComment != null  and settleComment != ''"> and s.settle_comment = #{settleComment}</if>
112
+            <if test="zhUserId != null "> and s.zh_user_id = #{zhUserId}</if>
113
+            <if test="zhTime != null "> and s.zh_time = #{zhTime}</if>
114
+            <if test="zhComment != null  and zhComment != ''"> and s.zh_comment = #{zhComment}</if>
115
+            <if test="jsUserId != null "> and s.js_user_id = #{jsUserId}</if>
116
+            <if test="jsTime != null "> and s.js_time = #{jsTime}</if>
117
+            <if test="jsComment != null  and jsComment != ''"> and s.js_comment = #{jsComment}</if>
118
+            <if test="xmUserId != null "> and s.xm_user_id = #{xmUserId}</if>
119
+            <if test="xmTime != null "> and s.xm_time = #{xmTime}</if>
120
+            <if test="xmComment != null  and xmComment != ''"> and s.xm_comment = #{xmComment}</if>
121
+            <if test="deptUserId != null "> and s.dept_user_id = #{deptUserId}</if>
122
+            <if test="deptTime != null "> and s.dept_time = #{deptTime}</if>
123
+            <if test="deptComment != null  and deptComment != ''"> and s.dept_comment = #{deptComment}</if>
124
+            <if test="jyUserId != null "> and s.jy_user_id = #{jyUserId}</if>
125
+            <if test="jyTime != null "> and s.jy_time = #{jyTime}</if>
126
+            <if test="jyComment != null  and jyComment != ''"> and s.jy_comment = #{jyComment}</if>
127
+            <if test="managerUserId != null "> and s.manager_user_id = #{managerUserId}</if>
128
+            <if test="managerTime != null "> and s.manager_time = #{managerTime}</if>
129
+            <if test="managerComment != null  and managerComment != ''"> and s.manager_comment = #{managerComment}</if>
130
+            <if test="gmUserId != null "> and s.gm_user_id = #{gmUserId}</if>
131
+            <if test="gmTime != null "> and s.gm_time = #{gmTime}</if>
132
+            <if test="gmComment != null  and gmComment != ''"> and s.gm_comment = #{gmComment}</if>
74
         </where>
133
         </where>
75
     </select>
134
     </select>
76
     
135
     
77
     <select id="selectCmcSettleBySettleId" parameterType="String" resultMap="CmcSettleResult">
136
     <select id="selectCmcSettleBySettleId" parameterType="String" resultMap="CmcSettleResult">
78
         <include refid="selectCmcSettleVo"/>
137
         <include refid="selectCmcSettleVo"/>
79
-        where settle_id = #{settleId}
138
+        where s.settle_id = #{settleId}
80
     </select>
139
     </select>
81
         
140
         
82
     <insert id="insertCmcSettle" parameterType="CmcSettle">
141
     <insert id="insertCmcSettle" parameterType="CmcSettle">

+ 5
- 1
oa-back/sql/sql.sql 查看文件

1912
 INSERT INTO `cmc_project` VALUES ('1648881410631270448', '2024C26', '力丘河口及塔公以上河段1:500地形测绘及现时水边线测量', 65, '0', '0', '0230', '龙宇杰、梁媛', '15198088143、18602868995', '地形图测绘', '0', 13, '108,111', NULL, NULL, NULL, '2024-06-04', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
1912
 INSERT INTO `cmc_project` VALUES ('1648881410631270448', '2024C26', '力丘河口及塔公以上河段1:500地形测绘及现时水边线测量', 65, '0', '0', '0230', '龙宇杰、梁媛', '15198088143、18602868995', '地形图测绘', '0', 13, '108,111', NULL, NULL, NULL, '2024-06-04', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
1913
 INSERT INTO `cmc_project` VALUES ('1648881410631270449', '2024C27', '亚龙水电站可研阶段地形图测绘', 95, '0', '0', '0230', '龙宇杰、刘永波', '15198088143、13438137962', '地形图测绘', '0', 13, '112,108', NULL, NULL, NULL, '2024-06-04', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
1913
 INSERT INTO `cmc_project` VALUES ('1648881410631270449', '2024C27', '亚龙水电站可研阶段地形图测绘', 95, '0', '0', '0230', '龙宇杰、刘永波', '15198088143、13438137962', '地形图测绘', '0', 13, '112,108', NULL, NULL, NULL, '2024-06-04', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
1914
 INSERT INTO `cmc_project` VALUES ('1648881410631270450', '2024C28', 'ML及JW界桩测设工作', 84, '0', '0', '0226', '干尚伟', '13980874941', '界桩测设', '0', 21, '112', NULL, NULL, NULL, '2024-06-06', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
1914
 INSERT INTO `cmc_project` VALUES ('1648881410631270450', '2024C28', 'ML及JW界桩测设工作', 84, '0', '0', '0226', '干尚伟', '13980874941', '界桩测设', '0', 21, '112', NULL, NULL, NULL, '2024-06-06', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
1915
+INSERT INTO `cmc_project` VALUES ('1648881410631270465', '2024C29', '南江兴马抽水蓄能电站可研阶段地形图测绘项目', 75, '0', '0', '0230', '龙宇杰、闫勇', '15198088143、13880937699', '地形图测绘', '0', 13, '108,111', 33, 75, NULL, '2024-06-18', NULL, '2024-06-19', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
1916
+INSERT INTO `cmc_project` VALUES ('1648881410631270466', '2024C30', '理塘呷洼抽水蓄能电站预可阶段地形图测绘工作', 146, '0', '0', '0230', '龙宇杰、赵程', '15198088143、18428311670', '地形图测绘', '0', 13, '108,117', 33, 146, NULL, '2024-06-19', NULL, '2024-06-20', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
1915
 INSERT INTO `cmc_project` VALUES ('1648881410631270451', '2024W01', '重庆区县建成区实景三维制作', 38, '0', '1', '0274', '马红', '17723881291', '三维实景模型', '0', 13, '109,108', NULL, NULL, NULL, '2024-01-04', NULL, NULL, '2024-01-05', '2024-03-23', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
1917
 INSERT INTO `cmc_project` VALUES ('1648881410631270451', '2024W01', '重庆区县建成区实景三维制作', 38, '0', '1', '0274', '马红', '17723881291', '三维实景模型', '0', 13, '109,108', NULL, NULL, NULL, '2024-01-04', NULL, NULL, '2024-01-05', '2024-03-23', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
1916
 INSERT INTO `cmc_project` VALUES ('1648881410631270452', '2024W02', '凤山平乐风电场地形图测绘', 76, '0', '1', '0238', '姚鹏', '15361284599', '地形图测绘', '0', 13, '108,118,111', NULL, NULL, NULL, '2024-01-12', NULL, NULL, '2024-01-15', '2024-02-04', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
1918
 INSERT INTO `cmc_project` VALUES ('1648881410631270452', '2024W02', '凤山平乐风电场地形图测绘', 76, '0', '1', '0238', '姚鹏', '15361284599', '地形图测绘', '0', 13, '108,118,111', NULL, NULL, NULL, '2024-01-12', NULL, NULL, '2024-01-15', '2024-02-04', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
1917
 INSERT INTO `cmc_project` VALUES ('1648881410631270453', '2024W03', '雅砻江二滩水电站大坝外部变形观测及谷坡稳定性监测(2024年)', 103, '0', '1', '0199', '高翠峰', '', '工程监测', '0', 13, '113', NULL, NULL, NULL, '2024-01-26', NULL, NULL, '2024-01-01', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
1919
 INSERT INTO `cmc_project` VALUES ('1648881410631270453', '2024W03', '雅砻江二滩水电站大坝外部变形观测及谷坡稳定性监测(2024年)', 103, '0', '1', '0199', '高翠峰', '', '工程监测', '0', 13, '113', NULL, NULL, NULL, '2024-01-26', NULL, NULL, '2024-01-01', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
5506
 INSERT INTO `cmc_project` VALUES ('1648881508333387778', '201702047', '雅砻江二滩水电站大坝外部变形观测', NULL, '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
5508
 INSERT INTO `cmc_project` VALUES ('1648881508333387778', '201702047', '雅砻江二滩水电站大坝外部变形观测', NULL, '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
5507
 INSERT INTO `cmc_project` VALUES ('1648881508366942210', '201702048', '涪江双江航电工程', NULL, '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
5509
 INSERT INTO `cmc_project` VALUES ('1648881508366942210', '201702048', '涪江双江航电工程', NULL, '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
5508
 INSERT INTO `cmc_project` VALUES ('1648881508400496642', '201702049', '西藏多雄河玉松、林芝厂区勘探放样复核报告.pdf', NULL, '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
5510
 INSERT INTO `cmc_project` VALUES ('1648881508400496642', '201702049', '西藏多雄河玉松、林芝厂区勘探放样复核报告.pdf', NULL, '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
5509
-INSERT INTO `cmc_project` VALUES ('1648881508423598826', '2024C29', '南江兴马抽水蓄能电站可研阶段地形图测绘项目', NULL, '0', NULL, '0230', '龙宇杰、闫勇', '15198088143、13880937699', '地形图测绘', '0', 13, NULL, NULL, NULL, NULL, '2024-06-18', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
5510
 INSERT INTO `cmc_project` VALUES ('1648881508438245378', '201702050', '重庆市洪崖洞旅游客运码头工程项目', NULL, '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
5511
 INSERT INTO `cmc_project` VALUES ('1648881508438245378', '201702050', '重庆市洪崖洞旅游客运码头工程项目', NULL, '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
5511
 INSERT INTO `cmc_project` VALUES ('1648881508471799809', '201703051', '云南省金沙江溪洛渡天星坝水库左干渠地形图及地类图测绘测绘', NULL, '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
5512
 INSERT INTO `cmc_project` VALUES ('1648881508471799809', '201703051', '云南省金沙江溪洛渡天星坝水库左干渠地形图及地类图测绘测绘', NULL, '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
5512
 INSERT INTO `cmc_project` VALUES ('1648881508505354241', '201703052', '西藏自治区雅鲁藏布江米林水库工程拉丁、康扎及大渡卡料场', NULL, '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
5513
 INSERT INTO `cmc_project` VALUES ('1648881508505354241', '201703052', '西藏自治区雅鲁藏布江米林水库工程拉丁、康扎及大渡卡料场', NULL, '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
7920
 INSERT INTO `cmc_technical` VALUES ('1648881410631270462', '1648881410631270462', 117, 119, NULL, NULL, NULL, '120', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
7921
 INSERT INTO `cmc_technical` VALUES ('1648881410631270462', '1648881410631270462', 117, 119, NULL, NULL, NULL, '120', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
7921
 INSERT INTO `cmc_technical` VALUES ('1648881410631270463', '1648881410631270463', 52, 76, NULL, NULL, NULL, '61', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
7922
 INSERT INTO `cmc_technical` VALUES ('1648881410631270463', '1648881410631270463', 52, 76, NULL, NULL, NULL, '61', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
7922
 INSERT INTO `cmc_technical` VALUES ('1648881410631270464', '1648881410631270464', 52, 65, NULL, NULL, NULL, '63', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
7923
 INSERT INTO `cmc_technical` VALUES ('1648881410631270464', '1648881410631270464', 52, 65, NULL, NULL, NULL, '63', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
7924
+INSERT INTO `cmc_technical` VALUES ('1648881410631270465', '1648881410631270465', 55, 75, NULL, NULL, NULL, '60,61', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
7925
+INSERT INTO `cmc_technical` VALUES ('1648881410631270466', '1648881410631270466', 55, 146, NULL, NULL, NULL, '59,61,62', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
7923
 INSERT INTO `cmc_technical` VALUES ('1648881410643853314', '1648881410643853314', 61, 75, NULL, NULL, NULL, '60', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
7926
 INSERT INTO `cmc_technical` VALUES ('1648881410643853314', '1648881410643853314', 61, 75, NULL, NULL, NULL, '60', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
7924
 INSERT INTO `cmc_technical` VALUES ('1648881410660630529', '1648881410660630529', 61, 145, NULL, NULL, NULL, '59,62', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
7927
 INSERT INTO `cmc_technical` VALUES ('1648881410660630529', '1648881410660630529', 61, 145, NULL, NULL, NULL, '59,62', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
7925
 INSERT INTO `cmc_technical` VALUES ('1648881410677407746', '1648881410677407746', 55, 38, NULL, NULL, NULL, '62', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
7928
 INSERT INTO `cmc_technical` VALUES ('1648881410677407746', '1648881410677407746', 55, 38, NULL, NULL, NULL, '62', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
8530
   `outside_comment` 	text		  	default null comment '外业要求',
8533
   `outside_comment` 	text		  	default null comment '外业要求',
8531
   `inside_comment` 		text		  	default null comment '内业要求',
8534
   `inside_comment` 		text		  	default null comment '内业要求',
8532
   `disclosure_comment` 	varchar(255)  	default null comment '安全交底意见',
8535
   `disclosure_comment` 	varchar(255)  	default null comment '安全交底意见',
8536
+  `accept_comment` 		varchar(255)  	default null comment '接受交底意见',
8533
   `disclosure_time` 	date  			default null comment '安全交底时间',
8537
   `disclosure_time` 	date  			default null comment '安全交底时间',
8534
   `accept_time` 		date  			default null comment '接受交底时间',
8538
   `accept_time` 		date  			default null comment '接受交底时间',
8535
   primary key (`safe_id`)
8539
   primary key (`safe_id`)

+ 28
- 16
oa-ui/src/views/flowable/form/projectProcess/safeTab.vue 查看文件

28
           <el-input v-model="form.insideComment" placeholder="请输入信息安全管理要求" type="textarea" :autosize="{ minRows: 8 }" />
28
           <el-input v-model="form.insideComment" placeholder="请输入信息安全管理要求" type="textarea" :autosize="{ minRows: 8 }" />
29
         </el-form-item>
29
         </el-form-item>
30
         <el-form-item label="安全交底意见" prop="disclosureComment">
30
         <el-form-item label="安全交底意见" prop="disclosureComment">
31
-          <el-input v-model="form.disclosureComment" placeholder="请输入安全交底意见" type="textarea"
32
-            :autosize="{ minRows: 4 }" />
31
+          <el-input v-model="form.disclosureComment" placeholder="请输入安全交底意见" type="textarea" :autosize="{ minRows: 4 }" />
33
         </el-form-item>
32
         </el-form-item>
34
-        <el-form-item label="安全交底人" prop="disclosurer">
35
-          <span class="auditor"> {{ form.disclosurerUser ? form.disclosurerUser.nickName : form.user.nickName }}</span>
36
-        </el-form-item>
37
-        <el-form-item label="安全交底时间" prop="disclosureTime">
38
-          <el-date-picker clearable v-model="form.disclosureTime" type="date" value-format="yyyy-MM-dd"
39
-            placeholder="选择日期">
40
-          </el-date-picker>
41
-        </el-form-item>
42
-        <el-form-item label="接受交底意见" prop="disclosureComment">
43
-          <el-input :disabled="true" placeholder="按要求进行作业" />
44
-        </el-form-item>
45
-        <el-form-item label="接受交底时间" prop="acceptTime">
46
-          <el-date-picker clearable v-model="form.acceptTime" type="date" value-format="yyyy-MM-dd" placeholder="选择日期">
47
-          </el-date-picker>
33
+        <el-row>
34
+          <el-col :span="6" :xs="24" :offset="12">
35
+            <el-form-item label="签名" prop="disclosurer">
36
+              <span class="auditor"> {{ form.disclosurerUser ? form.disclosurerUser.nickName : '' }}
37
+              </span>
38
+            </el-form-item>
39
+          </el-col>
40
+          <el-col :span="6">
41
+            <el-form-item label="日期:" label-width="120px">
42
+              <span> {{ parseTime(form.disclosureTime, '{y}-{m}-{d}') }} </span>
43
+            </el-form-item>
44
+          </el-col>
45
+        </el-row>
46
+        <el-form-item label="接受交底意见" prop="acceptComment">
47
+          <el-input v-model="form.acceptComment" placeholder="请输入接受交底意见" type="textarea" :autosize="{ minRows: 4 }" />
48
         </el-form-item>
48
         </el-form-item>
49
+        <el-row>
50
+          <el-col :span="6" :xs="24" :offset="12">
51
+            <el-form-item label="签名">
52
+              <span class="auditor"> {{ form.accepterUser ? form.accepterUser.nickName : '' }} </span>
53
+            </el-form-item>
54
+          </el-col>
55
+          <el-col :span="6">
56
+            <el-form-item label="日期:" label-width="120px">
57
+              <span> {{ parseTime(form.acceptTime, '{y}-{m}-{d}') }} </span>
58
+            </el-form-item>
59
+          </el-col>
60
+        </el-row>
49
       </el-form>
61
       </el-form>
50
     </div>
62
     </div>
51
   </div>
63
   </div>

+ 64
- 34
oa-ui/src/views/flowable/form/safeForm.vue 查看文件

2
   <div class="app-container">
2
   <div class="app-container">
3
     <el-row :gutter="20">
3
     <el-row :gutter="20">
4
       <el-col :span="18" :xs="24">
4
       <el-col :span="18" :xs="24">
5
-        <el-form ref="form" :model="form" :rules="rules" label-width="150px" :disabled="taskName != '安全交底'">
5
+        <el-form ref="form" :model="form" :rules="rules" label-width="150px">
6
           <el-form-item label="项目编号:" prop="projectId" v-if="taskForm.procDefName == '安全交底'">
6
           <el-form-item label="项目编号:" prop="projectId" v-if="taskForm.procDefName == '安全交底'">
7
             <el-input v-model="chooseProject.projectNumber" placeholder="请输入项目编号" disabled style="width: 300px" />
7
             <el-input v-model="chooseProject.projectNumber" placeholder="请输入项目编号" disabled style="width: 300px" />
8
             <el-descriptions border v-if="isSelect" style="margin-top: 10px;" :column="1">
8
             <el-descriptions border v-if="isSelect" style="margin-top: 10px;" :column="1">
27
               </el-option>
27
               </el-option>
28
             </el-select>
28
             </el-select>
29
           </el-form-item>
29
           </el-form-item>
30
-          <el-form-item label="环境管理要求" prop="environmentComment" :disabled="taskName != '安全交底'">
30
+          <el-form-item label="环境管理要求" prop="environmentComment">
31
             <el-input v-model="form.environmentComment" placeholder="请输入环境管理要求" type="textarea"
31
             <el-input v-model="form.environmentComment" placeholder="请输入环境管理要求" type="textarea"
32
-              :autosize="{ minRows: 8 }" />
32
+              :disabled="taskName != '安全交底'" :autosize="{ minRows: 8 }" />
33
           </el-form-item>
33
           </el-form-item>
34
-          <el-form-item label="安全生产与职业健康要求" prop="outsideComment" :disabled="taskName != '安全交底'">
34
+          <el-form-item label="安全生产与职业健康要求" prop="outsideComment">
35
             <el-input v-model="form.outsideComment" placeholder="请输入安全生产与职业健康要求" type="textarea"
35
             <el-input v-model="form.outsideComment" placeholder="请输入安全生产与职业健康要求" type="textarea"
36
-              :autosize="{ minRows: 8 }" />
36
+              :disabled="taskName != '安全交底'" :autosize="{ minRows: 8 }" />
37
           </el-form-item>
37
           </el-form-item>
38
-          <el-form-item label="信息安全管理要求" prop="insideComment" :disabled="taskName != '安全交底'">
39
-            <el-input v-model="form.insideComment" placeholder="请输入信息安全管理要求" type="textarea" :autosize="{ minRows: 8 }" />
38
+          <el-form-item label="信息安全管理要求" prop="insideComment">
39
+            <el-input v-model="form.insideComment" placeholder="请输入信息安全管理要求" type="textarea" :autosize="{ minRows: 8 }"
40
+              :disabled="taskName != '安全交底'" />
40
           </el-form-item>
41
           </el-form-item>
41
-          <el-form-item label="安全交底意见" prop="disclosureComment" :disabled="taskName != '安全交底'">
42
+          <el-form-item label="安全交底意见" prop="disclosureComment">
42
             <el-input v-model="form.disclosureComment" placeholder="请输入安全交底意见" type="textarea"
43
             <el-input v-model="form.disclosureComment" placeholder="请输入安全交底意见" type="textarea"
43
-              :autosize="{ minRows: 4 }" />
44
+              :disabled="taskName != '安全交底'" :autosize="{ minRows: 4 }" />
44
           </el-form-item>
45
           </el-form-item>
45
-          <el-form-item label="安全交底人" prop="disclosurer">
46
-            <span class="auditor"> {{ form.disclosurerUser ? form.disclosurerUser.nickName : form.user.nickName }}</span>
47
-          </el-form-item>
48
-          <el-form-item label="安全交底时间" prop="disclosureTime">
49
-            <el-date-picker clearable v-model="form.disclosureTime" type="date" value-format="yyyy-MM-dd"
50
-              placeholder="选择日期" :disabled="taskName != '安全交底'">
51
-            </el-date-picker>
52
-          </el-form-item>
53
-          <el-form-item label="接受交底意见" prop="disclosureComment" v-if="taskName == '接受交底' || taskName == ''">
54
-            <el-input :disabled="true" placeholder="按要求进行作业" />
55
-          </el-form-item>
56
-          <el-form-item label="接受交底时间" prop="acceptTime" v-if="taskName == '接受交底' || taskName == ''">
57
-            <el-date-picker clearable v-model="form.acceptTime" type="date" value-format="yyyy-MM-dd" placeholder="选择日期"
58
-              :disabled="taskName != '接受交底'">
59
-            </el-date-picker>
46
+          <el-row>
47
+            <el-col :span="6" :xs="24" :offset="12">
48
+              <el-form-item label="签名" prop="disclosurer">
49
+                <span class="auditor"> {{ form.disclosurerUser ? form.disclosurerUser.nickName : disclosurerUser }}
50
+                </span>
51
+              </el-form-item>
52
+            </el-col>
53
+            <el-col :span="6">
54
+              <el-form-item label="日期:" label-width="120px">
55
+                <span> {{ parseTime(form.disclosureTime, '{y}-{m}-{d}') }} </span>
56
+              </el-form-item>
57
+            </el-col>
58
+          </el-row>
59
+          <el-form-item label="接受交底意见" prop="acceptComment" v-if="taskName != '安全交底'">
60
+            <el-input v-model="form.acceptComment" placeholder="请输入接受交底意见" type="textarea" :autosize="{ minRows: 4 }"
61
+              :disabled="taskName == ''" />
60
           </el-form-item>
62
           </el-form-item>
63
+          <el-row>
64
+            <el-col :span="6" :xs="24" :offset="12">
65
+              <el-form-item label="签名" v-if="taskName != '安全交底'">
66
+                <span class="auditor"> {{ form.accepterUser ? form.accepterUser.nickName : accepterUser }} </span>
67
+              </el-form-item>
68
+            </el-col>
69
+            <el-col :span="6">
70
+              <el-form-item label="日期:" label-width="120px" v-if="taskName != '安全交底'">
71
+                <span> {{ parseTime(form.acceptTime, '{y}-{m}-{d}') }} </span>
72
+              </el-form-item>
73
+            </el-col>
74
+          </el-row>
61
         </el-form>
75
         </el-form>
62
         <div style="text-align: center;" v-if="taskName">
76
         <div style="text-align: center;" v-if="taskName">
63
           <el-button type="primary" @click="submitForm">提 交</el-button>
77
           <el-button type="primary" @click="submitForm">提 交</el-button>
100
   },
114
   },
101
   data() {
115
   data() {
102
     return {
116
     return {
117
+      disclosurerUser: '',
118
+      accepterUser: '',
103
       // 遮罩层
119
       // 遮罩层
104
       loading: true,
120
       loading: true,
105
       // 选中数组
121
       // 选中数组
132
         disclosureTime: null,
148
         disclosureTime: null,
133
         acceptTime: null
149
         acceptTime: null
134
       },
150
       },
135
-      disclosureTime: undefined,
136
-      acceptTime: undefined,
137
       userList: [],
151
       userList: [],
138
       chooseProject: {},
152
       chooseProject: {},
139
       isSelect: false,
153
       isSelect: false,
144
         }
158
         }
145
       },
159
       },
146
       // 表单校验
160
       // 表单校验
147
-      rules: {
148
-        disclosureComment: [
149
-            { required: true, message: '请选择安全交底意见', trigger: 'blur' },
150
-          ],
151
-      },
161
+      rules: {},
152
       formTotal: 0,
162
       formTotal: 0,
153
       flowData: {}
163
       flowData: {}
154
     };
164
     };
155
   },
165
   },
156
   created() {
166
   created() {
157
-    this.form.acceptTime = new Date();
158
-    this.form.user.nickName = this.$store.getters.name;
159
     this.getProjectById();
167
     this.getProjectById();
160
     this.getUserList();
168
     this.getUserList();
161
     this.getList();
169
     this.getList();
164
     })
172
     })
165
   },
173
   },
166
   mounted() {
174
   mounted() {
175
+    this.initRules();
167
     this.initForm();
176
     this.initForm();
168
   },
177
   },
169
   methods: {
178
   methods: {
179
+    initRules() {
180
+      if (this.taskName == '安全交底') {
181
+        this.rules = {
182
+          disclosureComment: [
183
+            { required: true, message: '请输入安全交底意见', trigger: 'blur' },
184
+          ],
185
+        }
186
+      }
187
+      else if (this.taskName == '接受交底') {
188
+        this.rules = {
189
+          acceptComment: [
190
+            { required: true, message: '请输入接受交底意见', trigger: 'blur' },
191
+          ],
192
+        }
193
+      }
194
+    },
170
     initForm() {
195
     initForm() {
171
       getSafe(this.taskForm.formId).then(res => {
196
       getSafe(this.taskForm.formId).then(res => {
172
         if (this.isEmptyObject(res.data)) {
197
         if (this.isEmptyObject(res.data)) {
173
           this.formTotal = 0;
198
           this.formTotal = 0;
174
           this.form.disclosurer = this.$store.getters.userId;
199
           this.form.disclosurer = this.$store.getters.userId;
200
+          this.disclosurerUser = this.$store.getters.name;
175
           this.form.disclosureTime = new Date();
201
           this.form.disclosureTime = new Date();
176
         }
202
         }
177
         else {
203
         else {
178
           this.formTotal = 1;
204
           this.formTotal = 1;
179
           this.form = res.data;
205
           this.form = res.data;
206
+          this.accepterUser = this.$store.getters.name;
207
+          this.form.acceptTime = new Date();
180
         }
208
         }
181
       })
209
       })
182
     },
210
     },
322
 };
350
 };
323
 </script>
351
 </script>
324
 
352
 
325
-<style lang="scss" scoped>@import "@/assets/styles/element-reset.scss";</style>
353
+<style lang="scss" scoped>
354
+@import "@/assets/styles/element-reset.scss";
355
+</style>

Loading…
取消
儲存