Ver Fonte

打印文件头

hurugang há 6 anos atrás
pai
commit
55c526b615

+ 20 - 3
src/main/resources/static/js/daily_collect.js

@@ -777,17 +777,34 @@ function print() {
     setPrint();
     LODOP = getLodop();
     LODOP.PRINT_INITA(6, 0, "210mm", "297mm", "门诊收费收入日报表");
+    var strStyle="<style> table,td,th {border-width: 1px;border-style: solid;border-collapse: collapse}</style>"
     //设置默认打印机
     LODOP.SET_PRINTER_INDEX(printIndex);
     LODOP.SET_SHOW_MODE("BKIMG_WIDTH", "297mm");
     LODOP.SET_SHOW_MODE("BKIMG_HEIGHT", "210mm");
     LODOP.ADD_PRINT_HTM("0mm", "0mm", "210mm", "297mm", document.getElementById("printDiv").innerHTML);
     LODOP.NewPageA();
-    LODOP.ADD_PRINT_HTM("0mm", "0mm", "210mm", "297mm", document.getElementById("ghgzlhzb_parent_p").innerHTML);
+    //LODOP.ADD_PRINT_HTM("0mm", "0mm", "210mm", "297mm", document.getElementById("ghgzlhzb_parent_p").innerHTML);
+
+    LODOP.ADD_PRINT_TABLE(70,"5%","90%",1000,strStyle+document.getElementById("ghgzlhzb_parent_p").innerHTML);
+    LODOP.SET_PRINT_STYLEA(0,"Vorient",3);
+    LODOP.ADD_PRINT_HTM(26,"5%","90%",109,document.getElementById("ghgzlhzb_p_title").innerHTML);
+    LODOP.SET_PRINT_STYLEA(0,"ItemType",1);
+    LODOP.SET_PRINT_STYLEA(0,"LinkedItem",2);
     LODOP.NewPageA();
-    LODOP.ADD_PRINT_HTM("0mm", "0mm", "210mm", "297mm", document.getElementById("sfgzlhzb_parent_p").innerHTML);
+   // LODOP.ADD_PRINT_HTM("0mm", "0mm", "210mm", "297mm", document.getElementById("sfgzlhzb_parent_p").innerHTML);
+    LODOP.ADD_PRINT_TABLE(70,"5%","90%",1000,strStyle+document.getElementById("sfgzlhzb_parent_p").innerHTML);
+    LODOP.SET_PRINT_STYLEA(0,"Vorient",3);
+    LODOP.ADD_PRINT_HTM(26,"5%","90%",109,document.getElementById("sfgzlhzb_parent_p_title").innerHTML);
+    LODOP.SET_PRINT_STYLEA(0,"ItemType",1);
+    LODOP.SET_PRINT_STYLEA(0,"LinkedItem",4);
     LODOP.NewPageA();
-    LODOP.ADD_PRINT_HTM("0mm", "0mm", "210mm", "297mm", document.getElementById("mzskylb_parent_p").innerHTML);
+   // LODOP.ADD_PRINT_HTM("0mm", "0mm", "210mm", "297mm", document.getElementById("mzskylb_parent_p").innerHTML);
+    LODOP.ADD_PRINT_TABLE(128,"5%","90%",1000,strStyle+document.getElementById("mzskylb_parent_p").innerHTML);
+    LODOP.SET_PRINT_STYLEA(0,"Vorient",3);
+    LODOP.ADD_PRINT_HTM(26,"5%","90%",109,document.getElementById("mzskylb_parent_p_title").innerHTML);
+    LODOP.SET_PRINT_STYLEA(0,"ItemType",1);
+    LODOP.SET_PRINT_STYLEA(0,"LinkedItem",6);
     LODOP.PRINT();
     //LODOP.PREVIEW();
 }

+ 3 - 3
src/main/resources/static/js/daily_repeat_print.js

