张保健 4 лет назад
Родитель
Сommit
6737daa3e0
1 измененных файлов: 159 добавлений и 73 удалений
  1. 159 73
      src/pages/main/template/DialysisPrintOrderSix.vue

+ 159 - 73
src/pages/main/template/DialysisPrintOrderSix.vue Просмотреть файл

@@ -99,78 +99,149 @@
99 99
                 </div>
100 100
 
101 101
                 <div class="row" style="padding: 2px 0;line-height:23px;">
102
-                  <div class="inline_block" >
102
+                  <div class="inline_block">
103 103
                     T:
104
-                    <div class="under_line" style="width: 50px;text-align: center">
105
-                      {{predialysis.temperature?predialysis.temperature:'/'}}
104
+                    <div
105
+                      class="under_line"
106
+                      style="width: 50px;text-align: center"
107
+                    >
108
+                      {{
109
+                        predialysis.temperature ? predialysis.temperature : "/"
110
+                      }}
106 111
                     </div>
107 112
                     °C
108 113
                   </div>
109 114
                   <div class="inline_block" style="margin-left:10px;">
110 115
                     P:
111
-                    <div class="under_line" style="width: 50px;text-align: center;">
112
-                      {{predialysis.pulse_frequency?predialysis.pulse_frequency:'/'}}
116
+                    <div
117
+                      class="under_line"
118
+                      style="width: 50px;text-align: center;"
119
+                    >
120
+                      {{
121
+                        predialysis.pulse_frequency
122
+                          ? predialysis.pulse_frequency
123
+                          : "/"
124
+                      }}
113 125
                     </div>
114 126
                     次/分
115 127
                   </div>
116 128
                   <div class="inline_block" style="margin-left:10px;">
117 129
                     R:
118
-                    <div class="under_line" style="width: 50px;text-align: center;">
119
-                      {{predialysis.breathing_rate?predialysis.breathing_rate:'/'}}
130
+                    <div
131
+                      class="under_line"
132
+                      style="width: 50px;text-align: center;"
133
+                    >
134
+                      {{
135
+                        predialysis.breathing_rate
136
+                          ? predialysis.breathing_rate
137
+                          : "/"
138
+                      }}
120 139
                     </div>
121 140
                     次/分
122 141
                   </div>
123 142
                   <div class="inline_block" style="margin-left:10px;">
124 143
                     BP:
125
-                    <div class="under_line" style="width: 50px;text-align: center;">
126
-                      {{predialysis.systolic_blood_pressure?predialysis.systolic_blood_pressure:'/'}}
144
+                    <div
145
+                      class="under_line"
146
+                      style="width: 50px;text-align: center;"
147
+                    >
148
+                      {{
149
+                        predialysis.systolic_blood_pressure
150
+                          ? predialysis.systolic_blood_pressure
151
+                          : "/"
152
+                      }}
127 153
                     </div>
128 154
                     /
129
-                    <div class="under_line" style="width: 50px;text-align: center;">
130
-                      {{predialysis.diastolic_blood_pressure?predialysis.diastolic_blood_pressure:'/'}}
155
+                    <div
156
+                      class="under_line"
157
+                      style="width: 50px;text-align: center;"
158
+                    >
159
+                      {{
160
+                        predialysis.diastolic_blood_pressure
161
+                          ? predialysis.diastolic_blood_pressure
162
+                          : "/"
163
+                      }}
131 164
                     </div>
132 165
                     mmHg
133 166
                   </div>
134
-                  <div class="inline_block" style="margin-left:10px;">
135
-                    血管通路:
136
-                    <div class="under_line" style="width: 200px;text-align: center;">
137
-                      {{QueryPartById(predialysis.blood_access_part_id)}} {{predialysis.blood_access_part_opera_name}}
138
-                    </div>
139
-                  </div>
140
-                </div>
141
-                <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
142
-                  <div class="inline_block" style="flex:1;">
143
-                    内瘘:
144
-                    <div class="under_line" style="width: 150px;text-align: center">
145
-                      {{predialysis.internal_fistula?predialysis.internal_fistula:'/'}}
146
-                    </div>
147
-                  </div>
148
-
149
-                  <div class="inline_block" style="margin-left:10px;flex:1;">
150
-                    导管:
151
-                    <div class="under_line" style="width: 150px;text-align: center">
152
-                      {{predialysis.catheter?predialysis.catheter:'/'}}
153
-                    </div>
154
-                  </div>
155 167
                   <div class="inline_block" style="margin-left:10px;flex:1;">
156 168
                     穿刺方式:
157
-                    <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == 0">
169
+                    <div
170
+                      class="under_line"
171
+                      style="width: 100px;text-align: center"
172
+                      v-if="predialysis.puncture_way == 0"
173
+                    >
158 174
                       /
159 175
                     </div>
