hurugang 4 лет назад
Родитель
Сommit
681c9947e8

+ 1 - 0
src/main/java/cn/hnthyy/thmz/controller/ZyDepositFileController.java

@@ -179,6 +179,7 @@ public class ZyDepositFileController {
                 zyDepositFile.setInpatientNo(dbZyDepositFile.getInpatientNo());
                 zyDepositFile.setAdmissTimes(dbZyDepositFile.getAdmissTimes());
                 zyDepositFile.setLedgerSn(dbZyDepositFile.getLedgerSn());
+                zyDepositFile.setPrinted(dbZyDepositFile.getPrinted());
             }
             zyDepositFileService.saveZyDepositFile(zyDepositFile);
             resultMap.put("code", 0);

+ 1 - 1
src/main/java/cn/hnthyy/thmz/service/impl/his/ZyDepositFileServiceImpl.java

@@ -47,7 +47,6 @@ public class ZyDepositFileServiceImpl implements ZyDepositFileService {
         depoTimes++;
         zyDepositFile.setDepoTimes(Double.valueOf(depoTimes));
         zyDepositFile.setDepoDate(new Date());
-        zyDepositFile.setPrinted(Double.valueOf(1));
         zyDepositFile.setWindowNo("1");
         zyDepositFile.setDeleted(YesNoEnum.NO.code.toString());
         //此时账页信息为空,是收费
@@ -67,6 +66,7 @@ public class ZyDepositFileServiceImpl implements ZyDepositFileService {
         //缴费
         if(ZyDepositFile.PAY_STATUS.equals(zyDepositFile.getStatus())){
             zyDepositFile.setReceiptNo(Md5Util.getReceiptNo());
+            zyDepositFile.setPrinted(Double.valueOf(0));
         }else if(ZyDepositFile.REFUND_STATUS.equals(zyDepositFile.getStatus())){
             //退费
             zyDepositFile.setReportFlag(YesNoEnum.YES.code.toString());

+ 6 - 1
src/main/resources/static/js/accepting.js

@@ -347,7 +347,12 @@ function listDepositFile() {
                 formatter: function (value, row, index) {
                     var str='';
                     if (row.reportFlag != 1 && row.depoAmount>0) {
-                        str ='<button type="button" class="btn btn-primary  btn-sm" onclick="refundZyFee(\'' + row.receiptNo + '\',\'' + row.depoAmount + '\',\'' + row.depoType + '\')">退费</button>';
+                        str +='<button type="button" class="btn btn-primary  btn-sm" onclick="refundZyFee(\'' + row.receiptNo + '\',\'' + row.depoAmount + '\',\'' + row.depoType + '\')">退费</button>';
+                    }
+                    if(row.printed==0){
+                        str +='<button type="button" class="btn btn-primary  btn-sm" onclick="refundZyFee(\'' + row.receiptNo + '\',\'' + row.depoAmount + '\',\'' + row.depoType + '\')">打印收据</button>';
+                    }else if(row.printed==1){
+                        str +='<button type="button" class="btn btn-primary  btn-sm" onclick="refundZyFee(\'' + row.receiptNo + '\',\'' + row.depoAmount + '\',\'' + row.depoType + '\')">重打收据</button>';
                     }
                     return [str].join('');
                 }

+ 56 - 0
src/main/resources/templates/accepting.html

@@ -38,6 +38,7 @@
     .input-group-own {
         margin-bottom: 0px;
     }
+    .table-bordered td{ height:9.5mm;}
 </style>
 <div class="row">
     <div class="col-md-12 col-sm-12 col-xs-12">
@@ -315,6 +316,61 @@
 <!--退费弹窗结尾-->
 
 
+
+<div id="report_table" class="in"
+     style="width:192mm;height:97mm;margin:0 auto;border: 1px solid #337ab7;font-size: 12px;padding-top: 5mm;overflow-y: auto; overflow-x:hidden;">
+    <div id="report_table_1">
+        <h4 style="text-align:center;font-weight: 700;">湖南泰和医院</h4>
+        <h4 style="text-align:center;font-weight: 700;">预交金收据</h4><!-- <div style="margin-top: 20px;"></div>-->
+
+        <div>
+            <span style="margin-left: 14mm;">收据日期:</span><span style="margin-left: 7mm;">2020-11-25</span>
+            <span style="margin-left: 60mm;">收据号:</span><span style="margin-left: 4mm;">2012116076739741</span><span style="margin-left: 2mm;">重打</span>
+        </div>
+        <table class="table table-striped table-bordered" style="width: 170mm;margin-left: 12mm;">
+            <tbody>
+            <tr>
+                <td style="width: 25mm;">病人ID</td>
+                <td>00015742</td>
+                <td>住院号</td>
+                <td>010941</td>
+                <td>姓名</td>
+                <td colspan="2">名胜</td>
+                <td>费别</td>
+                <td>自费</td>
+            </tr>
+            <tr>
+                <td>住院科室</td>
+                <td colspan="2">三病室</td>
+                <td>支付方式</td>
+                <td colspan="2">现金</td>
+                <td colspan="2">操作类型</td>
+                <td>交款</td>
+            </tr>
+            <tr>
+                <td>金额</td>
+                <td>300.00</td>
+                <td>支票号</td>
+                <td colspan="6"></td>
+            </tr>
+            <tr>
+                <td>大写金额</td>
+                <td colspan="5">叁佰元整</td>
+                <td colspan="2">收费员</td>
+                <td>胡如刚</td>
+            </tr>
+            <tr>
+                <td colspan="9" rowspan="3" style="height: 26mm">
+                    1、此系临时收据,请妥善保管。出院时凭此收据按实用医疗费用换取住院发票。<br/>
+                    2、此收据遗失,请及时携带病人身份证和挂失人身份证到出院结算处办理挂失手续。如存在第三方肇事者预缴医疗费用,挂失时另需公安机关出示证明。<br/>
+                    3、如果您的缴费方式为银行卡支付,请您妥善保管好缴费的刷卡单,并于办理出院退费时带上缴费时所用银行卡。
+                </td>
+            </tr>
+            </tbody>
+        </table>
+    </div>
+</div>
+
 <object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0>
     <embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0></embed>
 </object>