|
@@ -20,34 +20,62 @@
|
20
|
20
|
alt=""
|
21
|
21
|
/>
|
22
|
22
|
<div>
|
23
|
|
- <div class="right">
|
24
|
|
- <h3 class="name">
|
25
|
|
- {{ schedule.patient.name
|
26
|
|
- }}<span class="yc" v-show="isAbnormal(schedule)">异常</span>
|
27
|
|
- </h3>
|
28
|
|
- <span class="num"
|
29
|
|
- >{{ genderText(schedule) }} | {{ getAge(schedule) }} 岁</span
|
30
|
|
- >
|
31
|
|
- <div style="margin-left:10px;font-size:12px;color:#34495e;margin-right: 5px;" v-if="schedule.assessment_before_dislysis && patientStateVal == 1">签到时间:{{ getTime(schedule.assessment_before_dislysis.created_time) }}</div>
|
32
|
|
- </div>
|
33
|
|
- <div style="margin-top:5px;text-align:left;height:24px;">
|
34
|
|
- <span class="tip1" v-if="schedule.prescription == null || schedule.prescription.creater == 0" @click.stop="open(schedule)">
|
35
|
|
- 开处方
|
36
|
|
- </span>
|
37
|
|
- <span class="tip2" v-if="schedule.treatment_summary == null || schedule.treatment_summary.dialysis_summary == ''" @click.stop="open1(schedule)">
|
38
|
|
- 开小结
|
39
|
|
- </span>
|
40
|
|
- <span class="online" v-show="computeState(schedule) != 4">
|
41
|
|
- <span :class="stateColor(schedule)">{{ stateText(schedule) }}</span>
|
42
|
|
- </span>
|
|
23
|
+ <div class="right">
|
|
24
|
+ <h3 class="name">
|
|
25
|
+ {{ schedule.patient.name
|
|
26
|
+ }}<span class="yc" v-show="isAbnormal(schedule)">异常</span>
|
|
27
|
+ </h3>
|
|
28
|
+ <span class="num"
|
|
29
|
+ >{{ genderText(schedule) }} | {{ getAge(schedule) }} 岁</span
|
|
30
|
+ >
|
|
31
|
+ <div
|
|
32
|
+ style="
|
|
33
|
+ margin-left: 10px;
|
|
34
|
+ font-size: 12px;
|
|
35
|
+ color: #34495e;
|
|
36
|
+ margin-right: 5px;
|
|
37
|
+ "
|
|
38
|
+ v-if="
|
|
39
|
+ schedule.assessment_before_dislysis && patientStateVal == 1
|
|
40
|
+ "
|
|
41
|
+ >
|
|
42
|
+ 签到时间:{{
|
|
43
|
+ getTime(schedule.assessment_before_dislysis.created_time)
|
|
44
|
+ }}
|
|
45
|
+ </div>
|
|
46
|
+ </div>
|
|
47
|
+ <div style="margin-top: 5px; text-align: left; height: 24px">
|
|
48
|
+ <span
|
|
49
|
+ class="tip1"
|
|
50
|
+ v-if="
|
|
51
|
+ schedule.prescription == null ||
|
|
52
|
+ schedule.prescription.creater == 0
|
|
53
|
+ "
|
|
54
|
+ @click.stop="open(schedule)"
|
|
55
|
+ >
|
|
56
|
+ 开处方
|
|
57
|
+ </span>
|
|
58
|
+ <span
|
|
59
|
+ class="tip2"
|
|
60
|
+ v-if="
|
|
61
|
+ schedule.treatment_summary == null ||
|
|
62
|
+ schedule.treatment_summary.dialysis_summary == ''
|
|
63
|
+ "
|
|
64
|
+ @click.stop="open1(schedule)"
|
|
65
|
+ >
|
|
66
|
+ 开小结
|
|
67
|
+ </span>
|
|
68
|
+ <span class="online" v-show="computeState(schedule) != 4">
|
|
69
|
+ <span :class="stateColor(schedule)">{{
|
|
70
|
+ stateText(schedule)
|
|
71
|
+ }}</span>
|
|
72
|
+ </span>
|
|
73
|
+ </div>
|
43
|
74
|
</div>
|
|
75
|
+ <!-- v-if="schedule.patient.troble_shoot == 1" -->
|
|
76
|
+ <div class="difficult" v-if="schedule.patient.troble_shoot == 1">疑难内瘘</div>
|
|
77
|
+ <div></div>
|
44
|
78
|
|
45
|
|
- <div class="difficult" v-if="schedule.patient.troble_shoot == 1">
|
46
|
|
- 疑难内瘘
|
47
|
|
- </div>
|
48
|
|
- </div>
|
49
|
|
- </div>
|
50
|
|
- <div>
|
51
|
79
|
<!-- <div style="height:24px;margin-right: 10px;">
|
52
|
80
|
<div class="online" v-show="computeState(schedule) != 4">
|
53
|
81
|
<p :class="stateColor(schedule)">{{ stateText(schedule) }}</p>
|
|
@@ -57,32 +85,92 @@
|
57
|
85
|
</div>
|
58
|
86
|
</div>
|
59
|
87
|
<div class="dislysisInfo">
|
60
|
|
- <p>体重(前/后kg):
|
61
|
|
- {{ schedule.assessment_before_dislysis ? schedule.assessment_before_dislysis.weight_before : '' }}
|
62
|
|
- <span v-if="schedule.assessment_after_dislysis && schedule.assessment_after_dislysis.weight_after>0">/{{ schedule.assessment_after_dislysis ? schedule.assessment_after_dislysis.weight_after : '' }}</span> </p>
|
63
|
|
- <p>目标超滤量:
|
64
|
|
- <span v-if="schedule.prescription && schedule.prescription.target_ultrafiltration>0">{{ schedule.prescription ? schedule.prescription.target_ultrafiltration : '' }}</span>
|
65
|
|
-
|
|
88
|
+ <p>
|
|
89
|
+ 体重(前/后kg):
|
|
90
|
+ {{
|
|
91
|
+ schedule.assessment_before_dislysis
|
|
92
|
+ ? schedule.assessment_before_dislysis.weight_before
|
|
93
|
+ : ""
|
|
94
|
+ }}
|
|
95
|
+ <span
|
|
96
|
+ v-if="
|
|
97
|
+ schedule.assessment_after_dislysis &&
|
|
98
|
+ schedule.assessment_after_dislysis.weight_after > 0
|
|
99
|
+ "
|
|
100
|
+ >/{{
|
|
101
|
+ schedule.assessment_after_dislysis
|
|
102
|
+ ? schedule.assessment_after_dislysis.weight_after
|
|
103
|
+ : ""
|
|
104
|
+ }}</span
|
|
105
|
+ >
|
66
|
106
|
</p>
|
67
|
|
- <p :title="schedule.prescription ? schedule.prescription.dialyzer_perfusion_apparatus : ''">
|
68
|
|
- 透析器/灌流器:{{ schedule.prescription ? schedule.prescription.dialyzer_perfusion_apparatus : '' }}
|
69
|
|
- <span v-if="schedule.prescription!=null">{{schedule.prescription?schedule.prescription.dialysis_dialyszers:''}}</span>
|
70
|
|
- <span v-if="schedule.prescription!=null && schedule.prescription.dialysis_irrigation!=''">/</span>
|
71
|
|
- <span v-if="schedule.prescription!=null">{{schedule.prescription?schedule.prescription.dialysis_irrigation:''}}</span>
|
|
107
|
+ <p>
|
|
108
|
+ 目标超滤量:
|
|
109
|
+ <span
|
|
110
|
+ v-if="
|
|
111
|
+ schedule.prescription &&
|
|
112
|
+ schedule.prescription.target_ultrafiltration > 0
|
|
113
|
+ "
|
|
114
|
+ >{{
|
|
115
|
+ schedule.prescription
|
|
116
|
+ ? schedule.prescription.target_ultrafiltration
|
|
117
|
+ : ""
|
|
118
|
+ }}</span
|
|
119
|
+ >
|
|
120
|
+ </p>
|
|
121
|
+ <p
|
|
122
|
+ :title="
|
|
123
|
+ schedule.prescription
|
|
124
|
+ ? schedule.prescription.dialyzer_perfusion_apparatus
|
|
125
|
+ : ''
|
|
126
|
+ "
|
|
127
|
+ >
|
|
128
|
+ 透析器/灌流器:{{
|
|
129
|
+ schedule.prescription
|
|
130
|
+ ? schedule.prescription.dialyzer_perfusion_apparatus
|
|
131
|
+ : ""
|
|
132
|
+ }}
|
|
133
|
+ <span v-if="schedule.prescription != null">{{
|
|
134
|
+ schedule.prescription
|
|
135
|
+ ? schedule.prescription.dialysis_dialyszers
|
|
136
|
+ : ""
|
|
137
|
+ }}</span>
|
|
138
|
+ <span
|
|
139
|
+ v-if="
|
|
140
|
+ schedule.prescription != null &&
|
|
141
|
+ schedule.prescription.dialysis_irrigation != ''
|
|
142
|
+ "
|
|
143
|
+ >/</span
|
|
144
|
+ >
|
|
145
|
+ <span v-if="schedule.prescription != null">{{
|
|
146
|
+ schedule.prescription
|
|
147
|
+ ? schedule.prescription.dialysis_irrigation
|
|
148
|
+ : ""
|
|
149
|
+ }}</span>
|
72
|
150
|
</p>
|
73
|
151
|
</div>
|
74
|
|
- <div class="function" :class="functionColor(schedule)" :id="modeColor(schedule.mode_id)">
|
|
152
|
+ <div
|
|
153
|
+ class="function"
|
|
154
|
+ :class="functionColor(schedule)"
|
|
155
|
+ :id="modeColor(schedule.mode_id)"
|
|
156
|
+ >
|
75
|
157
|
<ul>
|
76
|
158
|
<li>
|
77
|
|
- <span class="iconfont" :id="modeColor(schedule.mode_id)"></span>班次 :
|
|
159
|
+ <span class="iconfont" :id="modeColor(schedule.mode_id)"
|
|
160
|
+ ></span
|
|
161
|
+ >班次 :
|
78
|
162
|
{{ timeTypeText(schedule) }}
|
79
|
163
|
</li>
|
80
|
164
|
<li>
|
81
|
|
- <span class="iconfont" :id="modeColor(schedule.mode_id)"></span>床位号 :
|
|
165
|
+ <span class="iconfont" :id="modeColor(schedule.mode_id)"
|
|
166
|
+ ></span
|
|
167
|
+ >床位号 :
|
82
|
168
|
{{ schedule.device_number.number }}
|
83
|
169
|
</li>
|
84
|
170
|
<li>
|
85
|
|
- <span class="iconfont" :id="modeColor(schedule.mode_id)"></span>透析模式 :
|
|
171
|
+ <span class="iconfont" :id="modeColor(schedule.mode_id)"
|
|
172
|
+ ></span
|
|
173
|
+ >透析模式 :
|
86
|
174
|
{{
|
87
|
175
|
schedule.mode_id &&
|
88
|
176
|
$store.getters.treatment_mode[schedule.mode_id]
|
|
@@ -126,7 +214,7 @@
|
126
|
214
|
:last_prescription="lastDialysisPrescribe"
|
127
|
215
|
:dry_weight="lastDryWeightDislysis"
|
128
|
216
|
:schedual="temp_schedual"
|
129
|
|
- :date='date'
|
|
217
|
+ :date="date"
|
130
|
218
|
:stockType="stockType"
|
131
|
219
|
></dialysis-prescription-dialog>
|
132
|
220
|
<treatment-summary-dialog
|
|
@@ -139,7 +227,6 @@
|
139
|
227
|
</template>
|
140
|
228
|
|
141
|
229
|
<script>
|
142
|
|
-
|
143
|
230
|
import { parseTime } from "@/utils";
|
144
|
231
|
import { jsGetAge } from "@/utils/tools";
|
145
|
232
|
import dialysisPrescriptionDialog from "../dialysis/details/dialog/dialysisPrescriptionDialog";
|
|
@@ -151,9 +238,9 @@ import {
|
151
|
238
|
|
152
|
239
|
export default {
|
153
|
240
|
name: "PatientBox",
|
154
|
|
- components:{
|
|
241
|
+ components: {
|
155
|
242
|
dialysisPrescriptionDialog,
|
156
|
|
- treatmentSummaryDialog
|
|
243
|
+ treatmentSummaryDialog,
|
157
|
244
|
},
|
158
|
245
|
data() {
|
159
|
246
|
return {
|
|
@@ -163,29 +250,29 @@ export default {
|
163
|
250
|
yc: false,
|
164
|
251
|
name: "张三",
|
165
|
252
|
sex: "女",
|
166
|
|
- age: 90
|
|
253
|
+ age: 90,
|
167
|
254
|
},
|
168
|
255
|
{
|
169
|
256
|
state: 3,
|
170
|
257
|
yc: true,
|
171
|
258
|
name: "张三",
|
172
|
259
|
sex: "女",
|
173
|
|
- age: 90
|
|
260
|
+ age: 90,
|
174
|
261
|
},
|
175
|
262
|
{
|
176
|
263
|
state: 4,
|
177
|
264
|
yc: true,
|
178
|
265
|
name: "张三",
|
179
|
266
|
sex: "女",
|
180
|
|
- age: 90
|
|
267
|
+ age: 90,
|
181
|
268
|
},
|
182
|
269
|
{
|
183
|
270
|
state: 1,
|
184
|
271
|
yc: true,
|
185
|
272
|
name: "张三",
|
186
|
273
|
sex: "女",
|
187
|
|
- age: 90
|
188
|
|
- }
|
|
274
|
+ age: 90,
|
|
275
|
+ },
|
189
|
276
|
],
|
190
|
277
|
//
|
191
|
278
|
longAdvices: [],
|
|
@@ -236,20 +323,20 @@ export default {
|
236
|
323
|
headNurses: [],
|
237
|
324
|
lastDialysisPrescribe: { id: 0 },
|
238
|
325
|
temp_schedual: null,
|
239
|
|
- date:'',
|
240
|
|
- modedata:0,
|
241
|
|
- stockType:[],
|
|
326
|
+ date: "",
|
|
327
|
+ modedata: 0,
|
|
328
|
+ stockType: [],
|
242
|
329
|
};
|
243
|
330
|
},
|
244
|
331
|
props: {
|
245
|
332
|
schedules: {
|
246
|
|
- type: Array
|
|
333
|
+ type: Array,
|
247
|
334
|
},
|
248
|
|
- patientStateVal:Number
|
|
335
|
+ patientStateVal: Number,
|
249
|
336
|
},
|
250
|
|
-
|
|
337
|
+
|
251
|
338
|
methods: {
|
252
|
|
- stateColor: function(schedual) {
|
|
339
|
+ stateColor: function (schedual) {
|
253
|
340
|
var state = this.computeState(schedual);
|
254
|
341
|
if (state == 1) {
|
255
|
342
|
return "blue";
|
|
@@ -261,7 +348,7 @@ export default {
|
261
|
348
|
return "blue";
|
262
|
349
|
}
|
263
|
350
|
},
|
264
|
|
- functionColor: function(schedual) {
|
|
351
|
+ functionColor: function (schedual) {
|
265
|
352
|
var state = this.computeState(schedual);
|
266
|
353
|
if (state == 1 || state == 3) {
|
267
|
354
|
return "blue";
|
|
@@ -271,7 +358,7 @@ export default {
|
271
|
358
|
return "blue";
|
272
|
359
|
}
|
273
|
360
|
},
|
274
|
|
- borderColor: function(schedual) {
|
|
361
|
+ borderColor: function (schedual) {
|
275
|
362
|
var yc = this.isAbnormal(schedual);
|
276
|
363
|
if (yc == true) {
|
277
|
364
|
return "red";
|
|
@@ -279,7 +366,7 @@ export default {
|
279
|
366
|
return "gray";
|
280
|
367
|
}
|
281
|
368
|
},
|
282
|
|
- stateText: function(schedual) {
|
|
369
|
+ stateText: function (schedual) {
|
283
|
370
|
var state = this.computeState(schedual);
|
284
|
371
|
if (state == 1) {
|
285
|
372
|
return "已上机";
|
|
@@ -292,7 +379,7 @@ export default {
|
292
|
379
|
return "未上机";
|
293
|
380
|
}
|
294
|
381
|
},
|
295
|
|
- computeState: function(schedual) {
|
|
382
|
+ computeState: function (schedual) {
|
296
|
383
|
if (schedual.dialysis_order == null) {
|
297
|
384
|
// 未上机
|
298
|
385
|
return 4;
|
|
@@ -311,7 +398,7 @@ export default {
|
311
|
398
|
}
|
312
|
399
|
},
|
313
|
400
|
|
314
|
|
- orderState: function(schedual) {
|
|
401
|
+ orderState: function (schedual) {
|
315
|
402
|
if (schedual.dialysis_order == null) {
|
316
|
403
|
// 未上机
|
317
|
404
|
return 4;
|
|
@@ -329,10 +416,10 @@ export default {
|
329
|
416
|
return 1;
|
330
|
417
|
}
|
331
|
418
|
},
|
332
|
|
- isAbnormal: function(schedual) {
|
|
419
|
+ isAbnormal: function (schedual) {
|
333
|
420
|
return false; // schedual.yc;
|
334
|
421
|
},
|
335
|
|
- timeTypeText: function(schedual) {
|
|
422
|
+ timeTypeText: function (schedual) {
|
336
|
423
|
if (schedual.schedule_type == 1) {
|
337
|
424
|
return "上午";
|
338
|
425
|
} else if (schedual.schedule_type == 2) {
|
|
@@ -341,7 +428,7 @@ export default {
|
341
|
428
|
return "晚上";
|
342
|
429
|
}
|
343
|
430
|
},
|
344
|
|
- genderText: function(schedual) {
|
|
431
|
+ genderText: function (schedual) {
|
345
|
432
|
if (schedual.patient.gender == 0) {
|
346
|
433
|
return "未知";
|
347
|
434
|
} else if (schedual.patient.gender == 1) {
|
|
@@ -350,7 +437,7 @@ export default {
|
350
|
437
|
return "女";
|
351
|
438
|
}
|
352
|
439
|
},
|
353
|
|
- age: function(schedual) {
|
|
440
|
+ age: function (schedual) {
|
354
|
441
|
if (schedual.patient.birthday == 0) {
|
355
|
442
|
return "";
|
356
|
443
|
} else {
|
|
@@ -367,7 +454,7 @@ export default {
|
367
|
454
|
// // console.log(birthdayYear)
|
368
|
455
|
// return nowYear - birthdayYear
|
369
|
456
|
},
|
370
|
|
- getAge: function(val) {
|
|
457
|
+ getAge: function (val) {
|
371
|
458
|
var thisLen = val.patient.id_card_no.length;
|
372
|
459
|
var birth = "";
|
373
|
460
|
if (thisLen == 15) {
|
|
@@ -385,7 +472,7 @@ export default {
|
385
|
472
|
var age = jsGetAge(birthtwo, "-");
|
386
|
473
|
return age;
|
387
|
474
|
},
|
388
|
|
- detailAction: function(schedual) {
|
|
475
|
+ detailAction: function (schedual) {
|
389
|
476
|
var patient_id = schedual.patient_id;
|
390
|
477
|
var date = schedual.schedule_date;
|
391
|
478
|
this.$router.push({
|
|
@@ -394,42 +481,42 @@ export default {
|
394
|
481
|
patient_id: patient_id,
|
395
|
482
|
date: date,
|
396
|
483
|
patient_name: schedual.patient.name,
|
397
|
|
- mode_id:schedual.mode_id
|
398
|
|
- }
|
|
484
|
+ mode_id: schedual.mode_id,
|
|
485
|
+ },
|
399
|
486
|
});
|
400
|
487
|
},
|
401
|
488
|
//
|
402
|
|
- getScheduleDetail: function() {
|
|
489
|
+ getScheduleDetail: function () {
|
403
|
490
|
var dateStr = parseTime(this.date, "{y}-{m}-{d}");
|
404
|
491
|
this.doctor_advices = [];
|
405
|
|
- getDialysisScheduleDetail(this.patient_id, dateStr).then(rs => {
|
|
492
|
+ getDialysisScheduleDetail(this.patient_id, dateStr).then((rs) => {
|
406
|
493
|
var resp = rs.data;
|
407
|
494
|
if (resp.state == 1) {
|
408
|
495
|
var patient = resp.data.patient; // 患者信息
|
409
|
|
-
|
|
496
|
+
|
410
|
497
|
var schedual = resp.data.schedual; // 患者排班信息
|
411
|
498
|
var prescription = resp.data.prescription; // 透析处方
|
412
|
|
- if(prescription!=null){
|
413
|
|
- if(prescription.body_fluid == -2 ){
|
414
|
|
- prescription.body_fluid = 0
|
415
|
|
- }
|
|
499
|
+ if (prescription != null) {
|
|
500
|
+ if (prescription.body_fluid == -2) {
|
|
501
|
+ prescription.body_fluid = 0;
|
|
502
|
+ }
|
416
|
503
|
}
|
417
|
|
- console.log("透析处方323332323223323223",prescription)
|
|
504
|
+ console.log("透析处方323332323223323223", prescription);
|
418
|
505
|
var solution = resp.data.solution; // 透析方案
|
419
|
506
|
var receiver_treatment_access = resp.data.receiver_treatment_access; // 接诊评估
|
420
|
|
- console.log("receiver_treatment_access",receiver_treatment_access)
|
|
507
|
+ console.log("receiver_treatment_access", receiver_treatment_access);
|
421
|
508
|
var predialysis_evaluation = resp.data.predialysis_evaluation; // 透前评估
|
422
|
|
- console.log("透前评估",predialysis_evaluation)
|
423
|
|
- if(predialysis_evaluation !=null){
|
424
|
|
- if(predialysis_evaluation.blood_access_part_id == -2){
|
425
|
|
- predialysis_evaluation.blood_access_part_id = 0
|
426
|
|
- }
|
427
|
|
- }
|
|
509
|
+ console.log("透前评估", predialysis_evaluation);
|
|
510
|
+ if (predialysis_evaluation != null) {
|
|
511
|
+ if (predialysis_evaluation.blood_access_part_id == -2) {
|
|
512
|
+ predialysis_evaluation.blood_access_part_id = 0;
|
|
513
|
+ }
|
|
514
|
+ }
|
428
|
515
|
var doctor_advices = resp.data.doctor_advices; // 临时医嘱
|
429
|
|
-
|
|
516
|
+
|
430
|
517
|
var double_check = resp.data.double_check; // 双人核对
|
431
|
518
|
var assessment_after_dislysis = resp.data.assessment_after_dislysis; // 透后评估
|
432
|
|
-
|
|
519
|
+
|
433
|
520
|
var treatment_summary = resp.data.treatment_summary; // 治疗小结
|
434
|
521
|
var monitor_records = resp.data.monitor_records; // 透析监测
|
435
|
522
|
var dialysis_order = resp.data.dialysis_order; // 透析记录
|
|
@@ -449,11 +536,11 @@ export default {
|
449
|
536
|
var aliquid_info = resp.data.aliquid_info;
|
450
|
537
|
|
451
|
538
|
var lastPredialysisEvaluation = resp.data.lastPredialysisEvaluation;
|
452
|
|
- console.log("上次透前评估",lastPredialysisEvaluation)
|
453
|
|
- if(lastPredialysisEvaluation !=null){
|
454
|
|
- if(lastPredialysisEvaluation.blood_access_part_id == -2){
|
455
|
|
- lastPredialysisEvaluation.blood_access_part_id = 0
|
456
|
|
- }
|
|
539
|
+ console.log("上次透前评估", lastPredialysisEvaluation);
|
|
540
|
+ if (lastPredialysisEvaluation != null) {
|
|
541
|
+ if (lastPredialysisEvaluation.blood_access_part_id == -2) {
|
|
542
|
+ lastPredialysisEvaluation.blood_access_part_id = 0;
|
|
543
|
+ }
|
457
|
544
|
}
|
458
|
545
|
var lastMonitorRecord = resp.data.lastMonitorRecord;
|
459
|
546
|
var lastAssessmentAfterDislysis =
|
|
@@ -462,11 +549,11 @@ export default {
|
462
|
549
|
var lastDryWeightDislysis = resp.data.lastDryWeightDislysis;
|
463
|
550
|
|
464
|
551
|
var system_prescribe = resp.data.system_prescribe;
|
465
|
|
-
|
466
|
|
- var stockType = resp.data.stockType
|
467
|
|
- this.stockType = stockType
|
468
|
|
- console.log("元单快乐222222",this.stockType)
|
469
|
|
-
|
|
552
|
+
|
|
553
|
+ var stockType = resp.data.stockType;
|
|
554
|
+ this.stockType = stockType;
|
|
555
|
+ console.log("元单快乐222222", this.stockType);
|
|
556
|
+
|
470
|
557
|
this.$refs.prescription.setLastRecord(
|
471
|
558
|
schedual,
|
472
|
559
|
lastAssessmentAfterDislysis,
|
|
@@ -505,9 +592,9 @@ export default {
|
505
|
592
|
this.patient = patient;
|
506
|
593
|
this.schedual = schedual == null ? { id: 0 } : schedual;
|
507
|
594
|
this.prescription = prescription == null ? { id: 0 } : prescription;
|
508
|
|
- console.log('this.prescription',this.prescription)
|
|
595
|
+ console.log("this.prescription", this.prescription);
|
509
|
596
|
this.solution = solution == null ? { id: 0 } : solution;
|
510
|
|
- console.log('this.solution',this.solution)
|
|
597
|
+ console.log("this.solution", this.solution);
|
511
|
598
|
this.receiver_treatment_access =
|
512
|
599
|
receiver_treatment_access == null
|
513
|
600
|
? { id: 0 }
|
|
@@ -533,8 +620,6 @@ export default {
|
533
|
620
|
this.devices = resp.data.devices;
|
534
|
621
|
this.device_numbers = resp.data.device_numbers;
|
535
|
622
|
|
536
|
|
-
|
537
|
|
-
|
538
|
623
|
var device_map = {};
|
539
|
624
|
for (let index = 0; index < this.devices.length; index++) {
|
540
|
625
|
const device = this.devices[index];
|
|
@@ -555,10 +640,9 @@ export default {
|
555
|
640
|
device_number_map[device_number.id] = device_number;
|
556
|
641
|
}
|
557
|
642
|
this.device_number_map = device_number_map;
|
558
|
|
- this.getLongAdvice()
|
|
643
|
+ this.getLongAdvice();
|
559
|
644
|
} else {
|
560
|
645
|
this.$message.error(resp.msg);
|
561
|
|
-
|
562
|
646
|
}
|
563
|
647
|
|
564
|
648
|
if (this.lastDialysisPrescribe != null) {
|
|
@@ -571,9 +655,9 @@ export default {
|
571
|
655
|
},
|
572
|
656
|
getLongAdvice() {
|
573
|
657
|
let params = {
|
574
|
|
- patient_id: this.patient_id
|
|
658
|
+ patient_id: this.patient_id,
|
575
|
659
|
};
|
576
|
|
- getLongAdvice(params).then(rs => {
|
|
660
|
+ getLongAdvice(params).then((rs) => {
|
577
|
661
|
var resp = rs.data;
|
578
|
662
|
if (resp.state == 1) {
|
579
|
663
|
var status = parseInt(resp.data.status);
|
|
@@ -616,48 +700,49 @@ export default {
|
616
|
700
|
}
|
617
|
701
|
});
|
618
|
702
|
},
|
619
|
|
- adviceFunc: function() {
|
|
703
|
+ adviceFunc: function () {
|
620
|
704
|
this.$emit("advice");
|
621
|
705
|
},
|
622
|
|
- open(schedual){
|
623
|
|
-
|
624
|
|
- this.date = schedual.schedule_date
|
625
|
|
- this.patient_id = schedual.patient_id
|
626
|
|
- this.modedata = 1
|
627
|
|
- this.getScheduleDetail()
|
|
706
|
+ open(schedual) {
|
|
707
|
+ this.date = schedual.schedule_date;
|
|
708
|
+ this.patient_id = schedual.patient_id;
|
|
709
|
+ this.modedata = 1;
|
|
710
|
+ this.getScheduleDetail();
|
628
|
711
|
// this.getLongAdvice()
|
629
|
|
- this.$refs.prescription.show(this.prescription,schedual);
|
630
|
|
-
|
|
712
|
+ this.$refs.prescription.show(this.prescription, schedual);
|
631
|
713
|
},
|
632
|
|
- open1(schedual){
|
633
|
|
- this.date = schedual.schedule_date
|
634
|
|
- this.patient_id = schedual.patient_id
|
635
|
|
- this.getScheduleDetail()
|
636
|
|
- this.getLongAdvice()
|
637
|
|
- this.$refs.treatmentSummary.show(this.treatment_summary,this.date);
|
638
|
|
-
|
|
714
|
+ open1(schedual) {
|
|
715
|
+ this.date = schedual.schedule_date;
|
|
716
|
+ this.patient_id = schedual.patient_id;
|
|
717
|
+ this.getScheduleDetail();
|
|
718
|
+ this.getLongAdvice();
|
|
719
|
+ this.$refs.treatmentSummary.show(this.treatment_summary, this.date);
|
639
|
720
|
},
|
640
|
|
- getTime(date){
|
641
|
|
- date = new Date(date * 1000)
|
642
|
|
- var Y = date.getFullYear() + '-';
|
643
|
|
- var M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1);
|
644
|
|
- var D = (date.getDate() < 10 ? '0'+date.getDate() : date.getDate());
|
645
|
|
- var h = (date.getHours() < 10 ? '0'+date.getHours() : date.getHours());
|
646
|
|
- var m = (date.getMinutes() < 10 ? '0'+date.getMinutes() : date.getMinutes());
|
647
|
|
- var s = (date.getSeconds() < 10 ? '0'+date.getSeconds() : date.getSeconds());
|
648
|
|
-
|
649
|
|
- let strDate = h + ':' + m;
|
|
721
|
+ getTime(date) {
|
|
722
|
+ date = new Date(date * 1000);
|
|
723
|
+ var Y = date.getFullYear() + "-";
|
|
724
|
+ var M =
|
|
725
|
+ date.getMonth() + 1 < 10
|
|
726
|
+ ? "0" + (date.getMonth() + 1)
|
|
727
|
+ : date.getMonth() + 1;
|
|
728
|
+ var D = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
|
|
729
|
+ var h = date.getHours() < 10 ? "0" + date.getHours() : date.getHours();
|
|
730
|
+ var m =
|
|
731
|
+ date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes();
|
|
732
|
+ var s =
|
|
733
|
+ date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds();
|
|
734
|
+
|
|
735
|
+ let strDate = h + ":" + m;
|
650
|
736
|
return strDate;
|
651
|
737
|
},
|
652
|
|
- modeColor (id) {
|
|
738
|
+ modeColor(id) {
|
653
|
739
|
if (id == 1) {
|
654
|
|
-
|
655
|
740
|
} else if (id == 2) {
|
656
|
|
- return 'modeRed'
|
|
741
|
+ return "modeRed";
|
657
|
742
|
} else if (id == 3) {
|
658
|
|
- return 'modePurple'
|
|
743
|
+ return "modePurple";
|
659
|
744
|
}
|
660
|
|
- }
|
|
745
|
+ },
|
661
|
746
|
},
|
662
|
747
|
};
|
663
|
748
|
</script>
|
|
@@ -716,7 +801,7 @@ export default {
|
716
|
801
|
.right {
|
717
|
802
|
// float: left;
|
718
|
803
|
// text-align: left;
|
719
|
|
- display:flex;
|
|
804
|
+ display: flex;
|
720
|
805
|
align-items: center;
|
721
|
806
|
margin-top: 6px;
|
722
|
807
|
.name {
|
|
@@ -725,7 +810,7 @@ export default {
|
725
|
810
|
font-weight: bold;
|
726
|
811
|
height: 20px;
|
727
|
812
|
line-height: 20px;
|
728
|
|
- margin-right:10px;
|
|
813
|
+ margin-right: 10px;
|
729
|
814
|
.yc {
|
730
|
815
|
background: #ff7979;
|
731
|
816
|
color: #fff;
|
|
@@ -744,7 +829,7 @@ export default {
|
744
|
829
|
color: #7b8a97;
|
745
|
830
|
}
|
746
|
831
|
}
|
747
|
|
- .tip1{
|
|
832
|
+ .tip1 {
|
748
|
833
|
background: #4fc7cb;
|
749
|
834
|
border-radius: 5px;
|
750
|
835
|
text-align: center;
|
|
@@ -756,7 +841,7 @@ export default {
|
756
|
841
|
height: 24px;
|
757
|
842
|
line-height: 24px;
|
758
|
843
|
}
|
759
|
|
- .tip2{
|
|
844
|
+ .tip2 {
|
760
|
845
|
background: #7bce91;
|
761
|
846
|
border-radius: 5px;
|
762
|
847
|
text-align: center;
|
|
@@ -783,7 +868,7 @@ export default {
|
783
|
868
|
border-radius: 4px;
|
784
|
869
|
margin: 0 auto;
|
785
|
870
|
font-size: 12px;
|
786
|
|
- margin-top:4px;
|
|
871
|
+ margin-top: 4px;
|
787
|
872
|
display: inline-block;
|
788
|
873
|
}
|
789
|
874
|
.blue {
|
|
@@ -807,38 +892,38 @@ export default {
|
807
|
892
|
}
|
808
|
893
|
}
|
809
|
894
|
}
|
810
|
|
- .dislysisInfo{
|
|
895
|
+ .dislysisInfo {
|
811
|
896
|
color: rgb(123, 138, 151);
|
812
|
897
|
border-bottom: 1px solid rgb(229, 229, 229);
|
813
|
898
|
padding-left: 80px;
|
814
|
|
- >p{
|
|
899
|
+ > p {
|
815
|
900
|
margin-bottom: 5px;
|
816
|
|
- overflow:hidden;
|
817
|
|
- text-overflow:ellipsis;
|
818
|
|
- white-space:nowrap;
|
|
901
|
+ overflow: hidden;
|
|
902
|
+ text-overflow: ellipsis;
|
|
903
|
+ white-space: nowrap;
|
819
|
904
|
}
|
820
|
905
|
}
|
821
|
906
|
}
|
822
|
907
|
.red {
|
823
|
908
|
border: 1px #ff7979 solid;
|
824
|
909
|
}
|
825
|
|
-#modeRed{
|
826
|
|
- color:#ed5555;
|
|
910
|
+#modeRed {
|
|
911
|
+ color: #ed5555;
|
827
|
912
|
}
|
828
|
|
-#modePurple{
|
|
913
|
+#modePurple {
|
829
|
914
|
color: #53b86e;
|
830
|
915
|
}
|
831
|
916
|
|
832
|
|
-.difficult{
|
833
|
|
- width: 100px;
|
834
|
|
- height: 40px;
|
|
917
|
+.difficult {
|
|
918
|
+ width: 82px;
|
|
919
|
+ height: 33px;
|
835
|
920
|
border-radius: 0 0 0 30px;
|
836
|
921
|
background: #78d660;
|
837
|
922
|
text-align: center;
|
838
|
|
- line-height: 40px;
|
|
923
|
+ line-height: 33px;
|
839
|
924
|
position: relative;
|
840
|
|
- bottom: 64px;
|
841
|
|
- left: 179px;
|
|
925
|
+ bottom: 9px;
|
|
926
|
+ left: 63px;
|
842
|
927
|
color: white;
|
843
|
928
|
}
|
844
|
929
|
</style>
|