See999 3 jaren geleden
bovenliggende
commit
7b617ccbc9

+ 64 - 4
src/xt_pages/dialysis/dialysisPrintOrder.vue Bestand weergeven

160
           >打印</el-button
160
           >打印</el-button
161
         >
161
         >
162
       </template>
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
         <el-button
197
         <el-button
165
           :loading="loading"
198
           :loading="loading"
166
           size="small"
199
           size="small"
170
           >打印</el-button
203
           >打印</el-button
171
         >
204
         >
172
       </template>
205
       </template>
173
-      <template v-if="org_template_info.template_id == 15">
206
+      <template v-if="org_template_info.template_id == 16">
174
         <el-button
207
         <el-button
175
           :loading="loading"
208
           :loading="loading"
176
           size="small"
209
           size="small"
180
           >打印</el-button
213
           >打印</el-button
181
         >
214
         >
182
       </template>
215
       </template>
183
-      <template v-if="org_template_info.template_id == 16">
216
+      <template v-if="org_template_info.template_id == 17">
184
         <el-button
217
         <el-button
185
           :loading="loading"
218
           :loading="loading"
186
           size="small"
219
           size="small"
358
             v-bind:childResponse="childResponse"
391
             v-bind:childResponse="childResponse"
359
             v-if="org_template_info.template_id == 16"
392
             v-if="org_template_info.template_id == 16"
360
           ></DialysisPrintOrderSixteen>
393
           ></DialysisPrintOrderSixteen>
394
+          <DialysisPrintOrderSeventeen
395
+            v-bind:childResponse="childResponse"
396
+            v-if="org_template_info.template_id == 17"
397
+          ></DialysisPrintOrderSeventeen>
361
         </div>
398
         </div>
362
       </el-container>
399
       </el-container>
363
     </div>
400
     </div>
393
 import DialysisPrintOrderFourteen from "./template/DialysisPrintOrderFourteen";
430
 import DialysisPrintOrderFourteen from "./template/DialysisPrintOrderFourteen";
394
 import DialysisPrintOrderFifteen from "./template/DialysisPrintOrderFifteen";
431
 import DialysisPrintOrderFifteen from "./template/DialysisPrintOrderFifteen";
395
 import DialysisPrintOrderSixteen from "./template/DialysisPrintOrderSixteen";
432
 import DialysisPrintOrderSixteen from "./template/DialysisPrintOrderSixteen";
433
+import DialysisPrintOrderSeventeen from "./template/DialysisPrintOrderSeventeen";
396
 
434
 
397
 export default {
435
 export default {
398
   name: "dialysisPrintOrder",
436
   name: "dialysisPrintOrder",
399
   components: {
437
   components: {
438
+    DialysisPrintOrderSeventeen,
400
     DialysisPrintOrderSixteen,
439
     DialysisPrintOrderSixteen,
401
     DialysisPrintOrderFifteen,
440
     DialysisPrintOrderFifteen,
402
     DialysisPrintOrderFourteen,
441
     DialysisPrintOrderFourteen,
689
           style: style,
728
           style: style,
690
           scanStyles: false
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
     printThisOnePage() {
740
     printThisOnePage() {
710
       } else if (
756
       } else if (
711
         this.org_template_info.template_id == 2 ||
757
         this.org_template_info.template_id == 2 ||
712
         this.org_template_info.template_id == 0 ||
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
         printJS({
761
         printJS({
716
           printable: "dialysis-print-box-1-1",
762
           printable: "dialysis-print-box-1-1",
718
           style: style2,
764
           style: style2,
719
           scanStyles: false
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
     printThisTwoPage() {
776
     printThisTwoPage() {
747
           style: style2,
800
           style: style2,
748
           scanStyles: false
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
     getNumber() {
812
     getNumber() {

+ 29 - 19
src/xt_pages/dialysis/template/DialysisPrintOrderFourteen.vue Bestand weergeven

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