Przeglądaj źródła

分开打印和页码

张保健 5 lat temu
rodzic
commit
caa962be54

+ 2 - 2
config/dev.env.js Wyświetl plik

@@ -6,9 +6,9 @@
6 6
 module.exports = {
7 7
   NODE_ENV: '"development"',
8 8
   ENV_CONFIG: '"dev"',
9
-  BASE_API: '"http://localhost:9529"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527
9
+  BASE_API: '"http://api.xt.test.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527
10 10
 
11
-  SSO_HOST: '"http://testsso.sgjyun.com"',
11
+  SSO_HOST: '"https://testsso.sgjyun.com"',
12 12
   SRCM_HOST: '"http://test1.sgjyun.com"',
13 13
   XT_HOST: '"http://xt.test.sgjyun.com"',
14 14
   MIRCO_MALL_HOST: '"http://mall.test.sgjyun.com"',

+ 1 - 1
config/index.js Wyświetl plik

@@ -19,7 +19,7 @@ module.exports = {
19 19
 
20 20
     // host: 'xt.test.sgjyun.com',
21 21
     // host: 'xt.kuyicloud.com',
22
-    host: 'localhost',
22
+    host: 'xt.test.sgjyun.com',
23 23
     port:9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
24 24
     autoOpenBrowser: true,
25 25
     errorOverlay: true,

+ 30 - 10
src/router/modules/dialysis.js Wyświetl plik

@@ -72,16 +72,36 @@ export default {
72 72
       noCache: true
73 73
     }
74 74
   }, {
75
-      path: '/dialysis/print/batch/other',
76
-      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_other'),
77
-      hidden: true,
78
-      is_menu: false,
79
-      name: 'dialysis_batch_print_two',
80
-      meta: {
81
-        title: '批量打印',
82
-        noCache: true
83
-      }
84
-    },
75
+    path: '/dialysis/print/batch/other',
76
+    component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_other'),
77
+    hidden: true,
78
+    is_menu: false,
79
+    name: 'dialysis_batch_print_two',
80
+    meta: {
81
+      title: '批量打印',
82
+      noCache: true
83
+    }
84
+  }, {
85
+    path: '/dialysis/print/batch/otherone',
86
+    component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_other_one'),
87
+    hidden: true,
88
+    is_menu: false,
89
+    name: 'dialysis_batch_print_two_one',
90
+    meta: {
91
+      title: '批量打印',
92
+      noCache: true
93
+    }
94
+  }, {
95
+    path: '/dialysis/print/batch/othertwo',
96
+    component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_other_two'),
97
+    hidden: true,
98
+    is_menu: false,
99
+    name: 'dialysis_batch_print_two_two',
100
+    meta: {
101
+      title: '批量打印',
102
+      noCache: true
103
+    }
104
+  },
85 105
   {
86 106
     path: '/dialysis/board',
87 107
     component: () => import('@/xt_pages/dialysis/bulletinBoard'),

+ 139 - 113
src/xt_pages/dialysis/batch_print/batch_print_order_other.vue Wyświetl plik

@@ -46,7 +46,7 @@
46 46
               <div class="under_line_two" style="width: 500px;text-align: left">{{record.patient.diagnose}}</div>
47 47
             </div>
48 48
           </div>
49
-          <div class="row">
49
+          <div class="row" :class="(record.monitor_records.length > 9 && record.print_length == 9) || (record.monitor_records.length > 8 && record.print_length == 8)  ? 'margin-bottom-300': ''">
50 50
             <table class="proj_table">
51 51
               <tbody>
52 52
                 <tr><td colspan="2">一、透析前护理评估:</td></tr>
@@ -230,7 +230,7 @@
230 230
                   </td>
231 231
                 </tr>
232 232
                 <tr>
233
-                  <td style="padding: 0;" colspan="2">
233
+                  <td style="padding: 0;position: relative;" colspan="2">
234 234
                     <table class="inside_table">
235 235
                       <tbody>
236 236
                       <!-- <thead> -->
@@ -281,14 +281,14 @@
281 281
                         </tr>
282 282
                       </tbody>
283 283
                     </table>
284
+                    <div v-if="(record.monitor_records.length > 9 && record.print_length == 9) || (record.monitor_records.length > 8 && record.print_length == 8)"  class="print-yema">1</div>
284 285
                   </td>
285 286
                 </tr>
286 287
               </tbody>
287 288
             </table>
288 289
           </div>
289
-          <div v-if="record.monitor_records.length > 8 " :class="record.monitor_records.length > 8  ? 'margin-bottom-300': ''" style="text-align:center;margin-top:10px;">1</div>
290 290
 
291
-          <template v-if="record.monitor_records.length > 8 ">
291
+          <template v-if="(record.monitor_records.length > 9 && record.print_length == 9) || (record.monitor_records.length > 8 && record.print_length == 8)">
292 292
             <div class="order-yy-name">{{orgname}}</div>
293 293
             <div class="order_title">血液净化专科护理记录单</div>
294 294
             <div class="row">
@@ -329,7 +329,7 @@
329 329
               </div>
330 330
             </div>
331 331
           </template>
332
-          <div class="row" :style="record.monitor_records.length <= 8 ? 'margin-top:-11px':''">
332
+          <div class="row" :style="(record.monitor_records.length <= 9 && record.print_length == 9) || (record.monitor_records.length <= 8 && record.print_length == 8)? 'margin-top:-11px;position: relative;':'position: relative;'"  :class="(record.monitor_records.length > 9 && record.print_length == 9) || (record.monitor_records.length > 8 && record.print_length == 8) ? 'margin-bottom-900':'margin-bottom-300'">
333 333
             <table class="proj_table" >
334 334
               <tbody>
335 335
                 <tr v-if="record.monitor_records2.length > 0">
@@ -547,9 +547,9 @@
547 547
                 </tr>
548 548
               </tbody>
549 549
             </table>
550
+            <div v-if="(record.monitor_records.length > 9 && record.print_length == 9) || (record.monitor_records.length > 8 && record.print_length == 8)" class="print-yema3" >2</div>
551
+            <div v-else class="print-yema2">1</div>
550 552
           </div>
551
-          <div v-if="record.monitor_records.length > 8" :class="record.monitor_records.length > 8 ? 'margin-bottom-900':'margin-bottom-300'" style="text-align:center;margin-top:10px;">2</div>
552
-          <div v-else class="margin-bottom-300" style="text-align:center;margin-top:10px;">1</div>
553 553
           <div class="order-yy-name">{{orgname}}</div>
554 554
           <div class="order_title">血液净化科医嘱及执行单</div>
555 555
           <div class="row" >
@@ -771,102 +771,8 @@
771 771
               </tr>
772 772
             </tbody>
773 773
           </table>
774
-          <table class="print-table-no" border="1" style="border-top:0;" count="0">
775
-            <tbody>
776
-              <tr style="line-height:35px;padding:8px 5px;">
777
-                <td colspan="7" style="font-size: 18px">医嘱</td>
778
-              </tr>
779
-              <tr style="line-height:35px;padding:8px 5px;">
780
-                <td colspan="4" style="font-size: 16px">开医嘱</td>
781
-                <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
782
-              </tr>
783
-              <tr style="line-height:35px;padding:8px 5px;">
784
-                <td style="font-size: 16px" width="10%">时间</td>
785
-                <td style="font-size: 16px" colspan="2" width="45%">医嘱内容</td>
786
-                <td style="font-size: 16px" width="10%">医生签名</td>
787
-                <td style="font-size: 16px" width="10%">核对人签名</td>
788
-                <td style="font-size: 16px" width="10%">执行人签名</td>
789
-                <td style="font-size: 16px" width="10%">时间</td>
790
-              </tr>
791
-              <template v-for="(group, group_index) in record.advices">
792
-                <tr v-for="(advice, advice_index) in group.advices" :key="advice_index">
793
-                  <td height="60px" v-if="advice_index == 0" :rowspan="group.advices.length">
794
-                    <span v-if="advice.start_time">{{getTime(advice.start_time,'{y}-{m}-{d} {h}:{i}')}}</span>
795
-                    <span v-else>&nbsp;<br/>&nbsp;</span>
796
-                  </td>
797
-                  <td height="60px" class="advice-name" style="padding-left:7px;" :colspan="advice.children && advice.children.length > 0 || advice.parent_id > 0 ? 1 :2" v-if="advice.isShow == 2">
798
-                    <span>{{advice.advice_name }}</span>
799
-                    <span>{{advice.advice_desc}}</span>
800
-                    <!-- <span v-if="advice[0].drug_spec">{{advice[0].drug_spec}}{{advice[0].drug_spec_unit}}</span> -->
801
-                    <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
802
-                    <span v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
803
-                    <span v-if="advice.parent_id == 0  &&advice.children && advice.children.length == 0">{{advice.delivery_way}}</span>
804
-                    <span v-if="advice.parent_id == 0  &&advice.children&& advice.children.length == 0">{{advice.execution_frequency}}</span>
805
-                    <span v-if="advice.parent_id == 0 && advice.children &&  advice.children.length == 0 && advice.remark.length > 0" >({{advice.remark}})</span>
806
-                  </td>
807
-                  <td colspan="2"  height="60px" style="text-align: center" v-else >
808
-                    <span>{{advice.delivery_way}}</span>
809
-                    <span>{{advice.execution_frequency}}</span>
810
-                    <span v-if="advice.remark.length > 0" >({{advice.remark}})</span>
811
-                  </td>
812
-                  <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td>
813
-                  <td height="60px">
814
-                    <span v-if="setAdminUserES(advice, 'advice_doctor') == ''">{{getAdminUser(advice, 'advice_doctor')}}</span>
815
-                    <img class="es-img" :src="setAdminUserES(advice, 'advice_doctor')" alt="" srcset="" v-else >
816
-                  </td>
817
-                  <td height="60px">
818
-                      <span v-if="setAdminUserES(advice, 'checker') == ''">{{getAdminUser(advice, 'checker')}}</span>
819
-                      <img class="es-img" :src="setAdminUserES(advice, 'checker')" alt="" srcset="" v-else >
820
-                  </td>
821
-                  <td height="60px">
822
-                    <span v-if="setAdminUserES(advice, 'execution_staff') == ''">{{getAdminUser(advice, 'execution_staff')}}</span>
823
-                    <img class="es-img" :src="setAdminUserES(advice, 'execution_staff')" alt="" srcset="" v-else >
824
-                  </td>
825
-                  <td height="60px"><span v-if="advice.execution_time"> {{getTime(advice.execution_time,'{y}-{m}-{d} {h}:{i}')}} </span> </td>
826
-                </tr>
827
-              </template>
828
-            </tbody>
829
-          </table>
830
-          <div :style="record.advices2.length > 0 ? 'margin-bottom:350px;border-top:0;text-align:center;margin-top:10px;':'border-top:0;text-align:center;margin-top:10px;'" >1</div>
831
-
832
-          <template v-if="record.advices2.length > 0">
833
-            <div class="order-yy-name">{{orgname}}</div>
834
-            <div class="order_title">血液净化科医嘱及执行单</div>
835
-            <div class="row">
836
-              <div class="inline_block" >
837
-                科室:
838
-                <check-box text="门诊透析" :checked="record.patient.source == 1"></check-box>
839
-                <check-box text="住院" :checked="record.patient.source == 2"></check-box>
840
-                <!-- TODO -->
841
-              </div>
842
-              <div class="inline_block" style="margin-left:25px;">
843
-                姓名:
844
-                <div class="under_line" style="width: 120px;">{{ record.patient.name }}</div>
845
-              </div>
846
-              <div class="inline_block" style="margin-left: 25px;">
847
-                性别:
848
-                <check-box text="男" :checked="record.patient.gender == 1"></check-box>
849
-                <check-box text="女" :checked="record.patient.gender == 2"></check-box>
850
-              </div>
851
-              <div class="inline_block" style="margin-left: 25px;">
852
-                年龄:
853
-                <div class="under_line" style="width: 70px;">{{jsGetAge(record.patient.birthday)}}</div>
854
-                岁
855
-              </div>
856
-              <div class="inline_block" style="margin-left:25px;">
857
-                住院号:
858
-                <div class="under_line" style="width: 120px;">
859
-                  {{record.patient.admission_number?record.patient.admission_number:'/'}}
860
-                </div>
861
-              </div>
862
-            </div>
863
-            <div class="row flex">
864
-              <div class="inline_block">
865
-                诊断:
866
-                <div class="under_line_two" style="width: 500px;text-align: left">{{record.patient.diagnose}}</div>
867
-              </div>
868
-            </div>
869
-            <table class="print-table-no" border="1" count="0">
774
+          <div :style="record.advices2.length > 0 ? 'margin-bottom:350px;border-top:0;text-align:center;position: relative;border-top:0;':'border-top:0;text-align:center;position: relative;border-top:0;'">
775
+            <table class="print-table-no" border="1"  count="0" > 
870 776
               <tbody>
871 777
                 <tr style="line-height:35px;padding:8px 5px;">
872 778
                   <td colspan="7" style="font-size: 18px">医嘱</td>
@@ -883,7 +789,7 @@
883 789
                   <td style="font-size: 16px" width="10%">执行人签名</td>
884 790
                   <td style="font-size: 16px" width="10%">时间</td>
885 791
                 </tr>
886
-                <template v-for="(group, group_index) in record.advices2">
792
+                <template v-for="(group, group_index) in record.advices">
887 793
                   <tr v-for="(advice, advice_index) in group.advices" :key="advice_index">
888 794
                     <td height="60px" v-if="advice_index == 0" :rowspan="group.advices.length">
889 795
                       <span v-if="advice.start_time">{{getTime(advice.start_time,'{y}-{m}-{d} {h}:{i}')}}</span>
@@ -922,7 +828,105 @@
922 828
                 </template>
923 829
               </tbody>
924 830
             </table>
925
-            <div style="text-align:center;margin-top:10px;" >2</div>
831
+            <div class="print-yema4">1</div>
832
+          </div>
833
+
834
+          <template v-if="record.advices2.length > 0">
835
+            <div style="position: relative;">
836
+              <div class="order-yy-name">{{orgname}}</div>
837
+              <div class="order_title">血液净化科医嘱及执行单</div>
838
+              <div class="row">
839
+                <div class="inline_block" >
840
+                  科室:
841
+                  <check-box text="门诊透析" :checked="record.patient.source == 1"></check-box>
842
+                  <check-box text="住院" :checked="record.patient.source == 2"></check-box>
843
+                  <!-- TODO -->
844
+                </div>
845
+                <div class="inline_block" style="margin-left:25px;">
846
+                  姓名:
847
+                  <div class="under_line" style="width: 120px;">{{ record.patient.name }}</div>
848
+                </div>
849
+                <div class="inline_block" style="margin-left: 25px;">
850
+                  性别:
851
+                  <check-box text="男" :checked="record.patient.gender == 1"></check-box>
852
+                  <check-box text="女" :checked="record.patient.gender == 2"></check-box>
853
+                </div>
854
+                <div class="inline_block" style="margin-left: 25px;">
855
+                  年龄:
856
+                  <div class="under_line" style="width: 70px;">{{jsGetAge(record.patient.birthday)}}</div>
857
+                  岁
858
+                </div>
859
+                <div class="inline_block" style="margin-left:25px;">
860
+                  住院号:
861
+                  <div class="under_line" style="width: 120px;">
862
+                    {{record.patient.admission_number?record.patient.admission_number:'/'}}
863
+                  </div>
864
+                </div>
865
+              </div>
866
+              <div class="row flex">
867
+                <div class="inline_block">
868
+                  诊断:
869
+                  <div class="under_line_two" style="width: 500px;text-align: left">{{record.patient.diagnose}}</div>
870
+                </div>
871
+              </div>
872
+              <table class="print-table-no" border="1" count="0">
873
+                <tbody>
874
+                  <tr style="line-height:35px;padding:8px 5px;">
875
+                    <td colspan="7" style="font-size: 18px">医嘱</td>
876
+                  </tr>
877
+                  <tr style="line-height:35px;padding:8px 5px;">
878
+                    <td colspan="4" style="font-size: 16px">开医嘱</td>
879
+                    <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
880
+                  </tr>
881
+                  <tr style="line-height:35px;padding:8px 5px;">
882
+                    <td style="font-size: 16px" width="10%">时间</td>
883
+                    <td style="font-size: 16px" colspan="2" width="45%">医嘱内容</td>
884
+                    <td style="font-size: 16px" width="10%">医生签名</td>
885
+                    <td style="font-size: 16px" width="10%">核对人签名</td>
886
+                    <td style="font-size: 16px" width="10%">执行人签名</td>
887
+                    <td style="font-size: 16px" width="10%">时间</td>
888
+                  </tr>
889
+                  <template v-for="(group, group_index) in record.advices2">
890
+                    <tr v-for="(advice, advice_index) in group.advices" :key="advice_index">
891
+                      <td height="60px" v-if="advice_index == 0" :rowspan="group.advices.length">
892
+                        <span v-if="advice.start_time">{{getTime(advice.start_time,'{y}-{m}-{d} {h}:{i}')}}</span>
893
+                        <span v-else>&nbsp;<br/>&nbsp;</span>
894
+                      </td>
895
+                      <td height="60px" class="advice-name" style="padding-left:7px;" :colspan="advice.children && advice.children.length > 0 || advice.parent_id > 0 ? 1 :2" v-if="advice.isShow == 2">
896
+                        <span>{{advice.advice_name }}</span>
897
+                        <span>{{advice.advice_desc}}</span>
898
+                        <!-- <span v-if="advice[0].drug_spec">{{advice[0].drug_spec}}{{advice[0].drug_spec_unit}}</span> -->
899
+                        <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
900
+                        <span v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
901
+                        <span v-if="advice.parent_id == 0  &&advice.children && advice.children.length == 0">{{advice.delivery_way}}</span>
902
+                        <span v-if="advice.parent_id == 0  &&advice.children&& advice.children.length == 0">{{advice.execution_frequency}}</span>
903
+                        <span v-if="advice.parent_id == 0 && advice.children &&  advice.children.length == 0 && advice.remark.length > 0" >({{advice.remark}})</span>
904
+                      </td>
905
+                      <td colspan="2"  height="60px" style="text-align: center" v-else >
906
+                        <span>{{advice.delivery_way}}</span>
907
+                        <span>{{advice.execution_frequency}}</span>
908
+                        <span v-if="advice.remark.length > 0" >({{advice.remark}})</span>
909
+                      </td>
910
+                      <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td>
911
+                      <td height="60px">
912
+                        <span v-if="setAdminUserES(advice, 'advice_doctor') == ''">{{getAdminUser(advice, 'advice_doctor')}}</span>
913
+                        <img class="es-img" :src="setAdminUserES(advice, 'advice_doctor')" alt="" srcset="" v-else >
914
+                      </td>
915
+                      <td height="60px">
916
+                          <span v-if="setAdminUserES(advice, 'checker') == ''">{{getAdminUser(advice, 'checker')}}</span>
917
+                          <img class="es-img" :src="setAdminUserES(advice, 'checker')" alt="" srcset="" v-else >
918
+                      </td>
919
+                      <td height="60px">
920
+                        <span v-if="setAdminUserES(advice, 'execution_staff') == ''">{{getAdminUser(advice, 'execution_staff')}}</span>
921
+                        <img class="es-img" :src="setAdminUserES(advice, 'execution_staff')" alt="" srcset="" v-else >
922
+                      </td>
923
+                      <td height="60px"><span v-if="advice.execution_time"> {{getTime(advice.execution_time,'{y}-{m}-{d} {h}:{i}')}} </span> </td>
924
+                    </tr>
925
+                  </template>
926
+                </tbody>
927
+              </table>
928
+              <div class="print-yema5">2</div>
929
+            </div>
926 930
           </template>
927 931
         </div>
928 932
       </div>
@@ -1018,11 +1022,18 @@
1018 1022
             this.advice_groups = []
1019 1023
             this.advice_groups_2 = []
1020 1024
             var dlegh = 0
1025
+            if((this.records[recordIndex].assessment_before_dislysis&&this.records[recordIndex].assessment_before_dislysis.systolic_blood_pressure != 0&&this.records[recordIndex].assessment_before_dislysis.diastolic_blood_pressure != 0) || (this.records[recordIndex].assessment_before_dislysis&&record.assessment_before_dislysis.remark.length > 0) ||(this.records[recordIndex].assessment_before_dislysis&&record.assessment_before_dislysis.pulse_frequency != 0) ||(this.records[recordIndex].assessment_before_dislysis&&record.assessment_before_dislysis.breathing_rate  != 0)||(this.records[recordIndex].assessment_before_dislysis&&record.assessment_before_dislysis.temperature  != 0)) {
1026
+              var nl = 8
1027
+              this.records[recordIndex].print_length = 8
1028
+            } else{
1029
+              var nl = 9
1030
+              this.records[recordIndex].print_length = 9
1031
+            }
1021 1032
             if (this.records[recordIndex].monitor_records && this.records[recordIndex].monitor_records.length < 8) {
1022
-              dlegh = 7 - this.records[recordIndex].monitor_records.length
1033
+              dlegh = nl - this.records[recordIndex].monitor_records.length
1023 1034
             }
1024 1035
             if(this.records[recordIndex].monitor_records.length <=0 ){
1025
-              dlegh = 7
1036
+              dlegh = nl
1026 1037
             }
1027 1038
             if (dlegh > 0) {
1028 1039
               if (typeof (this.records[recordIndex].monitor_records) === 'undefined' || this.records[recordIndex].monitor_records == null) {
@@ -1242,12 +1253,7 @@
1242 1253
     },
1243 1254
     methods: {
1244 1255
       printAction: function() {
1245
-        const style = '@media print { .option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 0 0; page-break-after: always; } .print_page_main_content .order-yy-name { margin: auto; text-align: center; font-size: 20px; letter-spacing: 5px;} .print_page_main_content .order_title { text-align: center; font-size: 23px; line-height: 40px; font-weight: 500; } .row { font-size: 14px; line-height: 20px; padding: 5px 0; } .inline_block { display: inline-block; } .under_line { display: inline-block; border-bottom: 1px solid #999; text-align: center; white-space: nowrap; } .under_line::before { content: "\\00A0"; } .under_line::after { content: "\\00A0"; } .under_line_two { display: inline-block; border-bottom: 1px solid #999; text-align: left; white-space: nowrap; } .under_line_two::before { content: "\\00A0"; } .under_line_two::after { content: "\\00A0"; }  .flex { display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex; align-items: center; -webkit-align-items: center; box-align: center; -moz-box-align: center; -webkit-box-align: center; text-align: center; -webkit-justify-content: space-between; justify-content: space-between; -moz-box-pack: space-between; -webkit--moz-box-pack: space-between; box-pack: space-between; } .print_page_main_content .proj_table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } .print_page_main_content .proj_table tbody tr td { border: 1px solid; font-size: 16px; padding: 6px 8px; line-height: 30px; } .print_page_main_content .proj_table .inside_table { width: 100%; border: hidden; border-collapse: collapse; } .print_page_main_content .proj_table .inside_table tr td { border: 1px solid; text-align: center; font-size: 14px; padding: 8px 5px; line-height: 16px; } }.es-img{height: 30px; }.advice-name{text-align: left !important;line-height: 16px !important;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.advice-children{display:flex;}.print-table-no {\n' +
1246
-          '    width: 100%;\n' +
1247
-          '    text-align: center;\n' +
1248
-          '    border-collapse: collapse;\n' +
1249
-          '    font-size: 14px;\n' +
1250
-          '  }'
1256
+        const style = '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 5px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.r {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:1000px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top:1050px;left: 50%;}.print-yema5{position: absolute;top:1370px;left: 50%;}'
1251 1257
 
1252 1258
         printJS({
1253 1259
           printable: 'print_content',
@@ -1548,4 +1554,24 @@
1548 1554
   .margin-bottom-900 {
1549 1555
     margin-bottom:900px;
1550 1556
   }
1557
+  .print-yema{
1558
+    position: absolute;
1559
+    left: 50%;
1560
+  }
1561
+  .print-yema2{
1562
+    position: absolute;
1563
+    left: 50%;
1564
+  }
1565
+  .print-yema3{
1566
+    position: absolute;
1567
+    left: 50%;
1568
+  }
1569
+  .print-yema4{
1570
+    position: absolute;
1571
+    left: 50%;
1572
+  }
1573
+  .print-yema5{
1574
+    position: absolute;
1575
+    left: 50%;
1576
+  }
1551 1577
 </style>

Plik diff jest za duży
+ 1215 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_other_one.vue


Plik diff jest za duży
+ 1035 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_other_two.vue


+ 35 - 1
src/xt_pages/dialysis/bloodPresssWatch.vue Wyświetl plik

@@ -2,7 +2,16 @@
2 2
  <div class="main-contain">
3 3
     <div class="position">
4 4
       <bread-crumb :crumbs='crumbs'></bread-crumb>
5
+      <template v-if="this.template_id != 2">
5 6
       <el-button size="small" icon="el-icon-printer" :disabled="selecting_schs.length == 0" @click="batchPrintAction" type="primary">打印</el-button>
7
+      </template>
8
+      <template v-if="this.template_id == 2">
9
+        <div >
10
+          <el-button  :loading="loading" size="small" icon="el-icon-printer" @click="batchPrintAction" type="primary">打印全部</el-button>
11
+          <el-button  :loading="loading" size="small" icon="el-icon-printer" @click="batchPrintActionOne" type="primary">打印纪录单</el-button>
12
+          <el-button  :loading="loading" size="small" icon="el-icon-printer" @click="batchPrintActionTwo" type="primary">打印医嘱单</el-button>
13
+        </div>
14
+      </template>
6 15
     </div>
7 16
     <div class="app-container">
8 17
       <!-- <div class="filter-container">
@@ -153,6 +162,7 @@ export default {
153 162
         { value: 2, label: "下午" },
154 163
         { value: 3, label: "晚上" }
155 164
       ],
165
+      template_id : 1,
156 166
 
157 167
       partitionType: 0,
158 168
 
@@ -221,6 +231,7 @@ export default {
221 231
     this.listQuery.schedul_time = date.getTime();
222 232
     this.getAllZone();
223 233
     this.getSchedualPatientList();
234
+    this.template_id = this.$store.getters.xt_user.template_info.template_id;
224 235
   },
225 236
   methods: {
226 237
     clickCurrent(val) {
@@ -385,7 +396,30 @@ export default {
385 396
       }else{
386 397
         this.$router.push({ path: "/dialysis/print/batch" });
387 398
       }
388
-
399
+    },
400
+    batchPrintActionOne: function() {
401
+      var sch_ids = []
402
+      for (let index = 0; index < this.selecting_schs.length; index++) {
403
+        sch_ids.push(this.selecting_schs[index].sch_id)
404
+      }
405
+      this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids)
406
+      if (this.$store.getters.xt_user.template_info.template_id == 2){
407
+        this.$router.push({ path: "/dialysis/print/batch/otherone" });
408
+      }else{
409
+        this.$router.push({ path: "/dialysis/print/batch" });
410
+      }
411
+    },
412
+    batchPrintActionTwo: function() {
413
+      var sch_ids = []
414
+      for (let index = 0; index < this.selecting_schs.length; index++) {
415
+        sch_ids.push(this.selecting_schs[index].sch_id)
416
+      }
417
+      this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids)
418
+      if (this.$store.getters.xt_user.template_info.template_id == 2){
419
+        this.$router.push({ path: "/dialysis/print/batch/othertwo" });
420
+      }else{
421
+        this.$router.push({ path: "/dialysis/print/batch" });
422
+      }
389 423
     }
390 424
   },
391 425
   components: {

+ 55 - 2
src/xt_pages/dialysis/dialysisPrintOrder.vue Wyświetl plik

@@ -2,7 +2,16 @@
2 2
   <div class="main-contain">
3 3
     <div class="position">
4 4
       <bread-crumb :crumbs='crumbs'></bread-crumb>
5
-      <el-button  :loading="loading" size="small" icon="el-icon-printer" @click="printThisPage" type="primary">打印</el-button>
5
+      <template  v-if="org_template_info.template_id != 2">
6
+        <el-button  :loading="loading" size="small" icon="el-icon-printer" @click="printThisPage" type="primary">打印</el-button>
7
+      </template>
8
+      <template v-if="org_template_info.template_id == 2">
9
+        <div >
10
+          <el-button  :loading="loading" size="small" icon="el-icon-printer" @click="printThisPage" type="primary">打印全部</el-button>
11
+          <el-button  :loading="loading" size="small" icon="el-icon-printer" @click="printThisOnePage" type="primary">打印纪录单</el-button>
12
+          <el-button  :loading="loading" size="small" icon="el-icon-printer" @click="printThisTwoPage" type="primary">打印医嘱单</el-button>
13
+        </div>
14
+      </template>
6 15
     </div>
7 16
     <div class="app-container ">
8 17
       <!--<div class="order-print-btn"-->
@@ -155,7 +164,7 @@
155 164
         this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
156 165
 
157 166
         const style = '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}'
158
-        const style2 = '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 5px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}'
167
+        const style2 = '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 5px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1370px;left: 50%;}'
159 168
 
160 169
         if (this.org_template_info.template_id != 2) {
161 170
           printJS({
@@ -172,6 +181,50 @@
172 181
             scanStyles: false
173 182
           })
174 183
         }
184
+      },printThisOnePage() {
185
+        var ptime = Math.round(new Date().getTime() / 1000)
186
+        this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
187
+
188
+        const style = '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}'
189
+        const style2 = '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 5px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:200px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1370px;left: 50%;}'
190
+
191
+        if (this.org_template_info.template_id != 2) {
192
+          printJS({
193
+            printable: 'dialysis-print-box',
194
+            type: 'html',
195
+            style: style,
196
+            scanStyles: false
197
+          })
198
+        } else if (this.org_template_info.template_id == 2) {
199
+          printJS({
200
+            printable: 'dialysis-print-box-1-1',
201
+            type: 'html',
202
+            style: style2,
203
+            scanStyles: false
204
+          })
205
+        }
206
+      },printThisTwoPage() {
207
+        var ptime = Math.round(new Date().getTime() / 1000)
208
+        this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
209
+
210
+        const style = '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}'
211
+        const style2 = '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 5px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1370px;left: 50%;}'
212
+
213
+        if (this.org_template_info.template_id != 2) {
214
+          printJS({
215
+            printable: 'dialysis-print-box',
216
+            type: 'html',
217
+            style: style,
218
+            scanStyles: false
219
+          })
220
+        } else if (this.org_template_info.template_id == 2) {
221
+          printJS({
222
+            printable: 'dialysis-print-box-1-2',
223
+            type: 'html',
224
+            style: style2,
225
+            scanStyles: false
226
+          })
227
+        }
175 228
       }, getNumber() {
176 229
         if (this.dialysisOrder != null) {
177 230
           return this.patientInfo.DialysisSchedule.device_zone.name + this.dialysisOrder.DeviceNumber.number

+ 299 - 269
src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue Wyświetl plik

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div id="dialysis-print-box-1">
3
-    <div class="dialysis-print-order print-template-two print_page_main_content">
3
+    <div id="dialysis-print-box-1-1" :class="(this.monitors.length > 8 && this.print_length == 8) || (this.monitors.length > 9 && this.print_length == 9) ? 'margin-bottom-900 dialysis-print-order print-template-two print_page_main_content':'margin-bottom-300 dialysis-print-order print-template-two print_page_main_content'" >
4 4
       <div class="order-yy-name">{{orgname}}</div>
5 5
       <div class="order-title">血液净化专科护理记录单</div>
6 6
       <div class="row">
@@ -40,7 +40,7 @@
40 40
         </div>
41 41
       </div>
42 42
 
43
-      <div class="row">
43
+      <div class="row" :class="(this.monitors.length > 8 && this.print_length == 8) || (this.monitors.length > 9 && this.print_length == 9) ? 'margin-bottom-300':''">
44 44
         <table class="proj_table" >
45 45
           <tbody>
46 46
             <tr><td colspan="2">一、透析前护理评估:</td></tr>
@@ -222,7 +222,7 @@
222 222
               </td>
223 223
             </tr>
224 224
             <tr>
225
-              <td style="padding: 0;" colspan="2">
225
+              <td style="padding: 0; position: relative;" colspan="2">
226 226
                 <table class="inside_table">
227 227
                   <tbody>
228 228
                     <tr><td colspan="10" style="font-size:16px;padding: 6px 8px;line-height: 30px;text-align:left;">二、透析中护理记录:</td></tr>
@@ -277,13 +277,14 @@
277 277
                     </tr>
278 278
                   </tbody>
279 279
                 </table>
280
+                <div v-if="(this.monitors.length > 8 && this.print_length == 8) || (this.monitors.length > 9 && this.print_length == 9)"  class="print-yema">1</div>
280 281
               </td>
281 282
             </tr>
282 283
           </tbody>
283 284
         </table>
284 285
       </div>
285
-      <div v-if="this.monitors.length > 8 " :class="this.monitors.length > 8  ? 'margin-bottom-300': ''" style="text-align:center;margin-top:10px;">1</div>
286
-      <template v-if="this.monitors.length > 8 ">
286
+      
287
+      <template v-if="(this.monitors.length > 8 && this.print_length == 8) || (this.monitors.length > 9 && this.print_length == 9)">
287 288
         <div class="order-yy-name">{{orgname}}</div>
288 289
         <div class="order-title">血液净化专科护理记录单</div>
289 290
         <div class="row" style="margin-top: 15px;">
@@ -322,7 +323,7 @@
322 323
           </div>
323 324
         </div>
324 325
       </template>
325
-      <div class="row" :style="this.monitors.length <= 8 ? 'margin-top:-11px':''">
326
+      <div class="row" :style="(this.monitors.length <= 8 && this.print_length == 8) || (this.monitors.length <= 9 && this.print_length == 9) ? 'margin-top:-11px;position: relative;':'position: relative;'">
326 327
         <table class="proj_table">
327 328
           <tbody>
328 329
             <tr v-if="this.monitors2.length > 0">
@@ -544,299 +545,303 @@
544 545
             </tr>
545 546
           </tbody>
546 547
         </table>
547
-        <div v-if="this.monitors.length > 8" :class="this.monitors.length > 8 ? 'margin-bottom-900':'margin-bottom-300'" style="text-align:center;margin-top:10px;">2</div>
548
-        <div v-else class="margin-bottom-300" style="text-align:center;margin-top:10px;">1</div>
549
-
550
-        <div class="order-yy-name">{{orgname}}</div>
551
-        <div class="order_title"> 血液净化科医嘱及执行单 </div>
552
-        <div class="row" style="margin-top: 15px;">
553
-          <div class="inline_block" >
554
-            科室:
555
-            <check-box text="门诊透析" :checked="patientInfo_source_1"></check-box>
556
-            <check-box text="住院" :checked="patientInfo_source_2"></check-box>
557
-          </div>
558
-          <div class="inline_block" style="margin-left:25px;">
559
-            姓名:
560
-            <div class="under_line" style="width: 120px;">{{patientInfo.name}}</div>
561
-          </div>
562
-          <div class="inline_block" style="margin-left: 25px;">
563
-            性别:
564
-            <check-box text="男" :checked="patientInfo_gender_1"></check-box>
565
-            <check-box text="女" :checked="patientInfo_gender_2"></check-box>
566
-          </div>
567
-          <div class="inline_block" style="margin-left: 25px;">
568
-            年龄:
569
-            <div class="under_line" style="width: 70px;">{{getAge(patientInfo)}}</div>
570
-            岁
571
-          </div>
572
-          <div class="inline_block" style="margin-left:25px;">
573
-            住院号:
574
-            <div class="under_line" style="width: 120px;">
575
-              {{patientInfo.admission_number?patientInfo.admission_number:'/'}}
576
-            </div>
577
-          </div>
548
+        <div v-if="(this.monitors.length > 8 && this.print_length == 8) || (this.monitors.length > 9 && this.print_length == 9)" class="print-yema3" >2</div>
549
+        <div v-else class="print-yema2">1</div>
550
+      </div>
551
+    </div>
552
+    <div id="dialysis-print-box-1-2" class="dialysis-print-order print-template-two print_page_main_content" style="position: relative;"> 
553
+      <div class="order-yy-name">{{orgname}}</div>
554
+      <div class="order_title"> 血液净化科医嘱及执行单 </div>
555
+      <div class="row" style="margin-top: 15px;">
556
+        <div class="inline_block" >
557
+          科室:
558
+          <check-box text="门诊透析" :checked="patientInfo_source_1"></check-box>
559
+          <check-box text="住院" :checked="patientInfo_source_2"></check-box>
578 560
         </div>
579
-        <div class="row flex">
580
-          <div class="inline_block">
581
-            诊断:
582
-            <div class="under_line"  style="width: 500px;text-align: left">{{patientInfo.diagnose}}</div>
561
+        <div class="inline_block" style="margin-left:25px;">
562
+          姓名:
563
+          <div class="under_line" style="width: 120px;">{{patientInfo.name}}</div>
564
+        </div>
565
+        <div class="inline_block" style="margin-left: 25px;">
566
+          性别:
567
+          <check-box text="男" :checked="patientInfo_gender_1"></check-box>
568
+          <check-box text="女" :checked="patientInfo_gender_2"></check-box>
569
+        </div>
570
+        <div class="inline_block" style="margin-left: 25px;">
571
+          年龄:
572
+          <div class="under_line" style="width: 70px;">{{getAge(patientInfo)}}</div>
573
+          岁
574
+        </div>
575
+        <div class="inline_block" style="margin-left:25px;">
576
+          住院号:
577
+          <div class="under_line" style="width: 120px;">
578
+            {{patientInfo.admission_number?patientInfo.admission_number:'/'}}
583 579
           </div>
584 580
         </div>
585
-        <table class="proj_table">
586
-          <tbody>
587
-            <tr>
588
-              <td>
589
-                <!--<div class="row" style="padding: 2px 0;line-height:24px;">-->
590
-                  <!--<div class="inline_block">-->
591
-                    <!--诊断:-->
592
-                    <!--<div class="under_line" style="width: 150px;text-align: left">{{patientInfo.diagnose}}</div>-->
593
-                  <!--</div>-->
581
+      </div>
582
+      <div class="row flex">
583
+        <div class="inline_block">
584
+          诊断:
585
+          <div class="under_line"  style="width: 500px;text-align: left">{{patientInfo.diagnose}}</div>
586
+        </div>
587
+      </div>
588
+      <table class="proj_table">
589
+        <tbody>
590
+          <tr>
591
+            <td>
592
+              <!--<div class="row" style="padding: 2px 0;line-height:24px;">-->
593
+                <!--<div class="inline_block">-->
594
+                  <!--诊断:-->
595
+                  <!--<div class="under_line" style="width: 150px;text-align: left">{{patientInfo.diagnose}}</div>-->
594 596
                 <!--</div>-->
595
-                <div class="row" style="padding: 2px 0;line-height:24px;">
596
-                  <div class="inline_block" >
597
-                    诊断:
598
-                    <div class="under_line" style="width: 150px;text-align: left">{{patientInfo.diagnose}}</div>
599
-                  </div>
597
+              <!--</div>-->
598
+              <div class="row" style="padding: 2px 0;line-height:24px;">
599
+                <div class="inline_block" >
600
+                  诊断:
601
+                  <div class="under_line" style="width: 150px;text-align: left">{{patientInfo.diagnose}}</div>
602
+                </div>
600 603
 
601
-                  <div class="inline_block" style="margin-left: -10px" >
602
-                    &emsp;治疗方式:
603
-                    <check-box text="HD" :checked="prescription.mode_id==1?true:false"></check-box>
604
-                    <check-box text="HDF" :checked="prescription.mode_id==2?true:false"></check-box>
605
-                    <check-box text="HF" :checked="prescription.mode_id==5?true:false"></check-box>
606
-                    <check-box text="HP" :checked="prescription.mode_id==4?true:false"></check-box>
607
-                    <check-box text="HD+HP" :checked="prescription.mode_id==3?true:false"></check-box>
608
-                  </div>
604
+                <div class="inline_block" style="margin-left: -10px" >
605
+                  &emsp;治疗方式:
606
+                  <check-box text="HD" :checked="prescription.mode_id==1?true:false"></check-box>
607
+                  <check-box text="HDF" :checked="prescription.mode_id==2?true:false"></check-box>
608
+                  <check-box text="HF" :checked="prescription.mode_id==5?true:false"></check-box>
609
+                  <check-box text="HP" :checked="prescription.mode_id==4?true:false"></check-box>
610
+                  <check-box text="HD+HP" :checked="prescription.mode_id==3?true:false"></check-box>
611
+                </div>
609 612
 
610
-                  <!--<div class="inline_block"  v-if="patientInfo.diagnose.length <= 10">-->
611
-                    <!--&emsp;治疗方式:-->
612
-                    <!--<check-box text="HD" :checked="prescription.mode_id==1?true:false"></check-box>-->
613
-                    <!--<check-box text="HDF" :checked="prescription.mode_id==2?true:false"></check-box>-->
614
-                    <!--<check-box text="HF" :checked="prescription.mode_id==5?true:false"></check-box>-->
615
-                    <!--<check-box text="HP" :checked="prescription.mode_id==4?true:false"></check-box>-->
616
-                    <!--<check-box text="HD+HP" :checked="prescription.mode_id==3?true:false"></check-box>-->
617
-                  <!--</div>-->
618
-                  <div class="inline_block" style="margin-left:20px;">
619
-                    其它:
620
-                    <div class="under_line" style="width: 100px;">
621
-                      <span v-if="prescription.mode_id>5">{{prescription.mode}}</span>
622
-                    </div>
613
+                <!--<div class="inline_block"  v-if="patientInfo.diagnose.length <= 10">-->
614
+                  <!--&emsp;治疗方式:-->
615
+                  <!--<check-box text="HD" :checked="prescription.mode_id==1?true:false"></check-box>-->
616
+                  <!--<check-box text="HDF" :checked="prescription.mode_id==2?true:false"></check-box>-->
617
+                  <!--<check-box text="HF" :checked="prescription.mode_id==5?true:false"></check-box>-->
618
+                  <!--<check-box text="HP" :checked="prescription.mode_id==4?true:false"></check-box>-->
619
+                  <!--<check-box text="HD+HP" :checked="prescription.mode_id==3?true:false"></check-box>-->
620
+                <!--</div>-->
621
+                <div class="inline_block" style="margin-left:20px;">
622
+                  其它:
623
+                  <div class="under_line" style="width: 100px;">
624
+                    <span v-if="prescription.mode_id>5">{{prescription.mode}}</span>
623 625
                   </div>
624
-                  <div class="inline_block" style="margin-left:20px;">
625
-                    治疗时间:
626
-                    <div class="under_line" style="width: 30px;">
627
-                      {{prescription.dialysis_duration_hour?prescription.dialysis_duration_hour:'0'}}
628
-                    </div>
629
-                    h
630
-                    <div class="under_line" style="width: 30px;">
631
-                      {{prescription.dialysis_duration_minute?prescription.dialysis_duration_minute:'0'}}
632
-                    </div>
633
-                    min
626
+                </div>
627
+                <div class="inline_block" style="margin-left:20px;">
628
+                  治疗时间:
629
+                  <div class="under_line" style="width: 30px;">
630
+                    {{prescription.dialysis_duration_hour?prescription.dialysis_duration_hour:'0'}}
631
+                  </div>
632
+                  h
633
+                  <div class="under_line" style="width: 30px;">
634
+                    {{prescription.dialysis_duration_minute?prescription.dialysis_duration_minute:'0'}}
634 635
                   </div>
636
+                  min
635 637
                 </div>
636
-                <div class="row" style="padding: 2px 0;line-height:24px;">
638
+              </div>
639
+              <div class="row" style="padding: 2px 0;line-height:24px;">
640
+                <div class="inline_block">
641
+                  病情:
642
+                  <check-box text="一般" :checked="receiverTreatmentAccess.sick_condition == 1?true:false"></check-box>
643
+                  <check-box text="重" :checked="receiverTreatmentAccess.sick_condition == 2?true:false"></check-box>
644
+                  <check-box text="危" :checked="receiverTreatmentAccess.sick_condition == 3?true:false"></check-box>
637 645
                   <div class="inline_block">
638
-                    病情:
639
-                    <check-box text="一般" :checked="receiverTreatmentAccess.sick_condition == 1?true:false"></check-box>
640
-                    <check-box text="重" :checked="receiverTreatmentAccess.sick_condition == 2?true:false"></check-box>
641
-                    <check-box text="危" :checked="receiverTreatmentAccess.sick_condition == 3?true:false"></check-box>
642
-                    <div class="inline_block">
643
-                      &emsp;透析器型号:
644
-                      <div class="under_line" style="width: 200px;text-align: left">
645
-                        {{prescription.dialyzer_perfusion_apparatus}}
646
-                      </div>
646
+                    &emsp;透析器型号:
647
+                    <div class="under_line" style="width: 200px;text-align: left">
648
+                      {{prescription.dialyzer_perfusion_apparatus}}
647 649
                     </div>
648 650
                   </div>
649 651
                 </div>
650
-                <div class="row" style="padding: 2px 0; line-height:24px;">
651
-                  <div class="inline_block">
652
-                    体液过多症状:
653
-                    <check-box text="无" :checked="prescription.body_fluid==1?true:false"></check-box>
654
-                    <check-box text="下肢水肿+" :checked="prescription.body_fluid==2?true:false"></check-box>
655
-                    <check-box text="下肢水肿++"  :checked="prescription.body_fluid==3?true:false"></check-box>
656
-                    <check-box text="下肢水肿+++"  :checked="prescription.body_fluid==4?true:false"></check-box>
657
-                  </div>
658
-                  <!-- <div class="inline_block">
659
-                    其它:
660
-                    <div class="under_line" style="width: 100px;">
661
-                      <div class="under-line" v-if="prescription&&prescription.body_fluid_other.length > 0">&nbsp;{{prescription.body_fluid_other}}</div>
662
-                    </div>
663
-                  </div> -->
664
-                  <div class="inline_block" style="margin-left:20px;">
665
-                    透析前使用特殊药物:
666
-                    <check-box text="无" :checked="prescription.special_medicine==1?true:false"></check-box>
667
-                    <check-box text="降压药" :checked="prescription.special_medicine==2?true:false"></check-box>
668
-                    <check-box text="抗凝" :checked="prescription.special_medicine==3?true:false"></check-box>
652
+              </div>
653
+              <div class="row" style="padding: 2px 0; line-height:24px;">
654
+                <div class="inline_block">
655
+                  体液过多症状:
656
+                  <check-box text="无" :checked="prescription.body_fluid==1?true:false"></check-box>
657
+                  <check-box text="下肢水肿+" :checked="prescription.body_fluid==2?true:false"></check-box>
658
+                  <check-box text="下肢水肿++"  :checked="prescription.body_fluid==3?true:false"></check-box>
659
+                  <check-box text="下肢水肿+++"  :checked="prescription.body_fluid==4?true:false"></check-box>
660
+                </div>
661
+                <!-- <div class="inline_block">
662
+                  其它:
663
+                  <div class="under_line" style="width: 100px;">
664
+                    <div class="under-line" v-if="prescription&&prescription.body_fluid_other.length > 0">&nbsp;{{prescription.body_fluid_other}}</div>
669 665
                   </div>
670
-                  <div class="inline_block">
671
-                    其它:
672
-                    <div class="under_line" style="width: 100px;">
673
-                      <span v-if="prescription.special_medicine == -1">{{prescription.special_medicine_other}}</span>
674
-                    </div>
666
+                </div> -->
667
+                <div class="inline_block" style="margin-left:20px;">
668
+                  透析前使用特殊药物:
669
+                  <check-box text="无" :checked="prescription.special_medicine==1?true:false"></check-box>
670
+                  <check-box text="降压药" :checked="prescription.special_medicine==2?true:false"></check-box>
671
+                  <check-box text="抗凝" :checked="prescription.special_medicine==3?true:false"></check-box>
672
+                </div>
673
+                <div class="inline_block">
674
+                  其它:
675
+                  <div class="under_line" style="width: 100px;">
676
+                    <span v-if="prescription.special_medicine == -1">{{prescription.special_medicine_other}}</span>
675 677
                   </div>
676 678
                 </div>
677
-                <div class="row" style="padding: 2px 0;line-height:24px;">
678
-                  <div class="inline_block">
679
-                    透析液(mmol/L): &emsp;Ca<sup>2+</sup>:
680
-                    <div class="under_line" style="width: 70px;">
681
-                        <span v-if="prescription.calcium">{{getFloat(prescription.calcium)?getFloat(prescription.calcium):'/'}}</span>
682
-                      <span v-else>{{'/'}}</span>
679
+              </div>
680
+              <div class="row" style="padding: 2px 0;line-height:24px;">
681
+                <div class="inline_block">
682
+                  透析液(mmol/L): &emsp;Ca<sup>2+</sup>:
683
+                  <div class="under_line" style="width: 70px;">
684
+                      <span v-if="prescription.calcium">{{getFloat(prescription.calcium)?getFloat(prescription.calcium):'/'}}</span>
685
+                    <span v-else>{{'/'}}</span>
683 686
 
684
-                    </div>
685
-                    mmol/L &emsp;Na<sup>+</sup>:
686
-                    <div class="under_line" style="width: 70px;">
687
-                      <span v-if="prescription.sodium">{{getFloat(prescription.sodium)?getFloat(prescription.sodium):'/'}}</span>
688
-                      <span v-else>{{'/'}}</span>
687
+                  </div>
688
+                  mmol/L &emsp;Na<sup>+</sup>:
689
+                  <div class="under_line" style="width: 70px;">
690
+                    <span v-if="prescription.sodium">{{getFloat(prescription.sodium)?getFloat(prescription.sodium):'/'}}</span>
691
+                    <span v-else>{{'/'}}</span>
689 692
 
690
-                    </div>
691
-                    mmol/L &emsp;K<sup>+</sup>:
692
-                    <div class="under_line" style="width: 70px;">
693
-                      <span v-if="prescription.kalium">{{getFloat(prescription.kalium)?getFloat(prescription.kalium):'/'}}</span>
694
-                      <span v-else>{{'/'}}</span>
693
+                  </div>
694
+                  mmol/L &emsp;K<sup>+</sup>:
695
+                  <div class="under_line" style="width: 70px;">
696
+                    <span v-if="prescription.kalium">{{getFloat(prescription.kalium)?getFloat(prescription.kalium):'/'}}</span>
697
+                    <span v-else>{{'/'}}</span>
695 698
 
696 699
 
697
-                    </div>
698
-                    mmol/L
699 700
                   </div>
700
-                  <div class="inline_block" v-if="prescription.displace_liqui_part == 0">
701
-                    &emsp;置换液后/前稀释 总量:
702
-                    <div class="under_line" style="width: 100px;">
703
-                      {{prescription.displace_liqui_value?prescription.displace_liqui_value:'/'}}
704
-                    </div>
705
-                    L
706
-                  </div>
707
-                  <div class="inline_block" v-if="prescription.displace_liqui_part == 1">
708
-                    &emsp;置换液前稀释 总量:
709
-                    <div class="under_line" style="width: 100px;">
710
-                      {{prescription.displace_liqui_value?prescription.displace_liqui_value:'/'}}
711
-                    </div>
712
-                    L
701
+                  mmol/L
702
+                </div>
703
+                <div class="inline_block" v-if="prescription.displace_liqui_part == 0">
704
+                  &emsp;置换液后/前稀释 总量:
705
+                  <div class="under_line" style="width: 100px;">
706
+                    {{prescription.displace_liqui_value?prescription.displace_liqui_value:'/'}}
713 707
                   </div>
714
-                  <div class="inline_block" v-if="prescription.displace_liqui_part == 2">
715
-                    &emsp;置换液后稀释 总量:
716
-                    <div class="under_line" style="width: 100px;">
717
-                      {{prescription.displace_liqui_value?prescription.displace_liqui_value:'/'}}
718
-                    </div>
719
-                    L
708
+                  L
709
+                </div>
710
+                <div class="inline_block" v-if="prescription.displace_liqui_part == 1">
711
+                  &emsp;置换液前稀释 总量:
712
+                  <div class="under_line" style="width: 100px;">
713
+                    {{prescription.displace_liqui_value?prescription.displace_liqui_value:'/'}}
720 714
                   </div>
715
+                  L
721 716
                 </div>
722
-                <div class="row" style="padding: 2px 0;line-height:24px;">
723
-                  <div class="inline_block">
724
-                    血管通路:
725
-                    <check-box text="内瘘" :checked="prescription.blood_access == 1?true:false"></check-box>
726
-                    <check-box text="直穿" :checked="prescription.blood_access == 2?true:false"></check-box>
727
-                    <check-box text="导管" :checked="prescription.blood_access == 3?true:false"></check-box>
717
+                <div class="inline_block" v-if="prescription.displace_liqui_part == 2">
718
+                  &emsp;置换液后稀释 总量:
719
+                  <div class="under_line" style="width: 100px;">
720
+                    {{prescription.displace_liqui_value?prescription.displace_liqui_value:'/'}}
728 721
                   </div>
729
-                  <div class="inline_block">
730
-                    &emsp;血流量:
731
-                    <div class="under_line" style="width: 100px;">
732
-                      {{prescription.blood_flow_volume?prescription.blood_flow_volume:'/'}}
733
-                    </div>
734
-                    ml/min
722
+                  L
723
+                </div>
724
+              </div>
725
+              <div class="row" style="padding: 2px 0;line-height:24px;">
726
+                <div class="inline_block">
727
+                  血管通路:
728
+                  <check-box text="内瘘" :checked="prescription.blood_access == 1?true:false"></check-box>
729
+                  <check-box text="直穿" :checked="prescription.blood_access == 2?true:false"></check-box>
730
+                  <check-box text="导管" :checked="prescription.blood_access == 3?true:false"></check-box>
731
+                </div>
732
+                <div class="inline_block">
733
+                  &emsp;血流量:
734
+                  <div class="under_line" style="width: 100px;">
735
+                    {{prescription.blood_flow_volume?prescription.blood_flow_volume:'/'}}
735 736
                   </div>
736
-                  <div class="inline_block">
737
-                    &emsp;透析液流量:
738
-                    <div class="under_line" style="width: 100px;">
739
-                      {{prescription.dialysate_flow?prescription.dialysate_flow:'/'}}
740
-                    </div>
741
-                    ml/min
737
+                  ml/min
738
+                </div>
739
+                <div class="inline_block">
740
+                  &emsp;透析液流量:
741
+                  <div class="under_line" style="width: 100px;">
742
+                    {{prescription.dialysate_flow?prescription.dialysate_flow:'/'}}
742 743
                   </div>
744
+                  ml/min
743 745
                 </div>
744
-                <div class="row" style="padding: 2px 0;line-height:24px;">
745
-                  <div class="inline_block">
746
-                    透前体重:
747
-                    <div class="under_line" style="width: 100px;">
748
-                      {{predialysis.weight_before?predialysis.weight_before:'/'}}
749
-                    </div>
750
-                    kg
746
+              </div>
747
+              <div class="row" style="padding: 2px 0;line-height:24px;">
748
+                <div class="inline_block">
749
+                  透前体重:
750
+                  <div class="under_line" style="width: 100px;">
751
+                    {{predialysis.weight_before?predialysis.weight_before:'/'}}
751 752
                   </div>
752
-                  <div class="inline_block">
753
-                    &emsp;设定超滤量:
754
-                    <div class="under_line" style="width: 100px;">
755
-                      {{prescription.target_ultrafiltration?prescription.target_ultrafiltration:'/'}}
756
-                    </div>
757
-                    L
753
+                  kg
754
+                </div>
755
+                <div class="inline_block">
756
+                  &emsp;设定超滤量:
757
+                  <div class="under_line" style="width: 100px;">
758
+                    {{prescription.target_ultrafiltration?prescription.target_ultrafiltration:'/'}}
758 759
                   </div>
759
-                  <div class="inline_block">
760
-                    &emsp;实际超滤量:
761
-                    <div class="under_line" style="width: 100px;">
762
-                      {{prescription.ultrafiltration?prescription.ultrafiltration:'/'}}
763
-                    </div>
764
-                    L
760
+                  L
761
+                </div>
762
+                <div class="inline_block">
763
+                  &emsp;实际超滤量:
764
+                  <div class="under_line" style="width: 100px;">
765
+                    {{prescription.ultrafiltration?prescription.ultrafiltration:'/'}}
765 766
                   </div>
766
-                  <div class="inline_block">
767
-                    透后体重:
768
-                    <div class="under_line" style="width: 100px;">
769
-                      {{afterdialysis.weight_after?afterdialysis.weight_after:'/'}}
770
-                    </div>
771
-                    kg
767
+                  L
768
+                </div>
769
+                <div class="inline_block">
770
+                  透后体重:
771
+                  <div class="under_line" style="width: 100px;">
772
+                    {{afterdialysis.weight_after?afterdialysis.weight_after:'/'}}
772 773
                   </div>
774
+                  kg
773 775
                 </div>
776
+              </div>
777
+            </td>
778
+          </tr>
779
+        </tbody>
780
+      </table>
781
+      <table class="print-table-no" border="1"  count="0" :style="this.advice_groups_2.length > 0 ? 'margin-bottom:350px;margin-top: -1px;position: relative;':'margin-top: -1px;position: relative;'">
782
+        <tbody>
783
+          <tr style="line-height:35px;padding:8px 5px;">
784
+            <td colspan="7" style="font-size: 18px">医嘱</td>
785
+          </tr>
786
+          <tr style="line-height:35px;padding:8px 5px;">
787
+            <td colspan="4" style="font-size: 16px">开医嘱</td>
788
+            <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
789
+          </tr>
790
+          <tr style="line-height:35px;padding:8px 5px;">
791
+            <td style="font-size: 16px" width="10%">时间</td>
792
+            <td style="font-size: 16px" colspan="2" width="45%">医嘱内容</td>
793
+            <td style="font-size: 16px" width="10%">医生签名</td>
794
+            <td style="font-size: 16px" width="10%">核对人签名</td>
795
+            <td style="font-size: 16px" width="10%">执行人签名</td>
796
+            <td style="font-size: 16px" width="10%">时间</td>
797
+          </tr>
798
+          <template v-for="(group, group_index) in advice_groups" >
799
+            <tr v-for="(advice, advice_index) in group.advices" :key="advice_index" >
800
+              <td height="60px" v-if="advice_index == 0" :rowspan="group.advices.length">
801
+                <span v-if="advice.start_time">
802
+                  {{getTime(advice.start_time,'{y}-{m}-{d} {h}:{i}')}}
803
+                </span>
804
+                <span v-else>&nbsp;<br/>&nbsp;</span>
805
+              </td>
806
+              <td height="60px" class="advice-name" style="padding-left:7px;" :colspan="advice.children && advice.children.length > 0 || advice.parent_id > 0 ? 1 :2" v-if="advice.isShow == 2">
807
+                <span >{{advice.advice_name }}</span>
808
+                <span>{{advice.advice_desc}}</span>
809
+                <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
810
+                <span  v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
811
+                <span v-if="advice.parent_id == 0  && advice.children.length == 0">{{advice.delivery_way}}</span>
812
+                <span v-if="advice.parent_id == 0  && advice.children.length == 0">{{advice.execution_frequency}}</span>
813
+                <span v-if="advice.parent_id == 0 && advice.children &&  advice.children.length == 0 && advice.remark.length > 0" >({{advice.remark}})</span>
814
+              </td>
815
+              <td colspan="2" height="60px" style="text-align: center" v-else >
816
+                <span>{{advice.delivery_way}}</span>
817
+                <span>{{advice.execution_frequency}}</span>
818
+                <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
819
+              </td>
820
+              <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td>
821
+              <td height="60px">
822
+                <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{getAdminUser(advice.advice_doctor)}}</span>
823
+                <img class="es-img" :src="setAdminUserES(advice.advice_doctor)" alt="" srcset="" v-else>
824
+              </td>
825
+              <td height="60px">
826
+                <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
827
+                <img class="es-img" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
828
+              </td>
829
+              <td height="60px">
830
+                <span v-if="setAdminUserES(advice.execution_staff) == ''">{{getAdminUser(advice.execution_staff)}}</span>
831
+                <img class="es-img" :src="setAdminUserES(advice.execution_staff)" alt="" srcset="" v-else>
832
+              </td>
833
+              <td height="60px">
834
+                <span v-if="advice.execution_time">{{getTime(advice.execution_time,'{y}-{m}-{d} {h}:{i}')}}</span>
774 835
               </td>
775 836
             </tr>
776
-          </tbody>
777
-        </table>
778
-        <table class="print-table-no" border="1"  count="0" >
779
-          <tbody>
780
-            <tr style="line-height:35px;padding:8px 5px;">
781
-              <td colspan="7" style="font-size: 18px">医嘱</td>
782
-            </tr>
783
-            <tr style="line-height:35px;padding:8px 5px;">
784
-              <td colspan="4" style="font-size: 16px">开医嘱</td>
785
-              <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
786
-            </tr>
787
-            <tr style="line-height:35px;padding:8px 5px;">
788
-              <td style="font-size: 16px" width="10%">时间</td>
789
-              <td style="font-size: 16px" colspan="2" width="45%">医嘱内容</td>
790
-              <td style="font-size: 16px" width="10%">医生签名</td>
791
-              <td style="font-size: 16px" width="10%">核对人签名</td>
792
-              <td style="font-size: 16px" width="10%">执行人签名</td>
793
-              <td style="font-size: 16px" width="10%">时间</td>
794
-            </tr>
795
-            <template v-for="(group, group_index) in advice_groups" >
796
-              <tr v-for="(advice, advice_index) in group.advices" :key="advice_index" >
797
-                <td height="60px" v-if="advice_index == 0" :rowspan="group.advices.length">
798
-                  <span v-if="advice.start_time">
799
-                    {{getTime(advice.start_time,'{y}-{m}-{d} {h}:{i}')}}
800
-                  </span>
801
-                  <span v-else>&nbsp;<br/>&nbsp;</span>
802
-                </td>
803
-                <td height="60px" class="advice-name" style="padding-left:7px;" :colspan="advice.children && advice.children.length > 0 || advice.parent_id > 0 ? 1 :2" v-if="advice.isShow == 2">
804
-                  <span >{{advice.advice_name }}</span>
805
-                  <span>{{advice.advice_desc}}</span>
806
-                  <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
807
-                  <span  v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
808
-                  <span v-if="advice.parent_id == 0  && advice.children.length == 0">{{advice.delivery_way}}</span>
809
-                  <span v-if="advice.parent_id == 0  && advice.children.length == 0">{{advice.execution_frequency}}</span>
810
-                  <span v-if="advice.parent_id == 0 && advice.children &&  advice.children.length == 0 && advice.remark.length > 0" >({{advice.remark}})</span>
811
-                </td>
812
-                <td colspan="2" height="60px" style="text-align: center" v-else >
813
-                  <span>{{advice.delivery_way}}</span>
814
-                  <span>{{advice.execution_frequency}}</span>
815
-                  <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
816
-                </td>
817
-                <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td>
818
-                <td height="60px">
819
-                  <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{getAdminUser(advice.advice_doctor)}}</span>
820
-                  <img class="es-img" :src="setAdminUserES(advice.advice_doctor)" alt="" srcset="" v-else>
821
-                </td>
822
-                <td height="60px">
823
-                  <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
824
-                  <img class="es-img" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
825
-                </td>
826
-                <td height="60px">
827
-                  <span v-if="setAdminUserES(advice.execution_staff) == ''">{{getAdminUser(advice.execution_staff)}}</span>
828
-                  <img class="es-img" :src="setAdminUserES(advice.execution_staff)" alt="" srcset="" v-else>
829
-                </td>
830
-                <td height="60px">
831
-                  <span v-if="advice.execution_time">{{getTime(advice.execution_time,'{y}-{m}-{d} {h}:{i}')}}</span>
832
-                </td>
833
-              </tr>
834
-            </template>
835
-          </tbody>
836
-        </table>
837
-        <div :style="this.advice_groups_2.length > 0 ? 'margin-bottom:350px;border-top:0;text-align:center;margin-top:10px;':'border-top:0;text-align:center;margin-top:10px;'" >1</div>
838
-
839
-        <template v-if="this.advice_groups_2.length > 0">
837
+          </template>
838
+        </tbody>
839
+        <div class="print-yema4">1</div>
840
+      </table>
841
+      
842
+
843
+      <template v-if="this.advice_groups_2.length > 0">
844
+        <div style="position: relative;">
840 845
           <div class="order-yy-name">{{orgname}}</div>
841 846
           <div class="order_title"> 血液净化科医嘱及执行单 </div>
842 847
           <div class="row" style="margin-top: 15px;">
@@ -931,9 +936,10 @@
931 936
               </template>
932 937
             </tbody>
933 938
           </table>
934
-          <div style="text-align:center;margin-top:10px;" >2</div>
935
-        </template>
936
-      </div>
939
+          <div class="print-yema4">2</div>
940
+        </div>
941
+      </template>
942
+      
937 943
     </div>
938 944
   </div>
939 945
 </template>
@@ -987,6 +993,7 @@
987 993
         anticoagulantsConfit: {},
988 994
         bloodAccessParOpera: {},
989 995
         dialysateFormulationOptions: {},
996
+        print_length : 0,
990 997
 
991 998
         queryParams: {
992 999
           xtdate: '',
@@ -1224,8 +1231,15 @@
1224 1231
           this.monitors = response.data.data.monitors
1225 1232
           this.summary = response.data.data.summary
1226 1233
           this.org_template_info = response.data.data.org_template_info
1227
-          if (this.monitors.length < 8) {
1228
-            var nl = 8 - this.monitors.length
1234
+  
1235
+          if (this.monitors.length <= 9) {
1236
+            if(this.predialysis.systolic_blood_pressure != 0&&this.predialysis.diastolic_blood_pressure != 0||this.predialysis.remark.length > 0 || this.predialysis.pulse_frequency != 0 || this.predialysis.breathing_rate != 0 || this.predialysis.temperature != 0){
1237
+              var nl = 8
1238
+              this.print_length = 8
1239
+            }else{
1240
+              var nl = 9
1241
+              this.print_length = 9
1242
+            }
1229 1243
             for (let index = 0; index < nl; index++) {
1230 1244
               if (this.monitors[index] == undefined || this.monitors[index].length <= 0) {
1231 1245
                 this.monitors.push([])
@@ -1705,4 +1719,20 @@
1705 1719
   .margin-bottom-900 {
1706 1720
     margin-bottom:900px;
1707 1721
   }
1722
+  .print-yema{
1723
+    position: absolute;
1724
+    left: 50%;
1725
+  }
1726
+  .print-yema2{
1727
+    position: absolute;
1728
+    left: 50%;
1729
+  }
1730
+  .print-yema3{
1731
+    position: absolute;
1732
+    left: 50%;
1733
+  }
1734
+  .print-yema4{
1735
+    position: absolute;
1736
+    left: 50%;
1737
+  }
1708 1738
 </style>

+ 13 - 13
src/xt_permission.js Wyświetl plik

@@ -10,19 +10,19 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
10 10
 
11 11
 router.beforeEach((to, from, next) => {
12 12
   // 线上注释
13
-  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
14
-    store.dispatch('VerifyConfigList', []).then(() => {
15
-      next()
16
-    })
17
-  }
18
-  if (store.getters.permission_routers === undefined) {
19
-    store.dispatch('xt_GenerateRoutes', []).then(() => {
20
-      next()
21
-    })
22
-  } else {
23
-    next()
24
-  }
25
-  return
13
+  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
14
+  //   store.dispatch('VerifyConfigList', []).then(() => {
15
+  //     next()
16
+  //   })
17
+  // }
18
+  // if (store.getters.permission_routers === undefined) {
19
+  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
20
+  //     next()
21
+  //   })
22
+  // } else {
23
+  //   next()
24
+  // }
25
+  // return
26 26
   // 线上注释
27 27
 
28 28
   NProgress.start()