feat(ticket): 添加主要负责人字段到工单PDF导出功能
- 在PDF模板中新增主要负责人显示字段 - 实现主要负责人从处理人列表中提取第一个的功能 - 调整表格列宽布局以适应新字段 - 优化工单PDF导出的数据展示结构
This commit is contained in:
parent
142b47f91f
commit
392956408e
|
|
@ -538,7 +538,6 @@ public class TicketController extends ControllerBase {
|
||||||
@GetMapping("exportPdf")
|
@GetMapping("exportPdf")
|
||||||
@ApiMark(moduleName = "工单管理", apiName = "导出工单为pdf")
|
@ApiMark(moduleName = "工单管理", apiName = "导出工单为pdf")
|
||||||
public void exportPdf(HttpServletResponse response, @Valid @RequestParam @NotNull(message = "工单编号不能为空") Integer id) {
|
public void exportPdf(HttpServletResponse response, @Valid @RequestParam @NotNull(message = "工单编号不能为空") Integer id) {
|
||||||
|
|
||||||
Ticket ticket = ticketService.getById(id);
|
Ticket ticket = ticketService.getById(id);
|
||||||
VUtils.trueThrowBusinessError(Objects.isNull(ticket)).throwMessage("工单不存在");
|
VUtils.trueThrowBusinessError(Objects.isNull(ticket)).throwMessage("工单不存在");
|
||||||
DeviceInfoVO device = deviceService.getByDeviceNo(ticket.getDeviceNo());
|
DeviceInfoVO device = deviceService.getByDeviceNo(ticket.getDeviceNo());
|
||||||
|
|
|
||||||
|
|
@ -63,8 +63,11 @@
|
||||||
<td colspan="2" th:text="${ticket.useTime}+'小时'"></td>
|
<td colspan="2" th:text="${ticket.useTime}+'小时'"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td class="desc1">主要负责人</td>
|
||||||
|
<td colspan="2"
|
||||||
|
th:text="${#strings.arraySplit(ticket.handleUserName, ',').length > 0 ? #strings.arraySplit(ticket.handleUserName, ',')[0] : ''}"></td>
|
||||||
<td class="desc1">处理人</td>
|
<td class="desc1">处理人</td>
|
||||||
<td colspan="11" th:text="${ticket.handleUserName}"></td>
|
<td colspan="8" th:text="${ticket.handleUserName}"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="desc1">问题描述</td>
|
<td class="desc1">问题描述</td>
|
||||||
|
|
|
||||||
|
|
@ -67,8 +67,11 @@
|
||||||
<td colspan="2" th:text="${base.v1}"></td>
|
<td colspan="2" th:text="${base.v1}"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td class="desc1">主要负责人</td>
|
||||||
|
<td colspan="2"
|
||||||
|
th:text="${#strings.arraySplit(ticket.handleUserName, ',').length > 0 ? #strings.arraySplit(ticket.handleUserName, ',')[0] : ''}"></td>
|
||||||
<td class="desc1">处理人</td>
|
<td class="desc1">处理人</td>
|
||||||
<td colspan="11" th:text="${ticket.handleUserName}"></td>
|
<td colspan="8" th:text="${ticket.handleUserName}"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="desc1">问题描述</td>
|
<td class="desc1">问题描述</td>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue