Merge remote-tracking branch 'origin/1.0' into 1.0

# Conflicts:
#	src/main/resources/templates/department.html
This commit is contained in:
余文财 2025-03-26 13:22:25 +08:00
commit 6755206d2e
3 changed files with 40 additions and 53 deletions

14
pom.xml
View File

@ -191,13 +191,13 @@
</manifestEntries> </manifestEntries>
</archive> </archive>
<!-- 打包时从jar包里排除资源文件 --> <!-- 打包时从jar包里排除资源文件 -->
<excludes> <!-- <excludes>-->
<exclude>*.yml</exclude> <!-- <exclude>*.yml</exclude>-->
<exclude>*.xml</exclude> <!-- <exclude>*.xml</exclude>-->
<exclude>templates/**</exclude> <!-- <exclude>templates/**</exclude>-->
<exclude>win32-x86-64/**</exclude> <!-- <exclude>win32-x86-64/**</exclude>-->
<exclude>win32-x86/**</exclude> <!-- <exclude>win32-x86/**</exclude>-->
</excludes> <!-- </excludes>-->
<!-- 指定项目打成jar包输出位置 --> <!-- 指定项目打成jar包输出位置 -->
<outputDirectory>${project.build.directory}/output</outputDirectory> <outputDirectory>${project.build.directory}/output</outputDirectory>
</configuration> </configuration>

View File

@ -136,8 +136,8 @@ public class RegisterServiceImpl implements PrintService {
int pieceHeight = Math.min(MAX_HEIGHT, height - startY); int pieceHeight = Math.min(MAX_HEIGHT, height - startY);
// 创建一个新的 BufferedImage 对象用于存储切割的部分 // 创建一个新的 BufferedImage 对象用于存储切割的部分
BufferedImage piece = new BufferedImage(FIXED_WIDTH, pieceHeight, BufferedImage.TYPE_INT_RGB); BufferedImage piece = new BufferedImage(width, pieceHeight, BufferedImage.TYPE_INT_RGB);
piece.getGraphics().drawImage(originalImage, 0, 0, FIXED_WIDTH, pieceHeight, 0, startY, FIXED_WIDTH, startY + pieceHeight, null); piece.getGraphics().drawImage(originalImage, 0, 0, width, pieceHeight, 0, startY, width, startY + pieceHeight, null);
// 保存切割的图片块 // 保存切割的图片块
File outputFile = new File(saveDir + "/output_" + (i + 1) + ".jpg"); File outputFile = new File(saveDir + "/output_" + (i + 1) + ".jpg");

View File

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="en"> <html xmlns:th="http://www.thymeleaf.org">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>门诊缴费凭证</title> <title>门诊缴费凭证</title>
@ -7,58 +7,45 @@
<body> <body>
<div style="font-weight: 700;"> <div style="font-weight: 700;">
<div style="text-align: center;margin-top: 40px;"> <div style="text-align: center;margin-top: 40px;">
<div><span style="font-size: 28px;">******<span th:text="${hospitalName}"></span>******</span></div> <div><span style="font-size: 28px;">******<span th:text="${registeTerminalName}"></span>******</span></div>
<div style="font-size: 38px; margin-top: 20px;"><span th:text="${registeTerminalName}"></span></div> <div style="font-size: 38px; margin-top: 20px;"><span th:text="${hospitalName}"></span></div>
<div style="font-size: 38px; margin-top: 10px;"><span th:text="${registeType}"></span></div> <div style="font-size: 38px; margin-top: 10px;"><span th:text="${registeType}"></span></div>
</div> </div>
<div style="text-align: center; font-size: 32px;"> <div style="text-align: center; font-weight: 700; font-size: 32px;">-----------------------------------------------------------------------------</div>
----------------------------------------------------------------------------- <div style="margin-left: 20px; font-size: 35px; margin-bottom: 10px; display: flex">
</div> <div style="flex: 1; margin-top: 10px; ">
<div style="font-size: 35px; margin: 10px 20px"> 姓名:<span style="margin-right: 25px;" th:text="${name}"></span><br>
<div style="display: flex;"> 性别:<span style="margin-right: 25px;" th:text="${gender}"></span>
<div style="flex: 1;">姓名:<span th:text="${name}"></span></div> 年龄:<span style="margin-right: 25px;" th:text="${age}"></span>
<div style="flex: 1;">性别:<span th:text="${gender}"></span></div>
<div style="flex: 1;">年龄:<span th:text="${age}"></span></div>
</div> </div>
<div style="display: flex;margin-top: 10px;"> <div th:if="${outpatientNumber}" style="flex: 1; margin-top: 10px; margin-right: 15px;">门诊号:<span th:text="${outpatientNumber}"></span></div>
<div style="flex: 1;" th:if="${outpatientNumber}">门诊号:<span th:text="${outpatientNumber}"></span></div> <div th:if="${doctor}" style="flex: 1; margin-top: 10px; margin-right: 15px;">就诊医生:<span th:text="${doctor}"></span></div>
<div style="flex: 1;" th:if="${doctor}">就诊医生:<span th:text="${doctor}"></span></div> <div th:if="${department}" style="flex: 1; margin-top: 10px;">就诊科室:<span th:text="${department}"></span></div>
</div>
<div style="margin-top: 10px;" th:if="${department}">就诊科室:<span th:text="${department}"></span></div>
</div> </div>
<div style="text-align: center; font-size: 32px;"> <div style="text-align: center; font-weight: 700; font-size: 32px;">-----------------------------------------------------------------------------</div>
----------------------------------------------------------------------------- <div style="margin-left: 20px; font-size: 35px; margin-bottom: 20px; ">
<div style="margin-top: 20px; ">费用总额:<span style="margin-right: 20px;" th:text="${totalFee}"></span> 个人支付:<span th:text="${personalPayment}"></span></div>
<div style="margin-top: 10px;">实收金额:<span style="font-weight: 700;" th:text="${actualReceiptAmount}"></span></div>
<div style="margin-top: 10px;">实收金额:<span style="font-weight: 700;" th:text="${actualReceiptAmountChinese}"></span></div>
</div> </div>
<div style="font-size: 35px; margin: 10px 20px"> <div style="text-align: center; font-weight: 700; font-size: 32px;">-----------------------------------------------------------------------------</div>
<div style="display: flex;"> <div style="margin-left: 20px; margin-top: 10px; ">
<div style="flex: 1;">费用总额:<span th:text="${totalFee}"></span></div> <table border="0" style="font-size: 30px;">
<div style="flex: 1;">个人支付:<span th:text="${personalPayment}"></span></div> <tr style="font-size: 34px; ">
</div> <th >项目名称</th>
<div style="margin-top: 10px;">实收金额:<span th:text="${actualReceiptAmount}"></span></div> <th >数量</th>
<div style="margin-top: 10px;">实收金额:<span th:text="${actualReceiptAmountChinese}"></span></div> <th >单价</th>
</div> <th >小计</th>
<div style="text-align: center; font-size: 32px;">
-----------------------------------------------------------------------------
</div>
<div style="margin: 10px 20px">
<table style="width: 100%; table-layout: fixed; border-collapse: collapse;">
<tr style="font-size: 35px;">
<th style="width: 300px;text-align: left;">项目名称</th>
<th style="width: calc(25% - 5px);text-align: center;">数量</th>
<th style="width: calc(25% - 5px);text-align: center;">单价</th>
<th style="width: calc(25% - 5px);text-align: center;">小计</th>
</tr> </tr>
<tr style="font-size: 30px;" th:each="item : ${items}"> <tr th:each="item : ${items}" style="height: 50px;">
<td style="text-align: left;width: 300px;word-break: break-all;" th:text="${item.name}"></td> <td style=" width: 310px; word-break: break-all; margin-right: 20px;" th:text="${item.name}"></td>
<td style="text-align: center;" th:text="${item.quantity}"></td> <td style="margin-left: 5px;" th:text="${item.quantity}"></td>
<td style="text-align: center;" th:text="${item.unitPrice}"></td> <td th:text="${item.unitPrice}"></td>
<td style="text-align: center;" th:text="${item.subtotal}"></td> <td th:text="${item.subtotal}"></td>
</tr> </tr>
</table> </table>
</div> </div>
<div style="text-align: center; font-weight: 700; font-size: 32px;"> <div style="text-align: center; font-weight: 700; font-size: 32px;">-----------------------------------------------------------------------------</div>
-----------------------------------------------------------------------------
</div>
<div style="margin-left: 20px; font-weight: 700; font-size: 35px;"> <div style="margin-left: 20px; font-weight: 700; font-size: 35px;">
<div>终端编号:<span th:text="${terminalNumber}"></span></div> <div>终端编号:<span th:text="${terminalNumber}"></span></div>
<div>打印时间:<span th:text="${printTime}"></span></div> <div>打印时间:<span th:text="${printTime}"></span></div>