Browse Source

25 3月5 打印单

yq1 1 month ago
parent
commit
4012132ef1

File diff suppressed because it is too large
+ 364 - 344
src/xt_pages/dialysis/batch_print/batch_print_order_eightyTwo.vue


+ 2 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_eightyfour.vue View File

@@ -324,7 +324,8 @@
324 324
                       </td>
325 325
                       <td>{{ advice[0].delivery_way }}</td>
326 326
                       <td>{{ getTime(advice[0].execution_time, "{y}-{m}-{d} {h}:{i}") }}</td>
327
-                      <td style="height:30px;line-height:30px">杨能华/
327
+                      <td style="height:30px;line-height:30px">
328
+                        <span v-if="advice[0].start_time>0">杨能华/</span>
328 329
                         <span v-if="setAdminUserES(advice[0],'advice_doctor') == ''">
329 330
                           {{ getAdminUser(advice[0],'advice_doctor')}}
330 331
                         </span>

+ 75 - 65
src/xt_pages/dialysis/batch_print/batch_print_order_eightyone.vue View File

@@ -319,9 +319,9 @@
319 319
                         预透时间:
320 320
                         <div class="under_line" style=" width: 50%; text-align: center; white-space: normal; ">
321 321
                           {{ record.prescription.dialysis_duration_hour ? record.prescription.dialysis_duration_hour :
322
-                          "0"}}h
322
+                            "0" }}h
323 323
                           {{ record.prescription.dialysis_duration_minute ? record.prescription.dialysis_duration_minute
324
-                          : "0"}}min
324
+                            : "0" }}min
325 325
                         </div>
326 326
                       </div>
327 327
                       <div class="inline_block" style="flex: 1">
@@ -367,10 +367,10 @@
367 367
                         上次透后体重:
368 368
                         <div class="under_line" style="width: 50px; text-align: center">
369 369
                           <span v-if="record.lastafterweight.weight_after > 0"> {{ record.lastafterweight.weight_after ?
370
-                            record.lastafterweight.weight_after:"未称重"}}</span>
370
+                            record.lastafterweight.weight_after : "未称重" }}</span>
371 371
                           <span v-if="record.lastafterweight.weight_after <= 0">
372 372
                             {{ record.assessment_after_dislysis.last_after_weight ?
373
-                              record.assessment_after_dislysis.last_after_weight:"未称重"}}</span>
373
+                              record.assessment_after_dislysis.last_after_weight : "未称重" }}</span>
374 374
                         </div>
375 375
                         kg
376 376
                       </div>
@@ -400,7 +400,7 @@
400 400
                               record.lastafterweight.weight_after > 0
401 401
                               ? parseFloat(record.assessment_before_dislysis.weight_before -
402 402
                                 record.assessment_before_dislysis.additional_weight
403
-                                - record.lastafterweight.weight_after).toFixed(2): "/"
403
+                                - record.lastafterweight.weight_after).toFixed(2) : "/"
404 404
                             }}
405 405
                           </span>
406 406
 
@@ -410,7 +410,7 @@
410 410
                               record.assessment_after_dislysis.last_after_weight > 0
411 411
                               ? parseFloat(record.assessment_before_dislysis.weight_before -
412 412
                                 record.assessment_before_dislysis.additional_weight
413
-                                - record.assessment_after_dislysis.last_after_weight).toFixed(2): "/"
413
+                                - record.assessment_after_dislysis.last_after_weight).toFixed(2) : "/"
414 414
                             }}
415 415
                           </span>
416 416
 
@@ -614,7 +614,8 @@
614 614
                           <td>{{ monitor_record.blood_flow_volume ? monitor_record.blood_flow_volume : "" }}</td>
615 615
                           <td>{{ monitor_record.replacement_rate ? monitor_record.replacement_rate : '/' }}</td>
616 616
                           <td>{{ monitor_record.ultrafiltration_rate ? monitor_record.ultrafiltration_rate : '/' }}</td>
617
-                          <td>{{ monitor_record.ultrafiltration_volume ? monitor_record.ultrafiltration_volume : "0" }}</td>
617
+                          <td>{{ monitor_record.ultrafiltration_volume ? monitor_record.ultrafiltration_volume : "0" }}
618
+                          </td>
618 619
                           <td>{{ monitor_record.venous_pressure ? monitor_record.venous_pressure : "/" }}</td>
619 620
                           <td>{{ monitor_record.transmembrane_pressure ? monitor_record.transmembrane_pressure : "" }}
