lamphua пре 11 месеци
родитељ
комит
d1dd83e7e4

+ 36
- 0
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcCarApprovalController.java Прегледај датотеку

@@ -9,6 +9,7 @@ import com.alibaba.fastjson2.JSONObject;
9 9
 import com.ruoyi.common.utils.DateUtils;
10 10
 import com.ruoyi.oa.domain.*;
11 11
 import com.ruoyi.oa.service.ICmcCarService;
12
+import com.ruoyi.system.service.ISysUserService;
12 13
 import org.springframework.beans.factory.annotation.Autowired;
13 14
 import org.springframework.web.bind.annotation.*;
14 15
 import com.ruoyi.common.annotation.Log;
@@ -35,6 +36,9 @@ public class CmcCarApprovalController extends BaseController
35 36
     @Autowired
36 37
     private ICmcCarService cmcCarService;
37 38
 
39
+    @Autowired
40
+    private ISysUserService userService;
41
+
38 42
     /**
39 43
      * 查询cmc用车审批列表
40 44
      */
@@ -43,6 +47,22 @@ public class CmcCarApprovalController extends BaseController
43 47
     {
44 48
         startPage();
45 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 66
         return getDataTable(list);
47 67
     }
48 68
 
@@ -54,6 +74,22 @@ public class CmcCarApprovalController extends BaseController
54 74
     public void export(HttpServletResponse response, CmcCarApproval cmcCarApproval)
