|
@@ -38,8 +38,6 @@
|
38
|
38
|
</el-row>
|
39
|
39
|
<div class="page_lineUp">
|
40
|
40
|
<div class="lineUpTitle">
|
41
|
|
- <!-- <div>{{ this.$store.getters.xt_user.org.org_name }}<span> 温馨提示:请注意排队叫号,依次叫号就诊上机,谢谢配合</span></div>
|
42
|
|
- <div>{{ newdate }} {{ time }}</div> -->
|
43
|
41
|
</div>
|
44
|
42
|
<div class="lineUpMain">
|
45
|
43
|
<div class="lineUpMainLeft">
|
|
@@ -50,77 +48,15 @@
|
50
|
48
|
<p style="width:55%">透析时间</p>
|
51
|
49
|
|
52
|
50
|
</div>
|
53
|
|
- <!-- <div class="lineUpList">
|
54
|
|
- <div class="lineUpListOne" v-for="(item,index) in lineUpList" :key="index">
|
55
|
|
- <p style="width:12%" v-if="$store.getters.xt_user.org.id !=0 && $store.getters.xt_user.org.id!=10440">
|
56
|
|
- <span v-if="item.schedule_type == 1">上午</span>
|
57
|
|
- <span v-if="item.schedule_type == 2">下午</span>
|
58
|
|
- <span v-if="item.schedule_type == 3">晚上</span>
|
59
|
|
- {{ item.queue_no }}号
|
60
|
|
- </p>
|
61
|
|
- <p style="width:14%">{{ item.patient_name }}</p>
|
62
|
|
- <p style="width:14%" v-if="$store.getters.xt_user.org.id !=0 && $store.getters.xt_user.org.id !=10440">{{ item.dialysis_no }}</p>
|
63
|
|
- <p style="width:14%">{{ item.partition_name + item.bed_name }}</p>
|
64
|
|
- <p style="width:14%">
|
65
|
|
- <span v-if="item.status == 1">待接诊</span>
|
66
|
|
- <span v-if="item.status == 2">接诊中</span>
|
67
|
|
- <span v-if="item.status == 3">待上机</span>
|
68
|
|
- <span v-if="item.status == 4">透析中</span>
|
69
|
|
- <span v-if="item.status == 5">已下机</span>
|
70
|
|
- </p>
|
71
|
|
- <p style="width:14%">{{ item.start_time ? getDates(item.start_time) : '--' }}</p>
|
72
|
|
- <p style="width:16%">{{ item.end_time && item.start_time ? getDates(item.end_time) : '--' }}</p>
|
73
|
|
- </div>
|
74
|
|
- </div> -->
|
75
|
51
|
</div>
|
76
|
|
- <!-- <div class="callingBox">
|
77
|
|
- <div :class="(queueConfig.jzjhyc == 1 && queueConfig.sjjhyc == 0) ? 'callingBoxLeft1' : 'callingBoxLeft'" v-if="queueConfig.jzjhyc == 1">
|
78
|
|
- <div class="callingTitle"><span style="margin: 0 auto;">接<br />诊<br />叫<br />号</span></div>
|
79
|
|
- <div style="flex: 1;justify-content: space-between;display: flex;flex-direction: column;">
|
80
|
|
- <div class="callingTop" style="margin-bottom:10px;">
|
81
|
|
- <div class="callingTopTip"><span style="margin: 0 auto;">正在<br />接诊</span></div>
|
82
|
|
- <div class="callingContent">
|
83
|
|
- <div>
|
84
|
|
- <p><span v-for="(item,index) in (receivingPatient || '').slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
|
85
|
|
- <p><span v-for="(item,index) in (receivingPatient || '').slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
|
86
|
|
- </div>
|
87
|
|
- </div>
|
88
|
|
- </div>
|
89
|
|
- <div class="callingTop" style="border-radius: 0 0 15px 0;">
|
90
|
|
- <div class="callingTopTip"><span style="margin: 0 auto;">等待<br />接诊</span></div>
|
91
|
|
- <div class="callingContent">
|
92
|
|
- <div>
|
93
|
|
- <p><span v-for="(item,index) in (waitDoctorList || '').slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
|
94
|
|
- <p><span v-for="(item,index) in (waitDoctorList || '').slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
|
95
|
|
- </div>
|
96
|
|
- </div>
|
97
|
|
- </div>
|
98
|
|
- </div>
|
|
52
|
+ <div class="lineUpList">
|
|
53
|
+ <div class="lineUpListOne" v-for="(item,index) in lineUpList" :key="index">
|
|
54
|
+ <p style="width:12%" > {{ index+1 }} </p>
|
|
55
|
+ <p style="width:14%">{{ getPatientName(item.patient_id)}}</p>
|
|
56
|
+ <p style="width:14%">{{ getDialysisNo(item.patient_id) }}</p>
|
|
57
|
+ <p style="width:55%">{{getContent(item.child) }}</p>
|
99
|
58
|
</div>
|
100
|
|
- <div :class="(queueConfig.jzjhyc == 0 && queueConfig.sjjhyc == 1) ? 'callingBoxLeft1' : 'callingBoxLeft'" v-if="queueConfig.sjjhyc == 1">
|
101
|
|
- <div class="callingTitle newCallingTitle"><span style="margin: 0 auto;">上<br />机<br />叫<br />号</span></div>
|
102
|
|
- <div style="flex: 1;justify-content: space-between;display: flex;flex-direction: column;">
|
103
|
|
- <div class="callingTop" style="margin-bottom:10px;">
|
104
|
|
- <div class="callingTopTip newCallingTopTip"><span style="margin: 0 auto;">正在<br />叫号</span></div>
|
105
|
|
- <div class="callingContent newCallingContent">
|
106
|
|
- <div>
|
107
|
|
- <p><span v-for="(item,index) in (upPatientList || '').slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
|
108
|
|
- <p><span v-for="(item,index) in (upPatientList || '').slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
|
109
|
|
- </div>
|
110
|
|
- </div>
|
111
|
|
- </div>
|
112
|
|
- <div class="callingTop" style="border-radius: 0 0 15px 0;">
|
113
|
|
- <div class="callingTopTip newCallingTopTip"><span style="margin: 0 auto;">等待<br />叫号</span></div>
|
114
|
|
- <div class="callingContent newCallingContent">
|
115
|
|
- <div>
|
116
|
|
- <p><span v-for="(item,index) in (receivingPatient || '').slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
|
117
|
|
- <p><span v-for="(item,index) in (receivingPatient || '').slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
|
118
|
|
- </div>
|
119
|
|
- </div>
|
120
|
|
- </div>
|
121
|
|
- </div>
|
122
|
|
- </div>
|
123
|
|
- </div> -->
|
|
59
|
+ </div>
|
124
|
60
|
</div>
|
125
|
61
|
|
126
|
62
|
</div>
|
|
@@ -142,15 +78,10 @@
|
142
|
78
|
</div>
|
143
|
79
|
<div class="lineUpList">
|
144
|
80
|
<div class="lineUpListOne" v-for="(item,index) in lineUpList" :key="index">
|
145
|
|
- <p style="width:12%" > {{ item.xuhao }} </p>
|
146
|
|
- <p style="width:14%">{{ item.name }}</p>
|
147
|
|
- <p style="width:14%">{{ item.toux }}</p>
|
148
|
|
- <p style="width:55%">{{ item.touxtime }}</p>
|
149
|
|
-
|
150
|
|
- <!-- <p style="width:14%">{{ item.patient_name }}</p>
|
151
|
|
- <p style="width:14%">{{ item.partition_name + item.bed_name }}</p>
|
152
|
|
- <p style="width:14%">{{ item.start_time ? getDates(item.start_time) : '--' }}</p>
|
153
|
|
- <p style="width:16%">{{ item.end_time && item.start_time ? getDates(item.end_time) : '--' }}</p> -->
|
|
81
|
+ <p style="width:12%" > {{ index+1 }} </p>
|
|
82
|
+ <p style="width:14%">{{ getPatientName(item.patient_id)}}</p>
|
|
83
|
+ <p style="width:14%">{{ getDialysisNo(item.patient_id) }}</p>
|
|
84
|
+ <p style="width:55%">{{getContent(item.child) }}</p>
|
154
|
85
|
</div>
|
155
|
86
|
</div>
|
156
|
87
|
</div>
|
|
@@ -164,9 +95,11 @@
|
164
|
95
|
</template>
|
165
|
96
|
|
166
|
97
|
<script>
|
|
98
|
+import {getContextScheduleList} from "@/api/patient"
|
167
|
99
|
const moment = require('moment')
|
168
|
100
|
import BreadCrumb from "../components/bread-crumb";
|
169
|
101
|
import screenfull from "screenfull";
|
|
102
|
+import { uParseTime } from '@/utils/tools'
|
170
|
103
|
export default {
|
171
|
104
|
components:{
|
172
|
105
|
BreadCrumb
|
|
@@ -180,20 +113,7 @@ export default {
|
180
|
113
|
],
|
181
|
114
|
dialogTableVisible:false,
|
182
|
115
|
showSetting: false,
|
183
|
|
- lineUpList:[
|
184
|
|
- {xuhao:1,name:'张三',toux:1001,touxtime:'07-05 周一上午 HD 8号床 周三上午HD 9号床 周六上午HD 9号床'},
|
185
|
|
- // {xuhao:2,name:'李四',toux:1002,touxtime:'2023-07-03'},
|
186
|
|
- // {xuhao:3,name:'王五',toux:1003,touxtime:'2023-07-03'},
|
187
|
|
- // {xuhao:4,name:'赵六',toux:1004,touxtime:'2023-07-03'},
|
188
|
|
- // {xuhao:1,name:'肖雪',toux:1001,touxtime:'2023-07-03'},
|
189
|
|
- // {xuhao:2,name:'小舞',toux:1002,touxtime:'2023-07-03'},
|
190
|
|
- // {xuhao:3,name:'小明',toux:1003,touxtime:'2023-07-03'},
|
191
|
|
- // {xuhao:4,name:'小红',toux:1004,touxtime:'2023-07-03'},
|
192
|
|
- // {xuhao:1,name:'小雪',toux:1001,touxtime:'2023-07-03'},
|
193
|
|
- // {xuhao:2,name:'小王',toux:1002,touxtime:'2023-07-03'},
|
194
|
|
- // {xuhao:3,name:'小爱同学',toux:1003,touxtime:'2023-07-03'},
|
195
|
|
- // {xuhao:4,name:'小亦',toux:1004,touxtime:'2023-07-03'},
|
196
|
|
- ],
|
|
116
|
+ lineUpList:[],
|
197
|
117
|
count:0,
|
198
|
118
|
page:1,
|
199
|
119
|
timer:null,
|
|
@@ -212,8 +132,13 @@ export default {
|
212
|
132
|
|
213
|
133
|
voice:true,
|
214
|
134
|
a:1,
|
215
|
|
- newTimes:null
|
216
|
|
-
|
|
135
|
+ newTimes:null,
|
|
136
|
+ limit:6,
|
|
137
|
+ page:1,
|
|
138
|
+ total:0,
|
|
139
|
+ patientList:[],
|
|
140
|
+ deviceNumberList:[],
|
|
141
|
+ schedule:[],
|
217
|
142
|
}
|
218
|
143
|
},
|
219
|
144
|
computed: {
|
|
@@ -222,6 +147,7 @@ export default {
|
222
|
147
|
},
|
223
|
148
|
},
|
224
|
149
|
created(){
|
|
150
|
+ this.getlist()
|
225
|
151
|
if(sessionStorage.getItem('lineUpKey') != null){
|
226
|
152
|
if(sessionStorage.getItem('lineUpKey') == 1){
|
227
|
153
|
this.dialogTableVisible = true
|
|
@@ -264,67 +190,51 @@ export default {
|
264
|
190
|
}
|
265
|
191
|
}, 1000);
|
266
|
192
|
}
|
267
|
|
- // this.websocketMess();
|
|
193
|
+
|
268
|
194
|
},
|
269
|
195
|
mounted(){
|
270
|
196
|
|
271
|
|
- // this.timer = setInterval(() => {
|
272
|
|
- // if(this.page < Math.ceil(this.count / 6)){
|
273
|
|
- // console.log('执行',Math.ceil(this.count / 6),this.page)
|
274
|
|
- // this.page++
|
275
|
|
- // let obj = {
|
276
|
|
- // cmd: "queue/queuelist",
|
277
|
|
- // data: {page:this.page,size:6,sort:0}
|
278
|
|
- // };
|
279
|
|
- // this.websocketSend(obj)
|
280
|
|
- // setTimeout(() => {
|
281
|
|
- // this.websocketMess();
|
282
|
|
- // }, 1000);
|
283
|
|
- // }
|
284
|
|
- // else{
|
285
|
|
- // console.log('执行22223333')
|
286
|
|
- // this.page = 1
|
287
|
|
- // let a = {
|
288
|
|
- // cmd: "queue/queuelist",
|
289
|
|
- // data: {page:this.page,size:6,sort:0}
|
290
|
|
- // };
|
291
|
|
- // this.websocketSend(a)
|
292
|
|
- // setTimeout(() => {
|
293
|
|
- // // this.websocketMess();
|
294
|
|
- // this.lineUpList
|
295
|
|
- // }, 1000);
|
|
197
|
+ this.timer = setInterval(() => {
|
|
198
|
+ if(this.page < Math.ceil(this.count / 6)){
|
|
199
|
+ console.log('执行',Math.ceil(this.count / 6),this.page)
|
|
200
|
+ this.page++
|
|
201
|
+ this.getlist()
|
|
202
|
+ setTimeout(() => {
|
|
203
|
+ this.websocketMess();
|
|
204
|
+ }, 1000);
|
|
205
|
+ }
|
|
206
|
+ else{
|
|
207
|
+ console.log('执行22223333')
|
|
208
|
+ this.page = 1
|
|
209
|
+ this.getlist()
|
|
210
|
+ setTimeout(() => {
|
|
211
|
+ // this.websocketMess();
|
|
212
|
+ this.lineUpList
|
|
213
|
+ }, 1000);
|
296
|
214
|
|
297
|
|
- // }
|
298
|
|
- // console.log('切换时间',this.queueConfig)
|
299
|
|
- // }, 1000 * parseInt(this.queueConfig.qhsj));
|
300
|
|
- // this.timerID = setInterval(() => {
|
301
|
|
- // this.updateTime()
|
302
|
|
- // }, 1000);
|
303
|
|
- // this.newTimes = setInterval(() => {
|
304
|
|
- // // this.reload()
|
305
|
|
- // console.log('1222222333333333');
|
306
|
|
- // sessionStorage.setItem('lineUpKey',1);
|
307
|
|
- // window.location.reload()
|
308
|
|
- // }, 1000 * 60 * 30);
|
|
215
|
+ }
|
|
216
|
+ console.log('切换时间',this.queueConfig)
|
|
217
|
+ }, 1000 * parseInt(this.queueConfig.qhsj));
|
|
218
|
+ this.timerID = setInterval(() => {
|
|
219
|
+ this.updateTime()
|
|
220
|
+ }, 1000);
|
|
221
|
+ this.newTimes = setInterval(() => {
|
|
222
|
+ // this.reload()
|
|
223
|
+ console.log('1222222333333333');
|
|
224
|
+ sessionStorage.setItem('lineUpKey',1);
|
|
225
|
+ window.location.reload()
|
|
226
|
+ }, 1000 * 60 * 30);
|
309
|
227
|
},
|
310
|
228
|
beforeDestroy(){
|
311
|
229
|
clearInterval(this.timer);// 清除定时器
|
312
|
230
|
this.timer = null
|
313
|
231
|
clearInterval(this.timerID);
|
314
|
232
|
this.timerID = null;// 清除定时器
|
315
|
|
- // clearInterval(this.newTimes); // 清除定时器
|
316
|
|
- // this.newTimes = null
|
317
|
233
|
let unObj = {
|
318
|
234
|
cmd:'queue/unjoin',
|
319
|
235
|
data:{type:2}
|
320
|
236
|
}
|
321
|
237
|
this.websocketSend(unObj)
|
322
|
|
- // this.timer = null;
|
323
|
|
- // let obj = {
|
324
|
|
- // cmd: "queue/join",
|
325
|
|
- // data: {type:1},
|
326
|
|
- // };
|
327
|
|
- // this.websocketSend(obj)
|
328
|
238
|
},
|
329
|
239
|
methods:{
|
330
|
240
|
websocketSend(data) {
|
|
@@ -473,7 +383,389 @@ export default {
|
473
|
383
|
},
|
474
|
384
|
getDates(time){
|
475
|
385
|
return moment(time * 1000).format('HH:mm:ss')
|
476
|
|
- }
|
|
386
|
+ },
|
|
387
|
+ getlist(){
|
|
388
|
+ var params = {
|
|
389
|
+ limit:this.limit,
|
|
390
|
+ page:this.page,
|
|
391
|
+ start_time:"2023-07-03",
|
|
392
|
+ end_time:"2023-07-09"
|
|
393
|
+ }
|
|
394
|
+ getContextScheduleList(params).then(response=>{
|
|
395
|
+ if(response.data.state ==1){
|
|
396
|
+ var schedule = response.data.data.schedule
|
|
397
|
+
|
|
398
|
+ this.lineUpList = schedule
|
|
399
|
+ var list = response.data.data.list
|
|
400
|
+ console.log("list232322323",list)
|
|
401
|
+ for(let i=0;i<schedule.length;i++){
|
|
402
|
+ if(schedule[i].mode_id ==1){
|
|
403
|
+ schedule[i].mode_name = "HD"
|
|
404
|
+ }
|
|
405
|
+ if(schedule[i].mode_id ==2){
|
|
406
|
+ schedule[i].mode_name = "HDF"
|
|
407
|
+ }
|
|
408
|
+ if(schedule[i].mode_id ==3){
|
|
409
|
+ schedule[i].mode_name = "HD+HP"
|
|
410
|
+ }
|
|
411
|
+
|
|
412
|
+ if(schedule[i].mode_id ==4){
|
|
413
|
+ schedule[i].mode_name = "HP"
|
|
414
|
+ }
|
|
415
|
+
|
|
416
|
+ if(schedule[i].mode_id ==5){
|
|
417
|
+ schedule[i].mode_name = "HF"
|
|
418
|
+ }
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+ if(schedule[i].mode_id ==6){
|
|
422
|
+ schedule[i].mode_name = "SCUF"
|
|
423
|
+ }
|
|
424
|
+
|
|
425
|
+ if(schedule[i].mode_id ==7){
|
|
426
|
+ schedule[i].mode_name = "IUF"
|
|
427
|
+ }
|
|
428
|
+
|
|
429
|
+ if(schedule[i].mode_id ==8){
|
|
430
|
+ schedule[i].mode_name = "HFHD"
|
|
431
|
+ }
|
|
432
|
+
|
|
433
|
+ if(schedule[i].mode_id ==9){
|
|
434
|
+ schedule[i].mode_name = "HFHD+HP"
|
|
435
|
+ }
|
|
436
|
+
|
|
437
|
+ if(schedule[i].mode_id ==10){
|
|
438
|
+ schedule[i].mode_name = "PHF"
|
|
439
|
+ }
|
|
440
|
+
|
|
441
|
+ if(schedule[i].mode_id ==11){
|
|
442
|
+ schedule[i].mode_name = "HFR"
|
|
443
|
+ }
|
|
444
|
+
|
|
445
|
+ if(schedule[i].mode_id ==12){
|
|
446
|
+ schedule[i].mode_name = "HDF+HP"
|
|
447
|
+ }
|
|
448
|
+
|
|
449
|
+ if(schedule[i].mode_id ==13){
|
|
450
|
+ schedule[i].mode_name = "CRRT"
|
|
451
|
+ }
|
|
452
|
+
|
|
453
|
+ if(schedule[i].mode_id ==14){
|
|
454
|
+ schedule[i].mode_name = "腹水回输"
|
|
455
|
+ }
|
|
456
|
+
|
|
457
|
+ if(schedule[i].mode_id ==15){
|
|
458
|
+ schedule[i].mode_name = "IUF+HD"
|
|
459
|
+ }
|
|
460
|
+
|
|
461
|
+ if(schedule[i].mode_id ==19){
|
|
462
|
+ schedule[i].mode_name = "IUF+HD"
|
|
463
|
+ }
|
|
464
|
+
|
|
465
|
+ if(schedule[i].mode_id ==20){
|
|
466
|
+ schedule[i].mode_name = "UF"
|
|
467
|
+ }
|
|
468
|
+ if(schedule[i].mode_id ==21){
|
|
469
|
+ schedule[i].mode_name = "HD+"
|
|
470
|
+ }
|
|
471
|
+
|
|
472
|
+ if(schedule[i].mode_id ==22){
|
|
473
|
+ schedule[i].mode_name = "血浆胆红素吸附+HDF"
|
|
474
|
+ }
|
|
475
|
+
|
|
476
|
+ if(schedule[i].mode_id ==23){
|
|
477
|
+ schedule[i].mode_name = "血浆胆红素吸附"
|
|
478
|
+ }
|
|
479
|
+
|
|
480
|
+ if(schedule[i].mode_id ==24){
|
|
481
|
+ schedule[i].mode_name = "I-HDF"
|
|
482
|
+ }
|
|
483
|
+
|
|
484
|
+ if(schedule[i].mode_id ==25){
|
|
485
|
+ schedule[i].mode_name = "HD高通"
|
|
486
|
+ }
|
|
487
|
+
|
|
488
|
+ if(schedule[i].mode_id ==26){
|
|
489
|
+ schedule[i].mode_name = "CVVH"
|
|
490
|
+ }
|
|
491
|
+
|
|
492
|
+ if(schedule[i].mode_id ==27){
|
|
493
|
+ schedule[i].mode_name = "CVVHD"
|
|
494
|
+ }
|
|
495
|
+
|
|
496
|
+ if(schedule[i].mode_id ==28){
|
|
497
|
+ schedule[i].mode_name = "CVVHDF"
|
|
498
|
+ }
|
|
499
|
+
|
|
500
|
+ if(schedule[i].mode_id ==29){
|
|
501
|
+ schedule[i].mode_name = "PE"
|
|
502
|
+ }
|
|
503
|
+
|
|
504
|
+ if(schedule[i].mode_id ==30){
|
|
505
|
+ schedule[i].mode_name = "血浆胆红素吸附+HP"
|
|
506
|
+ }
|
|
507
|
+
|
|
508
|
+ if(schedule[i].mode_id ==31){
|
|
509
|
+ schedule[i].mode_name = "HPD"
|
|
510
|
+ }
|
|
511
|
+
|
|
512
|
+ if(schedule[i].mode_id ==32){
|
|
513
|
+ schedule[i].mode_name = "HDP"
|
|
514
|
+ }
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+ if(schedule[i].schedule_week ==1){
|
|
521
|
+ schedule[i].schedule_week_name = "周一"
|
|
522
|
+ }
|
|
523
|
+ if(schedule[i].schedule_week ==2){
|
|
524
|
+ schedule[i].schedule_week_name = "周二"
|
|
525
|
+ }
|
|
526
|
+ if(schedule[i].schedule_week ==3){
|
|
527
|
+ schedule[i].schedule_week_name = "周三"
|
|
528
|
+ }
|
|
529
|
+ if(schedule[i].schedule_week ==4){
|
|
530
|
+ schedule[i].schedule_week_name = "周四"
|
|
531
|
+ }
|
|
532
|
+ if(schedule[i].schedule_week ==5){
|
|
533
|
+ schedule[i].schedule_week_name = "周五"
|
|
534
|
+ }
|
|
535
|
+ if(schedule[i].schedule_week ==6){
|
|
536
|
+ schedule[i].schedule_week_name = "周六"
|
|
537
|
+ }
|
|
538
|
+ if(schedule[i].schedule_week ==7){
|
|
539
|
+ schedule[i].schedule_week_name = "周日"
|
|
540
|
+ }
|
|
541
|
+
|
|
542
|
+ if(schedule[i].schedule_type ==1){
|
|
543
|
+ schedule[i].schedule_type_name = "上午"
|
|
544
|
+ }
|
|
545
|
+ if(schedule[i].schedule_type ==2){
|
|
546
|
+ schedule[i].schedule_type_name = "下午"
|
|
547
|
+ }
|
|
548
|
+ if(schedule[i].schedule_type ==3){
|
|
549
|
+ schedule[i].schedule_type_name = "晚上"
|
|
550
|
+ }
|
|
551
|
+
|
|
552
|
+ schedule[i].child = []
|
|
553
|
+ for(let j=0;j<list.length;j++){
|
|
554
|
+
|
|
555
|
+ if(schedule[i].patient_id == list[j].patient_id){
|
|
556
|
+ schedule[i].child.push(list[j])
|
|
557
|
+ }
|
|
558
|
+ }
|
|
559
|
+ }
|
|
560
|
+ console.log("schedule",schedule)
|
|
561
|
+ this.schedule = schedule
|
|
562
|
+
|
|
563
|
+ var total = response.data.data.total
|
|
564
|
+ console.log("total+23323223",total)
|
|
565
|
+ var patients = response.data.data.patients
|
|
566
|
+ console.log("patinets",patients)
|
|
567
|
+ this.patientList = patients
|
|
568
|
+
|
|
569
|
+ this.deviceNumberList = response.data.data.devicenumber
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+ }
|
|
573
|
+ })
|
|
574
|
+ },
|
|
575
|
+ getPatientName(patient_id){
|
|
576
|
+ var name = ""
|
|
577
|
+ for(let i=0;i<this.patientList.length;i++){
|
|
578
|
+ if(patient_id == this.patientList[i].id){
|
|
579
|
+ name = this.patientList[i].name
|
|
580
|
+ }
|
|
581
|
+ }
|
|
582
|
+ return name
|
|
583
|
+ },
|
|
584
|
+ getDialysisNo(patient_id){
|
|
585
|
+ var dialysis_no = ""
|
|
586
|
+ for(let i=0;i<this.patientList.length;i++){
|
|
587
|
+ if(patient_id == this.patientList[i].id){
|
|
588
|
+ dialysis_no = this.patientList[i].dialysis_no
|
|
589
|
+ }
|
|
590
|
+ }
|
|
591
|
+ return dialysis_no
|
|
592
|
+ },
|
|
593
|
+ getContent(schedule){
|
|
594
|
+ var str = ""
|
|
595
|
+ if(schedule!=null && schedule.length >0){
|
|
596
|
+ for(let i=0;i<schedule.length;i++){
|
|
597
|
+ schedule[i].bed_number = this.getNumberName(schedule[i].bed_id)
|
|
598
|
+ if(schedule[i].mode_id ==1){
|
|
599
|
+ schedule[i].mode_name = "HD"
|
|
600
|
+ }
|
|
601
|
+ if(schedule[i].mode_id ==2){
|
|
602
|
+ schedule[i].mode_name = "HDF"
|
|
603
|
+ }
|
|
604
|
+ if(schedule[i].mode_id ==3){
|
|
605
|
+ schedule[i].mode_name = "HD+HP"
|
|
606
|
+ }
|
|
607
|
+
|
|
608
|
+ if(schedule[i].mode_id ==4){
|
|
609
|
+ schedule[i].mode_name = "HP"
|
|
610
|
+ }
|
|
611
|
+
|
|
612
|
+ if(schedule[i].mode_id ==5){
|
|
613
|
+ schedule[i].mode_name = "HF"
|
|
614
|
+ }
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+ if(schedule[i].mode_id ==6){
|
|
618
|
+ schedule[i].mode_name = "SCUF"
|
|
619
|
+ }
|
|
620
|
+
|
|
621
|
+ if(schedule[i].mode_id ==7){
|
|
622
|
+ schedule[i].mode_name = "IUF"
|
|
623
|
+ }
|
|
624
|
+
|
|
625
|
+ if(schedule[i].mode_id ==8){
|
|
626
|
+ schedule[i].mode_name = "HFHD"
|
|
627
|
+ }
|
|
628
|
+
|
|
629
|
+ if(schedule[i].mode_id ==9){
|
|
630
|
+ schedule[i].mode_name = "HFHD+HP"
|
|
631
|
+ }
|
|
632
|
+
|
|
633
|
+ if(schedule[i].mode_id ==10){
|
|
634
|
+ schedule[i].mode_name = "PHF"
|
|
635
|
+ }
|
|
636
|
+
|
|
637
|
+ if(schedule[i].mode_id ==11){
|
|
638
|
+ schedule[i].mode_name = "HFR"
|
|
639
|
+ }
|
|
640
|
+
|
|
641
|
+ if(schedule[i].mode_id ==12){
|
|
642
|
+ schedule[i].mode_name = "HDF+HP"
|
|
643
|
+ }
|
|
644
|
+
|
|
645
|
+ if(schedule[i].mode_id ==13){
|
|
646
|
+ schedule[i].mode_name = "CRRT"
|
|
647
|
+ }
|
|
648
|
+
|
|
649
|
+ if(schedule[i].mode_id ==14){
|
|
650
|
+ schedule[i].mode_name = "腹水回输"
|
|
651
|
+ }
|
|
652
|
+
|
|
653
|
+ if(schedule[i].mode_id ==15){
|
|
654
|
+ schedule[i].mode_name = "IUF+HD"
|
|
655
|
+ }
|
|
656
|
+
|
|
657
|
+ if(schedule[i].mode_id ==19){
|
|
658
|
+ schedule[i].mode_name = "IUF+HD"
|
|
659
|
+ }
|
|
660
|
+
|
|
661
|
+ if(schedule[i].mode_id ==20){
|
|
662
|
+ schedule[i].mode_name = "UF"
|
|
663
|
+ }
|
|
664
|
+ if(schedule[i].mode_id ==21){
|
|
665
|
+ schedule[i].mode_name = "HD+"
|
|
666
|
+ }
|
|
667
|
+
|
|
668
|
+ if(schedule[i].mode_id ==22){
|
|
669
|
+ schedule[i].mode_name = "血浆胆红素吸附+HDF"
|
|
670
|
+ }
|
|
671
|
+
|
|
672
|
+ if(schedule[i].mode_id ==23){
|
|
673
|
+ schedule[i].mode_name = "血浆胆红素吸附"
|
|
674
|
+ }
|
|
675
|
+
|
|
676
|
+ if(schedule[i].mode_id ==24){
|
|
677
|
+ schedule[i].mode_name = "I-HDF"
|
|
678
|
+ }
|
|
679
|
+
|
|
680
|
+ if(schedule[i].mode_id ==25){
|
|
681
|
+ schedule[i].mode_name = "HD高通"
|
|
682
|
+ }
|
|
683
|
+
|
|
684
|
+ if(schedule[i].mode_id ==26){
|
|
685
|
+ schedule[i].mode_name = "CVVH"
|
|
686
|
+ }
|
|
687
|
+
|
|
688
|
+ if(schedule[i].mode_id ==27){
|
|
689
|
+ schedule[i].mode_name = "CVVHD"
|
|
690
|
+ }
|
|
691
|
+
|
|
692
|
+ if(schedule[i].mode_id ==28){
|
|
693
|
+ schedule[i].mode_name = "CVVHDF"
|
|
694
|
+ }
|
|
695
|
+
|
|
696
|
+ if(schedule[i].mode_id ==29){
|
|
697
|
+ schedule[i].mode_name = "PE"
|
|
698
|
+ }
|
|
699
|
+
|
|
700
|
+ if(schedule[i].mode_id ==30){
|
|
701
|
+ schedule[i].mode_name = "血浆胆红素吸附+HP"
|
|
702
|
+ }
|
|
703
|
+
|
|
704
|
+ if(schedule[i].mode_id ==31){
|
|
705
|
+ schedule[i].mode_name = "HPD"
|
|
706
|
+ }
|
|
707
|
+
|
|
708
|
+ if(schedule[i].mode_id ==32){
|
|
709
|
+ schedule[i].mode_name = "HDP"
|
|
710
|
+ }
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+ if(schedule[i].schedule_week ==1){
|
|
714
|
+ schedule[i].schedule_week_name = "周一"
|
|
715
|
+ }
|
|
716
|
+ if(schedule[i].schedule_week ==2){
|
|
717
|
+ schedule[i].schedule_week_name = "周二"
|
|
718
|
+ }
|
|
719
|
+ if(schedule[i].schedule_week ==3){
|
|
720
|
+ schedule[i].schedule_week_name = "周三"
|
|
721
|
+ }
|
|
722
|
+ if(schedule[i].schedule_week ==4){
|
|
723
|
+ schedule[i].schedule_week_name = "周四"
|
|
724
|
+ }
|
|
725
|
+ if(schedule[i].schedule_week ==5){
|
|
726
|
+ schedule[i].schedule_week_name = "周五"
|
|
727
|
+ }
|
|
728
|
+ if(schedule[i].schedule_week ==6){
|
|
729
|
+ schedule[i].schedule_week_name = "周六"
|
|
730
|
+ }
|
|
731
|
+ if(schedule[i].schedule_week ==7){
|
|
732
|
+ schedule[i].schedule_week_name = "周日"
|
|
733
|
+ }
|
|
734
|
+
|
|
735
|
+ if(schedule[i].schedule_type ==1){
|
|
736
|
+ schedule[i].schedule_type_name = "上午"
|
|
737
|
+ }
|
|
738
|
+ if(schedule[i].schedule_type ==2){
|
|
739
|
+ schedule[i].schedule_type_name = "下午"
|
|
740
|
+ }
|
|
741
|
+ if(schedule[i].schedule_type ==3){
|
|
742
|
+ schedule[i].schedule_type_name = "晚上"
|
|
743
|
+ }
|
|
744
|
+
|
|
745
|
+ str += " "+this.getTime(schedule[i].schedule_date)+" "+schedule[i].schedule_week_name + " " +schedule[i].schedule_type_name +" " + schedule[i].mode_name+","
|
|
746
|
+ }
|
|
747
|
+ }
|
|
748
|
+ return str
|
|
749
|
+ },
|
|
750
|
+ getTime(val) {
|
|
751
|
+ if(val < 0){
|
|
752
|
+ return ""
|
|
753
|
+ }
|
|
754
|
+ if(val == ""){
|
|
755
|
+ return ""
|
|
756
|
+ }else {
|
|
757
|
+ return uParseTime(val, '{m}-{d}')
|
|
758
|
+ }
|
|
759
|
+ },
|
|
760
|
+ getNumberName(id){
|
|
761
|
+ var number = ""
|
|
762
|
+ for(let i=0;i<this.deviceNumberList.length;i++){
|
|
763
|
+ if(id == this.deviceNumberList[i].bed_id){
|
|
764
|
+ number = this.deviceNumberList[i].bed_number
|
|
765
|
+ }
|
|
766
|
+ }
|
|
767
|
+ return number
|
|
768
|
+ }
|
477
|
769
|
}
|
478
|
770
|
}
|
479
|
771
|
</script>
|