620 621
                           </td>
@@ -624,7 +625,7 @@
624 625
                           <td>{{ monitor_record.pulse_frequency ? monitor_record.pulse_frequency : "" }}</td>
625 626
                           <td>{{ monitor_record.breathing_rate ? monitor_record.breathing_rate : "" }}</td>
626 627
                           <td>{{ monitor_record.systolic_blood_pressure ? monitor_record.systolic_blood_pressure + "/" :
627
-                            ""}}
628
+                            "" }}
628 629
                             {{ monitor_record.diastolic_blood_pressure ? monitor_record.diastolic_blood_pressure : "" }}
629 630
                           </td>
630 631
 
@@ -733,10 +734,10 @@
733 734
 
734 735
                                 <span v-if="it.parent_id == 0">{{
735 736
                                   it.delivery_way
736
-                                  }}</span>
737
+                                }}</span>
737 738
                                 <span v-if="it.parent_id == 0">{{
738 739
                                   it.execution_frequency
739
-                                  }}</span>
740
+                                }}</span>
740 741
                                 <span v-if="
741 742
                                   it.parent_id == 0 &&
742 743
                                   it.remark.length > 0
@@ -750,8 +751,8 @@
750 751
                                 setAdminUserES(advice, 'advice_doctor') ==
751 752
                                 ''
752 753
                               ">{{
753
-                                  getAdminUser(advice, "advice_doctor")
754
-                                }}</span>
754
+                                getAdminUser(advice, "advice_doctor")
755
+                              }}</span>
755 756
                               <img class="es-img" :src="setAdminUserES(advice, 'advice_doctor')
756 757
                                 " alt="" srcset="" v-else style="height: 30px" />
757 758
                             </td>
@@ -767,8 +768,8 @@
767 768
                                   'execution_staff'
768 769
                                 ) == ''
769 770
                               ">{{
770
-                                  getAdminUser(advice, "execution_staff")
771
-                                }}</span>
771
+                                getAdminUser(advice, "execution_staff")
772
+                              }}</span>
772 773
                               <img class="es-img" :src="setAdminUserES(advice, 'execution_staff')
773 774
                                 " alt="" srcset="" v-else style="height: 30px" />
774 775
                             </td>
@@ -781,26 +782,28 @@
781 782
                             </td>
782 783
 
783 784
                             <td height="35px" colspan="2" class="advice-name" style="padding-left: 7px">
784
-
785
+                              <span v-if="advice[0].parent_id>0">---></span>
785 786
                               <span>{{ advice[0].advice_name }}</span>
786 787
 
787 788
                               <span v-if="advice[0].advice_desc">
788
-                                ({{ advice[0].advice_desc
789
-                                }}{{ advice[0].drug_spec_unit }} )
789
+                                ({{ advice[0].advice_desc}}
790
+                                {{ advice[0].drug_spec_unit }} )
790 791
                               </span>
791 792
 
792
-                              <span v-if="advice[0].prescribing_number">&nbsp;{{ advice[0].prescribing_number
793
-                                }}{{ advice[0].prescribing_number_unit }}</span>
793
+                              <span v-if="advice[0].prescribing_number">&nbsp;
794
+                                {{ advice[0].prescribing_number}}
795
+                                {{ advice[0].prescribing_number_unit }}
796
+                              </span>
794 797
                               <span v-if="advice[0].single_dose != 0">
795
-                                {{ advice[0].single_dose
796
-                                }}{{ advice[0].single_dose_unit }}</span>
798
+                                {{ advice[0].single_dose}}{{ advice[0].single_dose_unit }}
799
+                              </span>
797 800
 
798
-                              <span v-if="advice[0].parent_id == 0">{{
799
-                                advice[0].delivery_way
800
-                              }}</span>
801
-                              <span v-if="advice[0].parent_id == 0">{{
802
-                                advice[0].execution_frequency
803
-                              }}</span>
801
+                              <span v-if="advice[0].parent_id == 0">
802
+                                {{advice[0].delivery_way}}
803
+                              </span>
804
+                              <span v-if="advice[0].parent_id == 0">
805
+                                {{advice[0].execution_frequency}}
806
+                              </span>
804 807
                               <span v-if="
805 808
                                 advice[0].parent_id == 0 &&
806 809
                                 advice[0].remark.length > 0
@@ -814,8 +817,8 @@
814 817
                                 setAdminUserES(advice[0], 'advice_doctor') ==
815 818
                                 ''
816 819
                               ">{{
