|
@@ -591,7 +591,7 @@
|
591
|
591
|
</tr>
|
592
|
592
|
<!-- <template v-for="group in doctor_advices" > -->
|
593
|
593
|
|
594
|
|
- <tr v-for="(advice, advice_index) in record.his_advices.length > 0 ? record.his_advices : record.advices" :key="advice_index">
|
|
594
|
+ <tr v-for="(advice, advice_index) in record.advices" :key="advice_index">
|
595
|
595
|
<td height="30px" style="padding:4px 5px;">
|
596
|
596
|
<span v-if="advice.start_time">
|
597
|
597
|
{{ getTime(advice.start_time, "{h}:{i}") }}
|
|
@@ -602,7 +602,7 @@
|
602
|
602
|
<span v-if="advice.parent_id > 0">---></span>
|
603
|
603
|
<span>{{ advice.advice_name }}</span>
|
604
|
604
|
<span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
|
605
|
|
- <span v-if="advice.prescribing_number"> {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</span>
|
|
605
|
+ <span v-if="advice.prescribing_number"> {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</span>
|
606
|
606
|
<span v-if="advice.single_dose != 0">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
|
607
|
607
|
<span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
|
608
|
608
|
<span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
|
|
@@ -754,7 +754,7 @@
|
754
|
754
|
<div class="inline_block" style="flex:1;display: flex;align-items: center;">
|
755
|
755
|
上机护士:
|
756
|
756
|
<div class="under_line" style="width: 80px;text-align: center">
|
757
|
|
- <span v-if="setAdminUserES(record.dialysis_order, 'start_nurse') == ''">{{getAdminUser(record.dialysis_order, 'start_nurse')}}</span>
|
|
757
|
+ <span style="display: inline-block;height: 36px;line-height: 36px;" v-if="setAdminUserES(record.dialysis_order, 'start_nurse') == ''">{{getAdminUser(record.dialysis_order, 'start_nurse')}}</span>
|
758
|
758
|
<span v-else>
|
759
|
759
|
<img class="es-img" style="height:30px;" :src="setAdminUserES(record.dialysis_order, 'start_nurse')" />
|
760
|
760
|
</span>
|
|
@@ -764,13 +764,13 @@
|
764
|
764
|
核对人员:
|
765
|
765
|
<div class="under_line" style="width: 80px;text-align: center">
|
766
|
766
|
<span v-if="record.check != null ? record.dialysis_order.start_nurse != record.check.modifier : false">
|
767
|
|
- <span v-if="setAdminUserES(record.check, record.check == null ? 0 : 'modifier') == ''">
|
|
767
|
+ <span style="display: inline-block;height: 36px;line-height: 36px;" v-if="setAdminUserES(record.check, record.check == null ? 0 : 'modifier') == ''">
|
768
|
768
|
{{ getAdminUser(record.check, record.check == null ? 0 : 'modifier') }}
|
769
|
769
|
</span>
|
770
|
770
|
<img style="height:30px;" :src="setAdminUserES(record.check, record.check == null ? 0 : 'modifier')" alt srcset v-else />
|
771
|
771
|
</span>
|
772
|
772
|
<span v-else>
|
773
|
|
- <span v-if="setAdminUserES(record.check, record.check == null ? 0 : 'creater') == ''">
|
|
773
|
+ <span style="display: inline-block;height: 36px;line-height: 36px;" v-if="setAdminUserES(record.check, record.check == null ? 0 : 'creater') == ''">
|
774
|
774
|
{{ getAdminUser(record.check, "creater") }}
|
775
|
775
|
</span>
|
776
|
776
|
<img style="height:30px;" :src="setAdminUserES(record.check, record.check == null ? 0 : 'creater')" alt srcset v-else />
|
|
@@ -780,7 +780,7 @@
|
780
|
780
|
<div class="inline_block" style="flex:1;display: flex;align-items: center;">
|
781
|
781
|
下机护士:
|
782
|
782
|
<div class="under_line" style="width: 80px;text-align: center">
|
783
|
|
- <span v-if="setAdminUserES(record.dialysis_order, 'finish_nurse') == ''">{{getAdminUser(record.dialysis_order, 'finish_nurse')}}</span>
|
|
783
|
+ <span style="display: inline-block;height: 36px;line-height: 36px;" v-if="setAdminUserES(record.dialysis_order, 'finish_nurse') == ''">{{getAdminUser(record.dialysis_order, 'finish_nurse')}}</span>
|
784
|
784
|
<span v-else>
|
785
|
785
|
<img class="es-img" style="height:30px;" :src="setAdminUserES(record.dialysis_order, 'finish_nurse')" />
|
786
|
786
|
</span>
|
|
@@ -789,7 +789,7 @@
|
789
|
789
|
<div class="inline_block" style="flex:1;display: flex;align-items: center;">
|
790
|
790
|
治疗医生:
|
791
|
791
|
<div class="under_line" style="width: 80px;text-align: center">
|
792
|
|
- <span v-if="setAdminUserES(record.prescription, 'creater') == ''">{{getAdminUser(record.prescription, 'creater')}}</span>
|
|
792
|
+ <span style="display: inline-block;height: 36px;line-height: 36px;" v-if="setAdminUserES(record.prescription, 'creater') == ''">{{getAdminUser(record.prescription, 'creater')}}</span>
|
793
|
793
|
<img class="es-img" :src="setAdminUserES(record.prescription, 'creater')" alt="" srcset="" v-else style="height: 30px;">
|
794
|
794
|
</div>
|
795
|
795
|
</div>
|
|
@@ -1003,8 +1003,8 @@ export default {
|
1003
|
1003
|
}
|
1004
|
1004
|
|
1005
|
1005
|
var delghTwo = 0
|
1006
|
|
- if (this.records[recordIndex].advices && this.records[recordIndex].advices.length < 12) {
|
1007
|
|
- delghTwo = 12 - this.records[recordIndex].advices.length
|
|
1006
|
+ if (this.records[recordIndex].advices && this.records[recordIndex].advices.length < 6) {
|
|
1007
|
+ delghTwo = 6 - this.records[recordIndex].advices.length
|
1008
|
1008
|
} else {
|
1009
|
1009
|
delghTwo = 0
|
1010
|
1010
|
}
|
|
@@ -1018,38 +1018,38 @@ export default {
|
1018
|
1018
|
}
|
1019
|
1019
|
}
|
1020
|
1020
|
|
1021
|
|
- var childMap = {}
|
1022
|
|
- for (const index in this.records[recordIndex].advices) {
|
1023
|
|
- if (this.records[recordIndex].advices[index].parent_id == 0) {
|
1024
|
|
- continue
|
1025
|
|
- }
|
1026
|
|
- if (
|
1027
|
|
- !(
|
1028
|
|
- this.records[recordIndex].advices[index].parent_id in childMap
|
1029
|
|
- )
|
1030
|
|
- ) {
|
1031
|
|
- childMap[
|
1032
|
|
- this.records[recordIndex].advices[index].parent_id
|
1033
|
|
- ] = []
|
1034
|
|
- }
|
1035
|
|
- childMap[this.records[recordIndex].advices[index].parent_id].push(
|
1036
|
|
- this.records[recordIndex].advices[index]
|
1037
|
|
- )
|
1038
|
|
- }
|
1039
|
|
-
|
1040
|
|
- var advices = []
|
1041
|
|
- for (const index in this.records[recordIndex].advices) {
|
1042
|
|
- if (this.records[recordIndex].advices[index].parent_id > 0) {
|
1043
|
|
- continue
|
1044
|
|
- }
|
1045
|
|
- var item = this.records[recordIndex].advices[index]
|
1046
|
|
- if (item.id in childMap) {
|
1047
|
|
- item.children = childMap[item.id]
|
1048
|
|
- } else {
|
1049
|
|
- item.children = []
|
1050
|
|
- }
|
1051
|
|
- advices.push(item)
|
1052
|
|
- }
|
|
1021
|
+ // var childMap = {}
|
|
1022
|
+ // for (const index in this.records[recordIndex].advices) {
|
|
1023
|
+ // if (this.records[recordIndex].advices[index].parent_id == 0) {
|
|
1024
|
+ // continue
|
|
1025
|
+ // }
|
|
1026
|
+ // if (
|
|
1027
|
+ // !(
|
|
1028
|
+ // this.records[recordIndex].advices[index].parent_id in childMap
|
|
1029
|
+ // )
|
|
1030
|
+ // ) {
|
|
1031
|
+ // childMap[
|
|
1032
|
+ // this.records[recordIndex].advices[index].parent_id
|
|
1033
|
+ // ] = []
|
|
1034
|
+ // }
|
|
1035
|
+ // childMap[this.records[recordIndex].advices[index].parent_id].push(
|
|
1036
|
+ // this.records[recordIndex].advices[index]
|
|
1037
|
+ // )
|
|
1038
|
+ // }
|
|
1039
|
+
|
|
1040
|
+ // var advices = []
|
|
1041
|
+ // for (const index in this.records[recordIndex].advices) {
|
|
1042
|
+ // if (this.records[recordIndex].advices[index].parent_id > 0) {
|
|
1043
|
+ // continue
|
|
1044
|
+ // }
|
|
1045
|
+ // var item = this.records[recordIndex].advices[index]
|
|
1046
|
+ // if (item.id in childMap) {
|
|
1047
|
+ // item.children = childMap[item.id]
|
|
1048
|
+ // } else {
|
|
1049
|
+ // item.children = []
|
|
1050
|
+ // }
|
|
1051
|
+ // advices.push(item)
|
|
1052
|
+ // }
|
1053
|
1053
|
|
1054
|
1054
|
var leftAdvice = []
|
1055
|
1055
|
var rightAdvice = []
|