@@ -67,7 +67,7 @@ function getRjbb() {
         contentType: "application/json;charset=UTF-8",
         dataType: "json",
         headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
-        data: JSON.stringify({opId: $('#cashParam').val(),dcountDate: $('#rjList').val()}),
+        data: JSON.stringify({opId: $('#cashParam').val(), dcountDate: $('#rjList').val()}),
         success: function (res) {
             if (res == '401' || res == 401) {
                 window.location.href = '/thmz/login/view'
@@ -755,7 +755,7 @@ function cleanParams() {
  * 打印报表
  */
 function print() {
-    if($("#rjList").val()==null || $("#rjList").val()==undefined || $("#rjList").val()==''){
+    if ($("#rjList").val() == null || $("#rjList").val() == undefined || $("#rjList").val() == '') {
         new PNotify({
             title: '警告提示',
             text: '没有选择合适的报表,无需打印',
@@ -773,7 +773,7 @@ function print() {
     LODOP.SET_SHOW_MODE("BKIMG_HEIGHT", "210mm");
     LODOP.ADD_PRINT_HTM("0mm", "0mm", "210mm", "297mm", document.getElementById("printDiv").innerHTML);
     LODOP.PRINT();
-   // LODOP.PREVIEW();
+    //LODOP.PREVIEW();
 }
 
 

+ 4 - 4
src/main/resources/templates/daily.html

@@ -401,7 +401,7 @@
                         </tr>
                         </tbody>
                     </table>
-                    <table id="datatable_p" border="1" cellspacing="0" style="width: 96%;margin-top: 20px;">
+                    <table id="datatable_p" border="1" cellspacing="0" style="width: 96%;margin-top: 20px;border-width: 1px;border-style: solid;border-collapse: collapse;">
                         <thead>
                         <tr>
                             <th rowspan="2" class="text-center" style="vertical-align: middle !important;">交易类别</th>
@@ -518,7 +518,7 @@
                             </tbody>
                         </table>
                     </div>
-                    <div class="form-group col-md-12 col-sm-12 col-xs-12" style="margin-bottom: 100px;">
+                    <div class="form-group col-md-12 col-sm-12 col-xs-12" style="margin-bottom: 100px;border-width: 1px;border-style: solid;border-collapse: collapse;">
                         <div class="col-md-12 col-sm-12 col-xs-12"
                              style="border-bottom: 0.5px solid #dcdcdc;padding-left: 20px;">
                             <table style="width: 60%;">
@@ -563,7 +563,7 @@
                     <div style="margin-top: 20px;"><span>工号:</span><span id="userIdCode_gh_p"></span><span
                             style="margin-left: 120px;">姓名:</span><span id="username_gh_p"></span><span
                             style="margin-left: 120px;">结账时间:</span><span id="dcountDate_gh_p"></span></div>
-                    <table border="1" style="width: 96%;" cellspacing="0">
+                    <table border="1" style="width: 96%;border-width: 1px;border-style: solid;border-collapse: collapse;" cellspacing="0">
                         <tbody>
                         <tr>
                             <td>项目</td>
@@ -602,7 +602,7 @@
                         </tr>
                         </tbody>
                     </table>
-                    <div class="form-group col-md-12 col-sm-12 col-xs-12" style="margin-bottom: 50px;">
+                    <div class="form-group col-md-12 col-sm-12 col-xs-12" style="margin-bottom: 50px;border-width: 1px;border-style: solid;border-collapse: collapse;">
                         <div class="form-group col-md-12 col-sm-12 col-xs-12"
                              style="border-bottom: 0.5px solid #dcdcdc;margin-bottom: 10px;margin-top: 20px;padding-left: 20px;"
                              id="ghReceiptBills_p">

+ 6 - 8
src/main/resources/templates/daily_collect.html

@@ -328,7 +328,7 @@
                     <h2 style="text-align:center;font-weight: 700;">泰和医院门诊收费收入日报表</h2>
                     <div style="margin-top: 20px;"><span
                             style="margin-left: 450px;">结账时间:</span><span id="dcountDate_p"></span></div>
-                    <table border="1" cellspacing="0" style="width: 96%;">
+                    <table border="1" cellspacing="0" style="width: 96%;border-width: 1px;border-style: solid;border-collapse: collapse;">
                         <tbody>
                         <tr>
                             <td>挂号费</td>
@@ -388,7 +388,7 @@
                         </tr>
                         </tbody>
                     </table>
-                    <table id="datatable_p" border="1" cellspacing="0" style="width: 96%;margin-top: 20px;">
+                    <table id="datatable_p" border="1" cellspacing="0" style="width: 96%;margin-top: 20px;border-width: 1px;border-style: solid;border-collapse: collapse;">
                         <thead>
                         <tr>
                             <th rowspan="2" class="text-center" style="vertical-align: middle !important;">交易类别</th>
@@ -491,7 +491,7 @@
                     <h2 style="text-align:center;font-weight: 700">门诊挂号收入日结一览表</h2>
                     <div style="margin-top: 20px;"><span
                             style="margin-left: 450px;">结账时间:</span><span id="dcountDate_gh_p"></span></div>
-                    <table border="1" style="width: 96%;" cellspacing="0">
+                    <table border="1" style="width: 96%;border-width: 1px;border-style: solid;border-collapse: collapse;" cellspacing="0">
                         <tbody>
                         <tr>
                             <td>项目</td>
@@ -531,9 +531,8 @@
                         </tbody>
                     </table>
                 </div>
-
+                <div id="ghgzlhzb_p_title"><h2 style="text-align:center;font-weight: 700" >挂号处工作量汇总报表</h2></div>
                 <div style="display:none;" id="ghgzlhzb_parent_p">
-                    <h2 style="text-align:center;font-weight: 700">挂号处工作量汇总报表</h2>
                     <table border="1" style="width: 96%;" cellspacing="0">
                         <thead>
                         <tr>
@@ -550,8 +549,8 @@
                         </tbody>
                     </table>
                 </div>
+                <div id="sfgzlhzb_parent_p_title"><h2 style="text-align:center;font-weight: 700" >门诊收费结账单列表</h2></div>
                 <div style="display:none;" id="sfgzlhzb_parent_p">
-                    <h2 style="text-align:center;font-weight: 700">门诊收费结账单列表</h2>
                     <table border="1" style="width: 96%;" cellspacing="0">
                         <thead>
                         <tr>
@@ -568,9 +567,8 @@
                         </tbody>
                     </table>
                 </div>
+                <div id="mzskylb_parent_p_title"><h2 style="text-align:center;font-weight: 700" >门诊收款一览表</h2><h2 style="text-align:center;font-weight: 700">门诊收据分类统计表</h2></div>
                 <div style="display:none;" id="mzskylb_parent_p">
-                    <h2 style="text-align:center;font-weight: 700">门诊收款一览表</h2>
-                    <h2 style="text-align:center;font-weight: 700">门诊收据分类统计表</h2>
                     <table border="1" style="width: 96%;" cellspacing="0">
                         <thead>
                         <tr>

+ 3 - 3
src/main/resources/templates/daily_repeat_print.html

@@ -349,7 +349,7 @@
                     <div style="margin-top: 20px;"><span>工号:</span><span id="userIdCode_p"></span><span
                             style="margin-left: 120px;">姓名:</span><span id="username_p"></span><span
                             style="margin-left: 120px;">结账时间:</span><span id="dcountDate_p"></span></div>
-                    <table border="1" cellspacing="0" style="width: 96%;">
+                    <table border="1" cellspacing="0" style="width: 96%;border-width: 1px;border-style: solid;border-collapse: collapse;">
                         <tbody>
                         <tr>
                             <td>挂号费</td>
@@ -409,7 +409,7 @@
                         </tr>
                         </tbody>
                     </table>
-                    <table id="datatable_p" border="1" cellspacing="0" style="width: 96%;margin-top: 20px;">
+                    <table id="datatable_p" border="1" cellspacing="0" style="width: 96%;margin-top: 20px;border-width: 1px;border-style: solid;border-collapse: collapse;">
                         <thead>
                         <tr>
                             <th rowspan="2" class="text-center" style="vertical-align: middle !important;">交易类别</th>
@@ -571,7 +571,7 @@
                     <div style="margin-top: 20px;"><span>工号:</span><span id="userIdCode_gh_p"></span><span
                             style="margin-left: 120px;">姓名:</span><span id="username_gh_p"></span><span
                             style="margin-left: 120px;">结账时间:</span><span id="dcountDate_gh_p"></span></div>
-                    <table border="1" style="width: 96%;" cellspacing="0">
+                    <table border="1" style="width: 96%;border-width: 1px;border-style: solid;border-collapse: collapse;" cellspacing="0">
                         <tbody>
                         <tr>
                             <td>项目</td>