817
-                                  getAdminUser(advice[0], "advice_doctor")
818
-                                }}</span>
820
+                                getAdminUser(advice[0], "advice_doctor")
821
+                              }}</span>
819 822
                               <img class="es-img" :src="setAdminUserES(advice[0], 'advice_doctor')
820 823
                                 " alt="" srcset="" v-else style="height: 30px" />
821 824
                             </td>
@@ -831,12 +834,13 @@
831 834
                                   'execution_staff'
832 835
                                 ) == ''
833 836
                               ">{{
834
-                                  getAdminUser(advice[0], "execution_staff")
835
-                                }}</span>
837
+                                getAdminUser(advice[0], "execution_staff")
838
+                              }}</span>
836 839
                               <img class="es-img" :src="setAdminUserES(advice[0], 'execution_staff')
837 840
                                 " alt="" srcset="" v-else style="height: 30px" />
838 841
                             </td>
839 842
                           </tr>
843
+                          
840 844
                           <!-- <template v-if="record.advices.length<3">
841 845
                             <tr v-for="item in 3">
842 846
                               <td height="35px"></td>
@@ -1176,7 +1180,8 @@
1176 1180
                     <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
1177 1181
                       <div class="inline_block" style="flex: 1">
1178 1182
                         上机护士:
1179
-                        <div class="under_line" style="width: 80px; text-align: center" v-if="record.dialysis_order.puncture_nurse>0">
1183
+                        <div class="under_line" style="width: 80px; text-align: center"
1184
+                          v-if="record.dialysis_order.puncture_nurse > 0">
1180 1185
                           <span style="display: inline-block" v-if="setAdminUserES(
1181 1186
                             record.dialysis_order, 'puncture_nurse'
1182 1187
                           ) == ''
@@ -1190,7 +1195,8 @@
1190 1195
                           )
1191 1196
                             " alt="" srcset="" v-else />
1192 1197
                         </div>
1193
-                        <div class="under_line" style="width: 80px; text-align: center" v-if="record.dialysis_order.change_nurse>0">
1198
+                        <div class="under_line" style="width: 80px; text-align: center"
1199
+                          v-if="record.dialysis_order.change_nurse > 0">
1194 1200
                           <span style="display: inline-block" v-if="setAdminUserES(
1195 1201
                             record.dialysis_order, 'change_nurse'
1196 1202
                           ) == ''
@@ -1339,16 +1345,16 @@
1339 1345
                               'finish_nurse'
1340 1346
                             ) == ''
1341 1347
                           ">{{
1342
-                              getAdminUser(
1348
+                            getAdminUser(
1349
+                              record.dialysis_order,
1350
+                              "finish_nurse"
1351
+                            )
1352
+                              ? getAdminUser(
1343 1353
                                 record.dialysis_order,
1344 1354
                                 "finish_nurse"
1345 1355
                               )
1346
-                                ? getAdminUser(
1347
-                                  record.dialysis_order,
1348
-                                  "finish_nurse"
1349
-                                )
1350
-                                : "/"
1351
-                            }}</span>
1356
+                              : "/"
1357
+                          }}</span>
1352 1358
                           <img class="es-img" :src="setAdminUserES(
1353 1359
                             record.dialysis_order,
1354 1360
                             'finish_nurse'
@@ -1684,36 +1690,40 @@ export default {
1684 1690
             }
1685 1691
 
1686 1692
 
1687
-            var childMap = {};
1688
-            for (const index in this.records[recordIndex].advices) {
1689
-              if (this.records[recordIndex].advices[index].parent_id == 0) {
1690
-                continue;
1691
-              }
1692
-              if (
1693
-                !(
1694
-                  this.records[recordIndex].advices[index].parent_id in childMap
1695
-                )
1696
-              ) {
1697
-                childMap[this.records[recordIndex].advices[index].parent_id] =
1698
-                  [];
1699
-              }
1700
-              childMap[this.records[recordIndex].advices[index].parent_id].push(
1701
-                this.records[recordIndex].advices[index]
1702
-              );
1703
-            }
1693
+            // var childMap = {};
1694
+            // for (const index in this.records[recordIndex].advices) {
1695
+            //   if (this.records[recordIndex].advices[index].parent_id == 0) {
1696
+            //     continue;
1697
+            //   }
1698
+            //   if (
1699
+            //     !(
1700
+            //       this.records[recordIndex].advices[index].parent_id in childMap
1701
+            //     )
1702
+            //   ) {
1703
+            //     childMap[this.records[recordIndex].advices[index].parent_id] =
1704
+            //       [];
1705
+            //   }
1706
+            //   console.log('children111',this.records[recordIndex].advices);
1707
+              
1708
+            //   childMap[this.records[recordIndex].advices[index].parent_id].push(
1709
+            //     this.records[recordIndex].advices[index]
1710
+            //   );
1711
+            // }
1704 1712
 
