|
@@ -46,7 +46,7 @@
|
46
|
46
|
</div>
|
47
|
47
|
</div>
|
48
|
48
|
<div class="row">
|
49
|
|
- <table class="proj_table" style="margin-bottom: 300px;">
|
|
49
|
+ <table class="proj_table" :class="record.monitor_records.length > 8 ? 'margin-bottom-300': ''">
|
50
|
50
|
<tbody>
|
51
|
51
|
<tr><td colspan="2">一、透析前护理评估:</td></tr>
|
52
|
52
|
<tr>
|
|
@@ -232,47 +232,126 @@
|
232
|
232
|
<tbody>
|
233
|
233
|
<!-- <thead> -->
|
234
|
234
|
<tr><td colspan="10" style="font-size:16px;padding: 10px 8px;line-height: 30px;text-align:left;">二、透析中护理纪录:</td></tr>
|
235
|
|
- <tr>
|
236
|
|
- <td width="100">时间</td>
|
237
|
|
- <td width="100">BP<br/>mmHg</td>
|
238
|
|
- <td width="30">P<br/>次/分</td>
|
239
|
|
- <td width="30">R<br/>次/分</td>
|
240
|
|
- <td width="60">静脉压/动脉压<br/>mmHg</td>
|
241
|
|
- <td width="80">血流量<br/>ml/min</td>
|
242
|
|
- <td width="90">超滤量累计L</td>
|
243
|
|
- <td width="80">钠浓度<br/>mmol/L</td>
|
244
|
|
- <td width="240">病情特殊情况处理<br/>及专科护理措施记录</td>
|
245
|
|
- <td width="100">护士签名</td>
|
246
|
|
- </tr>
|
247
|
|
- <!-- </thead>
|
248
|
|
- <tbody> -->
|
249
|
|
- <tr v-if="(record.assessment_before_dislysis&&record.assessment_before_dislysis.systolic_blood_pressure != 0&&record.assessment_before_dislysis.diastolic_blood_pressure != 0)||(record.assessment_before_dislysis&&record.assessment_before_dislysis.remark.length > 0)">
|
250
|
|
- <td>{{'透析前'}}</td>
|
251
|
|
- <td>{{record.assessment_before_dislysis&&record.assessment_before_dislysis.systolic_blood_pressure?record.assessment_before_dislysis.systolic_blood_pressure:''}}/{{record.assessment_before_dislysis &&record.assessment_before_dislysis.diastolic_blood_pressure?record.assessment_before_dislysis.diastolic_blood_pressure:''}}</td>
|
252
|
|
- <td>{{''}}</td>
|
253
|
|
- <td>{{''}}</td>
|
254
|
|
- <td>{{''}}/{{''}}</td>
|
255
|
|
- <td>{{''}}</td>
|
256
|
|
- <td>{{''}}</td>
|
257
|
|
- <td>{{''}}</td>
|
258
|
|
- <td> {{record.assessment_before_dislysis&&record.assessment_before_dislysis.remark.length>0?record.assessment_before_dislysis.remark:''}}</td>
|
259
|
|
- <td>
|
260
|
|
- <span v-if="setAdminUserES(record.assessment_before_dislysis.creater) == ''">{{getAdminUser(record.assessment_before_dislysis.creater)}}</span>
|
261
|
|
- <img class="es-img" :src="setAdminUserES(record.assessment_before_dislysis.creater)" alt="" srcset="" v-else>
|
262
|
|
- </td>
|
263
|
|
- </tr>
|
264
|
|
- <tr v-for="(monitor_record, index) in record.monitor_records" :key="index">
|
265
|
|
- <td>{{getTime(monitor_record.operate_time,'{h}:{i}')}}</td>
|
266
|
|
- <td>{{monitor_record.systolic_blood_pressure?monitor_record.systolic_blood_pressure:''}} /{{monitor_record.diastolic_blood_pressure?monitor_record.diastolic_blood_pressure:''}}</td>
|
267
|
|
- <td>{{monitor_record.pulse_frequency?monitor_record.pulse_frequency:''}}</td>
|
268
|
|
- <td>{{monitor_record.breathing_rate?monitor_record.breathing_rate:''}}</td>
|
269
|
|
- <td>{{monitor_record.venous_pressure?monitor_record.venous_pressure:''}}/{{monitor_record.arterial_pressure?monitor_record.arterial_pressure:''}}</td>
|
270
|
|
- <td>{{monitor_record.blood_flow_volume?monitor_record.blood_flow_volume:''}}</td>
|
271
|
|
- <td>{{monitor_record.ultrafiltration_volume?monitor_record.ultrafiltration_volume:''}}</td>
|
272
|
|
- <td>{{monitor_record.sodium_concentration?monitor_record.sodium_concentration:''}}</td>
|
273
|
|
- <td>{{monitor_record.symptom}} {{monitor_record.dispose}} {{monitor_record.result}}</td>
|
274
|
|
- <td><span v-if="setAdminUserES(monitor_record, 'monitoring_nurse') == ''">{{getAdminUser(monitor_record, 'monitoring_nurse')}}</span><img class="es-img" :src="setAdminUserES(monitor_record, 'monitoring_nurse')" alt="" srcset="" v-else style="height: 20px;"></td>
|
275
|
|
- </tr>
|
|
235
|
+ <tr>
|
|
236
|
+ <td width="100">时间</td>
|
|
237
|
+ <td width="100">BP<br/>mmHg</td>
|
|
238
|
+ <td width="30">P<br/>次/分</td>
|
|
239
|
+ <td width="30">R<br/>次/分</td>
|
|
240
|
+ <td width="60">静脉压/动脉压<br/>mmHg</td>
|
|
241
|
+ <td width="80">血流量<br/>ml/min</td>
|
|
242
|
+ <td width="90">超滤量累计L</td>
|
|
243
|
+ <td width="80">钠浓度<br/>mmol/L</td>
|
|
244
|
+ <td width="240">病情特殊情况处理<br/>及专科护理措施记录</td>
|
|
245
|
+ <td width="100">护士签名</td>
|
|
246
|
+ </tr>
|
|
247
|
+ <!-- </thead>
|
|
248
|
+ <tbody> -->
|
|
249
|
+ <tr v-if="(record.assessment_before_dislysis&&record.assessment_before_dislysis.systolic_blood_pressure != 0&&record.assessment_before_dislysis.diastolic_blood_pressure != 0)||(record.assessment_before_dislysis&&record.assessment_before_dislysis.remark.length > 0)">
|
|
250
|
+ <td>{{'透析前'}}</td>
|
|
251
|
+ <td>{{record.assessment_before_dislysis&&record.assessment_before_dislysis.systolic_blood_pressure?record.assessment_before_dislysis.systolic_blood_pressure:''}}/{{record.assessment_before_dislysis &&record.assessment_before_dislysis.diastolic_blood_pressure?record.assessment_before_dislysis.diastolic_blood_pressure:''}}</td>
|
|
252
|
+ <td>{{''}}</td>
|
|
253
|
+ <td>{{''}}</td>
|
|
254
|
+ <td>{{''}}/{{''}}</td>
|
|
255
|
+ <td>{{''}}</td>
|
|
256
|
+ <td>{{''}}</td>
|
|
257
|
+ <td>{{''}}</td>
|
|
258
|
+ <td> {{record.assessment_before_dislysis&&record.assessment_before_dislysis.remark.length>0?record.assessment_before_dislysis.remark:''}}</td>
|
|
259
|
+ <td>
|
|
260
|
+ <span v-if="setAdminUserES(record.assessment_before_dislysis.creater) == ''">{{getAdminUser(record.assessment_before_dislysis.creater)}}</span>
|
|
261
|
+ <img class="es-img" :src="setAdminUserES(record.assessment_before_dislysis.creater)" alt="" srcset="" v-else>
|
|
262
|
+ </td>
|
|
263
|
+ </tr>
|
|
264
|
+ <tr v-for="(monitor_record, index) in record.monitor_records" :key="index">
|
|
265
|
+ <td>{{getTime(monitor_record.operate_time,'{h}:{i}')}}</td>
|
|
266
|
+ <td>{{monitor_record.systolic_blood_pressure?monitor_record.systolic_blood_pressure:''}} /{{monitor_record.diastolic_blood_pressure?monitor_record.diastolic_blood_pressure:''}}</td>
|
|
267
|
+ <td>{{monitor_record.pulse_frequency?monitor_record.pulse_frequency:''}}</td>
|
|
268
|
+ <td>{{monitor_record.breathing_rate?monitor_record.breathing_rate:''}}</td>
|
|
269
|
+ <td>{{monitor_record.venous_pressure?monitor_record.venous_pressure:''}}/{{monitor_record.arterial_pressure?monitor_record.arterial_pressure:''}}</td>
|
|
270
|
+ <td>{{monitor_record.blood_flow_volume?monitor_record.blood_flow_volume:''}}</td>
|
|
271
|
+ <td>{{monitor_record.ultrafiltration_volume?monitor_record.ultrafiltration_volume:''}}</td>
|
|
272
|
+ <td>{{monitor_record.sodium_concentration?monitor_record.sodium_concentration:''}}</td>
|
|
273
|
+ <td style="line-height:16px;">{{monitor_record.symptom}} {{monitor_record.dispose}} {{monitor_record.result}}</td>
|
|
274
|
+ <td><span v-if="setAdminUserES(monitor_record, 'monitoring_nurse') == ''">{{getAdminUser(monitor_record, 'monitoring_nurse')}}</span><img class="es-img" :src="setAdminUserES(monitor_record, 'monitoring_nurse')" alt="" srcset="" v-else style="height: 20px;"></td>
|
|
275
|
+ </tr>
|
|
276
|
+ </tbody>
|
|
277
|
+ </table>
|
|
278
|
+ </td>
|
|
279
|
+ </tr>
|
|
280
|
+ </tbody>
|
|
281
|
+ </table>
|
|
282
|
+ </div>
|
|
283
|
+ <template v-if="record.monitor_records.length > 8 ">
|
|
284
|
+ <div class="order-yy-name">{{orgname}}</div>
|
|
285
|
+ <div class="order_title">血液净化专科护理记录单</div>
|
|
286
|
+ <div class="row" style="margin-top: 15px;">
|
|
287
|
+ <div class="inline_block">
|
|
288
|
+ 科室:
|
|
289
|
+ <check-box text="门诊透析" :checked="record.patient.source == 1"></check-box>
|
|
290
|
+
|
|
291
|
+ <check-box text="住院" :checked="record.patient.source == 2"></check-box>
|
|
292
|
+ <!-- TODO -->
|
|
293
|
+ </div>
|
|
294
|
+ <div class="inline_block" style="margin-left:25px;">
|
|
295
|
+ 姓名:
|
|
296
|
+ <div class="under_line" style="width: 120px;">{{ record.patient.name }}</div>
|
|
297
|
+ </div>
|
|
298
|
+ <div class="inline_block" style="margin-left: 25px;">
|
|
299
|
+ 性别:
|
|
300
|
+ <check-box text="男" :checked="record.patient.gender == 1"></check-box>
|
|
301
|
+
|
|
302
|
+ <check-box text="女" :checked="record.patient.gender == 2"></check-box>
|
|
303
|
+ </div>
|
|
304
|
+ <div class="inline_block" style="margin-left: 25px;">
|
|
305
|
+ 年龄:
|
|
306
|
+ <div class="under_line" style="width: 70px;">{{getAge(record.patient)}}</div>
|
|
307
|
+ 岁
|
|
308
|
+ </div>
|
|
309
|
+ <div class="inline_block" style="margin-left: 25px;">
|
|
310
|
+ 住院号/ID号:
|
|
311
|
+ <div class="under_line" style="width: 100px;">
|
|
312
|
+ </div>
|
|
313
|
+ </div>
|
|
314
|
+ </div>
|
|
315
|
+ <div class="row flex">
|
|
316
|
+ <div class="inline_block">
|
|
317
|
+ 诊断:
|
|
318
|
+ <div class="under_line_two" style="width: 500px;">{{record.patient.diagnose}}</div>
|
|
319
|
+ </div>
|
|
320
|
+ </div>
|
|
321
|
+ </template>
|
|
322
|
+ <div class="row" :style="record.monitor_records.length <= 8 ? 'margin-top:-11px':''">
|
|
323
|
+ <table class="proj_table" :class="record.monitor_records2.length > 0 ? 'margin-bottom-600':'margin-bottom-900'">
|
|
324
|
+ <tbody>
|
|
325
|
+ <tr v-if="record.monitor_records2.length > 0">
|
|
326
|
+ <td style="padding: 0;" colspan="2">
|
|
327
|
+ <table class="inside_table">
|
|
328
|
+ <tbody>
|
|
329
|
+ <!-- <thead> -->
|
|
330
|
+ <tr><td colspan="10" style="font-size:16px;padding: 10px 8px;line-height: 30px;text-align:left;">二、透析中护理纪录:</td></tr>
|
|
331
|
+ <tr>
|
|
332
|
+ <td width="100">时间</td>
|
|
333
|
+ <td width="100">BP<br/>mmHg</td>
|
|
334
|
+ <td width="30">P<br/>次/分</td>
|
|
335
|
+ <td width="30">R<br/>次/分</td>
|
|
336
|
+ <td width="60">静脉压/动脉压<br/>mmHg</td>
|
|
337
|
+ <td width="80">血流量<br/>ml/min</td>
|
|
338
|
+ <td width="90">超滤量累计L</td>
|
|
339
|
+ <td width="80">钠浓度<br/>mmol/L</td>
|
|
340
|
+ <td width="240">病情特殊情况处理<br/>及专科护理措施记录</td>
|
|
341
|
+ <td width="100">护士签名</td>
|
|
342
|
+ </tr>
|
|
343
|
+ <tr v-for="(monitor_record, index) in record.monitor_records2" :key="index">
|
|
344
|
+ <td>{{getTime(monitor_record.operate_time,'{h}:{i}')}}</td>
|
|
345
|
+ <td>{{monitor_record.systolic_blood_pressure?monitor_record.systolic_blood_pressure:''}} /{{monitor_record.diastolic_blood_pressure?monitor_record.diastolic_blood_pressure:''}}</td>
|
|
346
|
+ <td>{{monitor_record.pulse_frequency?monitor_record.pulse_frequency:''}}</td>
|
|
347
|
+ <td>{{monitor_record.breathing_rate?monitor_record.breathing_rate:''}}</td>
|
|
348
|
+ <td>{{monitor_record.venous_pressure?monitor_record.venous_pressure:''}}/{{monitor_record.arterial_pressure?monitor_record.arterial_pressure:''}}</td>
|
|
349
|
+ <td>{{monitor_record.blood_flow_volume?monitor_record.blood_flow_volume:''}}</td>
|
|
350
|
+ <td>{{monitor_record.ultrafiltration_volume?monitor_record.ultrafiltration_volume:''}}</td>
|
|
351
|
+ <td>{{monitor_record.sodium_concentration?monitor_record.sodium_concentration:''}}</td>
|
|
352
|
+ <td style="line-height:16px;">{{monitor_record.symptom}} {{monitor_record.dispose}} {{monitor_record.result}}</td>
|
|
353
|
+ <td><span v-if="setAdminUserES(monitor_record, 'monitoring_nurse') == ''">{{getAdminUser(monitor_record, 'monitoring_nurse')}}</span><img class="es-img" :src="setAdminUserES(monitor_record, 'monitoring_nurse')" alt="" srcset="" v-else style="height: 20px;"></td>
|
|
354
|
+ </tr>
|
276
|
355
|
</tbody>
|
277
|
356
|
</table>
|
278
|
357
|
</td>
|
|
@@ -658,7 +737,7 @@
|
658
|
737
|
</tr>
|
659
|
738
|
</tbody>
|
660
|
739
|
</table>
|
661
|
|
- <table class="print-table-no" border="1" style="border-top:0;" count="0">
|
|
740
|
+ <table class="print-table-no" border="1" style="border-top:0;" count="0" :style="record.advices2.length > 0 ? 'margin-bottom:350px;border-top:0;':'border-top:0;'">
|
662
|
741
|
<tbody>
|
663
|
742
|
<tr style="line-height:35px;padding:8px 5px;">
|
664
|
743
|
<td colspan="7" style="font-size: 18px">医嘱</td>
|
|
@@ -676,7 +755,7 @@
|
676
|
755
|
<td style="font-size: 16px" width="10%">时间</td>
|
677
|
756
|
</tr>
|
678
|
757
|
<template v-for="(group, group_index) in record.advices">
|
679
|
|
- <tr v-for="(advice, advice_index) in group.advices">
|
|
758
|
+ <tr v-for="(advice, advice_index) in group.advices" :key="advice_index">
|
680
|
759
|
<td height="60px" v-if="advice_index == 0" :rowspan="group.advices.length">
|
681
|
760
|
<span v-if="advice.start_time">{{getTime(advice.start_time,'{y}-{m}-{d} {h}:{i}')}}</span>
|
682
|
761
|
<span v-else> <br/> </span>
|
|
@@ -691,7 +770,7 @@
|
691
|
770
|
<span v-if="advice.parent_id == 0 &&advice.children&& advice.children.length == 0">{{advice.execution_frequency}}</span>
|
692
|
771
|
<span v-if="advice.parent_id == 0 && advice.children && advice.children.length == 0 && advice.remark.length > 0" >({{advice.remark}})</span>
|
693
|
772
|
</td>
|
694
|
|
- <td colspan="2" height="60px" style="text-align: center"v-else >
|
|
773
|
+ <td colspan="2" height="60px" style="text-align: center" v-else >
|
695
|
774
|
<span>{{advice.delivery_way}}</span>
|
696
|
775
|
<span>{{advice.execution_frequency}}</span>
|
697
|
776
|
<span v-if="advice.remark.length > 0" >({{advice.remark}})</span>
|
|
@@ -714,6 +793,99 @@
|
714
|
793
|
</template>
|
715
|
794
|
</tbody>
|
716
|
795
|
</table>
|
|
796
|
+
|
|
797
|
+ <template v-if="record.advices2.length > 0">
|
|
798
|
+ <div class="order-yy-name">{{orgname}}</div>
|
|
799
|
+ <div class="order_title">血液净化科医嘱及执行单</div>
|
|
800
|
+ <div class="row" style="margin-top: 15px;">
|
|
801
|
+ <div class="inline_block" >
|
|
802
|
+ 科室:
|
|
803
|
+ <check-box text="门诊透析" :checked="record.patient.source == 1"></check-box>
|
|
804
|
+ <check-box text="住院" :checked="record.patient.source == 2"></check-box>
|
|
805
|
+ <!-- TODO -->
|
|
806
|
+ </div>
|
|
807
|
+ <div class="inline_block" style="margin-left:25px;">
|
|
808
|
+ 姓名:
|
|
809
|
+ <div class="under_line" style="width: 120px;">{{ record.patient.name }}</div>
|
|
810
|
+ </div>
|
|
811
|
+ <div class="inline_block" style="margin-left: 25px;">
|
|
812
|
+ 性别:
|
|
813
|
+ <check-box text="男" :checked="record.patient.gender == 1"></check-box>
|
|
814
|
+ <check-box text="女" :checked="record.patient.gender == 2"></check-box>
|
|
815
|
+ </div>
|
|
816
|
+ <div class="inline_block" style="margin-left: 25px;">
|
|
817
|
+ 年龄:
|
|
818
|
+ <div class="under_line" style="width: 70px;">{{jsGetAge(record.patient.birthday)}}</div>
|
|
819
|
+ 岁
|
|
820
|
+ </div>
|
|
821
|
+ <div class="inline_block" style="margin-left:25px;">
|
|
822
|
+ 住院号/ID号:
|
|
823
|
+ <div class="under_line" style="width: 120px;"> </div>
|
|
824
|
+ </div>
|
|
825
|
+ </div>
|
|
826
|
+ <div class="row flex">
|
|
827
|
+ <div class="inline_block">
|
|
828
|
+ 诊断:
|
|
829
|
+ <div class="under_line_two" style="width: 500px;">{{record.patient.diagnose}}</div>
|
|
830
|
+ </div>
|
|
831
|
+ </div>
|
|
832
|
+ <table class="print-table-no" border="1" count="0">
|
|
833
|
+ <tbody>
|
|
834
|
+ <tr style="line-height:35px;padding:8px 5px;">
|
|
835
|
+ <td colspan="7" style="font-size: 18px">医嘱</td>
|
|
836
|
+ </tr>
|
|
837
|
+ <tr style="line-height:35px;padding:8px 5px;">
|
|
838
|
+ <td colspan="4" style="font-size: 16px">开医嘱</td>
|
|
839
|
+ <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
|
|
840
|
+ </tr>
|
|
841
|
+ <tr style="line-height:35px;padding:8px 5px;">
|
|
842
|
+ <td style="font-size: 16px" width="10%">时间</td>
|
|
843
|
+ <td style="font-size: 16px" colspan="2" width="45%">医嘱内容</td>
|
|
844
|
+ <td style="font-size: 16px" width="10%">医生签名</td>
|
|
845
|
+ <td style="font-size: 16px" width="10%">核对人签名</td>
|
|
846
|
+ <td style="font-size: 16px" width="10%">执行人签名</td>
|
|
847
|
+ <td style="font-size: 16px" width="10%">时间</td>
|
|
848
|
+ </tr>
|
|
849
|
+ <template v-for="(group, group_index) in record.advices2">
|
|
850
|
+ <tr v-for="(advice, advice_index) in group.advices" :key="advice_index">
|
|
851
|
+ <td height="60px" v-if="advice_index == 0" :rowspan="group.advices.length">
|
|
852
|
+ <span v-if="advice.start_time">{{getTime(advice.start_time,'{y}-{m}-{d} {h}:{i}')}}</span>
|
|
853
|
+ <span v-else> <br/> </span>
|
|
854
|
+ </td>
|
|
855
|
+ <td height="60px" class="advice-name" style="padding-left:7px;" :colspan="advice.children && advice.children.length > 0 || advice.parent_id > 0 ? 1 :2" v-if="advice.isShow == 2">
|
|
856
|
+ <span>{{advice.advice_name }}</span>
|
|
857
|
+ <span>{{advice.advice_desc}}</span>
|
|
858
|
+ <!-- <span v-if="advice[0].drug_spec">{{advice[0].drug_spec}}{{advice[0].drug_spec_unit}}</span> -->
|
|
859
|
+ <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
|
|
860
|
+ <span v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
|
|
861
|
+ <span v-if="advice.parent_id == 0 &&advice.children && advice.children.length == 0">{{advice.delivery_way}}</span>
|
|
862
|
+ <span v-if="advice.parent_id == 0 &&advice.children&& advice.children.length == 0">{{advice.execution_frequency}}</span>
|
|
863
|
+ <span v-if="advice.parent_id == 0 && advice.children && advice.children.length == 0 && advice.remark.length > 0" >({{advice.remark}})</span>
|
|
864
|
+ </td>
|
|
865
|
+ <td colspan="2" height="60px" style="text-align: center" v-else >
|
|
866
|
+ <span>{{advice.delivery_way}}</span>
|
|
867
|
+ <span>{{advice.execution_frequency}}</span>
|
|
868
|
+ <span v-if="advice.remark.length > 0" >({{advice.remark}})</span>
|
|
869
|
+ </td>
|
|
870
|
+ <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td>
|
|
871
|
+ <td height="60px">
|
|
872
|
+ <span v-if="setAdminUserES(advice, 'advice_doctor') == ''">{{getAdminUser(advice, 'advice_doctor')}}</span>
|
|
873
|
+ <img class="es-img" :src="setAdminUserES(advice, 'advice_doctor')" alt="" srcset="" v-else style="height: 20px;">
|
|
874
|
+ </td>
|
|
875
|
+ <td height="60px">
|
|
876
|
+ <span v-if="setAdminUserES(advice, 'checker') == ''">{{getAdminUser(advice, 'checker')}}</span>
|
|
877
|
+ <img class="es-img" :src="setAdminUserES(advice, 'checker')" alt="" srcset="" v-else style="height: 20px;">
|
|
878
|
+ </td>
|
|
879
|
+ <td height="60px">
|
|
880
|
+ <span v-if="setAdminUserES(advice, 'execution_staff') == ''">{{getAdminUser(advice, 'execution_staff')}}</span>
|
|
881
|
+ <img class="es-img" :src="setAdminUserES(advice, 'execution_staff')" alt="" srcset="" v-else style="height: 20px;">
|
|
882
|
+ </td>
|
|
883
|
+ <td height="60px"><span v-if="advice.execution_time"> {{getTime(advice.execution_time,'{y}-{m}-{d} {h}:{i}')}} </span> </td>
|
|
884
|
+ </tr>
|
|
885
|
+ </template>
|
|
886
|
+ </tbody>
|
|
887
|
+ </table>
|
|
888
|
+ </template>
|
717
|
889
|
</div>
|
718
|
890
|
</div>
|
719
|
891
|
</div>
|
|
@@ -759,6 +931,7 @@
|
759
|
931
|
adminUser: [],
|
760
|
932
|
doctor_advices: [],
|
761
|
933
|
advice_groups: [],
|
|
934
|
+ advice_groups_2: [],
|
762
|
935
|
complications: ['低血压', '高血压', '心律失常', '头晕', '头痛', '呕吐', '抽搐', '出血', '心衰', '腹痛']
|
763
|
936
|
}
|
764
|
937
|
},
|
|
@@ -805,11 +978,13 @@
|
805
|
978
|
this.records = this.records.concat(resp.data.schedules)
|
806
|
979
|
for (const recordIndex in this.records) {
|
807
|
980
|
this.advice_groups = []
|
|
981
|
+ this.advice_groups_2 = []
|
808
|
982
|
var dlegh = 0
|
809
|
|
- if (this.records[recordIndex].monitor_records && this.records[recordIndex].monitor_records.length < 7) {
|
810
|
|
- dlegh = 7 - this.records[recordIndex].monitor_records.length
|
811
|
|
- } else {
|
812
|
|
- dlegh = 7
|
|
983
|
+ if (this.records[recordIndex].monitor_records && this.records[recordIndex].monitor_records.length < 8) {
|
|
984
|
+ dlegh = 8 - this.records[recordIndex].monitor_records.length
|
|
985
|
+ }
|
|
986
|
+ if(this.records[recordIndex].monitor_records.length <=0 ){
|
|
987
|
+ dlegh = 8
|
813
|
988
|
}
|
814
|
989
|
if (dlegh > 0) {
|
815
|
990
|
if (typeof (this.records[recordIndex].monitor_records) === 'undefined' || this.records[recordIndex].monitor_records == null) {
|
|
@@ -820,6 +995,22 @@
|
820
|
995
|
}
|
821
|
996
|
}
|
822
|
997
|
|
|
998
|
+ this.records[recordIndex].monitor_records2 = []
|
|
999
|
+ if (this.records[recordIndex].monitor_records.length > 15){
|
|
1000
|
+ const tempMonitors = []
|
|
1001
|
+ const tempMonitors2 = []
|
|
1002
|
+
|
|
1003
|
+ for (let index = 0; index < this.records[recordIndex].monitor_records.length; index++) {
|
|
1004
|
+ if (index < 15) {
|
|
1005
|
+ tempMonitors.push(this.records[recordIndex].monitor_records[index])
|
|
1006
|
+ } else {
|
|
1007
|
+ tempMonitors2.push(this.records[recordIndex].monitor_records[index])
|
|
1008
|
+ }
|
|
1009
|
+ }
|
|
1010
|
+ this.records[recordIndex].monitor_records = tempMonitors
|
|
1011
|
+ this.records[recordIndex].monitor_records2 = tempMonitors2
|
|
1012
|
+ }
|
|
1013
|
+
|
823
|
1014
|
var childMap = {}
|
824
|
1015
|
for (const index in this.records[recordIndex].advices) {
|
825
|
1016
|
if (this.records[recordIndex].advices[index].parent_id == 0) {
|
|
@@ -881,7 +1072,14 @@
|
881
|
1072
|
}
|
882
|
1073
|
}
|
883
|
1074
|
|
884
|
|
- for (let index = 0; index < this.doctor_advices.length; index++) {
|
|
1075
|
+ var templength = 0
|
|
1076
|
+ if (this.doctor_advices.length > 12) {
|
|
1077
|
+ templength = 12
|
|
1078
|
+ } else {
|
|
1079
|
+ templength = this.doctor_advices.length
|
|
1080
|
+ }
|
|
1081
|
+
|
|
1082
|
+ for (let index = 0; index < templength; index++) {
|
885
|
1083
|
const advice = this.doctor_advices[index]
|
886
|
1084
|
if (advice.groupno == 0) {
|
887
|
1085
|
// 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
|
|
@@ -921,14 +1119,69 @@
|
921
|
1119
|
if (group.group_no == advice.groupno) {
|
922
|
1120
|
group.advices.push(advice)
|
923
|
1121
|
}
|
|
1122
|
+ if (index == 11) {
|
|
1123
|
+ this.advice_groups.push(group)
|
|
1124
|
+ group = this.newAdviceGroupObject()
|
|
1125
|
+ }
|
924
|
1126
|
}
|
|
1127
|
+
|
|
1128
|
+ if (this.doctor_advices.length > 12) {
|
|
1129
|
+ for (let index = 12; index < this.doctor_advices.length; index++) {
|
|
1130
|
+ const advice = this.doctor_advices[index]
|
|
1131
|
+ if (advice.groupno == 0) {
|
|
1132
|
+ // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
|
|
1133
|
+ if (advice.parent_id > 0) {
|
|
1134
|
+ if (this.advice_groups_2.length > 0) {
|
|
1135
|
+ var parent_group = this.advice_groups_2[
|
|
1136
|
+ this.advice_groups_2.length - 1
|
|
1137
|
+ ]
|
|
1138
|
+ if (parent_group.advices.length > 0) {
|
|
1139
|
+ if (parent_group.advices[0].id == advice.parent_id) {
|
|
1140
|
+ parent_group.advices.push(advice)
|
|
1141
|
+ }
|
|
1142
|
+ }
|
|
1143
|
+ }
|
|
1144
|
+ continue
|
|
1145
|
+ } else {
|
|
1146
|
+ if (group.group_no > 0) {
|
|
1147
|
+ this.advice_groups_2.push(group)
|
|
1148
|
+ group = this.newAdviceGroupObject()
|
|
1149
|
+ }
|
|
1150
|
+
|
|
1151
|
+ initGroupBlock(group, advice)
|
|
1152
|
+ group.advices.push(advice)
|
|
1153
|
+ this.advice_groups_2.push(group)
|
|
1154
|
+ group = this.newAdviceGroupObject()
|
|
1155
|
+ continue
|
|
1156
|
+ }
|
|
1157
|
+ }
|
|
1158
|
+
|
|
1159
|
+ if (group.group_no > 0 && group.group_no != advice.groupno) {
|
|
1160
|
+ this.advice_groups_2.push(group)
|
|
1161
|
+ group = this.newAdviceGroupObject()
|
|
1162
|
+ }
|
|
1163
|
+ if (group.group_no == 0) {
|
|
1164
|
+ initGroupBlock(group, advice)
|
|
1165
|
+ }
|
|
1166
|
+ if (group.group_no == advice.groupno) {
|
|
1167
|
+ group.advices.push(advice)
|
|
1168
|
+ }
|
|
1169
|
+ }
|
|
1170
|
+ }
|
|
1171
|
+
|
925
|
1172
|
if (group.group_no > 0) {
|
926
|
1173
|
// 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
|
927
|
|
- this.advice_groups.push(group)
|
|
1174
|
+ if (this.doctor_advices.length > 12) {
|
|
1175
|
+ this.advice_groups_2.push(group)
|
|
1176
|
+ } else {
|
|
1177
|
+ this.advice_groups.push(group)
|
|
1178
|
+ }
|
928
|
1179
|
}
|
929
|
1180
|
}
|
930
|
1181
|
this.records[recordIndex].advices = []
|
|
1182
|
+ this.records[recordIndex].advices2 = []
|
931
|
1183
|
this.records[recordIndex].advices = this.advice_groups
|
|
1184
|
+ this.records[recordIndex].advices2 = this.advice_groups_2
|
932
|
1185
|
}
|
933
|
1186
|
|
934
|
1187
|
console.log(' this.records[recordIndex].advices', this.records)
|
|
@@ -1247,4 +1500,13 @@
|
1247
|
1500
|
.advice-children {
|
1248
|
1501
|
display: flex;
|
1249
|
1502
|
}
|
|
1503
|
+ .margin-bottom-300 {
|
|
1504
|
+ margin-bottom:450px;
|
|
1505
|
+ }
|
|
1506
|
+ .margin-bottom-600 {
|
|
1507
|
+ margin-bottom:600px;
|
|
1508
|
+ }
|
|
1509
|
+ .margin-bottom-900 {
|
|
1510
|
+ margin-bottom:900px;
|
|
1511
|
+ }
|
1250
|
1512
|
</style>
|