浏览代码

优化检查申请单打印功能

hurugang 2 年之前
父节点
当前提交
88af558e84
共有 2 个文件被更改,包括 8 次插入2 次删除
  1. 6 0
      src/main/resources/static/js/mz/clinic.js
  2. 2 2
      src/main/resources/templates/mz/clinic.html

+ 6 - 0
src/main/resources/static/js/mz/clinic.js

@@ -10101,6 +10101,12 @@ function printPrescription(patientId, times, clnicId, payMark, printType) {
                             if ((i == 0 && index > 0) || i > 0) {
                                 LODOP.NewPageA();
                             }
+                            JsBarcode("#JcBarcode", mzYjReq.reqNo, {
+                                lineColor: '#333', //线条颜色
+                                width: 1, //线宽
+                                height: 26, //条码高度
+                                displayValue: false, //是否显示文字信息
+                            });
                             $("#reqNoJcReq").text(mzYjReq.reqNo);
                             $("#jcReqItem").text(mzYjReq.groupName);
                             $("#jcReqRemark").text(mzYjReq.jyRemark);

+ 2 - 2
src/main/resources/templates/mz/clinic.html

@@ -2482,7 +2482,7 @@
      style="width:920px;height: calc(100% - 160px);margin:0 auto;border: 1px solid #337ab7;font-size: 13px;padding: 40px 20px 40px 20px;overflow-y: auto; overflow-x:hidden;">
     <div style="width: 100%;">
         <div style="width: 100%;">
-            <div style="float: left;"><svg id="JcBarcode" height="20px;"></svg></div>
+            <div style="float: left;height: 20px;"><svg id="JcBarcode" height="20px;"></svg></div>
             <div style="position: relative;width: 100%;margin-left: -110px;">
                 <div style="text-align: center;font-weight: 700;">长沙泰和医院</div>
                 <div style="text-align:center;font-weight: 700;">检查申请单</div>
@@ -2571,7 +2571,7 @@
      style="width:920px;height: calc(100% - 160px);margin:0 auto;border: 1px solid #337ab7;font-size: 13px;padding: 40px 20px 40px 20px;overflow-y: auto; overflow-x:hidden;">
     <div style="width: 100%;">
         <div style="width: 100%;">
-            <div style="float: left;"><svg id="JyBarcode" height="20px;"></svg></div>
+            <div style="float: left;height: 20px;"><svg id="JyBarcode" height="20px;"></svg></div>
             <div style="position: relative;width: 100%;margin-left: -110px;">
                 <div style="text-align:center;font-weight: 700;">长沙泰和医院</div>
                 <div style="text-align:center;font-weight: 700;">检验申请单</div>