Explorar o código

增加检查检验报告的申请单号条形码

hurugang %!s(int64=2) %!d(string=hai) anos
pai
achega
e84dbfc328

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

@@ -10404,6 +10404,12 @@ function printYjReq(patientId, times, type, printType) {
                         if (i > 0) {
                             LODOP.NewPageA();
                         }
+                        JsBarcode("#JcBarcode", obj.reqNo, {
+                            lineColor: '#333', //线条颜色
+                            width: 1, //线宽
+                            height: 26, //条码高度
+                            displayValue: false, //是否显示文字信息
+                        });
                         $("#reqNoJcReq").text(obj.reqNo);
                         $("#jcReqItem").text(obj.groupName);
                         $("#jcReqRemark").text(obj.jyRemark);
@@ -10412,6 +10418,12 @@ function printYjReq(patientId, times, type, printType) {
                     } else if (obj.reqType == "2") {
                         var inspectStuff = (obj.inspectStuff == null || obj.inspectStuff == "null") ? "" : obj.inspectStuff;
                         jyContent += '<tr><td style="min-height: 30px;">' + obj.groupName + '</td><td>' + inspectStuff + '</td><td>' + obj.reqNo + '</td></tr>';
+                        JsBarcode("#JyBarcode", obj.reqNo, {
+                            lineColor: '#333', //线条颜色
+                            width: 1, //线宽
+                            height: 26, //条码高度
+                            displayValue: false, //是否显示文字信息
+                        });
                     }
                 }
                 if (jyContent != null && jyContent != "" && jyContent.length > 0) {

+ 9 - 7
src/main/resources/templates/mz/clinic.html

@@ -2480,10 +2480,11 @@
 <!--打印检查申请单开始-->
 <div id="jc_card_table" class="hide"
      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>
-        <div>
-            <div style="position: relative;">
-                <div style="text-align:center;font-weight: 700;">长沙泰和医院</div>
+    <div style="width: 100%;">
+        <div style="width: 100%;">
+            <div style="float: left;"><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>
             </div>
             <table class="table table-striped table-bordered"
@@ -2568,9 +2569,10 @@
 <!--打印检验申请单开始-->
 <div id="jy_card_table" class="hide"
      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>
-        <div>
-            <div style="position: relative;">
+    <div style="width: 100%;">
+        <div style="width: 100%;">
+            <div style="float: left;"><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>
             </div>