55 75
     {
56 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 93
         ExcelUtil<CmcCarApproval> util = new ExcelUtil<CmcCarApproval>(CmcCarApproval.class);
58 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,6 +44,47 @@ public class CmcDeviceApprovalController extends BaseController
44 44
     {
45 45
         startPage();
46 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 88
         return getDataTable(list);
48 89
     }
49 90
 
@@ -55,6 +96,47 @@ public class CmcDeviceApprovalController extends BaseController
55 96
     public void export(HttpServletResponse response, CmcDeviceApproval cmcDeviceApproval)
56 97
     {
57 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 140
         ExcelUtil<CmcDeviceApproval> util = new ExcelUtil<CmcDeviceApproval>(CmcDeviceApproval.class);
59 141
         util.exportExcel(response, list, "cmc设备审批数据");
60 142
     }

+ 48
- 12
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcCarApproval.java Прегледај датотеку

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

+ 0
- 122
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcCarExpense.java Прегледај датотеку

@@ -1,122 +0,0 @@
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,30 +28,43 @@ public class CmcDeviceApproval extends BaseEntity
28 28
     @Excel(name = "申请人")
29 29
     private Long applier;
30 30
 
31
+    @Excel(name = "申请人")
32
+    private String applierUserName;
31 33
     private SysUser applierUser;
32 34
 
35
+    @Excel(name = "分管审批人")
36
+    private String managerUserName;
33 37
     private SysUser managerUser;
34 38
 
39
+    @Excel(name = "设备管理员")
40
+    private String dispatchUserName;
35 41
     private SysUser dispatchUser;
36 42
 
37 43
     /** 使用部门 */
38
-    @Excel(name = "使用部门")
39 44
     private Long useDept;
40
-
45
+    @Excel(name = "使用部门")
46
+    private String deptName;
41 47
     private SysDept dept;
42 48
 
43 49
     /** 设备id */
44
-    @Excel(name = "设备id")
50
+    @Excel(name = "申领设备")
51
+    private String deviceNames;
45 52
     private String devices;
46 53
 
47 54
     /** 修改后设备id */
48
-    @Excel(name = "修改后设备id")
55
+    @Excel(name = "发放设备")
56
+    private String modifyDeviceNames;
57
+    @Excel(name = "发放设备序号")
58
+    private String modifyDeviceNumbers;
49 59
     private String modifyDevices;
50 60
 
51 61
     /** 项目id */
52 62
     @Excel(name = "项目id")
53 63
     private String projectId;
54
-
64
+    @Excel(name = "项目编号")
65
+    private String projectNumber;
66
+    @Excel(name = "项目名称")
67
+    private String projectName;
55 68
     private CmcProject project;
56 69
 
57 70
     /** 申领事由 */
@@ -73,7 +86,6 @@ public class CmcDeviceApproval extends BaseEntity
73 86
     private Long days;
74 87
 
75 88
     /** 分管审批人 */
76
-    @Excel(name = "分管审批人")
77 89
     private Long managerUserId;
78 90
 
79 91
     /** 分管审批意见 */
@@ -81,7 +93,6 @@ public class CmcDeviceApproval extends BaseEntity
81 93
     private String managerComment;
82 94
 
83 95
     /** 调度员 */
84
-    @Excel(name = "调度员")
85 96
     private Long dispatcher;
86 97
 
87 98
     /** 调度审批意见 */
@@ -118,7 +129,10 @@ public class CmcDeviceApproval extends BaseEntity
118 129
     private Date dispatchTime;
119 130
 
120 131
     /** 需维修设备id */
121
-    @Excel(name = "需维修设备id")
132
+    @Excel(name = "需维修设备")
133
+    private String repairDeviceNames;
134
+    @Excel(name = "需维修设备序号")
135
+    private String repairDeviceNumbers;
122 136
     private String repairDevices;
123 137
 
124 138
     public void setDeviceApplyId(String deviceApplyId)
@@ -179,6 +193,7 @@ public class CmcDeviceApproval extends BaseEntity
179 193
     public void setDept(SysDept dept)
180 194
     {
181 195
         this.dept = dept;
196
+        this.deptName = dept == null ? "" : dept.getDeptName();
182 197
     }
183 198
 
184 199
     public SysDept getDept()
@@ -194,6 +209,24 @@ public class CmcDeviceApproval extends BaseEntity
194 209
     {
195 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 230
     public void setModifyDevices(String modifyDevices)
198 231
     {
199 232
         this.modifyDevices = modifyDevices;
@@ -203,6 +236,15 @@ public class CmcDeviceApproval extends BaseEntity
203 236
     {
204 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 248
     public void setProjectId(String projectId)
207 249
     {
208 250
         this.projectId = projectId;
@@ -215,6 +257,8 @@ public class CmcDeviceApproval extends BaseEntity
215 257
     public void setProject(CmcProject project)
216 258
     {
217 259
         this.project = project;
260
+        this.projectNumber = project == null ? "" : project.getProjectNumber();
261
+        this.projectName = project == null ? "" : project.getProjectName();
218 262
     }
219 263
 
220 264
     public CmcProject getProject()
@@ -356,6 +400,24 @@ public class CmcDeviceApproval extends BaseEntity
356 400
     {
357 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 422
     @Override
361 423
     public String toString() {

+ 46
- 2
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcDeviceScrap.java Прегледај датотеку

@@ -22,12 +22,30 @@ public class CmcDeviceScrap extends BaseEntity
22 22
     private Integer deviceScrapId;
23 23
 
24 24
     /** 设备id */
25
-    @Excel(name = "设备id")
26 25
     private Integer deviceId;
26
+    private CmcDevice device;
27 27
 
28 28
     /** 车辆id */
29
-    @Excel(name = "车辆id")
30 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 51
     @Excel(name = "原价值")
@@ -68,6 +86,22 @@ public class CmcDeviceScrap extends BaseEntity
68 86
     {
69 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 105
     public void setCarId(Integer carId)
72 106
     {
73 107
         this.carId = carId;
@@ -77,6 +111,16 @@ public class CmcDeviceScrap extends BaseEntity
77 111
     {
78 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 124
     public void setCost(BigDecimal cost) 
81 125
     {
82 126
         this.cost = cost;

+ 14
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcSafe.java Прегледај датотеку

@@ -59,6 +59,10 @@ public class CmcSafe extends BaseEntity
59 59
     @Excel(name = "安全交底意见")
60 60
     private String disclosureComment;
61 61
 
62
+    /** 接受交底意见 */
63
+    @Excel(name = "接受交底意见")
64
+    private String acceptComment;
65
+
62 66
     /** 安全交底时间 */
63 67
     @JsonFormat(pattern = "yyyy-MM-dd")
64 68
     @Excel(name = "安全交底时间", width = 30, dateFormat = "yyyy-MM-dd")
@@ -173,6 +177,15 @@ public class CmcSafe extends BaseEntity
173 177
     {
174 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 189
     public void setDisclosureTime(Date disclosureTime) 
177 190
     {
178 191
         this.disclosureTime = disclosureTime;
@@ -203,6 +216,7 @@ public class CmcSafe extends BaseEntity
203 216
             .append("outsideComment", getOutsideComment())
204 217
             .append("insideComment", getInsideComment())
205 218
             .append("disclosureComment", getDisclosureComment())
219
+            .append("acceptComment", getAcceptComment())
206 220
             .append("disclosureTime", getDisclosureTime())
207 221
             .append("acceptTime", getAcceptTime())
208 222
             .toString();

+ 130
- 8
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcSettle.java Прегледај датотеку

@@ -2,6 +2,7 @@ package com.ruoyi.oa.domain;
2 2
 
3 3
 import java.util.Date;
4 4
 import com.fasterxml.jackson.annotation.JsonFormat;
5
+import com.ruoyi.common.core.domain.entity.SysUser;
5 6
 import org.apache.commons.lang3.builder.ToStringBuilder;
6 7
 import org.apache.commons.lang3.builder.ToStringStyle;
7 8
 import com.ruoyi.common.annotation.Excel;
@@ -21,17 +22,52 @@ public class CmcSettle extends BaseEntity
21 22
     private String settleId;
22 23
 
23 24
     /** 项目id */
24
-    @Excel(name = "项目id")
25 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 33
     @Excel(name = "工作量上报说明")
29 34
     private String workloadReport;
30 35
 
31 36
     /** 上报人 */
32
-    @Excel(name = "上报人")
33 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 72
     @JsonFormat(pattern = "yyyy-MM-dd")
37 73
     @Excel(name = "上报日期", width = 30, dateFormat = "yyyy-MM-dd")
@@ -42,7 +78,6 @@ public class CmcSettle extends BaseEntity
42 78
     private String settleComment;
43 79
 
44 80
     /** 综合事务部审核人 */
45
-    @Excel(name = "综合事务部审核人")
46 81
     private Long zhUserId;
47 82
 
48 83
     /** 综合事务部审核日期 */
@@ -55,7 +90,6 @@ public class CmcSettle extends BaseEntity
55 90
     private String zhComment;
56 91
 
57 92
     /** 技术质量部审核人 */
58
-    @Excel(name = "技术质量部审核人")
59 93
     private Long jsUserId;
60 94
 
61 95
     /** 技术质量部审核日期 */
@@ -68,7 +102,6 @@ public class CmcSettle extends BaseEntity
68 102
     private String jsComment;
69 103
 
70 104
     /** 项目管理部审核人 */
71
-    @Excel(name = "项目管理部审核人")
72 105
     private Long xmUserId;
73 106
 
74 107
     /** 项目管理部审核日期 */
@@ -81,7 +114,6 @@ public class CmcSettle extends BaseEntity
81 114
     private String xmComment;
82 115
 
83 116
     /** 承担部门审核人 */
84
-    @Excel(name = "承担部门审核人")
85 117
     private Long deptUserId;
86 118
 
87 119
     /** 承担部门审核日期 */
@@ -107,7 +139,6 @@ public class CmcSettle extends BaseEntity
107 139
     private String jyComment;
108 140
 
109 141
     /** 分管审核人 */
110
-    @Excel(name = "分管审核人")
111 142
     private Long managerUserId;
112 143
 
113 144
     /** 分管审核日期 */
@@ -141,7 +172,7 @@ public class CmcSettle extends BaseEntity
141 172
     private String modifyDocument;
142 173
 
143 174
     /** 最终算表 */
144
-    @Excel(name = "最终算表")
175
+    @Excel(name = "最终算表")
145 176
     private String finalDocument;
146 177
 
147 178
     public void setSettleId(String settleId) 
@@ -162,6 +193,17 @@ public class CmcSettle extends BaseEntity
162 193
     {
163 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 207
     public void setWorkloadReport(String workloadReport) 
166 208
     {
167 209
         this.workloadReport = workloadReport;
@@ -414,6 +456,86 @@ public class CmcSettle extends BaseEntity
414 456
     {
415 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 540
     @Override
419 541
     public String toString() {

+ 0
- 88
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcCarExpenseMapper.xml Прегледај датотеку

@@ -1,88 +0,0 @@
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,22 +14,40 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
14 14
         <result property="deal"    column="deal"    />
15 15
         <result property="remark"    column="remark"    />
16 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 33
     </resultMap>
18 34
 
19 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 39
     </sql>
22 40
 
23 41
     <select id="selectCmcDeviceScrapList" parameterType="CmcDeviceScrap" resultMap="CmcDeviceScrapResult">
24 42
         <include refid="selectCmcDeviceScrapVo"/>
25 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 51
         </where>
34 52
     </select>
35 53
     

+ 1
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcProjectMapper.xml Прегледај датотеку

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

+ 6
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcSafeMapper.xml Прегледај датотеку

@@ -13,6 +13,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
13 13
         <result property="outsideComment"    column="outside_comment"    />
14 14
         <result property="insideComment"    column="inside_comment"    />
15 15
         <result property="disclosureComment"    column="disclosure_comment"    />
16
+        <result property="acceptComment"    column="accept_comment"    />
16 17
         <result property="disclosureTime"    column="disclosure_time"    />
17 18
         <result property="acceptTime"    column="accept_time"    />
18 19
         <association property="accepterUser"    javaType="SysUser"         resultMap="AccepterUserResult" />
@@ -37,7 +38,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
37 38
     </resultMap>
38 39
 
39 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 43
         left join sys_user as u on u.user_id = s.disclosure_accepter
42 44
         left join sys_user as u1 on u1.user_id = s.disclosurer
43 45
         left join cmc_project as p on p.project_id = s.project_id
@@ -74,6 +76,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
74 76
             <if test="outsideComment != null">outside_comment,</if>
75 77
             <if test="insideComment != null">inside_comment,</if>
76 78
             <if test="disclosureComment != null">disclosure_comment,</if>
79
+            <if test="acceptComment != null">accept_comment,</if>
77 80
             <if test="disclosureTime != null">disclosure_time,</if>
78 81
             <if test="acceptTime != null">accept_time,</if>
79 82
          </trim>
@@ -86,6 +89,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
86 89
             <if test="outsideComment != null">#{outsideComment},</if>
87 90
             <if test="insideComment != null">#{insideComment},</if>
88 91
             <if test="disclosureComment != null">#{disclosureComment},</if>
92
+            <if test="acceptComment != null">#{acceptComment},</if>
89 93
             <if test="disclosureTime != null">#{disclosureTime},</if>
90 94
             <if test="acceptTime != null">#{acceptTime},</if>
91 95
          </trim>
@@ -101,6 +105,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
101 105
             <if test="outsideComment != null">outside_comment = #{outsideComment},</if>
102 106
             <if test="insideComment != null">inside_comment = #{insideComment},</if>
103 107
             <if test="disclosureComment != null">disclosure_comment = #{disclosureComment},</if>
108
+            <if test="acceptComment != null">accept_comment = #{acceptComment},</if>
104 109
             <if test="disclosureTime != null">disclosure_time = #{disclosureTime},</if>
105 110
             <if test="acceptTime != null">accept_time = #{acceptTime},</if>
106 111
         </trim>

+ 88
- 29
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcSettleMapper.xml Прегледај датотеку

@@ -35,48 +35,107 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
35 35
         <result property="settleDocument"    column="settle_document"    />
36 36
         <result property="modifyDocument"    column="modify_document"    />
37 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 86
     </resultMap>
39 87
 
40 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 101
     </sql>
43 102
 
44 103
     <select id="selectCmcSettleList" parameterType="CmcSettle" resultMap="CmcSettleResult">
45 104
         <include refid="selectCmcSettleVo"/>
46 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 133
         </where>
75 134
     </select>
76 135
     
77 136
     <select id="selectCmcSettleBySettleId" parameterType="String" resultMap="CmcSettleResult">
78 137
         <include refid="selectCmcSettleVo"/>
79
-        where settle_id = #{settleId}
138
+        where s.settle_id = #{settleId}
80 139
     </select>
81 140
         
82 141
     <insert id="insertCmcSettle" parameterType="CmcSettle">

+ 5
- 1
oa-back/sql/sql.sql Прегледај датотеку

@@ -1912,6 +1912,8 @@ INSERT INTO `cmc_project` VALUES ('1648881410631270447', '2024C25', '道孚抽
1912 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 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 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 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 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 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,7 +5508,6 @@ INSERT INTO `cmc_project` VALUES ('1648881508299833346', '201702046', '雅砻江
5506 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 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 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 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 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 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,6 +7921,8 @@ INSERT INTO `cmc_technical` VALUES ('1648881410631270461', '1648881410631270461'
7920 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 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 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 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 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 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,6 +8533,7 @@ create table `cmc_safe`  (
8530 8533
   `outside_comment` 	text		  	default null comment '外业要求',
8531 8534
   `inside_comment` 		text		  	default null comment '内业要求',
8532 8535
   `disclosure_comment` 	varchar(255)  	default null comment '安全交底意见',
8536
+  `accept_comment` 		varchar(255)  	default null comment '接受交底意见',
8533 8537
   `disclosure_time` 	date  			default null comment '安全交底时间',
8534 8538
   `accept_time` 		date  			default null comment '接受交底时间',
8535 8539
   primary key (`safe_id`)

+ 28
- 16
oa-ui/src/views/flowable/form/projectProcess/safeTab.vue Прегледај датотеку

@@ -28,24 +28,36 @@
28 28
           <el-input v-model="form.insideComment" placeholder="请输入信息安全管理要求" type="textarea" :autosize="{ minRows: 8 }" />
29 29
         </el-form-item>
30 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 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 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 61
       </el-form>
50 62
     </div>
51 63
   </div>

+ 64
- 34
oa-ui/src/views/flowable/form/safeForm.vue Прегледај датотеку

@@ -2,7 +2,7 @@
2 2
   <div class="app-container">
3 3
     <el-row :gutter="20">
4 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 6
           <el-form-item label="项目编号:" prop="projectId" v-if="taskForm.procDefName == '安全交底'">
7 7
             <el-input v-model="chooseProject.projectNumber" placeholder="请输入项目编号" disabled style="width: 300px" />
8 8
             <el-descriptions border v-if="isSelect" style="margin-top: 10px;" :column="1">
@@ -27,37 +27,51 @@
27 27
               </el-option>
28 28
             </el-select>
29 29
           </el-form-item>
30
-          <el-form-item label="环境管理要求" prop="environmentComment" :disabled="taskName != '安全交底'">
30
+          <el-form-item label="环境管理要求" prop="environmentComment">
31 31
             <el-input v-model="form.environmentComment" placeholder="请输入环境管理要求" type="textarea"
32
-              :autosize="{ minRows: 8 }" />
32
+              :disabled="taskName != '安全交底'" :autosize="{ minRows: 8 }" />
33 33
           </el-form-item>
34
-          <el-form-item label="安全生产与职业健康要求" prop="outsideComment" :disabled="taskName != '安全交底'">
34
+          <el-form-item label="安全生产与职业健康要求" prop="outsideComment">
35 35
             <el-input v-model="form.outsideComment" placeholder="请输入安全生产与职业健康要求" type="textarea"
36
-              :autosize="{ minRows: 8 }" />
36
+              :disabled="taskName != '安全交底'" :autosize="{ minRows: 8 }" />
37 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 41
           </el-form-item>
41
-          <el-form-item label="安全交底意见" prop="disclosureComment" :disabled="taskName != '安全交底'">
42
+          <el-form-item label="安全交底意见" prop="disclosureComment">
42 43
             <el-input v-model="form.disclosureComment" placeholder="请输入安全交底意见" type="textarea"
43
-              :autosize="{ minRows: 4 }" />
44
+              :disabled="taskName != '安全交底'" :autosize="{ minRows: 4 }" />
44 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 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 75
         </el-form>
62 76
         <div style="text-align: center;" v-if="taskName">
63 77
           <el-button type="primary" @click="submitForm">提 交</el-button>
@@ -100,6 +114,8 @@ export default {
100 114
   },
101 115
   data() {
102 116
     return {
117
+      disclosurerUser: '',
118
+      accepterUser: '',
103 119
       // 遮罩层
104 120
       loading: true,
105 121
       // 选中数组
@@ -132,8 +148,6 @@ export default {
132 148
         disclosureTime: null,
133 149
         acceptTime: null
134 150
       },
135
-      disclosureTime: undefined,
136
-      acceptTime: undefined,
137 151
       userList: [],
138 152
       chooseProject: {},
139 153
       isSelect: false,
@@ -144,18 +158,12 @@ export default {
144 158
         }
145 159
       },
146 160
       // 表单校验
147
-      rules: {
148
-        disclosureComment: [
149
-            { required: true, message: '请选择安全交底意见', trigger: 'blur' },
150
-          ],
151
-      },
161
+      rules: {},
152 162
       formTotal: 0,
153 163
       flowData: {}
154 164
     };
155 165
   },
156 166
   created() {
157
-    this.form.acceptTime = new Date();
158
-    this.form.user.nickName = this.$store.getters.name;
159 167
     this.getProjectById();
160 168
     this.getUserList();
161 169
     this.getList();
@@ -164,19 +172,39 @@ export default {
164 172
     })
165 173
   },
166 174
   mounted() {
175
+    this.initRules();
167 176
     this.initForm();
168 177
   },
169 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 195
     initForm() {
171 196
       getSafe(this.taskForm.formId).then(res => {
172 197
         if (this.isEmptyObject(res.data)) {
173 198
           this.formTotal = 0;
174 199
           this.form.disclosurer = this.$store.getters.userId;
200
+          this.disclosurerUser = this.$store.getters.name;
175 201
           this.form.disclosureTime = new Date();
176 202
         }
177 203
         else {
178 204
           this.formTotal = 1;
179 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,4 +350,6 @@ export default {
322 350
 };
323 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…
Откажи
Сачувај