|
@@ -443,34 +443,9 @@
|
443
|
443
|
<!-- )-->
|
444
|
444
|
<!-- "-->
|
445
|
445
|
<!-- ></check-box>-->
|
446
|
|
- <check-box
|
447
|
|
- v-for="(item, index) in bloodAccessParOpera"
|
448
|
|
- :key="index"
|
449
|
|
- :text="item.name"
|
450
|
|
- :checked="
|
451
|
|
- record.prescription.blood_access == item.id ? true : false
|
452
|
|
- "
|
453
|
|
- ></check-box>
|
454
|
|
- <check-box
|
455
|
|
- text="直穿"
|
456
|
|
- :checked="
|
457
|
|
- isCheckBoxChecked(
|
458
|
|
- record.prescription,
|
459
|
|
- 'blood_access',
|
460
|
|
- 2
|
461
|
|
- )
|
462
|
|
- "
|
463
|
|
- ></check-box>
|
464
|
|
- <check-box
|
465
|
|
- text="导管"
|
466
|
|
- :checked="
|
467
|
|
- isCheckBoxChecked(
|
468
|
|
- record.prescription,
|
469
|
|
- 'blood_access',
|
470
|
|
- 3
|
471
|
|
- )
|
472
|
|
- "
|
473
|
|
- ></check-box>
|
|
446
|
+ <check-box v-for="(item, index) in bloodAccessParOpera" :key="index" :text="item.name" :checked=" record.prescription.blood_access == item.id ? true : false " ></check-box>
|
|
447
|
+ <!-- <check-box text="直穿" :checked=" isCheckBoxChecked( record.prescription, 'blood_access', 2 ) " ></check-box>
|
|
448
|
+ <check-box text="导管" :checked=" sCheckBoxChecked( record.prescription, 'blood_access', 3 ) " ></check-box> -->
|
474
|
449
|
</div>
|
475
|
450
|
<div class="inline_block">
|
476
|
451
|
 血流量:
|
|
@@ -484,6 +459,7 @@
|
484
|
459
|
<div class="under_line" style="width: 60px;" v-else>
|
485
|
460
|
{{ "/" }}
|
486
|
461
|
</div>
|
|
462
|
+ ml/min
|
487
|
463
|
</div>
|
488
|
464
|
<div class="inline_block">
|
489
|
465
|
 透析液流量:
|
|
@@ -543,11 +519,11 @@
|
543
|
519
|
class="under_line"
|
544
|
520
|
style="width:60px;text-align: left"
|
545
|
521
|
v-if="
|
546
|
|
- record.prescription &&
|
547
|
|
- record.prescription.ultrafiltration
|
|
522
|
+ record.assessment_after_dislysis &&
|
|
523
|
+ record.assessment_after_dislysis.actual_ultrafiltration
|
548
|
524
|
"
|
549
|
525
|
>
|
550
|
|
- {{ getFloat(record.prescription.ultrafiltration) }}
|
|
526
|
+ {{ getFloat(record.assessment_after_dislysis.actual_ultrafiltration) }}
|
551
|
527
|
</div>
|
552
|
528
|
<div class="under_line" style="width:60px;" v-else>
|
553
|
529
|
{{ "/" }}
|
|
@@ -985,14 +961,14 @@
|
985
|
961
|
</template>
|
986
|
962
|
|
987
|
963
|
<script>
|
988
|
|
-import CheckBox from "./option_check_box";
|
989
|
|
-import { GetBatchPrintDialysisData } from "@/api/print_data";
|
990
|
|
-import { jsGetAge, uParseTime } from "@/utils/tools";
|
991
|
|
-import { getDataConfig } from "@/utils/data";
|
992
|
|
-import BreadCrumb from "@/xt_pages/components/bread-crumb";
|
993
|
|
-import print from "print-js";
|
|
964
|
+import CheckBox from './option_check_box'
|
|
965
|
+import { GetBatchPrintDialysisData } from '@/api/print_data'
|
|
966
|
+import { jsGetAge, uParseTime } from '@/utils/tools'
|
|
967
|
+import { getDataConfig } from '@/utils/data'
|
|
968
|
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
|
969
|
+import print from 'print-js'
|
994
|
970
|
export default {
|
995
|
|
- name: "BatchPrintOrder",
|
|
971
|
+ name: 'BatchPrintOrder',
|
996
|
972
|
components: {
|
997
|
973
|
CheckBox,
|
998
|
974
|
BreadCrumb
|
|
@@ -1000,8 +976,8 @@ export default {
|
1000
|
976
|
data() {
|
1001
|
977
|
return {
|
1002
|
978
|
crumbs: [
|
1003
|
|
- { path: false, name: "透析管理" },
|
1004
|
|
- { path: false, name: "批量打印" }
|
|
979
|
+ { path: false, name: '透析管理' },
|
|
980
|
+ { path: false, name: '批量打印' }
|
1005
|
981
|
],
|
1006
|
982
|
records: [
|
1007
|
983
|
// 模拟有多条数据
|
|
@@ -1025,7 +1001,7 @@ export default {
|
1025
|
1001
|
nutrition_arr: [],
|
1026
|
1002
|
|
1027
|
1003
|
loading: false,
|
1028
|
|
- orgname: "",
|
|
1004
|
+ orgname: '',
|
1029
|
1005
|
bloodAccessParOpera: {},
|
1030
|
1006
|
anticoagulantsConfit: {},
|
1031
|
1007
|
dialysateFormulationOptions: {},
|
|
@@ -1036,53 +1012,53 @@ export default {
|
1036
|
1012
|
advice_groups: [],
|
1037
|
1013
|
advice_groups_2: [],
|
1038
|
1014
|
complications: [
|
1039
|
|
- "低血压",
|
1040
|
|
- "高血压",
|
1041
|
|
- "心律失常",
|
1042
|
|
- "头晕",
|
1043
|
|
- "头痛",
|
1044
|
|
- "呕吐",
|
1045
|
|
- "抽搐",
|
1046
|
|
- "出血",
|
1047
|
|
- "心衰",
|
1048
|
|
- "腹痛"
|
|
1015
|
+ '低血压',
|
|
1016
|
+ '高血压',
|
|
1017
|
+ '心律失常',
|
|
1018
|
+ '头晕',
|
|
1019
|
+ '头痛',
|
|
1020
|
+ '呕吐',
|
|
1021
|
+ '抽搐',
|
|
1022
|
+ '出血',
|
|
1023
|
+ '心衰',
|
|
1024
|
+ '腹痛'
|
1049
|
1025
|
]
|
1050
|
|
- };
|
|
1026
|
+ }
|
1051
|
1027
|
},
|
1052
|
1028
|
created() {
|
1053
|
|
- this.way_arr = getDataConfig("hemodialysis", "way");
|
1054
|
|
- this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
|
1055
|
|
- this.appetite_arr = getDataConfig("hemodialysis", "appetite");
|
1056
|
|
- this.posture_arr = getDataConfig("hemodialysis", "posture");
|
1057
|
|
- this.sick_condition_arr = getDataConfig("hemodialysis", "sick_condition");
|
1058
|
|
- this.precaution_arr = getDataConfig("hemodialysis", "precaution");
|
1059
|
|
- this.intake_arr = getDataConfig("hemodialysis", "intake");
|
1060
|
|
- this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
|
|
1029
|
+ this.way_arr = getDataConfig('hemodialysis', 'way')
|
|
1030
|
+ this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
|
|
1031
|
+ this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
|
|
1032
|
+ this.posture_arr = getDataConfig('hemodialysis', 'posture')
|
|
1033
|
+ this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
|
|
1034
|
+ this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
|
|
1035
|
+ this.intake_arr = getDataConfig('hemodialysis', 'intake')
|
|
1036
|
+ this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
|
1061
|
1037
|
|
1062
|
|
- var xtuser = this.$store.getters.xt_user;
|
1063
|
|
- this.orgname = xtuser.org.org_name;
|
|
1038
|
+ var xtuser = this.$store.getters.xt_user
|
|
1039
|
+ this.orgname = xtuser.org.org_name
|
1064
|
1040
|
// this.orgname = "遂溪方济医院";
|
1065
|
|
- this.modeOptions = this.$store.getters.treatment_mode;
|
|
1041
|
+ this.modeOptions = this.$store.getters.treatment_mode
|
1066
|
1042
|
// this.replacementWays = this.$store.getters.replacement_ways;
|
1067
|
1043
|
// this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
|
1068
|
|
- this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
|
|
1044
|
+ this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
|
1069
|
1045
|
|
1070
|
1046
|
var bloodAccessParOpera = getDataConfig(
|
1071
|
|
- "hemodialysis",
|
1072
|
|
- "vascular_access_desc"
|
1073
|
|
- );
|
1074
|
|
- // for (var key in bloodAccessParOpera) {
|
1075
|
|
- // this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
|
1076
|
|
- // bloodAccessParOpera[key];
|
1077
|
|
- // }
|
|
1047
|
+ 'hemodialysis',
|
|
1048
|
+ 'vascular_access_desc'
|
|
1049
|
+ )
|
|
1050
|
+ for (var key in bloodAccessParOpera) {
|
|
1051
|
+ this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
|
|
1052
|
+ bloodAccessParOpera[key]
|
|
1053
|
+ }
|
1078
|
1054
|
|
1079
|
1055
|
var dialysateFormulationOptions = getDataConfig(
|
1080
|
|
- "hemodialysis",
|
1081
|
|
- "dialysate_formulation"
|
1082
|
|
- );
|
|
1056
|
+ 'hemodialysis',
|
|
1057
|
+ 'dialysate_formulation'
|
|
1058
|
+ )
|
1083
|
1059
|
for (var key in dialysateFormulationOptions) {
|
1084
|
1060
|
this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
|
1085
|
|
- dialysateFormulationOptions[key];
|
|
1061
|
+ dialysateFormulationOptions[key]
|
1086
|
1062
|
}
|
1087
|
1063
|
|
1088
|
1064
|
// const xtdate = this.$route.query && this.$route.query.xtdate;
|
|
@@ -1097,21 +1073,21 @@ export default {
|
1097
|
1073
|
// }
|
1098
|
1074
|
},
|
1099
|
1075
|
mounted() {
|
1100
|
|
- this.loading = true;
|
1101
|
|
- var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids;
|
|
1076
|
+ this.loading = true
|
|
1077
|
+ var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids
|
1102
|
1078
|
if (ids.length == 0) {
|
1103
|
|
- this.$router.back(-1);
|
1104
|
|
- return;
|
|
1079
|
+ this.$router.back(-1)
|
|
1080
|
+ return
|
1105
|
1081
|
}
|
1106
|
|
- GetBatchPrintDialysisData(ids.join(","))
|
|
1082
|
+ GetBatchPrintDialysisData(ids.join(','))
|
1107
|
1083
|
.then(rs => {
|
1108
|
|
- var resp = rs.data;
|
|
1084
|
+ var resp = rs.data
|
1109
|
1085
|
if (resp.state == 1) {
|
1110
|
|
- this.records = this.records.concat(resp.data.schedules);
|
|
1086
|
+ this.records = this.records.concat(resp.data.schedules)
|
1111
|
1087
|
for (const recordIndex in this.records) {
|
1112
|
|
- this.advice_groups = [];
|
1113
|
|
- this.advice_groups_2 = [];
|
1114
|
|
- var dlegh = 0;
|
|
1088
|
+ this.advice_groups = []
|
|
1089
|
+ this.advice_groups_2 = []
|
|
1090
|
+ var dlegh = 0
|
1115
|
1091
|
if (
|
1116
|
1092
|
(this.records[recordIndex].assessment_before_dislysis &&
|
1117
|
1093
|
this.records[recordIndex].assessment_before_dislysis
|
|
@@ -1131,38 +1107,38 @@ export default {
|
1131
|
1107
|
this.records[recordIndex].assessment_before_dislysis
|
1132
|
1108
|
.temperature != 0)
|
1133
|
1109
|
) {
|
1134
|
|
- var nl = 8;
|
1135
|
|
- this.records[recordIndex].print_length = 8;
|
|
1110
|
+ var nl = 8
|
|
1111
|
+ this.records[recordIndex].print_length = 8
|
1136
|
1112
|
} else {
|
1137
|
|
- var nl = 9;
|
1138
|
|
- this.records[recordIndex].print_length = 9;
|
|
1113
|
+ var nl = 9
|
|
1114
|
+ this.records[recordIndex].print_length = 9
|
1139
|
1115
|
}
|
1140
|
1116
|
if (
|
1141
|
1117
|
this.records[recordIndex].monitor_records &&
|
1142
|
1118
|
this.records[recordIndex].monitor_records.length < 8
|
1143
|
1119
|
) {
|
1144
|
|
- dlegh = nl - this.records[recordIndex].monitor_records.length;
|
|
1120
|
+ dlegh = nl - this.records[recordIndex].monitor_records.length
|
1145
|
1121
|
}
|
1146
|
1122
|
if (this.records[recordIndex].monitor_records.length <= 0) {
|
1147
|
|
- dlegh = nl;
|
|
1123
|
+ dlegh = nl
|
1148
|
1124
|
}
|
1149
|
1125
|
if (dlegh > 0) {
|
1150
|
1126
|
if (
|
1151
|
1127
|
typeof this.records[recordIndex].monitor_records ===
|
1152
|
|
- "undefined" ||
|
|
1128
|
+ 'undefined' ||
|
1153
|
1129
|
this.records[recordIndex].monitor_records == null
|
1154
|
1130
|
) {
|
1155
|
|
- this.records[recordIndex].monitor_records = [];
|
|
1131
|
+ this.records[recordIndex].monitor_records = []
|
1156
|
1132
|
}
|
1157
|
1133
|
for (let index = 0; index < dlegh; index++) {
|
1158
|
|
- this.records[recordIndex].monitor_records.push([]);
|
|
1134
|
+ this.records[recordIndex].monitor_records.push([])
|
1159
|
1135
|
}
|
1160
|
1136
|
}
|
1161
|
1137
|
|
1162
|
|
- this.records[recordIndex].monitor_records2 = [];
|
|
1138
|
+ this.records[recordIndex].monitor_records2 = []
|
1163
|
1139
|
if (this.records[recordIndex].monitor_records.length > 13) {
|
1164
|
|
- const tempMonitors = [];
|
1165
|
|
- const tempMonitors2 = [];
|
|
1140
|
+ const tempMonitors = []
|
|
1141
|
+ const tempMonitors2 = []
|
1166
|
1142
|
|
1167
|
1143
|
for (
|
1168
|
1144
|
let index = 0;
|
|
@@ -1172,21 +1148,21 @@ export default {
|
1172
|
1148
|
if (index < 13) {
|
1173
|
1149
|
tempMonitors.push(
|
1174
|
1150
|
this.records[recordIndex].monitor_records[index]
|
1175
|
|
- );
|
|
1151
|
+ )
|
1176
|
1152
|
} else {
|
1177
|
1153
|
tempMonitors2.push(
|
1178
|
1154
|
this.records[recordIndex].monitor_records[index]
|
1179
|
|
- );
|
|
1155
|
+ )
|
1180
|
1156
|
}
|
1181
|
1157
|
}
|
1182
|
|
- this.records[recordIndex].monitor_records = tempMonitors;
|
1183
|
|
- this.records[recordIndex].monitor_records2 = tempMonitors2;
|
|
1158
|
+ this.records[recordIndex].monitor_records = tempMonitors
|
|
1159
|
+ this.records[recordIndex].monitor_records2 = tempMonitors2
|
1184
|
1160
|
}
|
1185
|
1161
|
|
1186
|
|
- var childMap = {};
|
|
1162
|
+ var childMap = {}
|
1187
|
1163
|
for (const index in this.records[recordIndex].advices) {
|
1188
|
1164
|
if (this.records[recordIndex].advices[index].parent_id == 0) {
|
1189
|
|
- continue;
|
|
1165
|
+ continue
|
1190
|
1166
|
}
|
1191
|
1167
|
if (
|
1192
|
1168
|
!(
|
|
@@ -1195,52 +1171,52 @@ export default {
|
1195
|
1171
|
) {
|
1196
|
1172
|
childMap[
|
1197
|
1173
|
this.records[recordIndex].advices[index].parent_id
|
1198
|
|
- ] = [];
|
|
1174
|
+ ] = []
|
1199
|
1175
|
}
|
1200
|
1176
|
childMap[this.records[recordIndex].advices[index].parent_id].push(
|
1201
|
1177
|
this.records[recordIndex].advices[index]
|
1202
|
|
- );
|
|
1178
|
+ )
|
1203
|
1179
|
}
|
1204
|
1180
|
|
1205
|
|
- var advices = [];
|
|
1181
|
+ var advices = []
|
1206
|
1182
|
for (const index in this.records[recordIndex].advices) {
|
1207
|
1183
|
if (this.records[recordIndex].advices[index].parent_id > 0) {
|
1208
|
|
- continue;
|
|
1184
|
+ continue
|
1209
|
1185
|
}
|
1210
|
|
- var item = this.records[recordIndex].advices[index];
|
|
1186
|
+ var item = this.records[recordIndex].advices[index]
|
1211
|
1187
|
if (item.id in childMap) {
|
1212
|
|
- item.children = childMap[item.id];
|
|
1188
|
+ item.children = childMap[item.id]
|
1213
|
1189
|
} else {
|
1214
|
|
- item.children = [];
|
|
1190
|
+ item.children = []
|
1215
|
1191
|
}
|
1216
|
|
- advices.push(item);
|
|
1192
|
+ advices.push(item)
|
1217
|
1193
|
}
|
1218
|
1194
|
|
1219
|
1195
|
this.doctor_advices =
|
1220
|
1196
|
this.records[recordIndex].advices == null
|
1221
|
1197
|
? []
|
1222
|
|
- : this.records[recordIndex].advices;
|
|
1198
|
+ : this.records[recordIndex].advices
|
1223
|
1199
|
for (let index = 0; index < this.doctor_advices.length; index++) {
|
1224
|
|
- this.doctor_advices[index]["isShow"] = 2;
|
|
1200
|
+ this.doctor_advices[index]['isShow'] = 2
|
1225
|
1201
|
}
|
1226
|
1202
|
|
1227
|
1203
|
if (this.doctor_advices.length > 0) {
|
1228
|
|
- var group = this.newAdviceGroupObject();
|
|
1204
|
+ var group = this.newAdviceGroupObject()
|
1229
|
1205
|
var initGroupBlock = function(group, advice) {
|
1230
|
|
- group.group_no = advice.groupno;
|
1231
|
|
- };
|
|
1206
|
+ group.group_no = advice.groupno
|
|
1207
|
+ }
|
1232
|
1208
|
for (
|
1233
|
1209
|
let index = this.doctor_advices.length - 1;
|
1234
|
1210
|
index >= 0;
|
1235
|
1211
|
index--
|
1236
|
1212
|
) {
|
1237
|
|
- var new_advice_index = 0;
|
|
1213
|
+ var new_advice_index = 0
|
1238
|
1214
|
if (
|
1239
|
|
- "children" in this.doctor_advices[index] &&
|
|
1215
|
+ 'children' in this.doctor_advices[index] &&
|
1240
|
1216
|
this.doctor_advices[index].children.length > 0
|
1241
|
1217
|
) {
|
1242
|
1218
|
new_advice_index =
|
1243
|
|
- index + this.doctor_advices[index].children.length + 1;
|
|
1219
|
+ index + this.doctor_advices[index].children.length + 1
|
1244
|
1220
|
|
1245
|
1221
|
var doctor_advice = {
|
1246
|
1222
|
delivery_way: this.doctor_advices[index].delivery_way,
|
|
@@ -1255,66 +1231,66 @@ export default {
|
1255
|
1231
|
checker: this.doctor_advices[index].checker,
|
1256
|
1232
|
advice_doctor: this.doctor_advices[index].advice_doctor,
|
1257
|
1233
|
execution_time: this.doctor_advices[index].execution_time
|
1258
|
|
- };
|
1259
|
|
- doctor_advice["isShow"] = 1;
|
|
1234
|
+ }
|
|
1235
|
+ doctor_advice['isShow'] = 1
|
1260
|
1236
|
this.doctor_advices.splice(
|
1261
|
1237
|
new_advice_index,
|
1262
|
1238
|
0,
|
1263
|
1239
|
doctor_advice
|
1264
|
|
- );
|
|
1240
|
+ )
|
1265
|
1241
|
}
|
1266
|
1242
|
}
|
1267
|
1243
|
|
1268
|
|
- var templength = 0;
|
|
1244
|
+ var templength = 0
|
1269
|
1245
|
if (this.doctor_advices.length > 12) {
|
1270
|
|
- templength = 12;
|
|
1246
|
+ templength = 12
|
1271
|
1247
|
} else {
|
1272
|
|
- templength = this.doctor_advices.length;
|
|
1248
|
+ templength = this.doctor_advices.length
|
1273
|
1249
|
}
|
1274
|
1250
|
|
1275
|
1251
|
for (let index = 0; index < templength; index++) {
|
1276
|
|
- const advice = this.doctor_advices[index];
|
|
1252
|
+ const advice = this.doctor_advices[index]
|
1277
|
1253
|
if (advice.groupno == 0) {
|
1278
|
1254
|
// 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
|
1279
|
1255
|
if (advice.parent_id > 0) {
|
1280
|
1256
|
if (this.advice_groups.length > 0) {
|
1281
|
1257
|
var parent_group = this.advice_groups[
|
1282
|
1258
|
this.advice_groups.length - 1
|
1283
|
|
- ];
|
|
1259
|
+ ]
|
1284
|
1260
|
if (parent_group.advices.length > 0) {
|
1285
|
1261
|
if (parent_group.advices[0].id == advice.parent_id) {
|
1286
|
|
- parent_group.advices.push(advice);
|
|
1262
|
+ parent_group.advices.push(advice)
|
1287
|
1263
|
}
|
1288
|
1264
|
}
|
1289
|
1265
|
}
|
1290
|
|
- continue;
|
|
1266
|
+ continue
|
1291
|
1267
|
} else {
|
1292
|
1268
|
if (group.group_no > 0) {
|
1293
|
|
- this.advice_groups.push(group);
|
1294
|
|
- group = this.newAdviceGroupObject();
|
|
1269
|
+ this.advice_groups.push(group)
|
|
1270
|
+ group = this.newAdviceGroupObject()
|
1295
|
1271
|
}
|
1296
|
1272
|
|
1297
|
|
- initGroupBlock(group, advice);
|
1298
|
|
- group.advices.push(advice);
|
1299
|
|
- this.advice_groups.push(group);
|
1300
|
|
- group = this.newAdviceGroupObject();
|
1301
|
|
- continue;
|
|
1273
|
+ initGroupBlock(group, advice)
|
|
1274
|
+ group.advices.push(advice)
|
|
1275
|
+ this.advice_groups.push(group)
|
|
1276
|
+ group = this.newAdviceGroupObject()
|
|
1277
|
+ continue
|
1302
|
1278
|
}
|
1303
|
1279
|
}
|
1304
|
1280
|
|
1305
|
1281
|
if (group.group_no > 0 && group.group_no != advice.groupno) {
|
1306
|
|
- this.advice_groups.push(group);
|
1307
|
|
- group = this.newAdviceGroupObject();
|
|
1282
|
+ this.advice_groups.push(group)
|
|
1283
|
+ group = this.newAdviceGroupObject()
|
1308
|
1284
|
}
|
1309
|
1285
|
if (group.group_no == 0) {
|
1310
|
|
- initGroupBlock(group, advice);
|
|
1286
|
+ initGroupBlock(group, advice)
|
1311
|
1287
|
}
|
1312
|
1288
|
if (group.group_no == advice.groupno) {
|
1313
|
|
- group.advices.push(advice);
|
|
1289
|
+ group.advices.push(advice)
|
1314
|
1290
|
}
|
1315
|
1291
|
if (index == 11) {
|
1316
|
|
- this.advice_groups.push(group);
|
1317
|
|
- group = this.newAdviceGroupObject();
|
|
1292
|
+ this.advice_groups.push(group)
|
|
1293
|
+ group = this.newAdviceGroupObject()
|
1318
|
1294
|
}
|
1319
|
1295
|
}
|
1320
|
1296
|
|
|
@@ -1324,44 +1300,44 @@ export default {
|
1324
|
1300
|
index < this.doctor_advices.length;
|
1325
|
1301
|
index++
|
1326
|
1302
|
) {
|
1327
|
|
- const advice = this.doctor_advices[index];
|
|
1303
|
+ const advice = this.doctor_advices[index]
|
1328
|
1304
|
if (advice.groupno == 0) {
|
1329
|
1305
|
// 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
|
1330
|
1306
|
if (advice.parent_id > 0) {
|
1331
|
1307
|
if (this.advice_groups_2.length > 0) {
|
1332
|
1308
|
var parent_group = this.advice_groups_2[
|
1333
|
1309
|
this.advice_groups_2.length - 1
|
1334
|
|
- ];
|
|
1310
|
+ ]
|
1335
|
1311
|
if (parent_group.advices.length > 0) {
|
1336
|
1312
|
if (parent_group.advices[0].id == advice.parent_id) {
|
1337
|
|
- parent_group.advices.push(advice);
|
|
1313
|
+ parent_group.advices.push(advice)
|
1338
|
1314
|
}
|
1339
|
1315
|
}
|
1340
|
1316
|
}
|
1341
|
|
- continue;
|
|
1317
|
+ continue
|
1342
|
1318
|
} else {
|
1343
|
1319
|
if (group.group_no > 0) {
|
1344
|
|
- this.advice_groups_2.push(group);
|
1345
|
|
- group = this.newAdviceGroupObject();
|
|
1320
|
+ this.advice_groups_2.push(group)
|
|
1321
|
+ group = this.newAdviceGroupObject()
|
1346
|
1322
|
}
|
1347
|
1323
|
|
1348
|
|
- initGroupBlock(group, advice);
|
1349
|
|
- group.advices.push(advice);
|
1350
|
|
- this.advice_groups_2.push(group);
|
1351
|
|
- group = this.newAdviceGroupObject();
|
1352
|
|
- continue;
|
|
1324
|
+ initGroupBlock(group, advice)
|
|
1325
|
+ group.advices.push(advice)
|
|
1326
|
+ this.advice_groups_2.push(group)
|
|
1327
|
+ group = this.newAdviceGroupObject()
|
|
1328
|
+ continue
|
1353
|
1329
|
}
|
1354
|
1330
|
}
|
1355
|
1331
|
|
1356
|
1332
|
if (group.group_no > 0 && group.group_no != advice.groupno) {
|
1357
|
|
- this.advice_groups_2.push(group);
|
1358
|
|
- group = this.newAdviceGroupObject();
|
|
1333
|
+ this.advice_groups_2.push(group)
|
|
1334
|
+ group = this.newAdviceGroupObject()
|
1359
|
1335
|
}
|
1360
|
1336
|
if (group.group_no == 0) {
|
1361
|
|
- initGroupBlock(group, advice);
|
|
1337
|
+ initGroupBlock(group, advice)
|
1362
|
1338
|
}
|
1363
|
1339
|
if (group.group_no == advice.groupno) {
|
1364
|
|
- group.advices.push(advice);
|
|
1340
|
+ group.advices.push(advice)
|
1365
|
1341
|
}
|
1366
|
1342
|
}
|
1367
|
1343
|
}
|
|
@@ -1369,197 +1345,197 @@ export default {
|
1369
|
1345
|
if (group.group_no > 0) {
|
1370
|
1346
|
// 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
|
1371
|
1347
|
if (this.doctor_advices.length > 12) {
|
1372
|
|
- this.advice_groups_2.push(group);
|
|
1348
|
+ this.advice_groups_2.push(group)
|
1373
|
1349
|
} else {
|
1374
|
|
- this.advice_groups.push(group);
|
|
1350
|
+ this.advice_groups.push(group)
|
1375
|
1351
|
}
|
1376
|
1352
|
}
|
1377
|
1353
|
}
|
1378
|
|
- this.records[recordIndex].advices = [];
|
1379
|
|
- this.records[recordIndex].advices2 = [];
|
1380
|
|
- this.records[recordIndex].advices = this.advice_groups;
|
1381
|
|
- this.records[recordIndex].advices2 = this.advice_groups_2;
|
|
1354
|
+ this.records[recordIndex].advices = []
|
|
1355
|
+ this.records[recordIndex].advices2 = []
|
|
1356
|
+ this.records[recordIndex].advices = this.advice_groups
|
|
1357
|
+ this.records[recordIndex].advices2 = this.advice_groups_2
|
1382
|
1358
|
}
|
1383
|
1359
|
|
1384
|
|
- this.operators = resp.data.medical_staffs;
|
|
1360
|
+ this.operators = resp.data.medical_staffs
|
1385
|
1361
|
if (this.operators.length > 0) {
|
1386
|
|
- var operatorsLen = this.operators.length;
|
|
1362
|
+ var operatorsLen = this.operators.length
|
1387
|
1363
|
for (var index = 0; index < operatorsLen; index++) {
|
1388
|
1364
|
this.$set(
|
1389
|
1365
|
this.operatorMaps,
|
1390
|
1366
|
this.operators[index].id,
|
1391
|
1367
|
this.operators[index]
|
1392
|
|
- );
|
|
1368
|
+ )
|
1393
|
1369
|
}
|
1394
|
1370
|
}
|
1395
|
1371
|
|
1396
|
|
- this.adminUser = resp.data.users;
|
1397
|
|
- this.loading = false;
|
|
1372
|
+ this.adminUser = resp.data.users
|
|
1373
|
+ this.loading = false
|
1398
|
1374
|
} else {
|
1399
|
|
- this.loading = false;
|
1400
|
|
- this.$message.error(resp.msg);
|
|
1375
|
+ this.loading = false
|
|
1376
|
+ this.$message.error(resp.msg)
|
1401
|
1377
|
}
|
1402
|
1378
|
})
|
1403
|
1379
|
.catch(err => {
|
1404
|
|
- this.$message.error(err);
|
1405
|
|
- });
|
|
1380
|
+ this.$message.error(err)
|
|
1381
|
+ })
|
1406
|
1382
|
},
|
1407
|
1383
|
methods: {
|
1408
|
1384
|
printAction: function() {
|
1409
|
1385
|
const style =
|
1410
|
|
- '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 16px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 5px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:1000px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top:1050px;left: 50%;}.print-yema5{position: absolute;top:1370px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}';
|
|
1386
|
+ '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 16px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 5px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:1000px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top:1050px;left: 50%;}.print-yema5{position: absolute;top:1370px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}'
|
1411
|
1387
|
|
1412
|
1388
|
printJS({
|
1413
|
|
- printable: "print_content",
|
1414
|
|
- type: "html",
|
1415
|
|
- documentTitle: " ",
|
|
1389
|
+ printable: 'print_content',
|
|
1390
|
+ type: 'html',
|
|
1391
|
+ documentTitle: ' ',
|
1416
|
1392
|
style: style,
|
1417
|
1393
|
scanStyles: false
|
1418
|
|
- });
|
|
1394
|
+ })
|
1419
|
1395
|
},
|
1420
|
1396
|
|
1421
|
1397
|
complicationsOther: function(record) {
|
1422
|
|
- if (record == null || typeof record === "undefined") {
|
1423
|
|
- return "";
|
|
1398
|
+ if (record == null || typeof record === 'undefined') {
|
|
1399
|
+ return ''
|
1424
|
1400
|
}
|
1425
|
1401
|
if (record.complication.length == 0) {
|
1426
|
|
- return "";
|
|
1402
|
+ return ''
|
1427
|
1403
|
}
|
1428
|
|
- var complications = record.complication.split(",");
|
1429
|
|
- var complicationOthers = [];
|
|
1404
|
+ var complications = record.complication.split(',')
|
|
1405
|
+ var complicationOthers = []
|
1430
|
1406
|
for (const index in complications) {
|
1431
|
1407
|
if (
|
1432
|
1408
|
this.complications.indexOf(complications[index]) < 0 &&
|
1433
|
1409
|
complicationOthers.indexOf(complications[index]) < 0
|
1434
|
1410
|
) {
|
1435
|
|
- complicationOthers.push(complications[index]);
|
|
1411
|
+ complicationOthers.push(complications[index])
|
1436
|
1412
|
}
|
1437
|
1413
|
}
|
1438
|
|
- return complicationOthers.join(",");
|
|
1414
|
+ return complicationOthers.join(',')
|
1439
|
1415
|
},
|
1440
|
1416
|
modeName(mode_id) {
|
1441
|
1417
|
if (mode_id in this.modeOptions) {
|
1442
|
|
- return this.modeOptions[mode_id].name;
|
|
1418
|
+ return this.modeOptions[mode_id].name
|
1443
|
1419
|
}
|
1444
|
|
- return "";
|
|
1420
|
+ return ''
|
1445
|
1421
|
},
|
1446
|
1422
|
anticoagulantName: function(key) {
|
1447
|
|
- if (key == null || typeof key === "undefined") {
|
1448
|
|
- return "";
|
|
1423
|
+ if (key == null || typeof key === 'undefined') {
|
|
1424
|
+ return ''
|
1449
|
1425
|
}
|
1450
|
|
- var id = key.anticoagulant;
|
|
1426
|
+ var id = key.anticoagulant
|
1451
|
1427
|
if (id in this.anticoagulantsConfit) {
|
1452
|
|
- return this.anticoagulantsConfit[id].name;
|
|
1428
|
+ return this.anticoagulantsConfit[id].name
|
1453
|
1429
|
}
|
1454
|
|
- return "";
|
|
1430
|
+ return ''
|
1455
|
1431
|
},
|
1456
|
1432
|
isBbloodAccessParOperaCheck(key, value) {
|
1457
|
|
- if (key == null || typeof key === "undefined") {
|
1458
|
|
- return false;
|
|
1433
|
+ if (key == null || typeof key === 'undefined') {
|
|
1434
|
+ return false
|
1459
|
1435
|
}
|
1460
|
|
- var id = key.blood_access_part_opera_id;
|
|
1436
|
+ var id = key.blood_access_part_opera_id
|
1461
|
1437
|
if (id in this.bloodAccessParOpera) {
|
1462
|
|
- return this.bloodAccessParOpera[id].name.indexOf(value) > -1;
|
|
1438
|
+ return this.bloodAccessParOpera[id].name.indexOf(value) > -1
|
1463
|
1439
|
}
|
1464
|
|
- return false;
|
|
1440
|
+ return false
|
1465
|
1441
|
},
|
1466
|
1442
|
isdialysateFormulatioCheck(key, value) {
|
1467
|
|
- if (key == null || typeof key === "undefined") {
|
1468
|
|
- return false;
|
|
1443
|
+ if (key == null || typeof key === 'undefined') {
|
|
1444
|
+ return false
|
1469
|
1445
|
}
|
1470
|
|
- var id = key.dialysate_formulation;
|
|
1446
|
+ var id = key.dialysate_formulation
|
1471
|
1447
|
if (id in this.dialysateFormulationOptions) {
|
1472
|
|
- return this.dialysateFormulationOptions[id].name.indexOf(value) > -1;
|
|
1448
|
+ return this.dialysateFormulationOptions[id].name.indexOf(value) > -1
|
1473
|
1449
|
}
|
1474
|
|
- return false;
|
|
1450
|
+ return false
|
1475
|
1451
|
},
|
1476
|
1452
|
isValueIndexOfCheck: function(record, key, value) {
|
1477
|
1453
|
if (record == null || record == undefined) {
|
1478
|
|
- return false;
|
|
1454
|
+ return false
|
1479
|
1455
|
} else {
|
1480
|
|
- return record[key].indexOf(value) > -1;
|
|
1456
|
+ return record[key].indexOf(value) > -1
|
1481
|
1457
|
}
|
1482
|
1458
|
},
|
1483
|
1459
|
setAdminUserES(key, id) {
|
1484
|
1460
|
if (
|
1485
|
|
- typeof key === "undefined" ||
|
|
1461
|
+ typeof key === 'undefined' ||
|
1486
|
1462
|
key == null ||
|
1487
|
|
- typeof key[id] === "undefined"
|
|
1463
|
+ typeof key[id] === 'undefined'
|
1488
|
1464
|
) {
|
1489
|
|
- return "";
|
|
1465
|
+ return ''
|
1490
|
1466
|
}
|
1491
|
1467
|
if (key[id] == 0) {
|
1492
|
|
- return "";
|
|
1468
|
+ return ''
|
1493
|
1469
|
}
|
1494
|
1470
|
if (key[id] in this.operatorMaps) {
|
1495
|
|
- return this.operatorMaps[key[id]].es_url;
|
|
1471
|
+ return this.operatorMaps[key[id]].es_url
|
1496
|
1472
|
} else {
|
1497
|
|
- return "";
|
|
1473
|
+ return ''
|
1498
|
1474
|
}
|
1499
|
1475
|
},
|
1500
|
1476
|
getFloat: function(x) {
|
1501
|
|
- if (x != ".") {
|
1502
|
|
- var f = Math.round(x * 100) / 100;
|
1503
|
|
- var s = f.toString();
|
1504
|
|
- var rs = s.indexOf(".");
|
|
1477
|
+ if (x != '.') {
|
|
1478
|
+ var f = Math.round(x * 100) / 100
|
|
1479
|
+ var s = f.toString()
|
|
1480
|
+ var rs = s.indexOf('.')
|
1505
|
1481
|
if (rs <= 0) {
|
1506
|
|
- rs = s.length;
|
1507
|
|
- s += ".";
|
|
1482
|
+ rs = s.length
|
|
1483
|
+ s += '.'
|
1508
|
1484
|
}
|
1509
|
1485
|
while (s.length <= rs + 1) {
|
1510
|
|
- s += "0";
|
|
1486
|
+ s += '0'
|
1511
|
1487
|
}
|
1512
|
|
- return s;
|
|
1488
|
+ return s
|
1513
|
1489
|
} else {
|
1514
|
|
- return "0.0";
|
|
1490
|
+ return '0.0'
|
1515
|
1491
|
}
|
1516
|
1492
|
},
|
1517
|
1493
|
getAdminUser(key, id) {
|
1518
|
1494
|
if (
|
1519
|
|
- typeof key === "undefined" ||
|
|
1495
|
+ typeof key === 'undefined' ||
|
1520
|
1496
|
key == null ||
|
1521
|
|
- typeof key[id] === "undefined"
|
|
1497
|
+ typeof key[id] === 'undefined'
|
1522
|
1498
|
) {
|
1523
|
|
- return "";
|
|
1499
|
+ return ''
|
1524
|
1500
|
}
|
1525
|
1501
|
if (key[id] == 0) {
|
1526
|
|
- return "";
|
|
1502
|
+ return ''
|
1527
|
1503
|
}
|
1528
|
1504
|
if (key[id] == undefined) {
|
1529
|
|
- return "";
|
|
1505
|
+ return ''
|
1530
|
1506
|
}
|
1531
|
1507
|
for (let i = 0; i < this.adminUser.length; i++) {
|
1532
|
1508
|
if (this.adminUser[i].id == key[id]) {
|
1533
|
|
- return this.adminUser[i].name;
|
|
1509
|
+ return this.adminUser[i].name
|
1534
|
1510
|
}
|
1535
|
1511
|
}
|
1536
|
1512
|
},
|
1537
|
1513
|
jsGetAge: function(agetime) {
|
1538
|
1514
|
if (agetime == 0) {
|
1539
|
|
- return "";
|
|
1515
|
+ return ''
|
1540
|
1516
|
}
|
1541
|
|
- return jsGetAge(uParseTime(agetime, "{y}-{m}-{d}"), "-");
|
|
1517
|
+ return jsGetAge(uParseTime(agetime, '{y}-{m}-{d}'), '-')
|
1542
|
1518
|
},
|
1543
|
1519
|
getTime(value, temp) {
|
1544
|
1520
|
if (value != undefined) {
|
1545
|
|
- return uParseTime(value, temp);
|
|
1521
|
+ return uParseTime(value, temp)
|
1546
|
1522
|
}
|
1547
|
|
- return "";
|
|
1523
|
+ return ''
|
1548
|
1524
|
},
|
1549
|
1525
|
// 函数说明:因为一次透析记录有些记录不一定是必须填的,比如 record.receive_assessment 可能为 null,所以要取 record.receive_assessment.way 前需要判断 record.receive_assessment 是否为 null,所以这个方法用来简化模板渲染的代码
|
1550
|
1526
|
// 参数说明:比如判断 record.receive_assessment.way 是不是为1,参数为 (record.receive_assessment, way, 1)
|
1551
|
1527
|
isCheckBoxChecked: function(record, key, target_value) {
|
1552
|
1528
|
if (record == null || record == undefined) {
|
1553
|
|
- return false;
|
|
1529
|
+ return false
|
1554
|
1530
|
} else {
|
1555
|
|
- return record[key] == target_value;
|
|
1531
|
+ return record[key] == target_value
|
1556
|
1532
|
}
|
1557
|
1533
|
},
|
1558
|
1534
|
getAge: function(val) {
|
1559
|
1535
|
if (val.birthday == 0) {
|
1560
|
|
- return "";
|
|
1536
|
+ return ''
|
1561
|
1537
|
}
|
1562
|
|
- return jsGetAge(uParseTime(val.birthday, "{y}-{m}-{d}"), "-");
|
|
1538
|
+ return jsGetAge(uParseTime(val.birthday, '{y}-{m}-{d}'), '-')
|
1563
|
1539
|
},
|
1564
|
1540
|
newAdviceGroupObject: function() {
|
1565
|
1541
|
return Object.assign(
|
|
@@ -1568,13 +1544,13 @@ export default {
|
1568
|
1544
|
group_no: 0,
|
1569
|
1545
|
advices: []
|
1570
|
1546
|
}
|
1571
|
|
- );
|
|
1547
|
+ )
|
1572
|
1548
|
},
|
1573
|
1549
|
getNumber: function(record) {
|
1574
|
|
- console.log(record);
|
|
1550
|
+ console.log(record)
|
1575
|
1551
|
}
|
1576
|
1552
|
}
|
1577
|
|
-};
|
|
1553
|
+}
|
1578
|
1554
|
</script>
|
1579
|
1555
|
|
1580
|
1556
|
<style scoped>
|
|
@@ -1619,7 +1595,7 @@ export default {
|
1619
|
1595
|
}
|
1620
|
1596
|
|
1621
|
1597
|
.under_line::before {
|
1622
|
|
- content: "\00A0";
|
|
1598
|
+ /* content: "\00A0"; */
|
1623
|
1599
|
}
|
1624
|
1600
|
|
1625
|
1601
|
.under_line::after {
|