Selaa lähdekoodia

Merge branch '20230223_pad_vue_new_branch' of http://git.shengws.com/csx/Pad_New into 20230223_pad_vue_new_branch

28169 1 kuukausi sitten
vanhempi
commit
3153f2f491
1 muutettua tiedostoa jossa 67 lisäystä ja 112 poistoa
  1. 67 112
      src/pages/main/template/DialysisPrintOrdereighty.vue

+ 67 - 112
src/pages/main/template/DialysisPrintOrdereighty.vue Näytä tiedosto

@@ -76,10 +76,10 @@
76 76
         </div>
77 77
       </div>
78 78
       <div class="row">
79
-        <div class="inline_block" style="">
79
+        <div class="inline_block" style="width: 100%;">
80 80
           诊断:
81 81
           <div class="under_line"
82
-            style=" width: 640px; text-align: left;word-wrap: break-word;white-space: inherit;"
82
+            style=" width:95%; text-align: left;word-wrap: break-word;white-space: inherit;"
83 83
           >
84 84
             {{ patientInfo.diagnose }}
85 85
           </div>
@@ -118,7 +118,12 @@
118 118
                   <div class="inline_block" style="flex: 1">
119 119
                     透析机型号:
120 120
                     <div class="under_line" style="width: 60%; text-align: center">
121
-                      {{predialysis.machine_type ? predialysis.machine_type : ""}}
121
+                      <span v-if="dialysisOrder && dialysisOrder.bed_id !=0">
122
+                        {{ getnumberlist(dialysisOrder.bed_id) }} 
123
+                      </span>
124
+                      <span v-else>
125
+                        {{ getnumberlist(patientInfo.DialysisSchedule.bed_id) }} 
126
+                      </span>
122 127
                     </div>
123 128
                   </div>
124 129
                   <div class="inline_block" style="flex: 1">
@@ -210,16 +215,16 @@
210 215
                     </div>
211 216
                   </div>
212 217
 
213
-                  <div class="inline_block" style="flex: 2;">
218
+                  <div class="inline_block" style="flex: 1;">
214 219
                     血管通路:
215
-                    <div class="under_line" style="width: 70%;">
220
+                    <div class="under_line" style="width: 68%;white-space: normal;">
216 221
                       <!-- {{ QueryPartById(predialysis.blood_access_part_id) }} -->
217 222
                       {{ predialysis.blood_access_part_id }}
218 223
                       {{ predialysis.blood_access_part_opera_name }}
219 224
                     </div>
220 225
                   </div>
221 226
                   
222
-                  <div class="inline_block" style="flex: 2">
227
+                  <div class="inline_block" style="flex: 1">
223 228
                     导管:
224 229
                     <div class="under_line"
225 230
                       style="width: 80%; text-align: center;white-space: normal;"
@@ -498,7 +503,7 @@
498 503
                   <div style="flex:1">医生签名:
499 504
                     <div class="under_line" style="width: 80px;text-align: center">
500 505
                       <span v-if="setAdminUserES(prescription.creater) == ''">{{getAdminUser(prescription.creater)}}</span>
501
-                      <img style="height:25px;" :src="setAdminUserES(prescription.creater)" alt="" srcset="" v-else>
506
+                      <img style="height:30px;" :src="setAdminUserES(prescription.creater)" alt="" srcset="" v-else>
502 507
                     </div>
503 508
                   </div>
504 509
                 </div>
@@ -545,59 +550,6 @@
545 550
                         <td width="200">病情变化及处理</td>
546 551
                         <td width="200">责任护士</td>
547 552
                       </tr>
