|
@@ -350,14 +350,21 @@
|
350
|
350
|
.blood_access_part_id
|
351
|
351
|
: 0
|
352
|
352
|
}}
|
353
|
|
- {{
|
|
353
|
+ <!-- {{
|
354
|
354
|
record.assessment_before_dislysis &&
|
355
|
355
|
record.assessment_before_dislysis
|
356
|
356
|
.blood_access_part_opera_name
|
357
|
357
|
? record.assessment_before_dislysis
|
358
|
358
|
.blood_access_part_opera_name
|
359
|
359
|
: ""
|
|
360
|
+ }} -->
|
|
361
|
+ <span v-for="(item, index) in arrtwo" :key="index">
|
|
362
|
+ {{
|
|
363
|
+ record.blood_access_part_opera_id == item.id
|
|
364
|
+ ? item.name
|
|
365
|
+ : ""
|
360
|
366
|
}}
|
|
367
|
+ </span>
|
361
|
368
|
</div>
|
362
|
369
|
</div>
|
363
|
370
|
<div class="inline_block" style="flex:1;">
|
|
@@ -1135,7 +1142,7 @@
|
1135
|
1142
|
执行人签名
|
1136
|
1143
|
</td>
|
1137
|
1144
|
<td style="font-size: 16px" width="10%">时间</td>
|
1138
|
|
- <td style="font-size: 16px" width="10%" v-if="org_id == 10223">核对者</td>
|
|
1145
|
+ <td style="font-size: 16px" width="10%" v-if="org_id == 10223 ||org_id == 0||org_id == 4">核对者</td>
|
1139
|
1146
|
</tr>
|
1140
|
1147
|
<!-- <template v-for="group in doctor_advices" > -->
|
1141
|
1148
|
<tr
|
|
@@ -1143,54 +1150,51 @@
|
1143
|
1150
|
:key="advice_index"
|
1144
|
1151
|
>
|
1145
|
1152
|
<td height="35px">
|
1146
|
|
- <span v-if="advice[0].start_time">
|
1147
|
|
- {{ getTime(advice[0].start_time, "{h}:{i}") }}
|
|
1153
|
+ <span v-if="advice.start_time">
|
|
1154
|
+ {{ getTime(advice.start_time, "{h}:{i}") }}
|
1148
|
1155
|
</span>
|
1149
|
|
- <!-- <span v-else> <br/> </span> -->
|
1150
|
1156
|
</td>
|
|
1157
|
+
|
1151
|
1158
|
<td
|
1152
|
1159
|
height="35px"
|
1153
|
1160
|
colspan="2"
|
1154
|
1161
|
class="advice-name"
|
1155
|
1162
|
style="padding-left:7px;"
|
1156
|
1163
|
>
|
1157
|
|
- <span v-if="advice[0].parent_id > 0">---></span>
|
1158
|
|
- <span>{{ advice[0].advice_name }}</span>
|
1159
|
|
- <span v-if=" advice[advice_index] && advice[0].advice_desc != undefined">
|
1160
|
|
- ({{ advice[0].advice_desc}}{{ advice[0].drug_spec_unit }} )
|
|
1164
|
+ <span v-if="advice.parent_id > 0">---></span>
|
|
1165
|
+ <span>{{ advice.advice_name }}</span>
|
|
1166
|
+ <span v-if=" advice[advice_index] && advice.advice_desc != undefined">
|
|
1167
|
+ ({{ advice.advice_desc}}{{ advice.drug_spec_unit }} )
|
1161
|
1168
|
</span>
|
1162
|
|
- <span v-if="advice[0].prescribing_number"
|
1163
|
|
- > {{ advice[0].prescribing_number
|
1164
|
|
- }}{{ advice[0].prescribing_number_unit }}</span
|
|
1169
|
+ <span v-if="advice.prescribing_number"
|
|
1170
|
+ > {{ advice.prescribing_number
|
|
1171
|
+ }}{{ advice.prescribing_number_unit }}</span
|
1165
|
1172
|
>
|
1166
|
|
- <span v-if="advice[0].single_dose != 0">
|
1167
|
|
- {{ advice[0].single_dose
|
1168
|
|
- }}{{ advice[0].single_dose_unit }}</span
|
|
1173
|
+ <span v-if="advice.single_dose != 0">
|
|
1174
|
+ {{ advice.single_dose
|
|
1175
|
+ }}{{ advice.single_dose_unit }}</span
|
1169
|
1176
|
>
|
1170
|
1177
|
<span
|
1171
|
1178
|
v-if="
|
1172
|
|
- advice[0].parent_id == 0 &&
|
1173
|
|
- advice[0].children.length == 0
|
|
1179
|
+ advice.parent_id == 0
|
1174
|
1180
|
"
|
1175
|
|
- >{{ advice[0].delivery_way }}</span
|
|
1181
|
+ >{{ advice.delivery_way }}</span
|
1176
|
1182
|
>
|
1177
|
1183
|
<span
|
1178
|
1184
|
v-if="
|
1179
|
|
- advice[0].parent_id == 0 &&
|
1180
|
|
- advice[0].children.length == 0
|
|
1185
|
+ advice.parent_id == 0
|
1181
|
1186
|
"
|
1182
|
|
- >{{ advice[0].execution_frequency }}</span
|
|
1187
|
+ >{{ advice.execution_frequency }}</span
|
1183
|
1188
|
>
|
1184
|
1189
|
<span
|
1185
|
1190
|
v-if="
|
1186
|
|
- advice[0].parent_id == 0 &&
|
1187
|
|
- advice[0].children &&
|
1188
|
|
- advice[0].children.length == 0 &&
|
1189
|
|
- advice[0].remark.length > 0
|
|
1191
|
+ advice.parent_id ==0 &&
|
|
1192
|
+ advice.remark.length > 0
|
1190
|
1193
|
"
|
1191
|
|
- >({{ advice[0].remark }})</span
|
|
1194
|
+ >({{ advice.remark }})</span
|
1192
|
1195
|
>
|
1193
|
1196
|
</td>
|
|
1197
|
+
|
1194
|
1198
|
<td height="35px">
|
1195
|
1199
|
<span
|
1196
|
1200
|
v-if="
|
|
@@ -1234,13 +1238,15 @@
|
1234
|
1238
|
style="height: 40px;"
|
1235
|
1239
|
/>
|
1236
|
1240
|
</td>
|
|
1241
|
+
|
|
1242
|
+
|
1237
|
1243
|
<td height="35px">
|
1238
|
|
- <span v-if="advice[0].execution_time">{{
|
1239
|
|
- getTime(advice[0].execution_time, " {h}:{i}")
|
|
1244
|
+ <span v-if="advice.execution_time">{{
|
|
1245
|
+ getTime(advice.execution_time, " {h}:{i}")
|
1240
|
1246
|
}}</span>
|
1241
|
1247
|
</td>
|
1242
|
1248
|
|
1243
|
|
- <td height="35px" v-if="org_id == 10223">
|
|
1249
|
+ <td height="35px" v-if="org_id == 10223||org_id == 0||org_id == 4">
|
1244
|
1250
|
<span
|
1245
|
1251
|
v-if="
|
1246
|
1252
|
setAdminUserES(advice[0], 'checker') ==
|
|
@@ -2017,7 +2023,7 @@ export default {
|
2017
|
2023
|
precaution_arr: [],
|
2018
|
2024
|
intake_arr: [],
|
2019
|
2025
|
nutrition_arr: [],
|
2020
|
|
-
|
|
2026
|
+ arrtwo: [],
|
2021
|
2027
|
records: [
|
2022
|
2028
|
// 模拟有多条数据
|
2023
|
2029
|
// {
|
|
@@ -2079,6 +2085,84 @@ export default {
|
2079
|
2085
|
"hemodialysis",
|
2080
|
2086
|
"vascular_access_desc"
|
2081
|
2087
|
);
|
|
2088
|
+ var arrtwo = [];
|
|
2089
|
+ for (let i = 0; i < bloodAccessParOpera.length; i++) {
|
|
2090
|
+ if (bloodAccessParOpera[i].name == "内瘘波动及震颤-存在") {
|
|
2091
|
+ bloodAccessParOpera[i].name = "存在";
|
|
2092
|
+ arr.push(bloodAccessParOpera[i]);
|
|
2093
|
+ }
|
|
2094
|
+ if (bloodAccessParOpera[i].name == "内瘘波动及震颤-减弱") {
|
|
2095
|
+ bloodAccessParOpera[i].name = "减弱";
|
|
2096
|
+ arr.push(bloodAccessParOpera[i]);
|
|
2097
|
+ }
|
|
2098
|
+ if (bloodAccessParOpera[i].name == "内瘘波动及震颤-消失") {
|
|
2099
|
+ bloodAccessParOpera[i].name = "消失";
|
|
2100
|
+ arr.push(bloodAccessParOpera[i]);
|
|
2101
|
+ }
|
|
2102
|
+ if (bloodAccessParOpera[i].name == "直穿") {
|
|
2103
|
+ arrtwo.push(bloodAccessParOpera[i]);
|
|
2104
|
+ }
|
|
2105
|
+ if (bloodAccessParOpera[i].name == "动脉直穿") {
|
|
2106
|
+ arrtwo.push(bloodAccessParOpera[i]);
|
|
2107
|
+ }
|
|
2108
|
+ if (bloodAccessParOpera[i].name == "动静脉直穿") {
|
|
2109
|
+ arrtwo.push(bloodAccessParOpera[i]);
|
|
2110
|
+ }
|
|
2111
|
+ if (bloodAccessParOpera[i].name == "带隧道带绦纶套股静脉导管") {
|
|
2112
|
+ arrtwo.push(bloodAccessParOpera[i]);
|
|
2113
|
+ }
|
|
2114
|
+ if (bloodAccessParOpera[i].name == "带隧道带绦纶套锁骨下静脉导管") {
|
|
2115
|
+ arrtwo.push(bloodAccessParOpera[i]);
|
|
2116
|
+ }
|
|
2117
|
+ if (bloodAccessParOpera[i].name == "带隧道带绦纶套颈内静脉导管") {
|
|
2118
|
+ arrtwo.push(bloodAccessParOpera[i]);
|
|
2119
|
+ }
|
|
2120
|
+ if (bloodAccessParOpera[i].name == "无绦纶套股静脉导管") {
|
|
2121
|
+ arrtwo.push(bloodAccessParOpera[i]);
|
|
2122
|
+ }
|
|
2123
|
+ if (bloodAccessParOpera[i].name == "无绦纶套锁骨下静脉导管") {
|
|
2124
|
+ arrtwo.push(bloodAccessParOpera[i]);
|
|
2125
|
+ }
|
|
2126
|
+ if (bloodAccessParOpera[i].name == "无绦纶套颈内静脉导管") {
|
|
2127
|
+ arrtwo.push(bloodAccessParOpera[i]);
|
|
2128
|
+ }
|
|
2129
|
+ if (bloodAccessParOpera[i].name == "直线型移植血管动静脉内瘘") {
|
|
2130
|
+ arrtwo.push(bloodAccessParOpera[i]);
|
|
2131
|
+ }
|
|
2132
|
+ if (bloodAccessParOpera[i].name == "自体动静脉内瘘") {
|
|
2133
|
+ arrtwo.push(bloodAccessParOpera[i]);
|
|
2134
|
+ }
|
|
2135
|
+ if (bloodAccessParOpera[i].name == "袢型移植血管动静脉内瘘") {
|
|
2136
|
+ arrtwo.push(bloodAccessParOpera[i]);
|
|
2137
|
+ }
|
|
2138
|
+ if (bloodAccessParOpera[i].name == "静脉直穿") {
|
|
2139
|
+ arrtwo.push(bloodAccessParOpera[i]);
|
|
2140
|
+ }
|
|
2141
|
+ if (bloodAccessParOpera[i].name == "AVG") {
|
|
2142
|
+ arrtwo.push(bloodAccessParOpera[i]);
|
|
2143
|
+ }
|
|
2144
|
+ if (bloodAccessParOpera[i].name == "自体内瘘") {
|
|
2145
|
+ arrtwo.push(bloodAccessParOpera[i]);
|
|
2146
|
+ }
|
|
2147
|
+ if (bloodAccessParOpera[i].name == "AVF") {
|
|
2148
|
+ arrtwo.push(bloodAccessParOpera[i]);
|
|
2149
|
+ }
|
|
2150
|
+ if (bloodAccessParOpera[i].name == "颈内静脉") {
|
|
2151
|
+ arrtwo.push(bloodAccessParOpera[i]);
|
|
2152
|
+ }
|
|
2153
|
+ if (bloodAccessParOpera[i].name == "股静脉") {
|
|
2154
|
+ arrtwo.push(bloodAccessParOpera[i]);
|
|
2155
|
+ }
|
|
2156
|
+ if (bloodAccessParOpera[i].name == "人造血管") {
|
|
2157
|
+ arrtwo.push(bloodAccessParOpera[i]);
|
|
2158
|
+ }
|
|
2159
|
+ if (bloodAccessParOpera[i].name == "移植血管") {
|
|
2160
|
+ arrtwo.push(bloodAccessParOpera[i]);
|
|
2161
|
+ }
|
|
2162
|
+ this.arrtwo = arrtwo;
|
|
2163
|
+ }
|
|
2164
|
+ console.log("arrtwo", arrtwo)
|
|
2165
|
+
|
2082
|
2166
|
for (var key in bloodAccessParOpera) {
|
2083
|
2167
|
this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
|
2084
|
2168
|
bloodAccessParOpera[key];
|
|
@@ -2117,8 +2201,10 @@ export default {
|
2117
|
2201
|
.then(rs => {
|
2118
|
2202
|
var resp = rs.data;
|
2119
|
2203
|
if (resp.state == 1) {
|
2120
|
|
- this.records = this.records.concat(resp.data.schedules);
|
2121
|
|
- console.log("记录", this.records);
|
|
2204
|
+ // this.records = this.records.concat(resp.data.schedules);
|
|
2205
|
+ // console.log(rs,'rs')
|
|
2206
|
+ this.records = resp.data.schedules;
|
|
2207
|
+ console.log("记录this.records", this.records);
|
2122
|
2208
|
|
2123
|
2209
|
for (const recordIndex in this.records) {
|
2124
|
2210
|
var dlegh = 0;
|
|
@@ -2149,61 +2235,82 @@ export default {
|
2149
|
2235
|
}
|
2150
|
2236
|
|
2151
|
2237
|
var delghTwo = 0;
|
|
2238
|
+ console.log(this.records[recordIndex].advices,'长度')
|
2152
|
2239
|
if (
|
2153
|
2240
|
this.records[recordIndex].advices &&
|
2154
|
|
- this.records[recordIndex].advices.length < 12
|
|
2241
|
+ this.records[recordIndex].advices.length < 6
|
2155
|
2242
|
) {
|
2156
|
|
- delghTwo = 12 - this.records[recordIndex].advices.length;
|
|
2243
|
+ delghTwo = 6 - this.records[recordIndex].advices.length;
|
2157
|
2244
|
} else {
|
2158
|
2245
|
delghTwo = 0;
|
2159
|
2246
|
}
|
2160
|
2247
|
|
2161
|
2248
|
if (delghTwo > 0) {
|
|
2249
|
+ console.log(typeof this.records[recordIndex].advices,'typeof this.records[recordIndex].advices')
|
2162
|
2250
|
if (
|
2163
|
2251
|
typeof this.records[recordIndex].advices === "undefined" ||
|
2164
|
2252
|
this.records[recordIndex].advices == null
|
2165
|
2253
|
) {
|
2166
|
|
- this.records[recordIndex].advices = [];
|
|
2254
|
+ for (let index = 0; index < delghTwo; index++) {
|
|
2255
|
+ this.records[recordIndex].advices.push([]);
|
|
2256
|
+ }
|
2167
|
2257
|
}
|
2168
|
2258
|
for (let index = 0; index < delghTwo; index++) {
|
2169
|
2259
|
this.records[recordIndex].advices.push([]);
|
2170
|
2260
|
}
|
2171
|
2261
|
}
|
2172
|
2262
|
|
2173
|
|
- var childMap = {};
|
2174
|
|
- for (const index in this.records[recordIndex].advices) {
|
2175
|
|
- if (this.records[recordIndex].advices[index].parent_id == 0) {
|
2176
|
|
- continue;
|
2177
|
|
- }
|
2178
|
|
- if (
|
2179
|
|
- !(
|
2180
|
|
- this.records[recordIndex].advices[index].parent_id in childMap
|
2181
|
|
- )
|
2182
|
|
- ) {
|
2183
|
|
- childMap[
|
2184
|
|
- this.records[recordIndex].advices[index].parent_id
|
2185
|
|
- ] = [];
|
2186
|
|
- }
|
2187
|
|
- childMap[this.records[recordIndex].advices[index].parent_id].push(
|
2188
|
|
- this.records[recordIndex].advices[index]
|
2189
|
|
- );
|
2190
|
|
- }
|
|
2263
|
+ // var childMap = {};
|
|
2264
|
+ // for (const index in this.records[recordIndex].advices) {
|
|
2265
|
+ // if (this.records[recordIndex].advices[index].parent_id == 0) {
|
|
2266
|
+ // continue;
|
|
2267
|
+ // }
|
|
2268
|
+ // if (
|
|
2269
|
+ // !(
|
|
2270
|
+ // this.records[recordIndex].advices[index].parent_id in childMap
|
|
2271
|
+ // )
|
|
2272
|
+ // ) {
|
|
2273
|
+ // childMap[
|
|
2274
|
+ // this.records[recordIndex].advices[index].parent_id
|
|
2275
|
+ // ] = [];
|
|
2276
|
+ // }
|
|
2277
|
+ // childMap[this.records[recordIndex].advices[index].parent_id].push(
|
|
2278
|
+ // this.records[recordIndex].advices[index]
|
|
2279
|
+ // );
|
|
2280
|
+ // }
|
|
2281
|
+ // console.log(childMap,'childMap')
|
2191
|
2282
|
|
2192
|
|
- var advices = [];
|
2193
|
|
- for (const index in this.records[recordIndex].advices) {
|
2194
|
|
- if (this.records[recordIndex].advices[index].parent_id > 0) {
|
2195
|
|
- continue;
|
2196
|
|
- }
|
2197
|
|
- var item = this.records[recordIndex].advices[index];
|
2198
|
|
- if (item.id in childMap) {
|
2199
|
|
- item.children = childMap[item.id];
|
2200
|
|
- // advices.push(childMap[item.id]);
|
2201
|
|
- } else {
|
2202
|
|
- item.children = [];
|
2203
|
|
- }
|
2204
|
|
- advices.push(item);
|
|
2283
|
+ // var advices = [];
|
|
2284
|
+ // for (const index in this.records[recordIndex].advices) {
|
|
2285
|
+ // if (this.records[recordIndex].advices[index].parent_id > 0) {
|
|
2286
|
+ // continue;
|
|
2287
|
+ // }
|
|
2288
|
+ // var item = this.records[recordIndex].advices[index];
|
|
2289
|
+ // if (item.id in childMap) {
|
|
2290
|
+ // item.children = childMap[item.id];
|
|
2291
|
+ // // advices.push(childMap[item.id]);
|
|
2292
|
+ // } else {
|
|
2293
|
+ // item.children = [];
|
|
2294
|
+ // }
|
|
2295
|
+ // advices.push(item);
|
2205
|
2296
|
|
|
2297
|
+ // }
|
|
2298
|
+
|
|
2299
|
+ console.log(" this.records[recordIndex].advices", this.records);
|
|
2300
|
+ this.operators = resp.data.medical_staffs;
|
|
2301
|
+ if (this.operators.length > 0) {
|
|
2302
|
+ var operatorsLen = this.operators.length;
|
|
2303
|
+ for (var index = 0; index < operatorsLen; index++) {
|
|
2304
|
+ this.$set(
|
|
2305
|
+ this.operatorMaps,
|
|
2306
|
+ this.operators[index].id,
|
|
2307
|
+ this.operators[index]
|
|
2308
|
+ );
|
2206
|
2309
|
}
|
|
2310
|
+ }
|
|
2311
|
+ this.adminUser = resp.data.users;
|
|
2312
|
+ console.log("使用者", this.adminUser);
|
|
2313
|
+ this.loading = false;
|
2207
|
2314
|
|
2208
|
2315
|
var leftAdvice = [];
|
2209
|
2316
|
var rightAdvice = [];
|
|
@@ -2237,31 +2344,20 @@ export default {
|
2237
|
2344
|
}
|
2238
|
2345
|
}
|
2239
|
2346
|
|
2240
|
|
- console.log(" this.records[recordIndex].advices", this.records);
|
2241
|
|
- this.operators = resp.data.medical_staffs;
|
2242
|
|
- if (this.operators.length > 0) {
|
2243
|
|
- var operatorsLen = this.operators.length;
|
2244
|
|
- for (var index = 0; index < operatorsLen; index++) {
|
2245
|
|
- this.$set(
|
2246
|
|
- this.operatorMaps,
|
2247
|
|
- this.operators[index].id,
|
2248
|
|
- this.operators[index]
|
2249
|
|
- );
|
2250
|
|
- }
|
2251
|
|
- }
|
2252
|
|
- this.adminUser = resp.data.users;
|
2253
|
|
- console.log("使用者", this.adminUser);
|
2254
|
|
- this.loading = false;
|
2255
|
|
- } else {
|
|
2347
|
+
|
|
2348
|
+ }
|
|
2349
|
+ else {
|
2256
|
2350
|
this.loading = false;
|
2257
|
2351
|
this.$message.error(resp.msg);
|
2258
|
2352
|
}
|
2259
|
2353
|
})
|
2260
|
2354
|
.catch(err => {
|
2261
|
|
- this.$message.error(err);
|
|
2355
|
+ // this.$message.error(err);
|
|
2356
|
+ console.log(err)
|
2262
|
2357
|
});
|
2263
|
2358
|
},
|
2264
|
2359
|
methods: {
|
|
2360
|
+
|
2265
|
2361
|
getUnit: function(val) {
|
2266
|
2362
|
if (val.assessment_after_dislysis == null) {
|
2267
|
2363
|
return "";
|