|
@@ -678,11 +678,11 @@
|
678
|
678
|
<td width="10"></td>
|
679
|
679
|
<td width="105" colspan="2">
|
680
|
680
|
压迫后内瘘震颤:
|
681
|
|
- <label-box :isChecked="afterdialysis.internal_fistula.indexOf('存在') > -1 ? true : false" showValue="存在"></label-box>
|
|
681
|
+ <label-box :isChecked="afterdialysis.internal_fistula&&afterdialysis.internal_fistula.indexOf('存在') > -1 ? true : false" showValue="存在"></label-box>
|
682
|
682
|
|
683
|
|
- <label-box :isChecked="afterdialysis.internal_fistula.indexOf('减弱') > -1 ? true : false" showValue="减弱"></label-box>
|
|
683
|
+ <label-box :isChecked="afterdialysis.internal_fistula&&afterdialysis.internal_fistula.indexOf('减弱') > -1 ? true : false" showValue="减弱"></label-box>
|
684
|
684
|
|
685
|
|
- <label-box :isChecked="afterdialysis.internal_fistula.indexOf('无') > -1 ? true : false" showValue="无"></label-box>
|
|
685
|
+ <label-box :isChecked="afterdialysis.internal_fistula&&afterdialysis.internal_fistula.indexOf('无') > -1 ? true : false" showValue="无"></label-box>
|
686
|
686
|
</td>
|
687
|
687
|
<td></td>
|
688
|
688
|
</tr>
|
|
@@ -694,17 +694,17 @@
|
694
|
694
|
<tr>
|
695
|
695
|
<td width="55">并发症:</td>
|
696
|
696
|
<td width="600">
|
697
|
|
- <label-box :isChecked="afterdialysis.complication.indexOf('低血压') > -1 ? true : false" showValue="低血压"></label-box>
|
698
|
|
- <label-box :isChecked="afterdialysis.complication.indexOf('高血压') > -1 ? true : false" showValue="高血压"></label-box>
|
699
|
|
- <label-box :isChecked="afterdialysis.complication.indexOf('心律失常') > -1 ? true : false" showValue="心律失常"></label-box>
|
700
|
|
- <label-box :isChecked="afterdialysis.complication.indexOf('头晕') > -1 ? true : false" showValue="头晕"></label-box>
|
701
|
|
- <label-box :isChecked="afterdialysis.complication.indexOf('头痛') > -1 ? true : false" showValue="头痛"></label-box>
|
702
|
|
- <label-box :isChecked="afterdialysis.complication.indexOf('呕吐') > -1 ? true : false" showValue="呕吐"></label-box>
|
703
|
|
- <label-box :isChecked="afterdialysis.complication.indexOf('抽搐') > -1 ? true : false" showValue="抽搐"></label-box>
|
704
|
|
- <label-box :isChecked="afterdialysis.complication.indexOf('出血') > -1 ? true : false" showValue="出血"></label-box>
|
705
|
|
- <label-box :isChecked="afterdialysis.complication.indexOf('心衰') > -1 ? true : false" showValue="心衰"></label-box>
|
706
|
|
- <label-box :isChecked="afterdialysis.complication.indexOf('腹痛') > -1 ? true : false" showValue="腹痛"></label-box>
|
707
|
|
- <label-box :isChecked="afterdialysis.complication.indexOf('无') > -1 ? true : false" showValue="无"></label-box>
|
|
697
|
+ <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('低血压') > -1 ? true : false" showValue="低血压"></label-box>
|
|
698
|
+ <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('高血压') > -1 ? true : false" showValue="高血压"></label-box>
|
|
699
|
+ <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('心律失常') > -1 ? true : false" showValue="心律失常"></label-box>
|
|
700
|
+ <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('头晕') > -1 ? true : false" showValue="头晕"></label-box>
|
|
701
|
+ <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('头痛') > -1 ? true : false" showValue="头痛"></label-box>
|
|
702
|
+ <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('呕吐') > -1 ? true : false" showValue="呕吐"></label-box>
|
|
703
|
+ <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('抽搐') > -1 ? true : false" showValue="抽搐"></label-box>
|
|
704
|
+ <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('出血') > -1 ? true : false" showValue="出血"></label-box>
|
|
705
|
+ <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('心衰') > -1 ? true : false" showValue="心衰"></label-box>
|
|
706
|
+ <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('腹痛') > -1 ? true : false" showValue="腹痛"></label-box>
|
|
707
|
+ <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('无') > -1 ? true : false" showValue="无"></label-box>
|
708
|
708
|
</td>
|
709
|
709
|
<td></td>
|
710
|
710
|
</tr>
|
|
@@ -993,17 +993,17 @@
|
993
|
993
|
</template>
|
994
|
994
|
|
995
|
995
|
<script>
|
996
|
|
-import { getDialysisRecord } from "@/api/dialysis";
|
997
|
|
-import { getDataConfig } from "@/utils/data";
|
998
|
|
-import { jsGetAge, uParseTime } from "@/utils/tools";
|
999
|
|
-import LabelBox from "../printItem/LabelBox";
|
1000
|
|
-import BreadCrumb from "@/xt_pages/components/bread-crumb";
|
|
996
|
+import { getDialysisRecord } from '@/api/dialysis'
|
|
997
|
+import { getDataConfig } from '@/utils/data'
|
|
998
|
+import { jsGetAge, uParseTime } from '@/utils/tools'
|
|
999
|
+import LabelBox from '../printItem/LabelBox'
|
|
1000
|
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
1001
|
1001
|
// import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
|
1002
|
1002
|
// import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
|
1003
|
|
-import print from "print-js";
|
|
1003
|
+import print from 'print-js'
|
1004
|
1004
|
|
1005
|
1005
|
export default {
|
1006
|
|
- name: "dialysisPrintOrderOne",
|
|
1006
|
+ name: 'dialysisPrintOrderOne',
|
1007
|
1007
|
components: {
|
1008
|
1008
|
// DialysisPrintOrderOne,
|
1009
|
1009
|
// DialysisPrintOrderTwo,
|
|
@@ -1022,8 +1022,8 @@ export default {
|
1022
|
1022
|
nutrition_arr: [],
|
1023
|
1023
|
|
1024
|
1024
|
crumbs: [
|
1025
|
|
- { path: false, name: "透析管理" },
|
1026
|
|
- { path: false, name: "打印单" }
|
|
1025
|
+ { path: false, name: '透析管理' },
|
|
1026
|
+ { path: false, name: '打印单' }
|
1027
|
1027
|
],
|
1028
|
1028
|
operators: [],
|
1029
|
1029
|
adminUser: [],
|
|
@@ -1033,22 +1033,22 @@ export default {
|
1033
|
1033
|
},
|
1034
|
1034
|
operatorMaps: {},
|
1035
|
1035
|
complications: [
|
1036
|
|
- "低血压",
|
1037
|
|
- "高血压",
|
1038
|
|
- "心律失常",
|
1039
|
|
- "头晕",
|
1040
|
|
- "头痛",
|
1041
|
|
- "呕吐",
|
1042
|
|
- "抽搐",
|
1043
|
|
- "出血",
|
1044
|
|
- "心衰",
|
1045
|
|
- "腹痛",
|
1046
|
|
- "无"
|
|
1036
|
+ '低血压',
|
|
1037
|
+ '高血压',
|
|
1038
|
+ '心律失常',
|
|
1039
|
+ '头晕',
|
|
1040
|
+ '头痛',
|
|
1041
|
+ '呕吐',
|
|
1042
|
+ '抽搐',
|
|
1043
|
+ '出血',
|
|
1044
|
+ '心衰',
|
|
1045
|
+ '腹痛',
|
|
1046
|
+ '无'
|
1047
|
1047
|
],
|
1048
|
1048
|
jilurow: 0,
|
1049
|
1049
|
advice_jilurow: 0,
|
1050
|
1050
|
loading: false,
|
1051
|
|
- orgname: "",
|
|
1051
|
+ orgname: '',
|
1052
|
1052
|
patientInfo_gender_1: false,
|
1053
|
1053
|
patientInfo_gender_2: false,
|
1054
|
1054
|
patientInfo_source_2: false,
|
|
@@ -1061,30 +1061,30 @@ export default {
|
1061
|
1061
|
dialysateFormulationOptions: {},
|
1062
|
1062
|
|
1063
|
1063
|
queryParams: {
|
1064
|
|
- xtdate: "",
|
1065
|
|
- xtno: ""
|
|
1064
|
+ xtdate: '',
|
|
1065
|
+ xtno: ''
|
1066
|
1066
|
},
|
1067
|
1067
|
patientInfo: {
|
1068
|
|
- birth: "",
|
1069
|
|
- age: "",
|
|
1068
|
+ birth: '',
|
|
1069
|
+ age: '',
|
1070
|
1070
|
DialysisSchedule: {
|
1071
|
|
- device_number: { number: "" },
|
1072
|
|
- device_zone: { name: "" }
|
|
1071
|
+ device_number: { number: '' },
|
|
1072
|
+ device_zone: { name: '' }
|
1073
|
1073
|
},
|
1074
|
1074
|
gender: 0
|
1075
|
1075
|
},
|
1076
|
1076
|
predialysis: {
|
1077
|
|
- score: "",
|
1078
|
|
- internal_fistula: "",
|
1079
|
|
- internal_fistula_skin: "",
|
1080
|
|
- catheter: "",
|
1081
|
|
- blood_access_part_opera_name: ""
|
|
1077
|
+ score: '',
|
|
1078
|
+ internal_fistula: '',
|
|
1079
|
+ internal_fistula_skin: '',
|
|
1080
|
+ catheter: '',
|
|
1081
|
+ blood_access_part_opera_name: ''
|
1082
|
1082
|
},
|
1083
|
1083
|
afterdialysis: {
|
1084
|
|
- complications_index: ""
|
|
1084
|
+ complications_index: ''
|
1085
|
1085
|
},
|
1086
|
1086
|
prescription: {
|
1087
|
|
- dialysate_formulation_name: "",
|
|
1087
|
+ dialysate_formulation_name: '',
|
1088
|
1088
|
device: {}
|
1089
|
1089
|
},
|
1090
|
1090
|
advices: [],
|
|
@@ -1100,68 +1100,68 @@ export default {
|
1100
|
1100
|
|
1101
|
1101
|
AlPanel: {
|
1102
|
1102
|
id: 0,
|
1103
|
|
- name: "",
|
|
1103
|
+ name: '',
|
1104
|
1104
|
type: 1,
|
1105
|
1105
|
shouji: 2,
|
1106
|
1106
|
weichi: 2,
|
1107
|
1107
|
zongliang: 2,
|
1108
|
1108
|
gaimingcheng: -1,
|
1109
|
1109
|
gaijiliang: -1,
|
1110
|
|
- shouji_unit: "mg",
|
1111
|
|
- weichi_unit: "mg/h",
|
1112
|
|
- zongliang_unit: "mg",
|
1113
|
|
- gaimingcheng_unit: "",
|
1114
|
|
- gaijiliang_unit: ""
|
|
1110
|
+ shouji_unit: 'mg',
|
|
1111
|
+ weichi_unit: 'mg/h',
|
|
1112
|
+ zongliang_unit: 'mg',
|
|
1113
|
+ gaimingcheng_unit: '',
|
|
1114
|
+ gaijiliang_unit: ''
|
1115
|
1115
|
}
|
1116
|
|
- };
|
|
1116
|
+ }
|
1117
|
1117
|
},
|
1118
|
1118
|
methods: {
|
1119
|
1119
|
getAdminUser(id) {
|
1120
|
1120
|
if (id == 0) {
|
1121
|
|
- return "";
|
|
1121
|
+ return ''
|
1122
|
1122
|
}
|
1123
|
1123
|
if (id == undefined) {
|
1124
|
|
- return "";
|
|
1124
|
+ return ''
|
1125
|
1125
|
}
|
1126
|
1126
|
for (let i = 0; i < this.adminUser.length; i++) {
|
1127
|
1127
|
if (this.adminUser[i].id == id) {
|
1128
|
|
- return this.adminUser[i].name;
|
|
1128
|
+ return this.adminUser[i].name
|
1129
|
1129
|
}
|
1130
|
1130
|
}
|
1131
|
1131
|
},
|
1132
|
1132
|
getTime(value, temp) {
|
1133
|
1133
|
if (value == 0) {
|
1134
|
|
- return "";
|
|
1134
|
+ return ''
|
1135
|
1135
|
}
|
1136
|
1136
|
if (value != undefined) {
|
1137
|
|
- return uParseTime(value, temp);
|
|
1137
|
+ return uParseTime(value, temp)
|
1138
|
1138
|
}
|
1139
|
|
- return "";
|
|
1139
|
+ return ''
|
1140
|
1140
|
},
|
1141
|
1141
|
printThisPage() {
|
1142
|
|
- var ptime = Math.round(new Date().getTime() / 1000);
|
1143
|
|
- this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
|
|
1142
|
+ var ptime = Math.round(new Date().getTime() / 1000)
|
|
1143
|
+ this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
|
1144
|
1144
|
|
1145
|
1145
|
const style =
|
1146
|
|
- '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
|
|
1146
|
+ '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}'
|
1147
|
1147
|
|
1148
|
1148
|
if (this.org_template_info.template_id == 1) {
|
1149
|
1149
|
printJS({
|
1150
|
|
- printable: "dialysis-print-box",
|
1151
|
|
- type: "html",
|
|
1150
|
+ printable: 'dialysis-print-box',
|
|
1151
|
+ type: 'html',
|
1152
|
1152
|
style: style,
|
1153
|
1153
|
scanStyles: false
|
1154
|
|
- });
|
|
1154
|
+ })
|
1155
|
1155
|
} else if (
|
1156
|
1156
|
this.org_template_info.template_id == 2 ||
|
1157
|
1157
|
this.org_template_info.template_id == 0
|
1158
|
1158
|
) {
|
1159
|
1159
|
printJS({
|
1160
|
|
- printable: "dialysis-print-box-1",
|
1161
|
|
- type: "html",
|
|
1160
|
+ printable: 'dialysis-print-box-1',
|
|
1161
|
+ type: 'html',
|
1162
|
1162
|
style: style,
|
1163
|
1163
|
scanStyles: false
|
1164
|
|
- });
|
|
1164
|
+ })
|
1165
|
1165
|
}
|
1166
|
1166
|
},
|
1167
|
1167
|
getNumber() {
|
|
@@ -1169,117 +1169,117 @@ export default {
|
1169
|
1169
|
return (
|
1170
|
1170
|
this.patientInfo.DialysisSchedule.device_zone.name +
|
1171
|
1171
|
this.dialysisOrder.DeviceNumber.number
|
1172
|
|
- );
|
|
1172
|
+ )
|
1173
|
1173
|
} else {
|
1174
|
1174
|
return (
|
1175
|
1175
|
this.patientInfo.DialysisSchedule.device_zone.name +
|
1176
|
1176
|
this.patientInfo.DialysisSchedule.device_number.number
|
1177
|
|
- );
|
|
1177
|
+ )
|
1178
|
1178
|
}
|
1179
|
1179
|
},
|
1180
|
1180
|
|
1181
|
1181
|
getXuserName(id) {
|
1182
|
1182
|
if (id <= 0) {
|
1183
|
|
- return "";
|
|
1183
|
+ return ''
|
1184
|
1184
|
}
|
1185
|
|
- var name = "";
|
1186
|
|
- if (this.users == null || typeof this.users.length === "undefined") {
|
1187
|
|
- return name;
|
|
1185
|
+ var name = ''
|
|
1186
|
+ if (this.users == null || typeof this.users.length === 'undefined') {
|
|
1187
|
+ return name
|
1188
|
1188
|
}
|
1189
|
|
- var leng = this.users.length;
|
|
1189
|
+ var leng = this.users.length
|
1190
|
1190
|
if (leng == 0) {
|
1191
|
|
- return name;
|
|
1191
|
+ return name
|
1192
|
1192
|
}
|
1193
|
1193
|
for (let index = 0; index < leng; index++) {
|
1194
|
1194
|
if (this.users[index].id == id) {
|
1195
|
|
- name = this.users[index].name;
|
1196
|
|
- break;
|
|
1195
|
+ name = this.users[index].name
|
|
1196
|
+ break
|
1197
|
1197
|
}
|
1198
|
1198
|
}
|
1199
|
|
- return name;
|
|
1199
|
+ return name
|
1200
|
1200
|
},
|
1201
|
1201
|
setAdminUserES(id) {
|
1202
|
1202
|
if (id == 0) {
|
1203
|
|
- return "";
|
|
1203
|
+ return ''
|
1204
|
1204
|
}
|
1205
|
1205
|
if (id in this.operatorMaps) {
|
1206
|
|
- return this.operatorMaps[id].url;
|
|
1206
|
+ return this.operatorMaps[id].url
|
1207
|
1207
|
} else {
|
1208
|
|
- return "";
|
|
1208
|
+ return ''
|
1209
|
1209
|
}
|
1210
|
1210
|
},
|
1211
|
1211
|
modeName(mode_id) {
|
1212
|
|
- return typeof this.modeOptions[mode_id] !== "undefined" &&
|
1213
|
|
- typeof this.modeOptions[mode_id].name !== "undefined"
|
|
1212
|
+ return typeof this.modeOptions[mode_id] !== 'undefined' &&
|
|
1213
|
+ typeof this.modeOptions[mode_id].name !== 'undefined'
|
1214
|
1214
|
? this.modeOptions[mode_id].name
|
1215
|
|
- : "";
|
|
1215
|
+ : ''
|
1216
|
1216
|
},
|
1217
|
1217
|
getDialysisRecord() {
|
1218
|
|
- this.loading = true;
|
|
1218
|
+ this.loading = true
|
1219
|
1219
|
|
1220
|
1220
|
getDialysisRecord(this.queryParams).then(response => {
|
1221
|
1221
|
if (response.data.state == 1) {
|
1222
|
|
- this.adminUser = response.data.data.users;
|
1223
|
|
- this.users = response.data.data.users;
|
1224
|
|
- this.patientInfo = response.data.data.patientInfo;
|
|
1222
|
+ this.adminUser = response.data.data.users
|
|
1223
|
+ this.users = response.data.data.users
|
|
1224
|
+ this.patientInfo = response.data.data.patientInfo
|
1225
|
1225
|
this.patientInfo.birth = uParseTime(
|
1226
|
1226
|
this.patientInfo.birthday,
|
1227
|
|
- "{y}-{m}-{d}"
|
1228
|
|
- );
|
|
1227
|
+ '{y}-{m}-{d}'
|
|
1228
|
+ )
|
1229
|
1229
|
// this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
|
1230
|
1230
|
if (response.data.data.patientInfo.first_dialysis_date != 0) {
|
1231
|
1231
|
this.patientInfo.first_dialysis_date = uParseTime(
|
1232
|
1232
|
response.data.data.patientInfo.first_dialysis_date,
|
1233
|
|
- "{y}-{m}-{d}"
|
1234
|
|
- );
|
|
1233
|
+ '{y}-{m}-{d}'
|
|
1234
|
+ )
|
1235
|
1235
|
} else {
|
1236
|
|
- this.patientInfo.first_dialysis_date = "";
|
|
1236
|
+ this.patientInfo.first_dialysis_date = ''
|
1237
|
1237
|
}
|
1238
|
|
- this.check = response.data.data.check;
|
1239
|
|
- this.predialysis = response.data.data.PredialysisEvaluation;
|
1240
|
|
- console.log("透前评估", this.predialysis);
|
|
1238
|
+ this.check = response.data.data.check
|
|
1239
|
+ this.predialysis = response.data.data.PredialysisEvaluation
|
|
1240
|
+ console.log('透前评估', this.predialysis)
|
1241
|
1241
|
this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
|
1242
|
1242
|
this.predialysis.blood_access_part_opera_id
|
1243
|
|
- );
|
1244
|
|
- this.afterdialysis = response.data.data.AssessmentAfterDislysis;
|
1245
|
|
- console.log("透后评估数据", this.afterdialysis);
|
1246
|
|
- this.operators = response.data.data.operators;
|
|
1243
|
+ )
|
|
1244
|
+ this.afterdialysis = response.data.data.AssessmentAfterDislysis
|
|
1245
|
+ console.log('透后评估数据', this.afterdialysis)
|
|
1246
|
+ this.operators = response.data.data.operators
|
1247
|
1247
|
this.dialysisOrder =
|
1248
|
1248
|
response.data.data.dialysisOrder === null
|
1249
|
1249
|
? null
|
1250
|
|
- : response.data.data.dialysisOrder;
|
|
1250
|
+ : response.data.data.dialysisOrder
|
1251
|
1251
|
|
1252
|
1252
|
if (this.operators.length > 0) {
|
1253
|
|
- var operatorsLen = this.operators.length;
|
|
1253
|
+ var operatorsLen = this.operators.length
|
1254
|
1254
|
for (var index = 0; index < operatorsLen; index++) {
|
1255
|
1255
|
this.$set(
|
1256
|
1256
|
this.operatorMaps,
|
1257
|
1257
|
this.operators[index].creator,
|
1258
|
1258
|
this.operators[index]
|
1259
|
|
- );
|
|
1259
|
+ )
|
1260
|
1260
|
}
|
1261
|
1261
|
}
|
1262
|
1262
|
|
1263
|
|
- this.afterdialysis.txqnx = -1;
|
1264
|
|
- if (this.afterdialysis.cruor.indexOf("0度") > -1) {
|
1265
|
|
- this.afterdialysis.txqnx = 0;
|
|
1263
|
+ this.afterdialysis.txqnx = -1
|
|
1264
|
+ if (this.afterdialysis.cruor.indexOf('0度') > -1) {
|
|
1265
|
+ this.afterdialysis.txqnx = 0
|
1266
|
1266
|
}
|
1267
|
|
- if (this.afterdialysis.cruor.indexOf("Ⅰ度") > -1) {
|
1268
|
|
- this.afterdialysis.txqnx = 1;
|
|
1267
|
+ if (this.afterdialysis.cruor.indexOf('Ⅰ度') > -1) {
|
|
1268
|
+ this.afterdialysis.txqnx = 1
|
1269
|
1269
|
}
|
1270
|
|
- if (this.afterdialysis.cruor.indexOf("Ⅱ度") > -1) {
|
1271
|
|
- this.afterdialysis.txqnx = 2;
|
|
1270
|
+ if (this.afterdialysis.cruor.indexOf('Ⅱ度') > -1) {
|
|
1271
|
+ this.afterdialysis.txqnx = 2
|
1272
|
1272
|
}
|
1273
|
|
- if (this.afterdialysis.cruor.indexOf("Ⅲ度") > -1) {
|
1274
|
|
- this.afterdialysis.txqnx = 3;
|
|
1273
|
+ if (this.afterdialysis.cruor.indexOf('Ⅲ度') > -1) {
|
|
1274
|
+ this.afterdialysis.txqnx = 3
|
1275
|
1275
|
}
|
1276
|
1276
|
|
1277
|
1277
|
this.afterdialysis.complications = this.afterdialysis.complication.split(
|
1278
|
|
- ","
|
1279
|
|
- );
|
1280
|
|
- this.afterdialysis.complications_other = [];
|
1281
|
|
- this.afterdialysis.complications_index = [];
|
1282
|
|
- var acllen = this.afterdialysis.complications.length;
|
|
1278
|
+ ','
|
|
1279
|
+ )
|
|
1280
|
+ this.afterdialysis.complications_other = []
|
|
1281
|
+ this.afterdialysis.complications_index = []
|
|
1282
|
+ var acllen = this.afterdialysis.complications.length
|
1283
|
1283
|
for (let index = 0; index < acllen; index++) {
|
1284
|
1284
|
if (
|
1285
|
1285
|
this.complications.indexOf(
|
|
@@ -1288,7 +1288,7 @@ export default {
|
1288
|
1288
|
) {
|
1289
|
1289
|
this.afterdialysis.complications_index.push(
|
1290
|
1290
|
this.afterdialysis.complications[index]
|
1291
|
|
- );
|
|
1291
|
+ )
|
1292
|
1292
|
} else if (
|
1293
|
1293
|
this.complications.indexOf(
|
1294
|
1294
|
this.afterdialysis.complications[index]
|
|
@@ -1299,37 +1299,37 @@ export default {
|
1299
|
1299
|
) {
|
1300
|
1300
|
this.afterdialysis.complications_other.push(
|
1301
|
1301
|
this.afterdialysis.complications[index]
|
1302
|
|
- );
|
|
1302
|
+ )
|
1303
|
1303
|
}
|
1304
|
1304
|
}
|
1305
|
1305
|
this.afterdialysis.complications_other = this.afterdialysis.complications_other.join(
|
1306
|
|
- ","
|
1307
|
|
- );
|
|
1306
|
+ ','
|
|
1307
|
+ )
|
1308
|
1308
|
|
1309
|
|
- this.prescription = response.data.data.dialysisPrescription;
|
1310
|
|
- console.log("透析处方", this.prescription);
|
|
1309
|
+ this.prescription = response.data.data.dialysisPrescription
|
|
1310
|
+ console.log('透析处方', this.prescription)
|
1311
|
1311
|
this.receiverTreatmentAccess =
|
1312
|
|
- response.data.data.receiverTreatmentAccess;
|
|
1312
|
+ response.data.data.receiverTreatmentAccess
|
1313
|
1313
|
|
1314
|
|
- this.prescription.mode = this.modeName(this.prescription.mode_id);
|
1315
|
|
- var rwLen = this.replacementWays.length;
|
1316
|
|
- this.prescription.replacement = "";
|
|
1314
|
+ this.prescription.mode = this.modeName(this.prescription.mode_id)
|
|
1315
|
+ var rwLen = this.replacementWays.length
|
|
1316
|
+ this.prescription.replacement = ''
|
1317
|
1317
|
for (let index = 0; index < rwLen; index++) {
|
1318
|
1318
|
if (
|
1319
|
1319
|
this.replacementWays[index].id ==
|
1320
|
1320
|
this.prescription.replacement_way
|
1321
|
1321
|
) {
|
1322
|
|
- this.prescription.replacement = this.replacementWays[index].name;
|
1323
|
|
- break;
|
|
1322
|
+ this.prescription.replacement = this.replacementWays[index].name
|
|
1323
|
+ break
|
1324
|
1324
|
}
|
1325
|
1325
|
}
|
1326
|
1326
|
|
1327
|
1327
|
this.prescription.dialysate_formulation_name = this.dialysateFormulationName(
|
1328
|
1328
|
this.prescription.dialysate_formulation
|
1329
|
|
- );
|
|
1329
|
+ )
|
1330
|
1330
|
|
1331
|
|
- var paLen = this.perfusionApparatus.length;
|
1332
|
|
- this.prescription.perfusion_apparatus_name = "";
|
|
1331
|
+ var paLen = this.perfusionApparatus.length
|
|
1332
|
+ this.prescription.perfusion_apparatus_name = ''
|
1333
|
1333
|
for (let index = 0; index < paLen; index++) {
|
1334
|
1334
|
if (
|
1335
|
1335
|
this.perfusionApparatus[index].id ==
|
|
@@ -1337,124 +1337,124 @@ export default {
|
1337
|
1337
|
) {
|
1338
|
1338
|
this.prescription.perfusion_apparatus_name = this.perfusionApparatus[
|
1339
|
1339
|
index
|
1340
|
|
- ].name;
|
1341
|
|
- break;
|
|
1340
|
+ ].name
|
|
1341
|
+ break
|
1342
|
1342
|
}
|
1343
|
1343
|
}
|
1344
|
1344
|
|
1345
|
|
- var acLen = this.anticoagulantsConfit.length;
|
1346
|
|
- var thisALID = this.prescription.anticoagulant;
|
1347
|
|
- this.prescription.anticoagulant_name = "";
|
|
1345
|
+ var acLen = this.anticoagulantsConfit.length
|
|
1346
|
+ var thisALID = this.prescription.anticoagulant
|
|
1347
|
+ this.prescription.anticoagulant_name = ''
|
1348
|
1348
|
|
1349
|
1349
|
if (
|
1350
|
|
- typeof this.anticoagulantsConfit[thisALID] !== "undefined" &&
|
|
1350
|
+ typeof this.anticoagulantsConfit[thisALID] !== 'undefined' &&
|
1351
|
1351
|
this.anticoagulantsConfit[thisALID] != null
|
1352
|
1352
|
) {
|
1353
|
1353
|
this.prescription.anticoagulant_name = this.anticoagulantsConfit[
|
1354
|
1354
|
thisALID
|
1355
|
|
- ].name;
|
1356
|
|
- this.AlPanel = this.anticoagulantsConfit[thisALID];
|
|
1355
|
+ ].name
|
|
1356
|
+ this.AlPanel = this.anticoagulantsConfit[thisALID]
|
1357
|
1357
|
}
|
1358
|
1358
|
|
1359
|
|
- this.advices = response.data.data.advices;
|
1360
|
|
- this.monitors = response.data.data.monitors;
|
1361
|
|
- this.summary = response.data.data.summary;
|
1362
|
|
- this.org_template_info = response.data.data.org_template_info;
|
|
1359
|
+ this.advices = response.data.data.advices
|
|
1360
|
+ this.monitors = response.data.data.monitors
|
|
1361
|
+ this.summary = response.data.data.summary
|
|
1362
|
+ this.org_template_info = response.data.data.org_template_info
|
1363
|
1363
|
// 配置超滤量和置换量是否要显示0还是空
|
1364
|
1364
|
if (this.org_template_info.org_id == 9535) {
|
1365
|
|
- this.isShowZero = true;
|
|
1365
|
+ this.isShowZero = true
|
1366
|
1366
|
}
|
1367
|
1367
|
if (this.monitors.length < 8) {
|
1368
|
|
- var nl = 8 - this.monitors.length;
|
|
1368
|
+ var nl = 8 - this.monitors.length
|
1369
|
1369
|
for (let index = 0; index < nl; index++) {
|
1370
|
|
- this.monitors.push([]);
|
|
1370
|
+ this.monitors.push([])
|
1371
|
1371
|
}
|
1372
|
1372
|
}
|
1373
|
|
- this.jilurow = this.monitors.length + 1;
|
|
1373
|
+ this.jilurow = this.monitors.length + 1
|
1374
|
1374
|
|
1375
|
|
- this.advice_jilurow = this.advices.length + 1;
|
|
1375
|
+ this.advice_jilurow = this.advices.length + 1
|
1376
|
1376
|
|
1377
|
|
- var childMap = {};
|
|
1377
|
+ var childMap = {}
|
1378
|
1378
|
for (const index in this.advices) {
|
1379
|
1379
|
if (this.advices[index].parent_id == 0) {
|
1380
|
|
- continue;
|
|
1380
|
+ continue
|
1381
|
1381
|
}
|
1382
|
1382
|
if (!(this.advices[index].parent_id in childMap)) {
|
1383
|
|
- childMap[this.advices[index].parent_id] = [];
|
|
1383
|
+ childMap[this.advices[index].parent_id] = []
|
1384
|
1384
|
}
|
1385
|
|
- childMap[this.advices[index].parent_id].push(this.advices[index]);
|
|
1385
|
+ childMap[this.advices[index].parent_id].push(this.advices[index])
|
1386
|
1386
|
}
|
1387
|
1387
|
|
1388
|
|
- var advices = [];
|
|
1388
|
+ var advices = []
|
1389
|
1389
|
for (const index in this.advices) {
|
1390
|
1390
|
if (this.advices[index].parent_id > 0) {
|
1391
|
|
- continue;
|
|
1391
|
+ continue
|
1392
|
1392
|
}
|
1393
|
|
- var item = this.advices[index];
|
|
1393
|
+ var item = this.advices[index]
|
1394
|
1394
|
if (item.id in childMap) {
|
1395
|
|
- item.children = childMap[item.id];
|
|
1395
|
+ item.children = childMap[item.id]
|
1396
|
1396
|
} else {
|
1397
|
|
- item.children = [];
|
|
1397
|
+ item.children = []
|
1398
|
1398
|
}
|
1399
|
|
- advices.push(item);
|
|
1399
|
+ advices.push(item)
|
1400
|
1400
|
}
|
1401
|
1401
|
|
1402
|
|
- var leftAdvice = [];
|
1403
|
|
- var rightAdvice = [];
|
1404
|
|
- var adlen = advices.length;
|
|
1402
|
+ var leftAdvice = []
|
|
1403
|
+ var rightAdvice = []
|
|
1404
|
+ var adlen = advices.length
|
1405
|
1405
|
|
1406
|
|
- var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
|
|
1406
|
+ var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
|
1407
|
1407
|
for (var i = 0; i < halfLen; i++) {
|
1408
|
|
- leftAdvice.push(advices[i]);
|
1409
|
|
- rightAdvice.push(advices[i + halfLen]);
|
|
1408
|
+ leftAdvice.push(advices[i])
|
|
1409
|
+ rightAdvice.push(advices[i + halfLen])
|
1410
|
1410
|
}
|
1411
|
1411
|
if (halfLen < 5) {
|
1412
|
|
- var nl = 5 - leftAdvice.length;
|
|
1412
|
+ var nl = 5 - leftAdvice.length
|
1413
|
1413
|
for (let index = 0; index < nl; index++) {
|
1414
|
|
- leftAdvice.push([]);
|
|
1414
|
+ leftAdvice.push([])
|
1415
|
1415
|
}
|
1416
|
|
- var nl = 5 - rightAdvice.length;
|
|
1416
|
+ var nl = 5 - rightAdvice.length
|
1417
|
1417
|
for (let index = 0; index < nl; index++) {
|
1418
|
|
- rightAdvice.push([]);
|
|
1418
|
+ rightAdvice.push([])
|
1419
|
1419
|
}
|
1420
|
1420
|
}
|
1421
|
1421
|
|
1422
|
|
- this.advices = [];
|
|
1422
|
+ this.advices = []
|
1423
|
1423
|
for (var i = 0; i < halfLen; i++) {
|
1424
|
|
- var item = [];
|
1425
|
|
- item.push(leftAdvice[i]);
|
1426
|
|
- item.push(rightAdvice[i]);
|
1427
|
|
- this.advices.push(item);
|
|
1424
|
+ var item = []
|
|
1425
|
+ item.push(leftAdvice[i])
|
|
1426
|
+ item.push(rightAdvice[i])
|
|
1427
|
+ this.advices.push(item)
|
1428
|
1428
|
}
|
1429
|
|
- this.loading = false;
|
|
1429
|
+ this.loading = false
|
1430
|
1430
|
|
1431
|
1431
|
this.doctor_advices =
|
1432
|
1432
|
response.data.data.advices == null
|
1433
|
1433
|
? []
|
1434
|
|
- : response.data.data.advices;
|
|
1434
|
+ : response.data.data.advices
|
1435
|
1435
|
|
1436
|
1436
|
for (let index = 0; index < this.doctor_advices.length; index++) {
|
1437
|
|
- this.doctor_advices[index]["isShow"] = 2;
|
|
1437
|
+ this.doctor_advices[index]['isShow'] = 2
|
1438
|
1438
|
}
|
1439
|
1439
|
|
1440
|
1440
|
if (this.doctor_advices.length > 0) {
|
1441
|
|
- var group = this.newAdviceGroupObject();
|
|
1441
|
+ var group = this.newAdviceGroupObject()
|
1442
|
1442
|
var initGroupBlock = function(group, advice) {
|
1443
|
|
- group.group_no = advice.groupno;
|
1444
|
|
- };
|
|
1443
|
+ group.group_no = advice.groupno
|
|
1444
|
+ }
|
1445
|
1445
|
for (
|
1446
|
1446
|
let index = this.doctor_advices.length - 1;
|
1447
|
1447
|
index >= 0;
|
1448
|
1448
|
index--
|
1449
|
1449
|
) {
|
1450
|
|
- var new_advice_index = 0;
|
|
1450
|
+ var new_advice_index = 0
|
1451
|
1451
|
|
1452
|
1452
|
if (
|
1453
|
|
- "children" in this.doctor_advices[index] &&
|
|
1453
|
+ 'children' in this.doctor_advices[index] &&
|
1454
|
1454
|
this.doctor_advices[index].children.length > 0
|
1455
|
1455
|
) {
|
1456
|
1456
|
new_advice_index =
|
1457
|
|
- index + this.doctor_advices[index].children.length + 1;
|
|
1457
|
+ index + this.doctor_advices[index].children.length + 1
|
1458
|
1458
|
|
1459
|
1459
|
var doctor_advice = {
|
1460
|
1460
|
delivery_way: this.doctor_advices[index].delivery_way,
|
|
@@ -1465,84 +1465,84 @@ export default {
|
1465
|
1465
|
parent_id: this.doctor_advices[index].parent_id,
|
1466
|
1466
|
children: this.doctor_advices[index].children,
|
1467
|
1467
|
remark: this.doctor_advices[index].remark
|
1468
|
|
- };
|
1469
|
|
- doctor_advice["isShow"] = 1;
|
1470
|
|
- this.doctor_advices.splice(new_advice_index, 0, doctor_advice);
|
|
1468
|
+ }
|
|
1469
|
+ doctor_advice['isShow'] = 1
|
|
1470
|
+ this.doctor_advices.splice(new_advice_index, 0, doctor_advice)
|
1471
|
1471
|
// this.doctor_advices.push(doctor_advice)
|
1472
|
1472
|
}
|
1473
|
1473
|
}
|
1474
|
1474
|
|
1475
|
1475
|
for (let index = 0; index < this.doctor_advices.length; index++) {
|
1476
|
|
- const advice = this.doctor_advices[index];
|
|
1476
|
+ const advice = this.doctor_advices[index]
|
1477
|
1477
|
if (advice.groupno == 0) {
|
1478
|
1478
|
// 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
|
1479
|
1479
|
if (advice.parent_id > 0) {
|
1480
|
1480
|
if (this.advice_groups.length > 0) {
|
1481
|
1481
|
var parent_group = this.advice_groups[
|
1482
|
1482
|
this.advice_groups.length - 1
|
1483
|
|
- ];
|
|
1483
|
+ ]
|
1484
|
1484
|
if (parent_group.advices.length > 0) {
|
1485
|
1485
|
if (parent_group.advices[0].id == advice.parent_id) {
|
1486
|
|
- parent_group.advices.push(advice);
|
|
1486
|
+ parent_group.advices.push(advice)
|
1487
|
1487
|
}
|
1488
|
1488
|
}
|
1489
|
1489
|
}
|
1490
|
|
- continue;
|
|
1490
|
+ continue
|
1491
|
1491
|
} else {
|
1492
|
1492
|
if (group.group_no > 0) {
|
1493
|
|
- this.advice_groups.push(group);
|
1494
|
|
- group = this.newAdviceGroupObject();
|
|
1493
|
+ this.advice_groups.push(group)
|
|
1494
|
+ group = this.newAdviceGroupObject()
|
1495
|
1495
|
}
|
1496
|
1496
|
|
1497
|
|
- initGroupBlock(group, advice);
|
1498
|
|
- group.advices.push(advice);
|
1499
|
|
- this.advice_groups.push(group);
|
1500
|
|
- group = this.newAdviceGroupObject();
|
1501
|
|
- continue;
|
|
1497
|
+ initGroupBlock(group, advice)
|
|
1498
|
+ group.advices.push(advice)
|
|
1499
|
+ this.advice_groups.push(group)
|
|
1500
|
+ group = this.newAdviceGroupObject()
|
|
1501
|
+ continue
|
1502
|
1502
|
}
|
1503
|
1503
|
}
|
1504
|
1504
|
|
1505
|
1505
|
if (group.group_no > 0 && group.group_no != advice.groupno) {
|
1506
|
|
- this.advice_groups.push(group);
|
1507
|
|
- group = this.newAdviceGroupObject();
|
|
1506
|
+ this.advice_groups.push(group)
|
|
1507
|
+ group = this.newAdviceGroupObject()
|
1508
|
1508
|
}
|
1509
|
1509
|
if (group.group_no == 0) {
|
1510
|
|
- initGroupBlock(group, advice);
|
|
1510
|
+ initGroupBlock(group, advice)
|
1511
|
1511
|
}
|
1512
|
1512
|
if (group.group_no == advice.groupno) {
|
1513
|
|
- group.advices.push(advice);
|
|
1513
|
+ group.advices.push(advice)
|
1514
|
1514
|
}
|
1515
|
1515
|
}
|
1516
|
1516
|
if (group.group_no > 0) {
|
1517
|
1517
|
// 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
|
1518
|
|
- this.advice_groups.push(group);
|
|
1518
|
+ this.advice_groups.push(group)
|
1519
|
1519
|
}
|
1520
|
1520
|
}
|
1521
|
|
- console.log(this.advice_groups);
|
|
1521
|
+ console.log(this.advice_groups)
|
1522
|
1522
|
} else {
|
1523
|
|
- this.loading = false;
|
1524
|
|
- this.$message.error("请求数据失败");
|
1525
|
|
- return false;
|
|
1523
|
+ this.loading = false
|
|
1524
|
+ this.$message.error('请求数据失败')
|
|
1525
|
+ return false
|
1526
|
1526
|
}
|
1527
|
|
- });
|
|
1527
|
+ })
|
1528
|
1528
|
},
|
1529
|
1529
|
bloodAccessParOperaName(id) {
|
1530
|
1530
|
if (id in this.bloodAccessParOpera) {
|
1531
|
|
- return this.bloodAccessParOpera[id].name;
|
|
1531
|
+ return this.bloodAccessParOpera[id].name
|
1532
|
1532
|
}
|
1533
|
|
- return "";
|
|
1533
|
+ return ''
|
1534
|
1534
|
},
|
1535
|
1535
|
dialysateFormulationName(id) {
|
1536
|
1536
|
if (id in this.dialysateFormulationOptions) {
|
1537
|
|
- return this.dialysateFormulationOptions[id].name;
|
|
1537
|
+ return this.dialysateFormulationOptions[id].name
|
1538
|
1538
|
}
|
1539
|
|
- return "";
|
|
1539
|
+ return ''
|
1540
|
1540
|
},
|
1541
|
1541
|
getAge: function(val) {
|
1542
|
1542
|
if (val.birthday != 0) {
|
1543
|
|
- return jsGetAge(val.birth, "-");
|
|
1543
|
+ return jsGetAge(val.birth, '-')
|
1544
|
1544
|
}
|
1545
|
|
- return "";
|
|
1545
|
+ return ''
|
1546
|
1546
|
},
|
1547
|
1547
|
newAdviceGroupObject: function() {
|
1548
|
1548
|
return Object.assign(
|
|
@@ -1556,90 +1556,90 @@ export default {
|
1556
|
1556
|
// exec_time: 0,
|
1557
|
1557
|
// checker: 0,
|
1558
|
1558
|
}
|
1559
|
|
- );
|
|
1559
|
+ )
|
1560
|
1560
|
}
|
1561
|
1561
|
},
|
1562
|
1562
|
watch: {
|
1563
|
|
- "patientInfo.gender": function() {
|
|
1563
|
+ 'patientInfo.gender': function() {
|
1564
|
1564
|
if (this.patientInfo.gender == 1) {
|
1565
|
|
- this.patientInfo_gender_1 = true;
|
1566
|
|
- this.patientInfo_gender_2 = false;
|
|
1565
|
+ this.patientInfo_gender_1 = true
|
|
1566
|
+ this.patientInfo_gender_2 = false
|
1567
|
1567
|
} else if (this.patientInfo.gender == 2) {
|
1568
|
|
- this.patientInfo_gender_2 = true;
|
1569
|
|
- this.patientInfo_gender_1 = false;
|
|
1568
|
+ this.patientInfo_gender_2 = true
|
|
1569
|
+ this.patientInfo_gender_1 = false
|
1570
|
1570
|
} else {
|
1571
|
|
- this.patientInfo_gender_2 = false;
|
1572
|
|
- this.patientInfo_gender_1 = false;
|
|
1571
|
+ this.patientInfo_gender_2 = false
|
|
1572
|
+ this.patientInfo_gender_1 = false
|
1573
|
1573
|
}
|
1574
|
1574
|
},
|
1575
|
|
- "patientInfo.source": function() {
|
|
1575
|
+ 'patientInfo.source': function() {
|
1576
|
1576
|
if (this.patientInfo.source == 1) {
|
1577
|
|
- this.patientInfo_source_1 = true;
|
1578
|
|
- this.patientInfo_source_2 = false;
|
|
1577
|
+ this.patientInfo_source_1 = true
|
|
1578
|
+ this.patientInfo_source_2 = false
|
1579
|
1579
|
} else if (this.patientInfo.source == 2) {
|
1580
|
|
- this.patientInfo_source_2 = true;
|
1581
|
|
- this.patientInfo_source_1 = false;
|
|
1580
|
+ this.patientInfo_source_2 = true
|
|
1581
|
+ this.patientInfo_source_1 = false
|
1582
|
1582
|
} else {
|
1583
|
|
- this.patientInfo_source_2 = false;
|
1584
|
|
- this.patientInfo_source_1 = false;
|
|
1583
|
+ this.patientInfo_source_2 = false
|
|
1584
|
+ this.patientInfo_source_1 = false
|
1585
|
1585
|
}
|
1586
|
1586
|
}
|
1587
|
1587
|
},
|
1588
|
1588
|
created() {
|
1589
|
|
- var xtuser = this.$store.getters.xt_user;
|
1590
|
|
- this.orgname = xtuser.org.org_name;
|
|
1589
|
+ var xtuser = this.$store.getters.xt_user
|
|
1590
|
+ this.orgname = xtuser.org.org_name
|
1591
|
1591
|
// this.orgname = "遂溪方济医院";
|
1592
|
|
- this.modeOptions = this.$store.getters.treatment_mode;
|
1593
|
|
- this.replacementWays = this.$store.getters.replacement_ways;
|
1594
|
|
- this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
|
1595
|
|
- this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
|
1596
|
|
-
|
1597
|
|
- this.way_arr = getDataConfig("hemodialysis", "way");
|
1598
|
|
- this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
|
1599
|
|
- this.appetite_arr = getDataConfig("hemodialysis", "appetite");
|
1600
|
|
- this.posture_arr = getDataConfig("hemodialysis", "posture");
|
1601
|
|
- this.sick_condition_arr = getDataConfig("hemodialysis", "sick_condition");
|
1602
|
|
- this.precaution_arr = getDataConfig("hemodialysis", "precaution");
|
1603
|
|
- this.intake_arr = getDataConfig("hemodialysis", "intake");
|
1604
|
|
- this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
|
|
1592
|
+ this.modeOptions = this.$store.getters.treatment_mode
|
|
1593
|
+ this.replacementWays = this.$store.getters.replacement_ways
|
|
1594
|
+ this.perfusionApparatus = this.$store.getters.perfusion_apparatus
|
|
1595
|
+ this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
|
|
1596
|
+
|
|
1597
|
+ this.way_arr = getDataConfig('hemodialysis', 'way')
|
|
1598
|
+ this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
|
|
1599
|
+ this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
|
|
1600
|
+ this.posture_arr = getDataConfig('hemodialysis', 'posture')
|
|
1601
|
+ this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
|
|
1602
|
+ this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
|
|
1603
|
+ this.intake_arr = getDataConfig('hemodialysis', 'intake')
|
|
1604
|
+ this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
|
1605
|
1605
|
|
1606
|
1606
|
// this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
|
1607
|
1607
|
|
1608
|
1608
|
var bloodAccessParOpera = getDataConfig(
|
1609
|
|
- "hemodialysis",
|
1610
|
|
- "vascular_access_desc"
|
1611
|
|
- );
|
|
1609
|
+ 'hemodialysis',
|
|
1610
|
+ 'vascular_access_desc'
|
|
1611
|
+ )
|
1612
|
1612
|
for (var key in bloodAccessParOpera) {
|
1613
|
1613
|
this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
|
1614
|
|
- bloodAccessParOpera[key];
|
|
1614
|
+ bloodAccessParOpera[key]
|
1615
|
1615
|
}
|
1616
|
1616
|
|
1617
|
1617
|
var dialysateFormulationOptions = getDataConfig(
|
1618
|
|
- "hemodialysis",
|
1619
|
|
- "dialysate_formulation"
|
1620
|
|
- );
|
|
1618
|
+ 'hemodialysis',
|
|
1619
|
+ 'dialysate_formulation'
|
|
1620
|
+ )
|
1621
|
1621
|
for (var key in dialysateFormulationOptions) {
|
1622
|
1622
|
this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
|
1623
|
|
- dialysateFormulationOptions[key];
|
|
1623
|
+ dialysateFormulationOptions[key]
|
1624
|
1624
|
}
|
1625
|
1625
|
|
1626
|
|
- const xtdate = this.$route.query && this.$route.query.xtdate;
|
1627
|
|
- const xtno = this.$route.query && this.$route.query.xtno;
|
|
1626
|
+ const xtdate = this.$route.query && this.$route.query.xtdate
|
|
1627
|
+ const xtno = this.$route.query && this.$route.query.xtno
|
1628
|
1628
|
if (
|
1629
|
|
- typeof xtdate === "string" &&
|
|
1629
|
+ typeof xtdate === 'string' &&
|
1630
|
1630
|
xtdate.length > 0 &&
|
1631
|
|
- typeof xtno === "string" &&
|
|
1631
|
+ typeof xtno === 'string' &&
|
1632
|
1632
|
xtno.length > 0
|
1633
|
1633
|
) {
|
1634
|
|
- this.queryParams.xtdate = xtdate;
|
1635
|
|
- this.queryParams.xtno = xtno;
|
1636
|
|
- this.getDialysisRecord();
|
|
1634
|
+ this.queryParams.xtdate = xtdate
|
|
1635
|
+ this.queryParams.xtno = xtno
|
|
1636
|
+ this.getDialysisRecord()
|
1637
|
1637
|
} else {
|
1638
|
|
- this.$message.error("参数不齐");
|
1639
|
|
- return false;
|
|
1638
|
+ this.$message.error('参数不齐')
|
|
1639
|
+ return false
|
1640
|
1640
|
}
|
1641
|
1641
|
}
|
1642
|
|
-};
|
|
1642
|
+}
|
1643
|
1643
|
</script>
|
1644
|
1644
|
|
1645
|
1645
|
<style>
|