From 2238acad7692e9f5358699c493209107e4c0f5e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=99=E6=96=87=E8=B4=A2?= Date: Tue, 20 May 2025 10:40:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../enums/ReceiptTemplateEnum.java | 13 +- src/main/resources/templates/department.html | 45 +++-- src/main/resources/templates/department2.html | 188 ------------------ .../resources/templates/hospitalPayment.html | 37 ++-- .../templates/outpatientPayment.html | 37 ++-- src/main/resources/templates/register.html | 60 +++--- 6 files changed, 104 insertions(+), 276 deletions(-) delete mode 100644 src/main/resources/templates/department2.html diff --git a/src/main/java/com/dpkj/modules/autoReplyPrint/enums/ReceiptTemplateEnum.java b/src/main/java/com/dpkj/modules/autoReplyPrint/enums/ReceiptTemplateEnum.java index 1e93e26..5c8b9dc 100644 --- a/src/main/java/com/dpkj/modules/autoReplyPrint/enums/ReceiptTemplateEnum.java +++ b/src/main/java/com/dpkj/modules/autoReplyPrint/enums/ReceiptTemplateEnum.java @@ -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; } diff --git a/src/main/resources/templates/department.html b/src/main/resources/templates/department.html index 38ce560..953cf7d 100644 --- a/src/main/resources/templates/department.html +++ b/src/main/resources/templates/department.html @@ -5,17 +5,23 @@ 门诊缴费凭证 -
-
-
************
-
-
+
+
+
+
+
+ ******** +
+
+ ----------------------------------------------------------------------------- +
+
+
+
+ ----------------------------------------------------------------------------- +
-
- ----------------------------------------------------------------------------- -
-
+
姓名: 性别: @@ -31,29 +37,30 @@
就诊科室:
-
+
-----------------------------------------------------------------------------
-
+
费用总额: 个人支付:
-
实收金额:
+
实收金额:
实收金额:
-
+
-----------------------------------------------------------------------------
- + - + @@ -61,14 +68,14 @@
项目名称 数量 单价 小计
-
+
-----------------------------------------------------------------------------
-
+
终端编号:
打印时间:
-
+
温馨提示
1.请取走全部凭条、并妥善保管
2.如果对缴费结算存在疑问,请到人工窗口咨询 diff --git a/src/main/resources/templates/department2.html b/src/main/resources/templates/department2.html deleted file mode 100644 index 82526a0..0000000 --- a/src/main/resources/templates/department2.html +++ /dev/null @@ -1,188 +0,0 @@ - - - - - 门诊缴费凭证 - - - -
-
-
************
-
-
-
-
- ----------------------------------------------------------------------------- -
-
-
-
姓名:
-
性别:
-
年龄:
-
-
-
门诊号:
-
就诊医生:
-
-
就诊科室:
-
-
- ----------------------------------------------------------------------------- -
-
-
-
费用总额:
-
个人支付:
-
-
实收金额:
-
实收金额:
-
-
- ----------------------------------------------------------------------------- -
-
- - - - - - - - - - - - - -
项目名称数量单价小计
-
-
- ----------------------------------------------------------------------------- -
-
-
终端编号:
-
打印时间:
-
-
- 温馨提示
- 1.请取走全部凭条、并妥善保管
- 2.如果对缴费结算存在疑问,请到人工窗口咨询 -
-
- - diff --git a/src/main/resources/templates/hospitalPayment.html b/src/main/resources/templates/hospitalPayment.html index 22fede4..42993b9 100644 --- a/src/main/resources/templates/hospitalPayment.html +++ b/src/main/resources/templates/hospitalPayment.html @@ -4,15 +4,23 @@ 挂号单 -
-
-
-
********
-
-----------------------------------------------------------------------------
-
-
-----------------------------------------------------------------------------
+
+
+
+
+
+ ******** +
+
+ ----------------------------------------------------------------------------- +
+
+
+
+ ----------------------------------------------------------------------------- +
-
+
姓  名:
性  别:
年  龄:
@@ -21,13 +29,14 @@
入院科室:
总 费 用: 元
支付方式:
-
交易流水:
+
交易流水: +
-
- -
备注:缴费凭证,请妥善保管!
-
终 端 号:
-
打印时间:
+
+
备注:缴费凭证,请妥善保管!
+
终 端 号: +
+
打印时间:
diff --git a/src/main/resources/templates/outpatientPayment.html b/src/main/resources/templates/outpatientPayment.html index 48cb8e3..9961b90 100644 --- a/src/main/resources/templates/outpatientPayment.html +++ b/src/main/resources/templates/outpatientPayment.html @@ -4,28 +4,37 @@ 门诊缴费 -
-
-
-
********
-
-----------------------------------------------------------------------------
-
-
-----------------------------------------------------------------------------
+
+
+
+
+
+ ******** +
+
+ ----------------------------------------------------------------------------- +
+
+
+
+ ----------------------------------------------------------------------------- +
-
+
姓  名:
性  别:
年  龄:
出生日期:
总 费 用: 元
支付方式:
-
交易流水:
+
交易流水: +
-
- -
备注:缴费凭证,请妥善保管!
-
终 端 号:
-
打印时间:
+
+
备注:缴费凭证,请妥善保管!
+
终 端 号: +
+
打印时间:
diff --git a/src/main/resources/templates/register.html b/src/main/resources/templates/register.html index 45d674e..a3c2288 100644 --- a/src/main/resources/templates/register.html +++ b/src/main/resources/templates/register.html @@ -3,38 +3,28 @@ 挂号单 - -
-
-
-
********
-
-----------------------------------------------------------------------------
-
-
-----------------------------------------------------------------------------
+
+
+
+
+
+ ******** +
+
+ ----------------------------------------------------------------------------- +
+
+
+
+ ----------------------------------------------------------------------------- +
-
+
姓  名:
性  别:
年  龄:
出生日期:
-
门 诊 号:
就诊科室:
出诊级别:
@@ -43,20 +33,22 @@
挂号日期:
总 费 用: 元
支付方式:
- -
交易流水:交易流水:
QR Code + alt="QR Code"/>
-
-
-----------------------------------------------------------------------------
-
备注:凭此条退费,请妥善保管!
-
终 端 号:
-
打印时间:
+
+
+ ----------------------------------------------------------------------------- +
+
备注:凭此条退费,请妥善保管!
+
终 端 号: +
+
打印时间: