See999 3 years ago
parent
commit
7b617ccbc9

+ 64 - 4
src/xt_pages/dialysis/dialysisPrintOrder.vue View File

@@ -160,7 +160,40 @@
160 160
           >打印</el-button
161 161
         >
162 162
       </template>
163
-      <template v-if="org_template_info.template_id == 14">
163
+      <template
164
+        v-if="
165
+          org_template_info.template_id == 14 ||
166
+            org_template_info.template_id == 0
167
+        "
168
+      >
169
+      <div>
170
+          <el-button
171
+            :loading="loading"
172
+            size="small"
173
+            icon="el-icon-printer"
174
+            @click="printThisPage"
175
+            type="primary"
176
+            >打印全部</el-button
177
+          >
178
+          <el-button
179
+            :loading="loading"
180
+            size="small"
181
+            icon="el-icon-printer"
182
+            @click="printThisOnePage"
183
+            type="primary"
184
+            >打印纪录单</el-button
185
+          >
186
+          <el-button
187
+            :loading="loading"
188
+            size="small"
189
+            icon="el-icon-printer"
190
+            @click="printThisTwoPage"
191
+            type="primary"
192
+            >打印医嘱单</el-button
193
+          >
194
+        </div>
195
+      </template>
196
+      <template v-if="org_template_info.template_id == 15">
164 197
         <el-button
165 198
           :loading="loading"
166 199
           size="small"
@@ -170,7 +203,7 @@
170 203
           >打印</el-button
171 204
         >
172 205
       </template>
173
-      <template v-if="org_template_info.template_id == 15">
206
+      <template v-if="org_template_info.template_id == 16">
174 207
         <el-button
175 208
           :loading="loading"
176 209
           size="small"
@@ -180,7 +213,7 @@
180 213
           >打印</el-button
181 214
         >
182 215
       </template>
183
-      <template v-if="org_template_info.template_id == 16">
216
+      <template v-if="org_template_info.template_id == 17">
184 217
         <el-button
185 218
           :loading="loading"
186 219
           size="small"
@@ -358,6 +391,10 @@
358 391
             v-bind:childResponse="childResponse"
359 392
             v-if="org_template_info.template_id == 16"
360 393
           ></DialysisPrintOrderSixteen>
394
+          <DialysisPrintOrderSeventeen
395
+            v-bind:childResponse="childResponse"
396
+            v-if="org_template_info.template_id == 17"
397
+          ></DialysisPrintOrderSeventeen>
361 398
         </div>
362 399
       </el-container>
363 400
     </div>
@@ -393,10 +430,12 @@ import DialysisPrintOrderThirteen from "./template/DialysisPrintOrderThirteen";
393 430
 import DialysisPrintOrderFourteen from "./template/DialysisPrintOrderFourteen";
394 431
 import DialysisPrintOrderFifteen from "./template/DialysisPrintOrderFifteen";
395 432
 import DialysisPrintOrderSixteen from "./template/DialysisPrintOrderSixteen";
433
+import DialysisPrintOrderSeventeen from "./template/DialysisPrintOrderSeventeen";
396 434
 
397 435
 export default {
398 436
   name: "dialysisPrintOrder",
399 437
   components: {
438
+    DialysisPrintOrderSeventeen,
400 439
     DialysisPrintOrderSixteen,
401 440
     DialysisPrintOrderFifteen,
402 441
     DialysisPrintOrderFourteen,
@@ -689,6 +728,13 @@ export default {
689 728
           style: style,
690 729
           scanStyles: false
691 730
         });
731
+      } else if (this.org_template_info.template_id == 17) {
732
+        printJS({
733
+          printable: "dialysis-print-box",
734
+          type: "html",
735
+          style: style,
736
+          scanStyles: false
737
+        });
692 738
       }
693 739
     },
694 740
     printThisOnePage() {
@@ -710,7 +756,7 @@ export default {
710 756
       } else if (
711 757
         this.org_template_info.template_id == 2 ||
712 758
         this.org_template_info.template_id == 0 ||
713
-        this.org_template_info.template_id == 5
759
+        this.org_template_info.template_id == 5 
714 760
       ) {
715 761
         printJS({
716 762
           printable: "dialysis-print-box-1-1",
@@ -718,6 +764,13 @@ export default {
718 764
           style: style2,
719 765
           scanStyles: false
720 766
         });
767
+      } else if(this.org_template_info.template_id == 14){
768
+        printJS({
769
+          printable: "new-dialysis-1",
770
+          type: "html",
771
+          style: style,
772
+          scanStyles: false
773
+        });
721 774
       }
722 775
     },
723 776
     printThisTwoPage() {
@@ -747,6 +800,13 @@ export default {
747 800
           style: style2,
748 801
           scanStyles: false
749 802
         });
803
+      }else if(this.org_template_info.template_id == 14){
804
+        printJS({
805
+          printable: "new-dialysis-2",
806
+          type: "html",
807
+          style: style,
808
+          scanStyles: false
809
+        });
750 810
       }
751 811
     },
752 812
     getNumber() {

+ 29 - 19
src/xt_pages/dialysis/template/DialysisPrintOrderFourteen.vue View File

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div id="dialysis-print-box">
3
-    <div class="dialysis-print-order">
3
+    <div id='new-dialysis-1' class="dialysis-print-order">
4 4
       <div class="order-yy-name">{{ orgname }}</div>
5 5
       <div class="order-title">血液净化治疗记录单</div>
6 6
       <table class="table-box" style="margin-top: 10px;">
@@ -12,28 +12,29 @@
12 12
             </td>
13 13
             <td width="10"></td>
14 14
             <td width="50">性 别:</td>
15
-            <td width="50">
15
+            <td width="90">
16 16
               <div class="under-line">{{ patientInfo.gender }}</div>
17 17
             </td>
18 18
             <td width="10"></td>
19 19
             <td width="50">年 龄:</td>
20
-            <td width="40">
20
+            <td width="90">
21 21
               <div class="under-line">{{ getAge(patientInfo) }}</div>
22 22
             </td>
23 23
             <td width="30">岁</td>
24 24
 
25
-            <td width="130">病人住院号/门诊号:</td>
26
-            <td width="100">
25
+            <td width="50">住院号:</td>
26
+            <td width="150">
27 27
               <div class="under-line">
28
-                  {{ receiverTreatmentAccess.admission_number ? receiverTreatmentAccess.admission_number : "" }}/
29
-                  {{ patientInfo.admission_number ? patientInfo.admission_number : "" }}
28
+                  {{ receiverTreatmentAccess.admission_number ? receiverTreatmentAccess.admission_number : "" }}
30 29
               </div>
31 30
             </td>
32 31
             <td width="20"></td>
33 32
 
34
-            <td width="30">住院</td>
33
+            <td width="50">门诊号:</td>
35 34
             <td width="150">
36
-                (科室<div class="under-line" style="width:80px;display:inline-block"></div>)
35
+              <div class="under-line">
36
+                {{ patientInfo.dialysis_no ? patientInfo.dialysis_no : "" }}
37
+              </div>
37 38
             </td>
38 39
             <td></td>
39 40
           </tr>
@@ -48,7 +49,7 @@
48 49
             </td>
49 50
             <td width="10"></td>
50 51
             <td width="110">上次透析时间:</td>
51
-            <td width="80">
52
+            <td width="120">
52 53
               <div class="under-line">{{lastpredialysis?getTime(lastpredialysis.assessment_date, "{y}-{m}-{d}"):''}}</div>
53 54
             </td>
54 55
             <td width="10"></td>
@@ -96,16 +97,16 @@
96 97
 
97 98
                     <td width="1"></td>
98 99
                     <td width="40">意识:</td>
99
-                    <td width="180">
100
+                    <td style="max-width:350px;">
100 101
                       <div>
101
-                        <!-- <label-box v-for="(item, index) in consciousness_arr" :key="index" :isChecked="receiverTreatmentAccess.consciousness == item.id ? true : false" :showValue="item.name"></label-box> -->
102
+                        <label-box style="margin-left:5px;" v-for="(item, index) in consciousness_arr" :key="index" :isChecked="receiverTreatmentAccess.consciousness == item.id ? true : false" :showValue="item.name"></label-box>&nbsp;
102 103
 
103
-                        <label-box :isChecked='receiverTreatmentAccess.consciousness==1?true:false' showValue='清醒'></label-box>
104
+                        <!-- <label-box :isChecked='receiverTreatmentAccess.consciousness==1?true:false' showValue='清醒'></label-box>
104 105
                         &nbsp;
105 106
                         <label-box :isChecked='receiverTreatmentAccess.consciousness==2?true:false' showValue='嗜睡'></label-box>
106 107
                         &nbsp;
107 108
                         <label-box :isChecked='receiverTreatmentAccess.consciousness == 3 ? true : false' showValue='其他'></label-box>
108
-                        &nbsp;
109
+                        &nbsp; -->
109 110
                         <!-- <label-box :isChecked='receiverTreatmentAccess.consciousness==3?true:false'
110 111
                         showValue='昏迷'></label-box>
111 112
                         <label-box :isChecked='receiverTreatmentAccess.consciousness==4?true:false'
@@ -128,7 +129,7 @@
128 129
                         &nbsp;{{ (predialysis.complication != "" && predialysis.complication != "无") ? predialysis.complication : "" }}
129 130
                       </div>
130 131
                     </td>
131
-                    <td width="35"></td>
132
+                    <td width=""></td>
132 133
                   </tr>
133 134
                 </tbody>
134 135
               </table>
@@ -342,7 +343,7 @@
342 343
                       </div>
343 344
                     </td>
344 345
                     <td width="10">(</td>
345
-                    <td width="190">
346
+                    <td width="380">
346 347
                       <div>
347 348
                         <label-box :isChecked="predialysis.blood_access_part_id ? (QueryPartById(predialysis.blood_access_part_id).indexOf('颈内') > -1 ? true : false) : false" showValue="颈内"></label-box>
348 349
                         &nbsp;
@@ -350,6 +351,12 @@
350 351
                         &nbsp;
351 352
                         <label-box :isChecked="predialysis.blood_access_part_id ? (QueryPartById(predialysis.blood_access_part_id).indexOf('锁骨下') > -1 ? true : false) : false" showValue="锁骨下"></label-box>
352 353
                         &nbsp;
354
+                        <label-box :isChecked="predialysis.blood_access_part_id ? (QueryPartById(predialysis.blood_access_part_id).indexOf('前臂') > -1 ? true : false) : false" showValue="前臂"></label-box>
355
+                        &nbsp;
356
+                        <label-box :isChecked="predialysis.blood_access_part_id ? (QueryPartById(predialysis.blood_access_part_id).indexOf('上臂') > -1 ? true : false) : false" showValue="上臂"></label-box>
357
+                        &nbsp;
358
+                        <label-box :isChecked="predialysis.blood_access_part_id ? (QueryPartById(predialysis.blood_access_part_id).indexOf('下肢') > -1 ? true : false) : false" showValue="下肢"></label-box>
359
+                        &nbsp;
353 360
                       </div>
354 361
                     </td>
355 362
                     <td width="10">)</td>
@@ -859,6 +866,12 @@
859 866
         </tbody>
860 867
       </table>
861 868
       <div style="page-break-after: always;"></div>
869
+      
870
+      
871
+
872
+      
873
+    </div>
874
+    <div id='new-dialysis-2' class="dialysis-print-order">
862 875
       <div class="order-yy-name">{{ orgname }}</div>
863 876
       <div class="order-title">临时医嘱单</div>
864 877
       <table class="table-box" style="margin-top: 10px;">
@@ -939,9 +952,6 @@
939 952
           </td>
940 953
         </tr>
941 954
       </table>
942
-      
943
-
944
-      
945 955
     </div>
946 956
   </div>
947 957
 </template>