160
-                    <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == 1">
176
+                    <div
177
+                      class="under_line"
178
+                      style="width: 100px;text-align: center"
179
+                      v-if="predialysis.puncture_way == 1"
180
+                    >
161 181
                       绳梯
162 182
                     </div>
163
-                    <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == 2">
183
+                    <div
184
+                      class="under_line"
185
+                      style="width: 100px;text-align: center"
186
+                      v-if="predialysis.puncture_way == 2"
187
+                    >
164 188
                       扣眼
165 189
                     </div>
166
-                    <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == 3">
190
+                    <div
191
+                      class="under_line"
192
+                      style="width: 100px;text-align: center"
193
+                      v-if="predialysis.puncture_way == 3"
194
+                    >
167 195
                       区域
168 196
                     </div>
169 197
                   </div>
170 198
                   <div class="inline_block" style="margin-left:10px;flex:1;">
171 199
                     穿刺针:
172
-                    <div class="under_line" style="width: 100px;text-align: center">
173
-                      {{predialysis.puncture_needle?predialysis.puncture_needle:'/'}}
200
+                    <div
201
+                      class="under_line"
202
+                      style="width: 100px;text-align: center"
203
+                    >
204
+                      {{
205
+                        predialysis.puncture_needle
206
+                          ? predialysis.puncture_needle
207
+                          : "/"
208
+                      }}
209
+                    </div>
210
+                  </div>
211
+                </div>
212
+
213
+                <div class="row" style="padding: 2px 0;line-height:23px;display:flex;" >
214
+                  <div class="inline_block" style="flex:1.4">
215
+                    血管通路:
216
+                    <div
217
+                      class="under_line"
218
+                      style="width: 200px;text-align: center;"
219
+                    >
220
+                      {{ QueryPartById(predialysis.blood_access_part_id) }}
221
+                      {{ predialysis.blood_access_part_opera_name }}
222
+                    </div>
223
+                  </div>
224
+                  <div class="inline_block" style="margin-left:10px;flex:1;">
225
+                    内瘘:
226
+                    <div
227
+                      class="under_line"
228
+                      style="width: 150px;text-align: center"
229
+                    >
230
+                      {{
231
+                        predialysis.internal_fistula
232
+                          ? predialysis.internal_fistula
233
+                          : "/"
234
+                      }}
235
+                    </div>
236
+                  </div>
237
+
238
+                  <div class="inline_block" style="margin-left:10px;flex:1.8;">
239
+                    导管:
240
+                    <div
241
+                      class="under_line"
242
+                      style="width: 150px;text-align: center"
243
+                    >
244
+                      {{ predialysis.catheter ? predialysis.catheter : "/" }}
174 245
                     </div>
175 246
                   </div>
176 247
                 </div>
@@ -443,26 +514,27 @@
443 514
                       <td  width="100">护士签名</td> -->
444 515
                     </tr>
445 516
 