1705 1713
             var advices = [];
1706 1714
             for (const index in this.records[recordIndex].advices) {
1707
-              if (this.records[recordIndex].advices[index].parent_id > 0) {
1708
-                continue;
1709
-              }
1715
+              // if (this.records[recordIndex].advices[index].parent_id > 0) {
1716
+              //   continue;
1717
+              // }
1710 1718
               var item = this.records[recordIndex].advices[index];
1711
-              if (item.id in childMap) {
1712
-                item.children = childMap[item.id];
1713
-              } else {
1714
-                item.children = [];
1715
-              }
1719
+              // if (item.id in childMap) {
1720
+              //   // advices.push(childMap[item.id])
1721
+              //   // item.children = childMap[item.id];
1722
+              // } else {
1723
+              //   item.children = [];
1724
+              // }
1716 1725
               advices.push(item);
1726
+              console.log('3333333',advices)
1717 1727
             }
1718 1728
 
1719 1729
             var leftAdvice = [];

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrdereightyfour.vue View File

@@ -278,7 +278,7 @@
278 278
                 <td>{{ advice.delivery_way }}</td>
279 279
                 <td>{{ getTime(advice.execution_time, "{y}-{m}-{d} {h}:{i}") }}</td>
280 280
                 <td style="height:30px;line-height:30px">
281
-                  杨能华/
281
+                  <span v-if="advice.start_time>0">杨能华/</span>
282 282
                   <span v-if="setAdminUserES(advice.advice_doctor) == ''">
283 283
                     {{ getAdminUser(advice.advice_doctor)}}
284 284
                   </span>

+ 21 - 26
src/xt_pages/dialysis/template/DialysisPrintOrdereightytwo.vue View File

@@ -7,7 +7,7 @@
7 7
         class="dialysis-print-order print-template-two print_page_main_content"
8 8
       >
9 9
 
10
-        <div style="display:inline-block;width:100%;text-align:center;">
10
+        <div style="display:inline-block;width:99%;text-align:center;">
11 11
           <div
12 12
             class="order-title"
13 13
             style="letter-spacing: 0;font-weight:600;font-size:22px;display:inline-block;"
@@ -15,7 +15,7 @@
15 15
           {{ orgname }} 血液净化治疗记录单
16 16
           </div>
17 17
         </div>
18
-        <div class="row">
18
+        <div class="row" style="width: 99%;">
19 19
           <div class="inline_block" style="margin-right:10px;">
20 20
               日期 <div class="inline_block under_line" style="width:50px">{{ queryParams.xtdate.slice(0,4) }}</div>年
21 21
               <div class="inline_block under_line" style="width:50px">{{ queryParams.xtdate.slice(5,7) }}</div>月
@@ -50,7 +50,7 @@
50 50
           </div>
51 51
         </div>
52 52
         <div style="border-bottom: 2px solid #000;width:100%;"></div>
53
-        <div class="row">
53
+        <div class="row" style="width: 99%;">
54 54
             <div class="inline_block" style="margin-right:30px;">
55 55
               血液净化方式
56 56
               <div class="under_line" style="width: 100px;text-align: center;font-weight:600;">
@@ -67,9 +67,6 @@
67 67
                       : ""
68 68
                   }}
69 69
                 </span> -->
70
-
71
-
72
-
73 70
                 <span v-if="prescription.dialysis_dialyszers !=''">
74 71
                   {{
75 72
                     prescription.dialysis_dialyszers
@@ -115,8 +112,6 @@
115 112
           
116 113
           
117 114
         </div>
118
-
119
-        
120 115
         <div class="row">
121 116
           抗凝药物&nbsp;&nbsp;
122 117
           <div class="inline_block under_line" style="width:90%;text-align: left;">
@@ -288,14 +283,14 @@
288 283
           </div>
289 284
         </div>
290 285
 
291
-        <table class="print-table" border="1">
286
+        <table class="print-table" border="1" style="width: 99%;">
292 287
           <tr>
293
-            <td style="height:25px;line-height:25px">时间</td>
294
-            <td>医嘱</td>
295
-            <td>医师签名</td>
296
-            <td>执行时间</td>
297
-            <td>执行者签名</td>
298
-            <td>核对者签名</td>
288
+            <td width="10%" style="height:25px;line-height:25px;">时间</td>
289
+            <td width="45%">医嘱</td>
290
+            <td width="10%">医师签名</td>
291
+            <td width="10%">执行时间</td>
292
+            <td width="10%">执行者签名</td>
293
+            <td width="10%">核对者签名</td>
299 294
           </tr>
300 295
           <tr v-for="(advice, advice_index) in tableAdvice" :key="advice_index">
301 296
             <td style="height:25px;line-height:25px">{{ getTime(advice.start_time, "{y}-{m}-{d} {h}:{i}") }}</td>
@@ -347,7 +342,7 @@
347 342
           </tr>
348 343
         </table>
349 344
 
350
-        <table class="print-table" border="1">
345
+        <table class="print-table" border="1" style="width: 99%;">
351 346
           <tbody>
352 347
               <tr style="line-height:20px;">
353 348
                 <td width="60">时间</td>
@@ -364,8 +359,8 @@
364 359
                 <td width="40">UF/hr<br/>ml/h</td>
365 360
                 <td width="200">病情变化处理方式及结果</td>
366 361
               </tr>
367
-              <tr v-for="monitor in monitors" :key="monitor.id">
368
-                <td style="height:35px;line-height:35px">&nbsp;
362
+              <tr v-for="monitor in monitors" :key="monitor.id" >
363
+                <td style="height:35px;line-height:35px">
369 364
                   {{getTime(monitor.operate_time,'{h}:{i}')}}
370 365
                 </td>
371 366
                 <td>
@@ -390,10 +385,10 @@
390 385
                   </span>
391 386
                 </td>
392 387
                 <td>&nbsp;{{monitor.transmembrane_pressure?monitor.transmembrane_pressure:''}}</td>
393
-                <td>&nbsp;{{monitor.conductivity?monitor.conductivity:''}}</td>
394
-                <td>&nbsp;{{monitor.dialysate_temperature ? monitor.dialysate_temperature : ''}}</td>
388
+                <td>{{monitor.conductivity?monitor.conductivity:''}}</td>
389
+                <td>{{monitor.dialysate_temperature ? monitor.dialysate_temperature : ''}}</td>
395 390
                 <!-- <td>&nbsp; <span v-if="monitor.operate_time"> {{ monitor.dialysate_flow ? monitor.dialysate_flow : "" }} </span></td> -->
396
-                <td>&nbsp;
391
+                <td>
397 392
                   <span v-if="monitor.ultrafiltration_rate !=''">
398 393
                     {{monitor.ultrafiltration_rate?monitor.ultrafiltration_rate:''}}
399 394
                   </span>
@@ -401,16 +396,16 @@
401 396
                     0
402 397
                   </span>
403 398
                 </td>
404
-                <td>
399
+                <td style="line-height: 20px;">
405 400
                   <span v-if="monitor.symptom"> {{ monitor.symptom }} </span>
406
-                  <span v-if="monitor.dispose"> {{ "  " + monitor.dispose }} </span>
401
+                  <span v-if="monitor.dispose">{{ "  " + monitor.dispose }} </span>
407 402
                   <span v-if="monitor.result"> {{ "  " + monitor.result }} </span>
408 403
                 </td>
409 404
               </tr>
410 405
           </tbody>
411 406
         </table>
412 407
 
413
-        <table class="print-table" border="1">
408
+        <table class="print-table" border="1" style="width: 99%;">
414 409
           <tbody>
415 410
             <tr style="height:30px;line-height:30px">
416 411
               <td width="30" rowspan="4" style="padding-left:5px;border:none;border-right:1px solid #000;">
@@ -565,7 +560,7 @@
565 560
           </tbody>
566 561
         </table>
567 562
 
568
-        <table class="print-table" border="1">
563
+        <table class="print-table" border="1" style="width: 99%;">
569 564
           <tr style="line-height:25px;text-align:left;border:none;">
570 565
             <td style="padding-left:5px;border:none">
571 566
                 <div style="padding-bottom:10px;">
@@ -1968,7 +1963,7 @@ export default {
1968 1963
   /* text-align: center; */
1969 1964
   font-size: 16px;
1970 1965
   padding: 5px 8px;
1971
-  line-height: 30px;
1966
+  /* line-height: 30px; */
1972 1967
 }
1973 1968
 
1974 1969
 .print_page_main_content .proj_table .inside_table {