548
-                    <!-- <tr>
549
-                      <td width="60">时间</td>
550
-                      <td width="60">血压<br/>(mmHg)</td>
551
-                      <td width="50">脉搏<br>(次/分)</td>
552
-                      <td width="50">呼吸<br/>(次/分)</td>
553
-                      <td width="50">血流量<br/>(ml/min)</td>
554
-                      <td width="50" v-if="org_id ==10478">动脉压<br/>(mmHg)</td>
555
-                      <td width="50">静脉压<br/>(mmHg)</td>
556
-                      <td width="50">跨膜压<br/>(mmHg)</td>
557
-
558
-                      <td width="60" v-if="org_id == 9836">体温(°C)</td>
559
-                      <td width="60" v-if="org_id == 9919">血温(°C)</td>
560
-                      <td width="60" v-if="org_id != 9836 && org_id!=9919 && org_id!=10679 && org_id!=10644">透析液温度(°C)</td>
561
-
562
-                      <td width="50" v-if="org_id != 10121 && org_id != 9675 && org_id != 0 && org_id!=10490 && org_id!=10679 && org_id!=10644" >电导度<br />(ms/cm)</td>
563
-                      <td
564
-                          width="50"
565
-                          v-if="
566
-                            org_id == 10121 || org_id == 9675
567
-                          "
568
-                        >
569
-                          SpO₂<br />(%)
570
-                        </td>
571
-                        <td
572
-                          width="50"
573
-                          v-if="
574
-                            org_id == 10490 
575
-                          "
576
-                        >
577
-                        置换液速度<br />(ml/h)
578
-                        </td>
579
-                      <td width="50" v-if="org_id !=3877 && org_id!=10449&& org_id!=10683">超滤量<br/>(ml)</td>
580
-                      <td width="50" v-if="org_id ==10683">超滤率<br/>(ml/h)</td>
581
-                      <td width="50" v-if="org_id == 10375">置换率<br/>(ml/min)</td>
582
-                      <td
583
-                          width="50"
584
-                          v-if="
585
-                            org_id == 10683 && prescription.mode_id==2 || prescription.mode_id==5 || prescription.mode_id== 12
586
-                          "
587
-                        >
588
-                        置换液速度<br />(ml/h)
589
-                        </td>
590
-                      <td width="50" v-if="org_id == 10449 || org_id == 3877">累计超滤量<br/>(ml)</td>
591
-                      <td v-if="(org_id!=10683 && (prescription.mode_id==2 || prescription.mode_id==5 || prescription.mode_id== 12))" width="50">置换量<br/>(ml)</td>
592
-                      <td width="50" v-if="org_id == 3877 || org_id == 10449">滤前压<br/>(mmHg)</td>
593
-                      <td width="50" v-if="org_id == 9538|| org_id == 9675 || org_id ==10629 ">KT/V</td>
594
-                      <td width="50" v-if="org_id == 9919">在线尿素监测</td>
595
-                      <td width="50" v-if="org_id != 9919 && org_id!=9538 && org_id!=9675 && org_id!=10617 && org_id!=10629&&org_id!=10644&& org_id!=10679&& org_id!=10683">KT/V</td>
596
-                      <td width="50" v-if="org_id == 9538|| org_id == 9675 || org_id == 9919">血容量<br />(L)</td>
597
-                      <td width="50" v-if="org_id ==10490">碳酸氢钠用量<br />(ml)</td>
598
-                      <td width="200">病情变化及处理</td>
599
-
600
-                    </tr> -->
601 553
 
602 554
                     <tr v-for="(monitor, monindex) in monitors" :key="monindex">
603 555
                       <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
@@ -630,7 +582,7 @@
630 582
 
631 583
                       <td style="line-height: 16px; padding: 0px">
632 584
                         <div
633
-                          style=" min-height: 35px; line-height: 35px;
585
+                          style="height: 30px; line-height: 30px;
634 586
                             overflow: hidden;
635 587
                           "
636 588
                         >
@@ -735,12 +687,12 @@
735 687
                         <!-- <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td> -->
736 688
                         <td height="35px">
737 689
                           <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{getAdminUser(advice.advice_doctor)}}</span>
738
-                          <img style="height:20px;" :src="setAdminUserES(advice.advice_doctor)" alt="" srcset="" v-else>
690
+                          <img style="height:30px;" :src="setAdminUserES(advice.advice_doctor)" alt="" srcset="" v-else>
739 691
                         </td>
740 692
                   
741 693
                         <td height="35px">
742 694
                           <span v-if="setAdminUserES(advice.execution_staff) == ''">{{getAdminUser(advice.execution_staff)}}</span>
743
-                          <img style="height:20px;" :src="setAdminUserES(advice.execution_staff)" alt="" srcset="" v-else>
695
+                          <img style="height:30px;" :src="setAdminUserES(advice.execution_staff)" alt="" srcset="" v-else>
744 696
                         </td>
745 697
                         <td height="35px">
746 698
                           <span v-if="advice.execution_time">{{getTime(advice.execution_time,'{h}:{i}')}}</span>
@@ -781,12 +733,9 @@
781 733
                   </div>
782 734
                   °C
783 735
                 </div>
784
-                <div class="inline_block"
785
-                  style="margin-left: 10px; flex: 1"
786
-                >
736
+                <div class="inline_block" style="flex: 1">
787 737
                   P:
788
-                  <div
789
-                    class="under_line"
738
+                  <div class="under_line"
790 739
                     style="width: 50px; text-align: center"
791 740
                   >
792 741
                     {{
@@ -797,12 +746,9 @@
797 746
                   </div>
798 747
                   次/分
799 748
                 </div>
800
-                <div class="inline_block"
801
-                  style="margin-left: 10px; flex: 1"
802
-                >
749
+                <div class="inline_block" style="flex: 1">
803 750
                   R:
804
-                  <div
805
-                    class="under_line"
751
+                  <div class="under_line"
806 752
                     style="width: 50px; text-align: center"
807 753
                   >
808 754
                     {{
@@ -813,9 +759,7 @@
813 759
                   </div>
814 760
                   次/分
815 761
                 </div>
816
-                <div class="inline_block"
817
-                  style="margin-left: 10px; flex: 1.5"
818
-                >
762
+                <div class="inline_block" style="flex: 1.5">
819 763
                   BP:
820 764
                   <div
821 765
                     class="under_line"
@@ -839,39 +783,16 @@
839 783
                     }}
840 784
                   </div>
841 785
                   mmHg
842
-                </div>
843
-                <div class="inline_block" style="flex: 1.5">
844
-                  实际治疗时间:
845
-                  <div class="under_line"
846
-                    style="width: 30px; text-align: center"
847
-                  >
848
-                    {{
849
-                      afterdialysis.actual_treatment_hour
850
-                        ? afterdialysis.actual_treatment_hour
851
-                        : "/"
852
-                    }}
853
-                  </div>
854
-                  h
855
-                  <div class="under_line"
856
-                    style="width: 30px; text-align: center"
857
-                  >
858
-                    {{
859
-                      afterdialysis.actual_treatment_minute
860
-                        ? afterdialysis.actual_treatment_minute
861
-                        : 0
862
-                    }}
863
-                  </div>
864
-                  min
865
-                </div>
786
+                </div>   
866 787
               </div>
867 788
 
868 789
               <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
869
-                <div class="inline_block" style="flex: 2.5">
790
+                <div class="inline_block" style="flex: 2">
870 791
                   透析器凝血:
871 792
                   <div
872 793
                     class="under_line"
873 794
                     style="
874
-                      width: 170px;
795
+                      width: 60%;
875 796
                       text-align: center;
876 797
                       white-space: normal;
877 798
                     "
@@ -884,7 +805,7 @@
884 805
                   <div
885 806
                     class="under_line"
886 807
                     style="
887
-                      width: 170px;
808
+                      width:70%;
888 809
                       text-align: center;
889 810
                       white-space: normal;
890 811
                     "
@@ -896,17 +817,40 @@
896 817
                     }}
897 818
                   </div>
898 819
                 </div>
899
-                <div class="inline_block" style="flex: 4">
820
+                <div class="inline_block" style="flex:2">
900 821
                   导管:
901 822
                   <div
902 823
                     class="under_line"
903
-                    style="min-width: 120px; text-align: center"
824
+                    style="min-width: 70%; text-align: center"
904 825
                   >
905 826
                     {{
906 827
                       afterdialysis.catheter ? afterdialysis.catheter : "/"
907 828
                     }}
908 829
                   </div>
909 830
                 </div>
831
+                <div class="inline_block" style="flex:2">
832
+                  实际治疗时间:
833
+                  <div class="under_line"
834
+                    style="width: 30px; text-align: center"
835
+                  >
836
+                    {{
837
+                      afterdialysis.actual_treatment_hour
838
+                        ? afterdialysis.actual_treatment_hour
839
+                        : "/"
840
+                    }}
841
+                  </div>
842
+                  h
843
+                  <div class="under_line"
844
+                    style="width: 30px; text-align: center"
845
+                  >
846
+                    {{
847
+                      afterdialysis.actual_treatment_minute
848
+                        ? afterdialysis.actual_treatment_minute
849
+                        : 0
850
+                    }}
851
+                  </div>
852
+                  min
853
+                </div>
910 854
               </div>
911 855
 
912 856
               <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
@@ -1068,7 +1012,7 @@
1068 1012
                         }}</span
1069 1013
                       >
1070 1014
                       <img