446
-                    <tr v-for="(monitor,monindex) in monitors" :key="monindex">
447
-                      <td>{{getTime(monitor.operate_time,'{h}:{i}')}}</td>
448
-                      <td>{{monitor.systolic_blood_pressure?monitor.systolic_blood_pressure+'/':''}}{{monitor.diastolic_blood_pressure?monitor.diastolic_blood_pressure:''}}</td>
449
-                      <td>{{monitor.pulse_frequency?monitor.pulse_frequency:''}}</td>
450
-                      <td>{{monitor.breathing_rate?monitor.breathing_rate:''}}</td>
451
-                      <td>{{monitor.blood_flow_volume?monitor.blood_flow_volume:''}}</td>
452
-                      <td>{{monitor.venous_pressure?monitor.venous_pressure:''}}</td>
453
-                      <td>{{monitor.transmembrane_pressure?monitor.transmembrane_pressure:0}}</td>
454
-                      <td>{{monitor.dialysate_temperature?monitor.dialysate_temperature:''}}</td>
455
-                      <td>{{monitor.sodium_concentration?monitor.sodium_concentration:''}}</td>
456
-                      <td>{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:0}}</td>
457
-                      <td v-if="prescription.mode_id==2 || prescription.mode_id==5 || prescription.mode_id== 12" width="50">{{monitor.displacement_quantity?monitor.displacement_quantity:0}}</td>
517
+                    <tr v-for="(monitor, monindex) in monitors" :key="monindex">
518
+                      <td> {{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
519
+                      <td> {{ monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure + "/" : "" }}{{  monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : "" }} </td> 
520
+                      <td> {{ monitor.pulse_frequency ? monitor.pulse_frequency : "" }} </td>
521
+                      <td> {{ monitor.breathing_rate ? monitor.breathing_rate : "" }} </td>
522
+                      <td> {{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }} </td>
523
+                      <td> {{ monitor.venous_pressure ? monitor.venous_pressure : "" }} </td>
524
+                      <td v-if="monitor.operate_time > dialysisOrder.end_time || monitor.operate_time < dialysisOrder.start_time"> {{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure  : "" }} </td>
525
+                      <td v-if="monitor.operate_time <= dialysisOrder.end_time && monitor.operate_time >= dialysisOrder.start_time"> {{  monitor.transmembrane_pressure ? monitor.transmembrane_pressure : 0 }} </td>
526
+                      <td> {{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }} </td>
527
+                      <td> {{ monitor.sodium_concentration  ? monitor.sodium_concentration : "" }}  </td>
528
+                      <td v-if="monitor.operate_time > dialysisOrder.end_time || monitor.operate_time < dialysisOrder.start_time"> {{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume  : "" }} </td>
529
+                      <td v-if="monitor.operate_time <= dialysisOrder.end_time && monitor.operate_time >= dialysisOrder.start_time"> {{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume  : 0 }} </td>
530
+                      <td v-if="  (prescription.mode_id == 2 || prescription.mode_id == 5) && monitor.operate_time > dialysisOrder.end_time  "  width="50" >  {{ monitor.displacement_quantity ? monitor.displacement_quantity : "" }} </td>
531
+                      <td v-if=" (prescription.mode_id == 2 ||  prescription.mode_id == 5) && monitor.operate_time <= dialysisOrder.end_time  " width="50"  > {{ monitor.displacement_quantity ? monitor.displacement_quantity : 0 }} </td>
458 532
                       <td style="line-height:16px;padding:0px;">
459
-                        <div style="min-height:40px;line-height:40px; overflow:hidden;">
460
-                          <span style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">
461
-                          <template v-if="monitor.operate_time == dialysisOrder.start_time">【开始透析】</template>
462
-                            {{monitor.end}}
463
-                            {{monitor.symptom}}  &nbsp;{{monitor.dispose}} &nbsp;{{monitor.result}}
533
+                        <div style="min-height:35px;line-height:35px; overflow:hidden;">
534
+                          <span  style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">
535
+                            <template v-if=" monitor.operate_time == dialysisOrder.start_time " >【开始透析】</template > {{ monitor.end }} {{ monitor.symptom }} &nbsp;{{ monitor.dispose }} &nbsp;{{ monitor.result }}
464 536
                           </span>
465
-                        </div>
537
+                        </div> 
466 538
                       </td>
467 539
                     </tr>
468 540
                     <tr v-for="(monitor,monindex) in monitors2" :key="monindex">
@@ -677,28 +749,42 @@
677 749
                   min
678 750
                 </div>
679 751
               </div>
680
-              <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
681
-                <div class="inline_block" style="flex:2;">
682
-                  凝血程度:
683
-                  <div class="under_line" style="width: 200px;text-align: center">
684
-                    {{afterdialysis.cruor?afterdialysis.cruor:'/'}}
752
+              <div  class="row"  style="padding: 2px 0;line-height:23px;display:flex;"  >
753
+                  <div class="inline_block" style="flex:2;">
754
+                    凝血程度:
755
+                    <div
756
+                      class="under_line"
757
+                      style="width:200px;text-align:center;"
758
+                    >
759
+                      {{ afterdialysis.cruor ? afterdialysis.cruor : "/" }}
760
+                    </div>
685 761
                   </div>
686
-                </div>
687
-                <div class="inline_block" style="flex:2;">
688
-                  内瘘:
689
-                  <div class="under_line" style="width: 200px;text-align: center">
690
-                    {{afterdialysis.internal_fistula?afterdialysis.internal_fistula:'/'}}
762
+                  <div class="inline_block" style="flex:1;">
763
+                    内瘘:
764
+                    <div
765
+                      class="under_line"
766
+                      style="width: 70px;text-align: center"
767
+                    >
768
+                      {{
769
+                        afterdialysis.internal_fistula
770
+                          ? afterdialysis.internal_fistula
771
+                          : "/"
772
+                      }}
773
+                    </div>
691 774
                   </div>
692
-                </div>
693
-                <div class="inline_block" style="flex:1;">
694
-                  导管:
695
-                  <div class="under_line" style="width: 150px;text-align: center">
696
-                    {{afterdialysis.catheter?afterdialysis.catheter:'/'}}
775
+                  <div class="inline_block" style="flex:3;">
776
+                    导管:
777
+                    <div
778
+                      class="under_line"
779
+                      style="min-width: 120px;text-align: center"
780
+                    >
781
+                      {{
782
+                        afterdialysis.catheter ? afterdialysis.catheter : "/"
783
+                      }}
784
+                    </div>
697 785
                   </div>
698 786
                 </div>
699 787
 
700
-              </div>
701
-
702 788
               <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
703 789
 
704 790
                 <div class="inline_block" style="flex:1;">