优化模板,待测试
This commit is contained in:
parent
bdd33043b3
commit
fcc0390c80
|
@ -77,7 +77,7 @@ public class TemplateUtils {
|
|||
resolver.setTemplateMode("HTML");
|
||||
// 设置模板引擎使用这个自定义的模板解析器
|
||||
templateEngine.setTemplateResolver(resolver);
|
||||
}else {
|
||||
} else {
|
||||
SpringResourceTemplateResolver resolver = new SpringResourceTemplateResolver();
|
||||
resolver.setPrefix("classpath:/templates/");
|
||||
resolver.setSuffix(".html");
|
||||
|
@ -111,9 +111,10 @@ public class TemplateUtils {
|
|||
|
||||
/**
|
||||
* 生成图片
|
||||
*
|
||||
* @param html html内容
|
||||
*/
|
||||
private BufferedImage generate(String html, int width, int height){
|
||||
private BufferedImage generate(String html, int width, int height) {
|
||||
try {
|
||||
// 转换为xhtml
|
||||
String xhtml = this.htmlToXhtml(html);
|
||||
|
@ -132,13 +133,14 @@ public class TemplateUtils {
|
|||
|
||||
/**
|
||||
* 通过JsonObject进行context内容填充
|
||||
*
|
||||
* @param data jsonObject
|
||||
* @return context
|
||||
*/
|
||||
private Context getContext(JSONObject data) {
|
||||
// 创建Thymeleaf上下文
|
||||
Context context = new Context();
|
||||
if ( data != null) {
|
||||
if (data != null) {
|
||||
Set<String> keys = data.keySet();
|
||||
for (String key : keys) {
|
||||
// 判单是否有图片生成,统一后面采用的是_2base64Type
|
||||
|
@ -168,8 +170,9 @@ public class TemplateUtils {
|
|||
Map<EncodeHintType, Object> hints = new HashMap<>();
|
||||
hints.put(EncodeHintType.CHARACTER_SET, "UTF-8"); // 设置字符编码为 UTF-8
|
||||
hints.put(EncodeHintType.ERROR_CORRECTION, ErrorCorrectionLevel.L); // 设置纠错级别
|
||||
// 设置外边距为 0 以去除白边
|
||||
hints.put(EncodeHintType.MARGIN, 0);
|
||||
// 设置外边距为1
|
||||
hints.put(EncodeHintType.MARGIN, 1);
|
||||
|
||||
|
||||
if (type == 1) {
|
||||
QRCodeWriter qrCodeWriter = new QRCodeWriter();
|
||||
|
@ -182,7 +185,7 @@ public class TemplateUtils {
|
|||
|
||||
qrImage = MatrixToImageWriter.toBufferedImage(bitMatrix);
|
||||
}
|
||||
if ( qrImage == null ){
|
||||
if (qrImage == null) {
|
||||
throw new RRException("图片渲染失败");
|
||||
}
|
||||
|
||||
|
@ -212,6 +215,7 @@ public class TemplateUtils {
|
|||
|
||||
/**
|
||||
* xhtml 转换为 Document
|
||||
*
|
||||
* @param xhtml xhtml
|
||||
* @return document
|
||||
* @throws Exception e
|
||||
|
@ -232,6 +236,7 @@ public class TemplateUtils {
|
|||
|
||||
/**
|
||||
* 转换,将html转换为xhtml
|
||||
*
|
||||
* @param html html内容
|
||||
* @return xhtml
|
||||
*/
|
||||
|
@ -259,9 +264,10 @@ public class TemplateUtils {
|
|||
|
||||
/**
|
||||
* 通过document转换为图片
|
||||
*
|
||||
* @param document doc
|
||||
* @param width 图片的宽度
|
||||
* @param height 图片的高度
|
||||
* @param width 图片的宽度
|
||||
* @param height 图片的高度
|
||||
* @return bufferedImage
|
||||
*/
|
||||
private BufferedImage createImageToDocument(Document document, int width, int height) {
|
||||
|
@ -309,15 +315,16 @@ public class TemplateUtils {
|
|||
|
||||
/**
|
||||
* 校验这个模板内容是不是html字符串,而非模板名称
|
||||
*
|
||||
* @param template template
|
||||
* @return 是否是html字符串
|
||||
*/
|
||||
private boolean checkIsHtml(String template){
|
||||
private boolean checkIsHtml(String template) {
|
||||
try {
|
||||
String pattern = "<(\"[^\"]*\"|'[^']*'|[^'\">])*>";
|
||||
Pattern r = Pattern.compile(pattern);
|
||||
return r.matcher(template).find();
|
||||
}catch (Exception e) {
|
||||
} catch (Exception e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -325,6 +332,7 @@ public class TemplateUtils {
|
|||
|
||||
/**
|
||||
* 将document对象转换为字符串
|
||||
*
|
||||
* @param doc document
|
||||
* @return document转换为的字符串
|
||||
*/
|
||||
|
|
|
@ -8,7 +8,7 @@ import lombok.Getter;
|
|||
public enum ReceiptTemplateEnum {
|
||||
|
||||
/**
|
||||
* 自足挂号模板
|
||||
* 自助挂号模板
|
||||
*/
|
||||
REGISTER("1", "register", "自助挂号的"),
|
||||
|
||||
|
@ -25,9 +25,7 @@ public enum ReceiptTemplateEnum {
|
|||
/**
|
||||
* 门诊缴费的模板
|
||||
*/
|
||||
OUTPATIENT_T2("4", "department", "门诊缴费的小票-T2"),
|
||||
|
||||
;
|
||||
OUTPATIENT_T2("4", "department", "门诊缴费的小票-T2");
|
||||
|
||||
private final String code;
|
||||
|
||||
|
@ -36,7 +34,7 @@ public enum ReceiptTemplateEnum {
|
|||
private final String desc;
|
||||
|
||||
|
||||
ReceiptTemplateEnum(String code, String templateName, String desc){
|
||||
ReceiptTemplateEnum(String code, String templateName, String desc) {
|
||||
this.code = code;
|
||||
this.templateName = templateName;
|
||||
this.desc = desc;
|
||||
|
@ -44,10 +42,11 @@ public enum ReceiptTemplateEnum {
|
|||
|
||||
/**
|
||||
* 通过code获取模板名称
|
||||
*
|
||||
* @param code code/也有可能直接是一个名称
|
||||
* @return 模板的名称
|
||||
*/
|
||||
public static String getTemplateName(String code){
|
||||
public static String getTemplateName(String code) {
|
||||
if (code == null || "".equals(code)) {
|
||||
throw new RRException("模板名称不能为空");
|
||||
}
|
||||
|
@ -55,7 +54,7 @@ public enum ReceiptTemplateEnum {
|
|||
String name = null;
|
||||
for (ReceiptTemplateEnum enumEntity : ReceiptTemplateEnum.values()) {
|
||||
String enumCode = enumEntity.getCode();
|
||||
if ( enumCode.equals(code)){
|
||||
if (enumCode.equals(code)) {
|
||||
name = enumEntity.getTemplateName();
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -2,18 +2,19 @@
|
|||
<html xmlns:th="http://www.thymeleaf.org" lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>门诊缴费凭证</title>
|
||||
<title>门诊缴费凭证T2</title>
|
||||
</head>
|
||||
<body>
|
||||
<div style="font-weight: 700;">
|
||||
<div style="text-align: center;margin-top: 40px;">
|
||||
<div><span style="font-size: 28px;text-align: center;">******<span
|
||||
th:text="${hospitalName}"></span>******</span></div>
|
||||
<div style="font-size: 38px; margin-top: 10px;"><span th:text="${registeTerminalName}"></span></div>
|
||||
<div style="font-size: 38px; margin-top: 10px;"><span th:text="${registeType}"></span></div>
|
||||
</div>
|
||||
<div style="text-align: center; font-size: 32px;">
|
||||
-----------------------------------------------------------------------------
|
||||
<div style="font-size: 32px;font-weight: bold;">
|
||||
<div>
|
||||
<div style="text-align: center; font-size: 40px; "><span th:text="${hospitalName}"></span>
|
||||
</div>
|
||||
<div style="text-align: center; font-size: 28px;"><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="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;">
|
||||
|
@ -39,12 +40,12 @@
|
|||
<span style="margin-right: 25px;">费用总额:<span th:text="${totalFee}"></span></span>
|
||||
<span>个人支付:<span th:text="${personalPayment}"></span></span>
|
||||
</div>
|
||||
<div style="margin-top: 10px;word-break: break-all;"><span>实收金额:</span><span th:text="${actualReceiptAmount}"></span></div>
|
||||
<div style="margin-top: 10px;word-break: break-all;">
|
||||
<span>实收金额:</span><span
|
||||
th:text="${actualReceiptAmount}"></span></div>
|
||||
<div style="margin-top: 10px;"><span>实收金额:</span><span th:text="${actualReceiptAmountChinese}"></span></div>
|
||||
</div>
|
||||
<div style="text-align: center; font-size: 32px;">
|
||||
-----------------------------------------------------------------------------
|
||||
</div>
|
||||
<div style="border-bottom: 1px dashed #000;margin: 3px 0;"></div>
|
||||
<div style="margin: 10px 20px">
|
||||
<table style="width: 100%; table-layout: fixed; border-collapse: collapse;">
|
||||
<tr style="font-size: 35px;">
|
||||
|
@ -61,17 +62,11 @@
|
|||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div style="text-align: center; font-weight: 700; font-size: 32px;">
|
||||
-----------------------------------------------------------------------------
|
||||
</div>
|
||||
<div style="margin-left: 20px; font-weight: 700; font-size: 35px;">
|
||||
<div>终端编号:<span th:text="${terminalNumber}"></span></div>
|
||||
<div>打印时间:<span th:text="${printTime}"></span></div>
|
||||
</div>
|
||||
<div style="margin-left: 20px; font-size: 35px; font-weight: 700; margin-top: 20px;">
|
||||
<span style="margin-top: 20px;">温馨提示</span><br>
|
||||
<span>1.请取走全部凭条、并妥善保管</span><br>
|
||||
<span>2.如果对缴费结算存在疑问,请到人工窗口咨询</span>
|
||||
<div style="border-bottom: 1px dashed #000;margin-bottom: 3px;"></div>
|
||||
<div style="margin-left: 35px;font-size: 36px;">终端编号:<span th:text="${terminalNumber}"></span></div>
|
||||
<div style="margin-left: 35px;font-size: 36px;">打印时间:<span th:text="${printTime}"></span></div>
|
||||
<div style="margin-left: 35px;font-size: 36px;margin-top: 10px;">
|
||||
<span>温馨提示:请取走缴费凭证,并妥善保管。<br/>如果对缴费存在疑问,请到人工窗口咨询!</span>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
|
|
@ -1,188 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html xmlns:th="http://www.thymeleaf.org" lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>门诊缴费凭证</title>
|
||||
<style>
|
||||
.bold-text {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.text-35 {
|
||||
font-size: 35px;
|
||||
}
|
||||
|
||||
.text-30 {
|
||||
font-size: 30px;
|
||||
}
|
||||
|
||||
.center-text {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.margin-top-10 {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.margin-top-40 {
|
||||
margin-top: 40px;
|
||||
}
|
||||
|
||||
.header-title {
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
.header-terminal {
|
||||
font-size: 38px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.header-receipt {
|
||||
font-size: 38px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.divider {
|
||||
text-align: center;
|
||||
font-weight: 700;
|
||||
font-size: 32px;
|
||||
}
|
||||
|
||||
.patient-info {
|
||||
font-size: 35px;
|
||||
margin: 10px 20px;
|
||||
}
|
||||
|
||||
.patient-info .info-item {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.patient-info .info-row {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.payment-info {
|
||||
font-size: 35px;
|
||||
margin: 10px 20px;
|
||||
}
|
||||
|
||||
.payment-info .info-item {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.payment-info .info-row {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.table-container {
|
||||
margin: 10px 20px;
|
||||
}
|
||||
|
||||
.table-container table {
|
||||
width: 100%;
|
||||
table-layout: fixed;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
|
||||
.table-container .first-th {
|
||||
width: 300px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.table-container .df-th {
|
||||
width: calc(25% - 5px);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.table-container .first-td {
|
||||
text-align: left;
|
||||
width: 300px;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.table-container .df-td {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.terminal-info {
|
||||
margin-left: 20px;
|
||||
font-weight: 700;
|
||||
font-size: 35px;
|
||||
}
|
||||
|
||||
.tips {
|
||||
margin-left: 20px;
|
||||
font-size: 35px;
|
||||
font-weight: 700;
|
||||
margin-top: 20px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="bold-text">
|
||||
<div class="center-text margin-top-40">
|
||||
<div><span class="header-title">******<span th:text="${hospitalName}"></span>******</span></div>
|
||||
<div class="header-terminal"><span th:text="${registeTerminalName}"></span></div>
|
||||
<div class="header-receipt"><span th:text="${registeType}"></span></div>
|
||||
</div>
|
||||
<div class="divider">
|
||||
-----------------------------------------------------------------------------
|
||||
</div>
|
||||
<div class="patient-info">
|
||||
<div class="info-row">
|
||||
<div class="info-item">姓名:<span th:text="${name}"></span></div>
|
||||
<div class="info-item">性别:<span th:text="${gender}"></span></div>
|
||||
<div class="info-item">年龄:<span th:text="${age}"></span></div>
|
||||
</div>
|
||||
<div class="info-row margin-top-10">
|
||||
<div class="info-item" th:if="${outpatientNumber}">门诊号:<span th:text="${outpatientNumber}"></span></div>
|
||||
<div class="info-item" th:if="${doctor}">就诊医生:<span th:text="${doctor}"></span></div>
|
||||
</div>
|
||||
<div class="margin-top-10" th:if="${department}">就诊科室:<span th:text="${department}"></span></div>
|
||||
</div>
|
||||
<div class="divider">
|
||||
-----------------------------------------------------------------------------
|
||||
</div>
|
||||
<div class="payment-info">
|
||||
<div class="info-row">
|
||||
<div class="info-item">费用总额:<span th:text="${totalFee}"></span></div>
|
||||
<div class="info-item">个人支付:<span th:text="${personalPayment}"></span></div>
|
||||
</div>
|
||||
<div class="margin-top-10">实收金额:<span th:text="${actualReceiptAmount}"></span></div>
|
||||
<div class="margin-top-10">实收金额:<span th:text="${actualReceiptAmountChinese}"></span></div>
|
||||
</div>
|
||||
<div class="divider">
|
||||
-----------------------------------------------------------------------------
|
||||
</div>
|
||||
<div class="table-container">
|
||||
<table>
|
||||
<tr class="text-35">
|
||||
<th class="first-th">项目名称</th>
|
||||
<th class="df-th">数量</th>
|
||||
<th class="df-th">单价</th>
|
||||
<th class="df-th">小计</th>
|
||||
</tr>
|
||||
<tr class="text-30" th:each="item : ${items}">
|
||||
<td class="first-td" th:text="${item.name}"></td>
|
||||
<td class="df-td" th:text="${item.quantity}"></td>
|
||||
<td class="df-td" th:text="${item.unitPrice}"></td>
|
||||
<td class="df-td" th:text="${item.subtotal}"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="divider">
|
||||
-----------------------------------------------------------------------------
|
||||
</div>
|
||||
<div class="terminal-info">
|
||||
<div>终端编号:<span th:text="${terminalNumber}"></span></div>
|
||||
<div>打印时间:<span th:text="${printTime}"></span></div>
|
||||
</div>
|
||||
<div class="tips">
|
||||
<span>温馨提示</span><br>
|
||||
<span>1.请取走全部凭条、并妥善保管</span><br>
|
||||
<span>2.如果对缴费结算存在疑问,请到人工窗口咨询</span>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -4,15 +4,18 @@
|
|||
<title>挂号单</title>
|
||||
</head>
|
||||
<body>
|
||||
<div style="font-size: 32px; margin-top: 20px;">
|
||||
<div style="">
|
||||
<div style="text-align: center; font-size: 40px; font-weight: 700;"><span th:text="${hospitalName}"></span></div>
|
||||
<div style="text-align: center; font-weight: 700; font-size: 28px;">****<span th:text="${registeTerminalName}"></span></span>****</div>
|
||||
<div style="text-align: center; font-weight: 700; margin-bottom: -10px; margin-top: -10px;">-----------------------------------------------------------------------------</div>
|
||||
<div style="text-align: center; font-size: 40px; font-weight: 700;"><span th:text="${registeType}"></span></div>
|
||||
<div style="text-align: center; font-weight: 700; margin-top: -15px;">-----------------------------------------------------------------------------</div>
|
||||
<div style="font-size: 32px;font-weight: bold;">
|
||||
<div>
|
||||
<div style="text-align: center; font-size: 40px; "><span th:text="${hospitalName}"></span>
|
||||
</div>
|
||||
<div style="text-align: center; font-size: 28px;"><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="border-bottom: 1px dashed #000;margin: 3px 0;"></div>
|
||||
</div>
|
||||
<div style="font-weight: 700; font-size: 37px;">
|
||||
<div style=" font-size: 37px;">
|
||||
<div style="margin-left: 35px;">姓  名:<span th:text="${name}"></span></div>
|
||||
<div style="margin-left: 35px;">性  别:<span th:text="${gender}"></span></div>
|
||||
<div style="margin-left: 35px;">年  龄:<span th:text="${age}"></span></div>
|
||||
|
@ -21,13 +24,14 @@
|
|||
<div style="margin-left: 35px;">入院科室:<span th:text="${department}"></span></div>
|
||||
<div style="margin-left: 35px;">总 费 用:<span th:text="${totalFee}"></span> 元</div>
|
||||
<div style="margin-left: 35px;">支付方式:<span th:text="${paymentMethod}"></span></div>
|
||||
<div style="margin-left: 35px;">交易流水:<span style="font-size: 35px;" th:text="${transactionNumber}"></span></div>
|
||||
<div style="margin-left: 35px;">交易流水:<span style="font-size: 35px;" th:text="${transactionNumber}"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div style="font-weight: 700; margin-top: 8px;">
|
||||
<!-- <div style="margin-top: -40px; text-align: center; ">-----------------------------------------------------------------------------</div>-->
|
||||
<div style="font-size: 36px;margin-left: 35px; ">备注:缴费凭证,请妥善保管!</div>
|
||||
<div style="font-size: 36px;margin-left: 35px;">终 端 号:<span th:text="${terminalNumber}"></span></div>
|
||||
<div style="font-size: 36px;margin-left: 35px;">打印时间:<span th:text="${printTime}"></span></div>
|
||||
<div style="border-bottom: 1px dashed #000;margin-bottom: 3px;"></div>
|
||||
<div style="margin-left: 35px;font-size: 36px;">终端编号:<span th:text="${terminalNumber}"></span></div>
|
||||
<div style="margin-left: 35px;font-size: 36px;">打印时间:<span th:text="${printTime}"></span></div>
|
||||
<div style="margin-left: 35px;font-size: 36px;margin-top: 10px;">
|
||||
<span>温馨提示:请取走缴费凭证,并妥善保管。<br/>如果对缴费存在疑问,请到人工窗口咨询!</span>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
|
|
@ -1,16 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html xmlns:th="http://www.thymeleaf.org">
|
||||
<head>
|
||||
<title>门诊缴费</title>
|
||||
<title>门诊缴费凭证T1</title>
|
||||
</head>
|
||||
<body>
|
||||
<div style="font-size: 32px; margin-top: 20px;">
|
||||
<div style="">
|
||||
<div style="text-align: center; font-size: 40px; font-weight: 700;"><span th:text="${hospitalName}"></span></div>
|
||||
<div style="text-align: center; font-weight: 700; font-size: 28px;">****<span th:text="${registeTerminalName}"></span></span>****</div>
|
||||
<div style="text-align: center; font-weight: 700; margin-bottom: -10px; margin-top: -10px;">-----------------------------------------------------------------------------</div>
|
||||
<div style="text-align: center; font-size: 40px; font-weight: 700;"><span th:text="${registeType}"></span></div>
|
||||
<div style="text-align: center; font-weight: 700; margin-top: -15px;">-----------------------------------------------------------------------------</div>
|
||||
<div style="font-size: 32px;font-weight: bold;">
|
||||
<div>
|
||||
<div style="text-align: center; font-size: 40px; "><span th:text="${hospitalName}"></span>
|
||||
</div>
|
||||
<div style="text-align: center; font-size: 28px;"><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="border-bottom: 1px dashed #000;margin: 3px 0;"></div>
|
||||
</div>
|
||||
<div style="font-weight: 700; font-size: 37px;">
|
||||
<div style="margin-left: 35px;">姓  名:<span th:text="${name}"></span></div>
|
||||
|
@ -19,13 +22,14 @@
|
|||
<div style="margin-left: 35px;">出生日期:<span th:text="${birthDate}"></span></div>
|
||||
<div style="margin-left: 35px;">总 费 用:<span th:text="${totalFee}"></span> 元</div>
|
||||
<div style="margin-left: 35px;">支付方式:<span th:text="${paymentMethod}"></span></div>
|
||||
<div style="margin-left: 35px;">交易流水:<span style="font-size: 35px;" th:text="${transactionNumber}"></span></div>
|
||||
<div style="margin-left: 35px;">交易流水:<span style="font-size: 35px;" th:text="${transactionNumber}"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div style="font-weight: 700; margin-top: 8px;">
|
||||
<!-- <div style="margin-top: -40px; text-align: center; ">-----------------------------------------------------------------------------</div>-->
|
||||
<div style="font-size: 36px;margin-left: 35px; ">备注:缴费凭证,请妥善保管!</div>
|
||||
<div style="font-size: 36px;margin-left: 35px;">终 端 号:<span th:text="${terminalNumber}"></span></div>
|
||||
<div style="font-size: 36px;margin-left: 35px;">打印时间:<span th:text="${printTime}"></span></div>
|
||||
<div style="border-bottom: 1px dashed #000;margin-bottom: 3px;"></div>
|
||||
<div style="margin-left: 35px;font-size: 36px;">终端编号:<span th:text="${terminalNumber}"></span></div>
|
||||
<div style="margin-left: 35px;font-size: 36px;">打印时间:<span th:text="${printTime}"></span></div>
|
||||
<div style="margin-left: 35px;font-size: 36px;margin-top: 10px;">
|
||||
<span>温馨提示:请取走缴费凭证,并妥善保管。<br/>如果对缴费存在疑问,请到人工窗口咨询!</span>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
|
|
@ -3,38 +3,23 @@
|
|||
<head>
|
||||
<title>挂号单</title>
|
||||
</head>
|
||||
<style>
|
||||
.x-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.x-start {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.x-end {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.x-bold {
|
||||
font-weight: 700;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<div style="font-size: 32px; margin-top: 20px;">
|
||||
<div style="">
|
||||
<div style="text-align: center; font-size: 40px; font-weight: 700;"><span th:text="${hospitalName}"></span></div>
|
||||
<div style="text-align: center; font-weight: 700; font-size: 28px;">****<span th:text="${registeTerminalName}"></span></span>****</div>
|
||||
<div style="text-align: center; font-weight: 700; margin-bottom: -10px; margin-top: -10px;">-----------------------------------------------------------------------------</div>
|
||||
<div style="text-align: center; font-size: 40px; font-weight: 700;"><span th:text="${registeType}"></span></div>
|
||||
<div style="text-align: center; font-weight: 700; margin-top: -15px;">-----------------------------------------------------------------------------</div>
|
||||
<div style="font-size: 32px;font-weight: bold;">
|
||||
<div>
|
||||
<div style="text-align: center; font-size: 40px; "><span th:text="${hospitalName}"></span>
|
||||
</div>
|
||||
<div style="text-align: center; font-size: 28px;"><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="border-bottom: 1px dashed #000;margin: 3px 0;"></div>
|
||||
</div>
|
||||
<div style="font-weight: 700; font-size: 37px;">
|
||||
<div style=" font-size: 37px;">
|
||||
<div style="margin-left: 35px;">姓  名:<span th:text="${name}"></span></div>
|
||||
<div style="margin-left: 35px;">性  别:<span th:text="${gender}"></span></div>
|
||||
<div style="margin-left: 35px;">年  龄:<span th:text="${age}"></span></div>
|
||||
<div style="margin-left: 35px;">出生日期:<span th:text="${birthDate}"></span></div>
|
||||
<!-- <div style="margin-left: 35px;">卡  号:<span th:text="${cardNumber}"></span></div>-->
|
||||
<div style="margin-left: 35px;">门 诊 号:<span th:text="${outpatientNumber}"></span></div>
|
||||
<div style="margin-left: 35px;">就诊科室:<span th:text="${department}"></span></div>
|
||||
<div style="margin-left: 35px;">出诊级别:<span th:text="${visitLevel}"></span></div>
|
||||
|
@ -43,20 +28,18 @@
|
|||
<div style="margin-left: 35px;">挂号日期:<span th:text="${registerDate}"></span></div>
|
||||
<div style="margin-left: 35px;">总 费 用:<span th:text="${totalFee}"></span> 元</div>
|
||||
<div style="margin-left: 35px;">支付方式:<span th:text="${paymentMethod}"></span></div>
|
||||
<!-- <div style="margin-left: 35px;">订 单 号:<span style="font-size: 36px;" th:text="${orderNumber}"></span></div>-->
|
||||
<div style="margin-left: 35px;">交易流水:<span style="font-size: 35px;"
|
||||
th:text="${transactionNumber}"></span></div>
|
||||
<div style="width: 100%; text-align: center; margin-bottom: -20px;">
|
||||
<img style="display: inline-block; "
|
||||
th:src="${qrCodeBase64}"
|
||||
alt="QR Code" />
|
||||
<div style="width:100%;text-align: center;">
|
||||
<img th:src="${qrCodeBase64}"
|
||||
alt="#"/>
|
||||
</div>
|
||||
</div>
|
||||
<div style="font-weight: 700; margin-top: 8px;">
|
||||
<div style="margin-top: -40px; text-align: center; ">-----------------------------------------------------------------------------</div>
|
||||
<div style="font-size: 36px;margin-left: 35px; ">备注:凭此条退费,请妥善保管!</div>
|
||||
<div style="font-size: 36px;margin-left: 35px;">终 端 号:<span th:text="${terminalNumber}"></span></div>
|
||||
<div style="font-size: 36px;margin-left: 35px;">打印时间:<span th:text="${printTime}"></span></div>
|
||||
<div style="border-bottom: 1px dashed #000;margin-bottom: 3px;"></div>
|
||||
<div style="margin-left: 35px;font-size: 36px;">终端编号:<span th:text="${terminalNumber}"></span></div>
|
||||
<div style="margin-left: 35px;font-size: 36px;">打印时间:<span th:text="${printTime}"></span></div>
|
||||
<div style="margin-left: 35px;font-size: 36px;margin-top: 10px;">
|
||||
<span>温馨提示:请取走挂号凭证,并妥善保管。<br/>如果对缴费存在疑问,请到人工窗口咨询!</span>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
|
Loading…
Reference in New Issue