1071
-                        style="height: 35px"
1015
+                        style="height: 30px"
1072 1016
                         :src="
1073 1017
                           setAdminUserES(
1074 1018
                             dialysisOrder == null
@@ -1087,26 +1031,26 @@
1087 1031
                   <span> 核对护士:</span>
1088 1032
                   <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder == null">
1089 1033
                     <span v-if="setAdminUserES(check==null?0:check.creater) == ''">{{getAdminUser(check==null?0:check.creater)}}</span>
1090
-                    <img style="height:35px;" :src="setAdminUserES(check==null?0:check.creater)" alt="" srcset="" v-else>
1034
+                    <img style="height:30px;" :src="setAdminUserES(check==null?0:check.creater)" alt="" srcset="" v-else>
1091 1035
                   </div>
1092 1036
                   <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder != null && dialysisOrder.start_nurse == check.modifier">
1093 1037
                     <span v-if="setAdminUserES(check==null?0:check.creater) == ''">{{getAdminUser(check==null?0:check.creater)}}</span>
1094
-                    <img style="height:35px;" :src="setAdminUserES(check==null?0:check.creater)" alt="" srcset="" v-else>
1038
+                    <img style="height:30px;" :src="setAdminUserES(check==null?0:check.creater)" alt="" srcset="" v-else>
1095 1039
                   </div>
1096 1040
                   <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder != null && dialysisOrder.start_nurse == check.creater">
1097 1041
                     <span v-if="setAdminUserES(check==null?0:check.modifier) == ''">{{getAdminUser(check==null?0:check.modifier)}}</span>
1098
-                    <img style="height:35px;" :src="setAdminUserES(check==null?0:check.modifier)" alt="" srcset="" v-else>
1042
+                    <img style="height:30px;" :src="setAdminUserES(check==null?0:check.modifier)" alt="" srcset="" v-else>
1099 1043
                   </div>
1100 1044
                   <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder != null && dialysisOrder.start_nurse != check.creater&&dialysisOrder.start_nurse != check.modifier">
1101 1045
                     <span v-if="setAdminUserES(check==null?0:check.creater) == ''">{{getAdminUser(check==null?0:check.creater)}}</span>
1102
-                    <img style="height:35px;" :src="setAdminUserES(check==null?0:check.creater)" alt="" srcset="" v-else>
1046
+                    <img style="height:30px;" :src="setAdminUserES(check==null?0:check.creater)" alt="" srcset="" v-else>
1103 1047
                   </div>
1104 1048
                 </div>
1105 1049
                 <div class="inline_block" style="flex:1;">
1106 1050
                   下机护士:
1107 1051
                   <div class="under_line" style="width: 80px;text-align: center">
1108 1052
                     <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.finish_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.finish_nurse)}}</span>
1109
-                    <img style="height:35px;" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.finish_nurse)" alt="" srcset="" v-else>
1053
+                    <img style="height:30px;" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.finish_nurse)" alt="" srcset="" v-else>
1110 1054
                   </div>
1111 1055
                 </div>
1112 1056
                 <div class="inline_block" style="flex: 1">
@@ -1282,7 +1226,8 @@ export default {
1282 1226
         gaimingcheng_unit: '',
1283 1227
         gaijiliang_unit: ''
1284 1228
       },
1285
-      lastWeight:{}
1229
+      lastWeight:{},
1230
+      number_list:[],
1286 1231
     }
1287 1232
   },
1288 1233
   methods: {
@@ -1427,6 +1372,7 @@ export default {
1427 1372
         this.users = response.data.data.users
1428 1373
         this.patientInfo = response.data.data.patientInfo
1429 1374
         this.lastWeight= response.data.data.lastWeight
1375
+        this.number_list = response.data.data.numberList
1430 1376
         this.patientInfo.birth = uParseTimeOne(
1431 1377
           this.patientInfo.birthday,
1432 1378
           '{y}-{m}-{d}'
@@ -1883,6 +1829,15 @@ export default {
1883 1829
       }else{
1884 1830
         return ''
1885 1831
       }
1832
+    },
1833
+     // 透析型号
1834
+    getnumberlist(id){
1835
+      const options = this.number_list
1836
+      for(let i in options){
1837
+        if(id == options[i].id){
1838
+          return options[i].number_type
1839
+        }
1840
+      }
1886 1841
     }
1887 1842
   },
1888 1843
   watch: {