小票门诊缴费模板优化

This commit is contained in:
余文财 2025-06-19 18:26:40 +08:00
parent 3bc83f07db
commit 25597dcfc9
2 changed files with 29 additions and 25 deletions

View File

@ -74,8 +74,8 @@ public class RegisterServiceImpl implements PrintService {
int dinyHeight = 0;
if (templateName.equals("department")) {
// 由于是使用的门诊小票-T2那么默认的高度为1000强行设置通过动态修改渲染的图片的高度
height = 1000;
// 由于是使用的门诊小票-T2那么默认的高度为1100强行设置通过动态修改渲染的图片的高度
height = 1100;
// 单行最大长度为10
int singleLineMaxLength = 10;

View File

@ -7,50 +7,54 @@
<body>
<div style="font-size: 32px;font-weight: bold;">
<div>
<div style="text-align: center; font-size: 40px; "><span th:text="${hospitalName}"></span>
<div style="text-align: center; font-size: 40px;font-weight: bold;"><span th:text="${hospitalName}"></span>
</div>
<div style="text-align: center; font-size: 28px;"><span>****<span
<div style="text-align: center; font-size: 28px;font-weight: bold;"><span>****<span
th:text="${registeTerminalName}"></span>****</span>
</div>
<div style="border-bottom: 1px dashed #000;margin: 3px 0;"></div>
<div style="text-align: center; font-size: 40px; "><span th:text="${registeType}"></span></div>
<div style="text-align: center; font-size: 40px;font-weight: bold;"><span th:text="${registeType}"></span></div>
<div style="border-bottom: 1px dashed #000;margin: 3px 0;"></div>
</div>
<div style="font-size: 35px;word-break: break-all;margin: 10px 20px;">
<div style="display: flex;">
<div style="font-size: 35px;margin: 10px 20px;">
<div style="margin-top: 10px;word-break: break-all;" th:if="${outpatientNumber}">门诊号:<span
th:text="${outpatientNumber}"></span>
</div>
<div style="margin-top: 10px;word-break: break-all;">
<span style="margin-right: 25px;">姓名:<span th:text="${name}"></span></span>
<span style="margin-right: 25px;">性别:<span th:text="${gender}"></span></span>
<span>年龄:<span th:text="${age}"></span></span>
</div>
<div style="word-break: break-all;margin-top: 10px;">
<span style="margin-right: 25px;" th:if="${outpatientNumber}">
门诊号:<span th:text="${outpatientNumber}"></span></span>
<span th:if="${doctor}">
就诊医生:<span th:text="${doctor}"></span>
</span>
<div style="margin-top: 10px;word-break: break-all;" th:if="${doctor}">
就诊医生:<span th:text="${doctor}"></span>
</div>
<div style="margin-top: 10px;" th:if="${department}">就诊科室:<span th:text="${department}"></span>
<div style="margin-top: 10px;word-break: break-all;" th:if="${department}">就诊科室:<span
th:text="${department}"></span>
</div>
</div>
<div style="border-bottom: 1px dashed #000;margin: 3px 0;"></div>
<div style="font-size: 35px; margin: 10px 20px">
<div style="margin-top: 10px;word-break: break-all;">费用总额:<span th:text="${totalFee}"></span></div>
<div style="margin-top: 10px;word-break: break-all;">个人自费:<span th:text="${personalPayment}"></span></div>
<div style="text-align: center; font-size: 40px;font-weight: bold;"><span>费用信息</span></div>
<div style="margin-top: 10px;">
<div style="float: left;width: 190px;">金额合计:</div>
<div style="margin-left: 190px;word-break: break-all;">
<span><span th:text="${totalFee}"></span>(小写金额)</span><br/>
<span><span th:text="${actualReceiptAmountChinese}"></span>(大写金额)</span>
</div>
</div>
<div th:if="${chs==1}">
<div style="margin-top: 10px;word-break: break-all;">医保统筹基金:<span th:text="${ybtcjj}"></span></div>
<div style="margin-top: 10px;word-break: break-all;">个人医保账户:<span th:text="${ybgrzh}"></span></div>
<div style="margin-top: 10px;word-break: break-all;">医院优惠金额:<span th:text="${yyyh}"></span></div>
<div style="margin-top: 10px;word-break: break-all;">医院账户支付:<span th:text="${yyzh}"></span></div>
<div style="margin-top: 10px;word-break: break-all;">医保统筹支付<span th:text="${ybtcjj}"></span></div>
<div style="margin-top: 10px;word-break: break-all;">个人医保支付<span th:text="${ybgrzh}"></span></div>
<div style="margin-top: 10px;word-break: break-all;">医院账户支付:<span th:text="${yyzh}"></span></div>
<div style="margin-top: 10px;word-break: break-all;">医院优惠金额:<span th:text="${yyyh}"></span></div>
</div>
<div style="margin-top: 10px;word-break: break-all;">实收金额:<span th:text="${actualReceiptAmount}"></span>
</div>
<div style="margin-top: 10px;word-break: break-all;">实收金额:<span
th:text="${actualReceiptAmountChinese}"></span></div>
<div style="margin-top: 10px;word-break: break-all;">个人自费:<span th:text="${personalPayment}"></span></div>
</div>
<div style="border-bottom: 1px dashed #000;margin: 3px 0;"></div>
<div style="margin: 10px 20px">
<div style="text-align: center; font-size: 40px;font-weight: bold;"><span>费用明细</span></div>
<table style="width: 100%; table-layout: fixed; border-collapse: collapse;">
<tr style="font-size: 35px;">
<tr style="font-size: 32px;">
<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>