|
@@ -7,143 +7,146 @@
|
7
|
7
|
element-loading-text="拼命加载中"
|
8
|
8
|
element-loading-spinner="el-icon-loading"
|
9
|
9
|
element-loading-background="rgba(0, 0, 0, 0.8)"
|
|
10
|
+ v-if="dialysisShow"
|
10
|
11
|
>
|
11
|
|
- <div style="padding-top: 56px;width:100%;">
|
12
|
|
-
|
13
|
|
- <nav-igation
|
14
|
|
- ref="nav"
|
15
|
|
- title="弹窗导航"
|
16
|
|
- @advice="adviceFunc"
|
17
|
|
- :patient="patient"
|
18
|
|
- :schedual="schedual"
|
19
|
|
- :prescription="prescription"
|
20
|
|
- :solution="solution"
|
21
|
|
- :receiver_treatment_access="receiver_treatment_access"
|
22
|
|
- :predialysis_evaluation="predialysis_evaluation"
|
23
|
|
- :doctor_advices="doctor_advices"
|
24
|
|
- :double_check="double_check"
|
25
|
|
- :assessment_after_dislysis="assessment_after_dislysis"
|
26
|
|
- :treatment_summary="treatment_summary"
|
27
|
|
- :monitor_records="monitor_records"
|
28
|
|
- :dialysis_order="dialysis_order"
|
29
|
|
- :admin_users="admin_users"
|
30
|
|
- :devices="devices"
|
31
|
|
- :device_numbers="device_numbers"
|
32
|
|
- :admin_user_map="admin_user_map"
|
33
|
|
- :device_map="device_map"
|
34
|
|
- :device_number_map="device_number_map"
|
35
|
|
- :niprocart_info="niprocart_info"
|
36
|
|
- :jms_info="jms_info"
|
37
|
|
- :fistula_needle_set_info="fistula_needle_set_info"
|
38
|
|
- :fistula_needle_set_16_info="fistula_needle_set_16_info"
|
39
|
|
- :hemoperfusion_info="hemoperfusion_info"
|
40
|
|
- :dialyser_sterilised_info="dialyser_sterilised_info"
|
41
|
|
- :filtryzer_info="filtryzer_info"
|
42
|
|
- :dialyzers_info="dialyzers_info"
|
43
|
|
- :injector_info="injector_info"
|
44
|
|
- :bloodlines_info="bloodlines_info"
|
45
|
|
- :tubingHemodialysis_info="tubingHemodialysis_info"
|
46
|
|
- :safe_package_info="safe_package_info"
|
47
|
|
- :aliquid_info="aliquid_info"
|
48
|
|
- :config="config"
|
49
|
|
- :longAdvices="longAdvices"
|
50
|
|
- :waitUploadAdvices="waitUploadAdvices"
|
51
|
|
- :is_open="is_open"
|
52
|
|
- :last_predialysis_evaluation="lastPredialysisEvaluation"
|
53
|
|
- :last_monitor_record="lastMonitorRecord"
|
54
|
|
- :last_assessment_after_dislysis="lastAssessmentAfterDislysis"
|
55
|
|
- :last_dialysis_prescribe="lastDialysisPrescribe"
|
56
|
|
- :last_dryWeight_dislysis="lastDryWeightDislysis"
|
57
|
|
- :special_premission="headNurses"
|
58
|
|
- @assessmentAfterDislysis="assessmentAfterDislysisFunc"
|
59
|
|
- :system_prescribe="system_prescribe"
|
60
|
|
- :his_is_open="his_is_open"
|
61
|
|
- :lastAssessment="lastAssessment"
|
62
|
|
- :stockType="stockType"
|
63
|
|
- >
|
64
|
|
- </nav-igation>
|
65
|
|
-
|
66
|
|
-
|
67
|
|
-
|
68
|
|
- <basic-infor
|
69
|
|
- :patient="patient"
|
70
|
|
- :device_number="schedual.id == 0 ? '' : schedual.device_number.number"
|
71
|
|
- :steps="steps"
|
72
|
|
- title="基本信息"
|
73
|
|
- ></basic-infor>
|
74
|
|
-
|
75
|
|
- <dialysis-prescription
|
76
|
|
- :prescription="prescription"
|
77
|
|
- :solution="solution"
|
78
|
|
- :device_map="device_map"
|
79
|
|
- :preparestock="preparestock"
|
80
|
|
- title="透析处方"
|
81
|
|
- ></dialysis-prescription>
|
82
|
|
-
|
83
|
|
-
|
84
|
|
-
|
85
|
|
- <!-- <past-data class="往期数据"></past-data> -->
|
86
|
|
- <div style="height: 20px;background-color: #f6f8f9"></div>
|
87
|
|
- <accepts-assessment
|
88
|
|
- :record="receiver_treatment_access"
|
89
|
|
- title="接诊评估"
|
90
|
|
- ></accepts-assessment>
|
91
|
|
-
|
92
|
|
- <assessment-before
|
93
|
|
- :record="predialysis_evaluation"
|
94
|
|
- ref="assessment_before"
|
95
|
|
- title="透前评估"
|
96
|
|
- ></assessment-before>
|
97
|
|
-
|
98
|
|
- <stat-order
|
99
|
|
- ref="stat_order"
|
100
|
|
- :advices="doctor_advices"
|
101
|
|
- :doctor_map="admin_user_map"
|
102
|
|
- title="临时医嘱"
|
103
|
|
- ></stat-order>
|
104
|
|
-
|
105
|
|
- <double-check
|
106
|
|
- ref="double_check"
|
107
|
|
- :record="double_check"
|
108
|
|
- :admin_map="admin_user_map"
|
109
|
|
- title="双人核对 "
|
110
|
|
- ></double-check>
|
111
|
|
-
|
112
|
|
- <dialysis-computer
|
113
|
|
- ref="dialysis_computer"
|
114
|
|
- :record="dialysis_order"
|
115
|
|
- :admin_map="admin_user_map"
|
116
|
|
- :device_number_map="device_number_map"
|
117
|
|
- title="透析上机 "
|
118
|
|
- ></dialysis-computer>
|
119
|
|
-
|
120
|
|
- <dialysis-monitoring
|
121
|
|
- ref="monitoring"
|
122
|
|
- :monitores="monitor_records"
|
123
|
|
- title="透析监测"
|
124
|
|
- ></dialysis-monitoring>
|
125
|
|
-
|
126
|
|
-
|
127
|
|
- <dialysis-off
|
128
|
|
- ref="dialysis_off"
|
129
|
|
- :record="dialysis_order"
|
130
|
|
- :admin_map="admin_user_map"
|
131
|
|
- title="透析下机 "
|
132
|
|
- ></dialysis-off>
|
133
|
|
-
|
134
|
|
- <assessment-after
|
135
|
|
- ref="assessment_after"
|
136
|
|
- :record="assessment_after_dislysis"
|
137
|
|
- title="透后评估"
|
138
|
|
- ></assessment-after>
|
139
|
|
-
|
140
|
|
- <treatment-of
|
141
|
|
- ref="treatment_of"
|
142
|
|
- :record="treatment_summary"
|
143
|
|
- title="治疗小结"
|
144
|
|
- ></treatment-of>
|
|
12
|
+ <div style="padding-top: 56px;width:100%;" >
|
|
13
|
+
|
|
14
|
+ <nav-igation
|
|
15
|
+ ref="nav"
|
|
16
|
+ title="弹窗导航"
|
|
17
|
+ @advice="adviceFunc"
|
|
18
|
+ :patient="patient"
|
|
19
|
+ :schedual="schedual"
|
|
20
|
+ :prescription="prescription"
|
|
21
|
+ :solution="solution"
|
|
22
|
+ :receiver_treatment_access="receiver_treatment_access"
|
|
23
|
+ :predialysis_evaluation="predialysis_evaluation"
|
|
24
|
+ :doctor_advices="doctor_advices"
|
|
25
|
+ :double_check="double_check"
|
|
26
|
+ :assessment_after_dislysis="assessment_after_dislysis"
|
|
27
|
+ :treatment_summary="treatment_summary"
|
|
28
|
+ :monitor_records="monitor_records"
|
|
29
|
+ :dialysis_order="dialysis_order"
|
|
30
|
+ :admin_users="admin_users"
|
|
31
|
+ :devices="devices"
|
|
32
|
+ :device_numbers="device_numbers"
|
|
33
|
+ :admin_user_map="admin_user_map"
|
|
34
|
+ :device_map="device_map"
|
|
35
|
+ :device_number_map="device_number_map"
|
|
36
|
+ :niprocart_info="niprocart_info"
|
|
37
|
+ :jms_info="jms_info"
|
|
38
|
+ :fistula_needle_set_info="fistula_needle_set_info"
|
|
39
|
+ :fistula_needle_set_16_info="fistula_needle_set_16_info"
|
|
40
|
+ :hemoperfusion_info="hemoperfusion_info"
|
|
41
|
+ :dialyser_sterilised_info="dialyser_sterilised_info"
|
|
42
|
+ :filtryzer_info="filtryzer_info"
|
|
43
|
+ :dialyzers_info="dialyzers_info"
|
|
44
|
+ :injector_info="injector_info"
|
|
45
|
+ :bloodlines_info="bloodlines_info"
|
|
46
|
+ :tubingHemodialysis_info="tubingHemodialysis_info"
|
|
47
|
+ :safe_package_info="safe_package_info"
|
|
48
|
+ :aliquid_info="aliquid_info"
|
|
49
|
+ :config="config"
|
|
50
|
+ :longAdvices="longAdvices"
|
|
51
|
+ :waitUploadAdvices="waitUploadAdvices"
|
|
52
|
+ :is_open="is_open"
|
|
53
|
+ :last_predialysis_evaluation="lastPredialysisEvaluation"
|
|
54
|
+ :last_monitor_record="lastMonitorRecord"
|
|
55
|
+ :last_assessment_after_dislysis="lastAssessmentAfterDislysis"
|
|
56
|
+ :last_dialysis_prescribe="lastDialysisPrescribe"
|
|
57
|
+ :last_dryWeight_dislysis="lastDryWeightDislysis"
|
|
58
|
+ :special_premission="headNurses"
|
|
59
|
+ @assessmentAfterDislysis="assessmentAfterDislysisFunc"
|
|
60
|
+ :system_prescribe="system_prescribe"
|
|
61
|
+ :his_is_open="his_is_open"
|
|
62
|
+ :lastAssessment="lastAssessment"
|
|
63
|
+ :stockType="stockType"
|
|
64
|
+ >
|
|
65
|
+ </nav-igation>
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+ <basic-infor
|
|
70
|
+ :patient="patient"
|
|
71
|
+ :device_number="schedual.id == 0 ? '' : schedual.device_number.number"
|
|
72
|
+ :steps="steps"
|
|
73
|
+ title="基本信息"
|
|
74
|
+ ></basic-infor>
|
|
75
|
+
|
|
76
|
+ <dialysis-prescription
|
|
77
|
+ :prescription="prescription"
|
|
78
|
+ :solution="solution"
|
|
79
|
+ :device_map="device_map"
|
|
80
|
+ :preparestock="preparestock"
|
|
81
|
+ title="透析处方"
|
|
82
|
+ ></dialysis-prescription>
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+ <!-- <past-data class="往期数据"></past-data> -->
|
|
87
|
+ <div style="height: 20px;background-color: #f6f8f9"></div>
|
|
88
|
+ <accepts-assessment
|
|
89
|
+ :record="receiver_treatment_access"
|
|
90
|
+ title="接诊评估"
|
|
91
|
+ ></accepts-assessment>
|
|
92
|
+
|
|
93
|
+ <assessment-before
|
|
94
|
+ :record="predialysis_evaluation"
|
|
95
|
+ ref="assessment_before"
|
|
96
|
+ title="透前评估"
|
|
97
|
+ ></assessment-before>
|
|
98
|
+
|
|
99
|
+ <stat-order
|
|
100
|
+ ref="stat_order"
|
|
101
|
+ :advices="doctor_advices"
|
|
102
|
+ :doctor_map="admin_user_map"
|
|
103
|
+ title="临时医嘱"
|
|
104
|
+ ></stat-order>
|
|
105
|
+
|
|
106
|
+ <double-check
|
|
107
|
+ ref="double_check"
|
|
108
|
+ :record="double_check"
|
|
109
|
+ :admin_map="admin_user_map"
|
|
110
|
+ title="双人核对 "
|
|
111
|
+ ></double-check>
|
|
112
|
+
|
|
113
|
+ <dialysis-computer
|
|
114
|
+ ref="dialysis_computer"
|
|
115
|
+ :record="dialysis_order"
|
|
116
|
+ :admin_map="admin_user_map"
|
|
117
|
+ :device_number_map="device_number_map"
|
|
118
|
+ title="透析上机 "
|
|
119
|
+ ></dialysis-computer>
|
|
120
|
+
|
|
121
|
+ <dialysis-monitoring
|
|
122
|
+ ref="monitoring"
|
|
123
|
+ :monitores="monitor_records"
|
|
124
|
+ title="透析监测"
|
|
125
|
+ ></dialysis-monitoring>
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+ <dialysis-off
|
|
129
|
+ ref="dialysis_off"
|
|
130
|
+ :record="dialysis_order"
|
|
131
|
+ :admin_map="admin_user_map"
|
|
132
|
+ title="透析下机 "
|
|
133
|
+ ></dialysis-off>
|
|
134
|
+
|
|
135
|
+ <assessment-after
|
|
136
|
+ ref="assessment_after"
|
|
137
|
+ :record="assessment_after_dislysis"
|
|
138
|
+ title="透后评估"
|
|
139
|
+ ></assessment-after>
|
|
140
|
+
|
|
141
|
+ <treatment-of
|
|
142
|
+ ref="treatment_of"
|
|
143
|
+ :record="treatment_summary"
|
|
144
|
+ title="治疗小结"
|
|
145
|
+ ></treatment-of>
|
145
|
146
|
</div>
|
|
147
|
+
|
146
|
148
|
</div>
|
|
149
|
+ <div style="padding-top: 56px;width:100%;text-align:center;font-size:22px;color:red;" v-else>该患者未排班,请先去排班</div>
|
147
|
150
|
</div>
|
148
|
151
|
</template>
|
149
|
152
|
|
|
@@ -194,7 +197,8 @@ export default {
|
194
|
197
|
},
|
195
|
198
|
props:{
|
196
|
199
|
record_date:String,
|
197
|
|
- patientid:String
|
|
200
|
+ patientid:Number,
|
|
201
|
+ dialysisShow:Boolean
|
198
|
202
|
},
|
199
|
203
|
data() {
|
200
|
204
|
return {
|
|
@@ -304,7 +308,8 @@ export default {
|
304
|
308
|
|
305
|
309
|
queueConfig:{},
|
306
|
310
|
stockType:[],
|
307
|
|
- preparestock:[]
|
|
311
|
+ preparestock:[],
|
|
312
|
+ dialysisShow:false
|
308
|
313
|
}
|
309
|
314
|
},
|
310
|
315
|
created() {
|
|
@@ -312,22 +317,73 @@ export default {
|
312
|
317
|
var date = this.record_date
|
313
|
318
|
this.patient_id = patient_id
|
314
|
319
|
this.date = date
|
|
320
|
+ var ymd = parseTime(new Date(), '{y}-{m}-{d}')
|
|
321
|
+ getDialysisSchedules(ymd).then(rs => {
|
|
322
|
+ var resp = rs.data
|
|
323
|
+ if (resp.state == 1) {
|
|
324
|
+ var schedules = resp.data.schedules
|
|
325
|
+ let arr = []
|
|
326
|
+ schedules.map(item => {
|
|
327
|
+ if(item.patient_id == this.patient_id){
|
|
328
|
+ arr.push(item.patient_id)
|
|
329
|
+ }
|
|
330
|
+ })
|
|
331
|
+ if(arr.length > 0){
|
|
332
|
+ this.dialysisShow = true
|
|
333
|
+ }else{
|
|
334
|
+ this.dialysisShow = false
|
|
335
|
+ }
|
|
336
|
+ console.log('this.dialysisShowthis.dialysisShowthis.dialysisShow',this.dialysisShow)
|
|
337
|
+ } else {
|
|
338
|
+ this.$message.error(resp.msg)
|
|
339
|
+ }
|
|
340
|
+ })
|
315
|
341
|
|
316
|
342
|
|
317
|
343
|
|
318
|
344
|
},
|
319
|
345
|
mounted() {
|
320
|
|
- this.getScheduleDetail()
|
321
|
|
- this.getLongAdvice()
|
|
346
|
+ if(this.dialysisShow == true){
|
|
347
|
+
|
|
348
|
+ this.getScheduleDetail()
|
|
349
|
+ this.getLongAdvice()
|
|
350
|
+ }
|
|
351
|
+
|
322
|
352
|
},
|
323
|
353
|
watch:{
|
324
|
354
|
patientid:{
|
325
|
355
|
handler(newVal){
|
|
356
|
+ var ymd = parseTime(new Date(), '{y}-{m}-{d}')
|
|
357
|
+ getDialysisSchedules(ymd).then(rs => {
|
|
358
|
+ var resp = rs.data
|
|
359
|
+ if (resp.state == 1) {
|
|
360
|
+ var schedules = resp.data.schedules
|
|
361
|
+ let arr = []
|
|
362
|
+ schedules.map(item => {
|
|
363
|
+ if(item.patient_id == this.patient_id){
|
|
364
|
+ arr.push(item.patient_id)
|
|
365
|
+ }
|
|
366
|
+ })
|
|
367
|
+ if(arr.length > 0){
|
|
368
|
+ this.dialysisShow = true
|
|
369
|
+ }else{
|
|
370
|
+ this.dialysisShow = false
|
|
371
|
+ }
|
|
372
|
+ console.log('this.dialysisShowthis.dialysisShowthis.dialysisShow',this.dialysisShow)
|
|
373
|
+ } else {
|
|
374
|
+ this.$message.error(resp.msg)
|
|
375
|
+ }
|
|
376
|
+ })
|
|
377
|
+ console.log('执行执行执行执行执行执行',this.dialysisShow)
|
|
378
|
+ if(this.dialysisShow == true){
|
|
379
|
+ console.log('执行')
|
326
|
380
|
this.patient_id = newVal
|
327
|
381
|
this.getScheduleDetail()
|
328
|
382
|
this.getLongAdvice()
|
329
|
|
- }
|
330
|
|
- }
|
|
383
|
+ }
|
|
384
|
+ },
|
|
385
|
+ deep:true
|
|
386
|
+ },
|
331
|
387
|
},
|
332
|
388
|
computed: {
|
333
|
389
|
websocket() {
|
|
@@ -444,14 +500,6 @@ export default {
|
444
|
500
|
// return schedules
|
445
|
501
|
}
|
446
|
502
|
},
|
447
|
|
- beforeDestroy(){
|
448
|
|
-
|
449
|
|
- let unObj = {
|
450
|
|
- cmd: "queue/unjoin",
|
451
|
|
- data: {type:3},
|
452
|
|
- };
|
453
|
|
- this.websocketSend(unObj)
|
454
|
|
- },
|
455
|
503
|
methods: {
|
456
|
504
|
adviceFunc() {
|
457
|
505
|
this.getScheduleDetail()
|
|
@@ -521,12 +569,13 @@ export default {
|
521
|
569
|
}
|
522
|
570
|
},
|
523
|
571
|
getScheduleDetail: function() {
|
|
572
|
+
|
524
|
573
|
this.loading = true
|
525
|
574
|
// var dateStr = parseTime(this.date, '{y}-{m}-{d}')
|
526
|
|
- if(this.$route.query.showView == true){
|
527
|
|
- this.loading = false
|
528
|
|
- return
|
529
|
|
- }
|
|
575
|
+ // if(this.$route.query.showView == true){
|
|
576
|
+ // this.loading = false
|
|
577
|
+ // return
|
|
578
|
+ // }
|
530
|
579
|
console.log('this.patient_id',this.patient_id)
|
531
|
580
|
console.log('this.date',this.date)
|
532
|
581
|
this.doctor_advices = []
|