|
@@ -138,18 +138,21 @@
|
138
|
138
|
label="跌倒风险预防措施: "
|
139
|
139
|
v-if="isShow('跌倒风险预防措施')"
|
140
|
140
|
>
|
141
|
|
- <!--<el-radio v-model="receiveTreatmentAsses.precaution" label="1">镇定剂</el-radio>-->
|
142
|
|
- <!--<el-radio v-model="receiveTreatmentAsses.precaution" label="2">约束带</el-radio>-->
|
143
|
|
- <!--<el-radio v-model="receiveTreatmentAsses.precaution" label="3">床栏</el-radio>-->
|
144
|
|
- <!--<el-radio v-model="receiveTreatmentAsses.precaution" label="4">加强宣教</el-radio>-->
|
145
|
|
-
|
146
|
|
- <el-radio
|
147
|
|
- v-for="(item, index) in precaution_arr"
|
148
|
|
- :key="index"
|
149
|
|
- :label="item.id"
|
150
|
|
- v-model="receiveTreatmentAsses.precaution"
|
151
|
|
- >{{ item.name }}
|
152
|
|
- </el-radio>
|
|
141
|
+ <!-- <el-radio-->
|
|
142
|
+ <!-- v-for="(item, index) in precaution_arr"-->
|
|
143
|
+ <!-- :key="index"-->
|
|
144
|
+ <!-- :label="item.id"-->
|
|
145
|
+ <!-- v-model="receiveTreatmentAsses.precaution"-->
|
|
146
|
+ <!-- >{{ item.name }}-->
|
|
147
|
+ <!-- </el-radio>-->
|
|
148
|
+ <el-checkbox-group v-model="precautionTwo">
|
|
149
|
+ <el-checkbox
|
|
150
|
+ v-for="item in precaution_arr"
|
|
151
|
+ :label="item.name"
|
|
152
|
+ :key="item.id"
|
|
153
|
+ >{{ item.name }}</el-checkbox
|
|
154
|
+ >
|
|
155
|
+ </el-checkbox-group>
|
153
|
156
|
</el-form-item>
|
154
|
157
|
<el-form-item
|
155
|
158
|
label-width="200px"
|
|
@@ -266,10 +269,11 @@ export default {
|
266
|
269
|
sick_condition_other: "",
|
267
|
270
|
score: "",
|
268
|
271
|
psychological_other: "",
|
269
|
|
- precaution: "1",
|
|
272
|
+ precaution: "",
|
270
|
273
|
precaution_other: "",
|
271
|
274
|
admission_number: ""
|
272
|
|
- }
|
|
275
|
+ },
|
|
276
|
+ precautionTwo: []
|
273
|
277
|
};
|
274
|
278
|
},
|
275
|
279
|
methods: {
|
|
@@ -289,6 +293,20 @@ export default {
|
289
|
293
|
show(accepts) {
|
290
|
294
|
this.accepts = accepts;
|
291
|
295
|
console.log("accepts", accepts);
|
|
296
|
+ var arr = [];
|
|
297
|
+ var precaution = this.accepts.precaution.split(",");
|
|
298
|
+ console.log("precaution", precaution);
|
|
299
|
+ console.log("hhh", this.precaution_arr);
|
|
300
|
+ for (let i = 0; i < precaution.length; i++) {
|
|
301
|
+ for (let j = 0; j < this.precaution_arr.length; j++) {
|
|
302
|
+ if (parseInt(precaution[i]) == this.precaution_arr[j].id) {
|
|
303
|
+ console.log("aaaa");
|
|
304
|
+ arr.push(this.precaution_arr[j].name);
|
|
305
|
+ }
|
|
306
|
+ }
|
|
307
|
+ }
|
|
308
|
+ this.precautionTwo = arr;
|
|
309
|
+ console.log("arr", arr);
|
292
|
310
|
this.getPermission();
|
293
|
311
|
for (var index in this.receiveTreatmentAsses) {
|
294
|
312
|
if (
|
|
@@ -313,7 +331,19 @@ export default {
|
313
|
331
|
this.isVisibility = false;
|
314
|
332
|
},
|
315
|
333
|
handleComfirm: function() {
|
|
334
|
+ var arr = [];
|
|
335
|
+ for (let i = 0; i < this.precaution_arr.length; i++) {
|
|
336
|
+ for (let j = 0; j < this.precautionTwo.length; j++) {
|
|
337
|
+ if (this.precaution_arr[i].name == this.precautionTwo[j]) {
|
|
338
|
+ arr.push(this.precaution_arr[i].id);
|
|
339
|
+ }
|
|
340
|
+ }
|
|
341
|
+ }
|
|
342
|
+ console.log("arr", arr);
|
|
343
|
+ var obj = arr.join(",");
|
|
344
|
+ this.receiveTreatmentAsses.precaution = obj;
|
316
|
345
|
let ParamsQuery = this.receiveTreatmentAsses;
|
|
346
|
+ console.log("ParamsQuery", ParamsQuery);
|
317
|
347
|
ParamsQuery["patient"] = this.patient.id;
|
318
|
348
|
ParamsQuery["record_date"] = this.record_date;
|
319
|
349
|
console.log(this.receiver_treatment_access);
|
|
@@ -327,7 +357,7 @@ export default {
|
327
|
357
|
ParamsQuery["mode"] = "3";
|
328
|
358
|
}
|
329
|
359
|
}
|
330
|
|
-
|
|
360
|
+ console.log("数据", this.precautionTwo);
|
331
|
361
|
postAccepts(ParamsQuery).then(response => {
|
332
|
362
|
if (response.data.state == 0) {
|
333
|
363
|
this.$message.error(response.data.msg);
|
|
@@ -342,7 +372,8 @@ export default {
|
342
|
372
|
|
343
|
373
|
let receive_treatment_asses_resp =
|
344
|
374
|
response.data.data.receiveTreatmentAsses;
|
345
|
|
- //prop
|
|
375
|
+
|
|
376
|
+ //pror
|
346
|
377
|
var receiver_treatment_access = this.receiver_treatment_access;
|
347
|
378
|
for (var index in receive_treatment_asses_resp) {
|
348
|
379
|
// receiver_treatment_access[index] = receive_treatment_asses_resp[index];
|
|
@@ -436,6 +467,7 @@ export default {
|
436
|
467
|
this.posture_arr = getDataConfig("hemodialysis", "posture");
|
437
|
468
|
this.sick_condition_arr = getDataConfig("hemodialysis", "sick_condition");
|
438
|
469
|
this.precaution_arr = getDataConfig("hemodialysis", "precaution");
|
|
470
|
+ console.log("风险", this.precaution_arr);
|
439
|
471
|
this.intake_arr = getDataConfig("hemodialysis", "intake");
|
440
|
472
|
this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
|
441
|
473
|
}
|