|
@@ -46,9 +46,15 @@
|
46
|
46
|
inactive-text="OFF">
|
47
|
47
|
</el-switch>
|
48
|
48
|
</div>
|
49
|
|
- <!-- <div style="display: inline-block;position: relative;right: -30%;">
|
50
|
|
- <el-button type="primary" @click="quan_ping">全屏</el-button>
|
51
|
|
- </div> -->
|
|
49
|
+ <div class="content_top">隐藏空床位:
|
|
50
|
+ <el-switch
|
|
51
|
+ v-model="hidder_chuang"
|
|
52
|
+ active-color="#13ce66"
|
|
53
|
+ inactive-color="#ff4949"
|
|
54
|
+ active-text="ON"
|
|
55
|
+ inactive-text="OFF">
|
|
56
|
+ </el-switch>
|
|
57
|
+ </div>
|
52
|
58
|
</div>
|
53
|
59
|
<div class="table_panel" v-for="(item, index) in tableData" :key="index">
|
54
|
60
|
<table class="table">
|
|
@@ -60,30 +66,36 @@
|
60
|
66
|
</thead>
|
61
|
67
|
<tbody>
|
62
|
68
|
<tr v-for="(ite,index) in item.zones" :key="index">
|
63
|
|
- <td style="text-align: center;">{{ getZoneName(ite.partition_id) }}</td>
|
|
69
|
+ <td style="text-align: center;">
|
|
70
|
+ <span>{{ getZoneName(ite.partition_id) }}</span><br>
|
|
71
|
+ <span>总人数:{{ getZonePatient(ite.partition_id,item.schedule_type) }}</span>
|
|
72
|
+ <span v-if="getZonePatient(ite.partition_id,item.schedule_type)>0">人</span>
|
|
73
|
+ </td>
|
64
|
74
|
<td>
|
65
|
75
|
<div v-for="(it,index) in numberlist" style="display: inline-block;position: relative;" >
|
66
|
|
- <div v-if="ite.partition_id==it.zone_id" class="huanzhekuais" :style="{'height':!hidder ? '110px': '30px','line-height':hidder ? '30px':''}" @dblclick="db_click($event,it)" @drop="drop($event,item,it.number)" @dragstart="curInfoDragStart($event,item)" draggable="true" @dragover="allowDrop">
|
67
|
|
- <div class="huanzhekuai">
|
68
|
|
- <div v-for="(item2) in item.list" draggable="true" >
|
69
|
|
- <template >
|
70
|
|
- <div v-if="it.id==item2.bed_id" style="display: inline-block;">
|
71
|
|
- <div>
|
72
|
|
- <span>{{nameSplit(item2.name) }}({{ getmode(item2.mode_id) }})</span><br>
|
73
|
|
- <span v-if="!hidder" >
|
74
|
|
- <span style="font-size: 14px;margin-bottom: 5px;">{{item2.order.DeviceNumber.zone.name}}-{{item2.order.DeviceNumber.number}}</span><br>
|
75
|
|
- <span style="font-size: 14px;margin-bottom: 5px;">{{getBloodAccess(item2.order.blood_access_id)}}</span><br>
|
76
|
|
- <span style="font-size: 13px;;margin-bottom: 5px;">{{item2.order.schedule_remark}}</span>
|
77
|
|
- </span>
|
|
76
|
+ <div v-if="hidder_chuang==true ? getkongchuang(it,item.list)>0 : ' '">
|
|
77
|
+ <div v-if="ite.partition_id==it.zone_id" class="huanzhekuais" :style="{'height':!hidder ? '110px': '30px','line-height':hidder ? '30px':''}" @dblclick="db_click($event,it)" @drop="drop($event,item,it.number)" @dragstart="curInfoDragStart($event,item)" draggable="true" @dragover="allowDrop">
|
|
78
|
+ <div class="huanzhekuai">
|
|
79
|
+ <div v-for="(item2) in item.list" draggable="true" >
|
|
80
|
+ <template >
|
|
81
|
+ <div v-if="it.id==item2.bed_id" style="display: inline-block;">
|
|
82
|
+ <div>
|
|
83
|
+ <span>{{nameSplit(item2.name) }}({{ getmode(item2.mode_id) }})</span><br>
|
|
84
|
+ <span v-if="!hidder" >
|
|
85
|
+ <span style="font-size: 14px;margin-bottom: 5px;">{{item2.order.DeviceNumber.zone.name}}-{{item2.order.DeviceNumber.number}}</span><br>
|
|
86
|
+ <span style="font-size: 14px;margin-bottom: 5px;">{{getBloodAccess(item2.order.blood_access_id)}}</span><br>
|
|
87
|
+ <span style="font-size: 13px;;margin-bottom: 5px;">{{item2.order.schedule_remark}}</span>
|
|
88
|
+ </span>
|
|
89
|
+ </div>
|
78
|
90
|
</div>
|
79
|
|
- </div>
|
80
|
|
- </template>
|
81
|
|
- </div>
|
82
|
|
- </div>
|
83
|
|
-
|
84
|
|
- </div>
|
85
|
|
- <div v-if="ite.partition_id==it.zone_id" style="display: inline-block;width: 125px;text-align: center;">
|
86
|
|
- {{ it.number }}
|
|
91
|
+ </template>
|
|
92
|
+ </div>
|
|
93
|
+ </div>
|
|
94
|
+
|
|
95
|
+ </div>
|
|
96
|
+ <div v-if="ite.partition_id==it.zone_id" style="display: inline-block;width: 125px;text-align: center;">
|
|
97
|
+ {{ it.number }}
|
|
98
|
+ </div>
|
87
|
99
|
</div>
|
88
|
100
|
</div>
|
89
|
101
|
</td>
|
|
@@ -271,6 +283,15 @@
|
271
|
283
|
inactive-text="OFF">
|
272
|
284
|
</el-switch>
|
273
|
285
|
</div>
|
|
286
|
+ <div class="content_top">隐藏空床位:
|
|
287
|
+ <el-switch
|
|
288
|
+ v-model="hidder_chuang"
|
|
289
|
+ active-color="#13ce66"
|
|
290
|
+ inactive-color="#ff4949"
|
|
291
|
+ active-text="ON"
|
|
292
|
+ inactive-text="OFF">
|
|
293
|
+ </el-switch>
|
|
294
|
+ </div>
|
274
|
295
|
|
275
|
296
|
</div>
|
276
|
297
|
<div class="table_panel" v-for="(item, index) in tableData" :key="index">
|
|
@@ -286,27 +307,29 @@
|
286
|
307
|
<td style="text-align: center;">{{ getZoneName(ite.partition_id) }}</td>
|
287
|
308
|
<td>
|
288
|
309
|
<div v-for="(it,index) in numberlist" style="display: inline-block;position: relative;" >
|
289
|
|
- <div v-if="ite.partition_id==it.zone_id" class="huanzhekuais" :style="{'height':!hidder ? '110px': '30px','line-height':hidder ? '30px':''}" @dblclick="db_click($event,it)" @drop="drop($event,item,it.number)" @dragstart="curInfoDragStart($event,item)" draggable="true" @dragover="allowDrop">
|
290
|
|
- <div class="huanzhekuai">
|
291
|
|
- <div v-for="(item2) in item.list" draggable="true" >
|
292
|
|
- <template >
|
293
|
|
- <div v-if="it.id==item2.bed_id" style="display: inline-block;">
|
294
|
|
- <div>
|
295
|
|
- <span>{{nameSplit(item2.name) }}({{ getmode(item2.mode_id) }})</span><br>
|
296
|
|
- <span v-if="!hidder" >
|
297
|
|
- <span style="font-size: 14px;margin-bottom: 5px;">{{item2.order.DeviceNumber.zone.name}}-{{item2.order.DeviceNumber.number}}</span><br>
|
298
|
|
- <span style="font-size: 14px;margin-bottom: 5px;">{{getBloodAccess(item2.order.blood_access_id)}}</span><br>
|
299
|
|
- <span style="font-size: 13px;;margin-bottom: 5px;">{{item2.order.schedule_remark}}</span>
|
300
|
|
- </span>
|
|
310
|
+ <div v-if="hidder_chuang==true ? getkongchuang(it,item.list)>0 : ' '">
|
|
311
|
+ <div v-if="ite.partition_id==it.zone_id" class="huanzhekuais" :style="{'height':!hidder ? '110px': '30px','line-height':hidder ? '30px':''}" @dblclick="db_click($event,it)" @drop="drop($event,item,it.number)" @dragstart="curInfoDragStart($event,item)" draggable="true" @dragover="allowDrop">
|
|
312
|
+ <div class="huanzhekuai">
|
|
313
|
+ <div v-for="(item2) in item.list" draggable="true" >
|
|
314
|
+ <template >
|
|
315
|
+ <div v-if="it.id==item2.bed_id" style="display: inline-block;">
|
|
316
|
+ <div>
|
|
317
|
+ <span>{{nameSplit(item2.name) }}({{ getmode(item2.mode_id) }})</span><br>
|
|
318
|
+ <span v-if="!hidder" >
|
|
319
|
+ <span style="font-size: 14px;margin-bottom: 5px;">{{item2.order.DeviceNumber.zone.name}}-{{item2.order.DeviceNumber.number}}</span><br>
|
|
320
|
+ <span style="font-size: 14px;margin-bottom: 5px;">{{getBloodAccess(item2.order.blood_access_id)}}</span><br>
|
|
321
|
+ <span style="font-size: 13px;;margin-bottom: 5px;">{{item2.order.schedule_remark}}</span>
|
|
322
|
+ </span>
|
|
323
|
+ </div>
|
301
|
324
|
</div>
|
302
|
|
- </div>
|
303
|
|
- </template>
|
304
|
|
- </div>
|
305
|
|
- </div>
|
306
|
|
-
|
307
|
|
- </div>
|
308
|
|
- <div v-if="ite.partition_id==it.zone_id" style="display: inline-block;width: 125px;text-align: center;">
|
309
|
|
- {{ it.number }}
|
|
325
|
+ </template>
|
|
326
|
+ </div>
|
|
327
|
+ </div>
|
|
328
|
+
|
|
329
|
+ </div>
|
|
330
|
+ <div v-if="ite.partition_id==it.zone_id" style="display: inline-block;width: 125px;text-align: center;">
|
|
331
|
+ {{ it.number }}
|
|
332
|
+ </div>
|
310
|
333
|
</div>
|
311
|
334
|
</div>
|
312
|
335
|
</td>
|
|
@@ -342,6 +365,7 @@ export default {
|
342
|
365
|
tipDialogVisibleTwo:false,
|
343
|
366
|
tipDialogVisibleThree:false,
|
344
|
367
|
hidder: false,
|
|
368
|
+ hidder_chuang:false,
|
345
|
369
|
quanping:false,
|
346
|
370
|
td_1_width: '8%',
|
347
|
371
|
td_3_width: '90%',
|
|
@@ -395,310 +419,7 @@ export default {
|
395
|
419
|
{ value: 3, label: "晚上" }
|
396
|
420
|
],
|
397
|
421
|
zones:[],
|
398
|
|
- schedules: [
|
399
|
|
- {
|
400
|
|
- day: 1,
|
401
|
|
- weekday: '星期一',
|
402
|
|
- all: {
|
403
|
|
- am: {
|
404
|
|
- /* zone_name: [ schedule, ... ] */
|
405
|
|
- },
|
406
|
|
- pm: {
|
407
|
|
- /* zone_name: [ schedule, ... ] */
|
408
|
|
- },
|
409
|
|
- evening: {
|
410
|
|
- /* zone_name: [ schedule, ... ] */
|
411
|
|
- }
|
412
|
|
- },
|
413
|
|
- hdf: [
|
414
|
|
- /* schedule, ... */
|
415
|
|
- ],
|
416
|
|
- hd_hp: [
|
417
|
|
- /* schedule, ... */
|
418
|
|
- ],
|
419
|
|
-
|
420
|
|
- new_hdf: {
|
421
|
|
- am: {
|
422
|
|
- /* zone_name: [ schedule, ... ] */
|
423
|
|
- },
|
424
|
|
- pm: {
|
425
|
|
- /* zone_name: [ schedule, ... ] */
|
426
|
|
- },
|
427
|
|
- evening: {
|
428
|
|
- /* zone_name: [ schedule, ... ] */
|
429
|
|
- }
|
430
|
|
- },
|
431
|
|
- new_hd_hp: {
|
432
|
|
- am: {
|
433
|
|
- /* zone_name: [ schedule, ... ] */
|
434
|
|
- },
|
435
|
|
- pm: {
|
436
|
|
- /* zone_name: [ schedule, ... ] */
|
437
|
|
- },
|
438
|
|
- evening: {
|
439
|
|
- /* zone_name: [ schedule, ... ] */
|
440
|
|
- }
|
441
|
|
- }
|
442
|
|
- },
|
443
|
|
- {
|
444
|
|
- day: 2,
|
445
|
|
- weekday: '星期二',
|
446
|
|
- all: {
|
447
|
|
- am: {
|
448
|
|
- /* zone_name: [ schedule, ... ] */
|
449
|
|
- },
|
450
|
|
- pm: {
|
451
|
|
- /* zone_name: [ schedule, ... ] */
|
452
|
|
- },
|
453
|
|
- evening: {
|
454
|
|
- /* zone_name: [ schedule, ... ] */
|
455
|
|
- }
|
456
|
|
- },
|
457
|
|
- hdf: [
|
458
|
|
- /* schedule, ... */
|
459
|
|
- ],
|
460
|
|
- hd_hp: [
|
461
|
|
- /* schedule, ... */
|
462
|
|
- ],
|
463
|
|
- new_hdf: {
|
464
|
|
- am: {
|
465
|
|
- /* zone_name: [ schedule, ... ] */
|
466
|
|
- },
|
467
|
|
- pm: {
|
468
|
|
- /* zone_name: [ schedule, ... ] */
|
469
|
|
- },
|
470
|
|
- evening: {
|
471
|
|
- /* zone_name: [ schedule, ... ] */
|
472
|
|
- }
|
473
|
|
- },
|
474
|
|
- new_hd_hp: {
|
475
|
|
- am: {
|
476
|
|
- /* zone_name: [ schedule, ... ] */
|
477
|
|
- },
|
478
|
|
- pm: {
|
479
|
|
- /* zone_name: [ schedule, ... ] */
|
480
|
|
- },
|
481
|
|
- evening: {
|
482
|
|
- /* zone_name: [ schedule, ... ] */
|
483
|
|
- }
|
484
|
|
- }
|
485
|
|
- },
|
486
|
|
- {
|
487
|
|
- day: 3,
|
488
|
|
- weekday: '星期三',
|
489
|
|
- all: {
|
490
|
|
- am: {
|
491
|
|
- /* zone_name: [ schedule, ... ] */
|
492
|
|
- },
|
493
|
|
- pm: {
|
494
|
|
- /* zone_name: [ schedule, ... ] */
|
495
|
|
- },
|
496
|
|
- evening: {
|
497
|
|
- /* zone_name: [ schedule, ... ] */
|
498
|
|
- }
|
499
|
|
- },
|
500
|
|
- hdf: [
|
501
|
|
- /* schedule, ... */
|
502
|
|
- ],
|
503
|
|
- hd_hp: [
|
504
|
|
- /* schedule, ... */
|
505
|
|
- ],
|
506
|
|
- new_hdf: {
|
507
|
|
- am: {
|
508
|
|
- /* zone_name: [ schedule, ... ] */
|
509
|
|
- },
|
510
|
|
- pm: {
|
511
|
|
- /* zone_name: [ schedule, ... ] */
|
512
|
|
- },
|
513
|
|
- evening: {
|
514
|
|
- /* zone_name: [ schedule, ... ] */
|
515
|
|
- }
|
516
|
|
- },
|
517
|
|
- new_hd_hp: {
|
518
|
|
- am: {
|
519
|
|
- /* zone_name: [ schedule, ... ] */
|
520
|
|
- },
|
521
|
|
- pm: {
|
522
|
|
- /* zone_name: [ schedule, ... ] */
|
523
|
|
- },
|
524
|
|
- evening: {
|
525
|
|
- /* zone_name: [ schedule, ... ] */
|
526
|
|
- }
|
527
|
|
- }
|
528
|
|
- },
|
529
|
|
- {
|
530
|
|
- day: 4,
|
531
|
|
- weekday: '星期四',
|
532
|
|
- all: {
|
533
|
|
- am: {
|
534
|
|
- /* zone_name: [ schedule, ... ] */
|
535
|
|
- },
|
536
|
|
- pm: {
|
537
|
|
- /* zone_name: [ schedule, ... ] */
|
538
|
|
- },
|
539
|
|
- evening: {
|
540
|
|
- /* zone_name: [ schedule, ... ] */
|
541
|
|
- }
|
542
|
|
- },
|
543
|
|
- hdf: [
|
544
|
|
- /* schedule, ... */
|
545
|
|
- ],
|
546
|
|
- hd_hp: [
|
547
|
|
- /* schedule, ... */
|
548
|
|
- ],
|
549
|
|
- new_hdf: {
|
550
|
|
- am: {
|
551
|
|
- /* zone_name: [ schedule, ... ] */
|
552
|
|
- },
|
553
|
|
- pm: {
|
554
|
|
- /* zone_name: [ schedule, ... ] */
|
555
|
|
- },
|
556
|
|
- evening: {
|
557
|
|
- /* zone_name: [ schedule, ... ] */
|
558
|
|
- }
|
559
|
|
- },
|
560
|
|
- new_hd_hp: {
|
561
|
|
- am: {
|
562
|
|
- /* zone_name: [ schedule, ... ] */
|
563
|
|
- },
|
564
|
|
- pm: {
|
565
|
|
- /* zone_name: [ schedule, ... ] */
|
566
|
|
- },
|
567
|
|
- evening: {
|
568
|
|
- /* zone_name: [ schedule, ... ] */
|
569
|
|
- }
|
570
|
|
- }
|
571
|
|
- },
|
572
|
|
- {
|
573
|
|
- day: 5,
|
574
|
|
- weekday: '星期五',
|
575
|
|
- all: {
|
576
|
|
- am: {
|
577
|
|
- /* zone_name: [ schedule, ... ] */
|
578
|
|
- },
|
579
|
|
- pm: {
|
580
|
|
- /* zone_name: [ schedule, ... ] */
|
581
|
|
- },
|
582
|
|
- evening: {
|
583
|
|
- /* zone_name: [ schedule, ... ] */
|
584
|
|
- }
|
585
|
|
- },
|
586
|
|
- hdf: [
|
587
|
|
- /* schedule, ... */
|
588
|
|
- ],
|
589
|
|
- hd_hp: [
|
590
|
|
- /* schedule, ... */
|
591
|
|
- ],
|
592
|
|
- new_hdf: {
|
593
|
|
- am: {
|
594
|
|
- /* zone_name: [ schedule, ... ] */
|
595
|
|
- },
|
596
|
|
- pm: {
|
597
|
|
- /* zone_name: [ schedule, ... ] */
|
598
|
|
- },
|
599
|
|
- evening: {
|
600
|
|
- /* zone_name: [ schedule, ... ] */
|
601
|
|
- }
|
602
|
|
- },
|
603
|
|
- new_hd_hp: {
|
604
|
|
- am: {
|
605
|
|
- /* zone_name: [ schedule, ... ] */
|
606
|
|
- },
|
607
|
|
- pm: {
|
608
|
|
- /* zone_name: [ schedule, ... ] */
|
609
|
|
- },
|
610
|
|
- evening: {
|
611
|
|
- /* zone_name: [ schedule, ... ] */
|
612
|
|
- }
|
613
|
|
- }
|
614
|
|
- },
|
615
|
|
- {
|
616
|
|
- day: 6,
|
617
|
|
- weekday: '星期六',
|
618
|
|
- all: {
|
619
|
|
- am: {
|
620
|
|
- /* zone_name: [ schedule, ... ] */
|
621
|
|
- },
|
622
|
|
- pm: {
|
623
|
|
- /* zone_name: [ schedule, ... ] */
|
624
|
|
- },
|
625
|
|
- evening: {
|
626
|
|
- /* zone_name: [ schedule, ... ] */
|
627
|
|
- }
|
628
|
|
- },
|
629
|
|
- hdf: [
|
630
|
|
- /* schedule, ... */
|
631
|
|
- ],
|
632
|
|
- hd_hp: [
|
633
|
|
- /* schedule, ... */
|
634
|
|
- ],
|
635
|
|
- new_hdf: {
|
636
|
|
- am: {
|
637
|
|
- /* zone_name: [ schedule, ... ] */
|
638
|
|
- },
|
639
|
|
- pm: {
|
640
|
|
- /* zone_name: [ schedule, ... ] */
|
641
|
|
- },
|
642
|
|
- evening: {
|
643
|
|
- /* zone_name: [ schedule, ... ] */
|
644
|
|
- }
|
645
|
|
- },
|
646
|
|
- new_hd_hp: {
|
647
|
|
- am: {
|
648
|
|
- /* zone_name: [ schedule, ... ] */
|
649
|
|
- },
|
650
|
|
- pm: {
|
651
|
|
- /* zone_name: [ schedule, ... ] */
|
652
|
|
- },
|
653
|
|
- evening: {
|
654
|
|
- /* zone_name: [ schedule, ... ] */
|
655
|
|
- }
|
656
|
|
- }
|
657
|
|
- },
|
658
|
|
- {
|
659
|
|
- day: 7,
|
660
|
|
- weekday: '星期日',
|
661
|
|
- all: {
|
662
|
|
- am: {
|
663
|
|
- /* zone_name: [ schedule, ... ] */
|
664
|
|
- },
|
665
|
|
- pm: {
|
666
|
|
- /* zone_name: [ schedule, ... ] */
|
667
|
|
- },
|
668
|
|
- evening: {
|
669
|
|
- /* zone_name: [ schedule, ... ] */
|
670
|
|
- }
|
671
|
|
- },
|
672
|
|
- hdf: [
|
673
|
|
- /* schedule, ... */
|
674
|
|
- ],
|
675
|
|
- hd_hp: [
|
676
|
|
- /* schedule, ... */
|
677
|
|
- ],
|
678
|
|
- new_hdf: {
|
679
|
|
- am: {
|
680
|
|
- /* zone_name: [ schedule, ... ] */
|
681
|
|
- },
|
682
|
|
- pm: {
|
683
|
|
- /* zone_name: [ schedule, ... ] */
|
684
|
|
- },
|
685
|
|
- evening: {
|
686
|
|
- /* zone_name: [ schedule, ... ] */
|
687
|
|
- }
|
688
|
|
- },
|
689
|
|
- new_hd_hp: {
|
690
|
|
- am: {
|
691
|
|
- /* zone_name: [ schedule, ... ] */
|
692
|
|
- },
|
693
|
|
- pm: {
|
694
|
|
- /* zone_name: [ schedule, ... ] */
|
695
|
|
- },
|
696
|
|
- evening: {
|
697
|
|
- /* zone_name: [ schedule, ... ] */
|
698
|
|
- }
|
699
|
|
- }
|
700
|
|
- }
|
701
|
|
- ],
|
|
422
|
+
|
702
|
423
|
total: [],
|
703
|
424
|
list: [],
|
704
|
425
|
loading: false,
|
|
@@ -722,6 +443,7 @@ export default {
|
722
|
443
|
patient_id:'',
|
723
|
444
|
partition_id:'',
|
724
|
445
|
schedule_week: '',
|
|
446
|
+ bed_id:'',
|
725
|
447
|
},
|
726
|
448
|
xian_fenqu:'',
|
727
|
449
|
g_xian_fenqu:'',
|
|
@@ -734,7 +456,10 @@ export default {
|
734
|
456
|
g_boolen_id:'',
|
735
|
457
|
genghuan_remark:'',
|
736
|
458
|
patient_id:'',
|
|
459
|
+ bed_id:''
|
737
|
460
|
},
|
|
461
|
+ drag_index:'',
|
|
462
|
+ ent_index:'',
|
738
|
463
|
}
|
739
|
464
|
},
|
740
|
465
|
components: {
|
|
@@ -749,6 +474,7 @@ export default {
|
749
|
474
|
mounted(){
|
750
|
475
|
// console.log('8888',this.huanzhe.order.DeviceNumber.zone.name);
|
751
|
476
|
},
|
|
477
|
+
|
752
|
478
|
methods:{
|
753
|
479
|
quan_ping(){
|
754
|
480
|
if(this.quanping==false){
|
|
@@ -759,26 +485,33 @@ export default {
|
759
|
485
|
return this.quanping=false
|
760
|
486
|
}
|
761
|
487
|
},
|
|
488
|
+ // 隐藏空床位
|
|
489
|
+ getkongchuang(a,b){
|
|
490
|
+ const arr=[]
|
|
491
|
+ for(let i=0;i<b.length;i++){
|
|
492
|
+ if(a.id==b[i].bed_id){
|
|
493
|
+ arr.push(a.id)
|
|
494
|
+ }
|
|
495
|
+ }
|
|
496
|
+ return arr
|
|
497
|
+ },
|
762
|
498
|
drop(e,val,value){
|
763
|
499
|
this.allowDrop(e)
|
764
|
500
|
var bedid = ''
|
765
|
501
|
var bedname=''
|
766
|
502
|
var zonename=''
|
767
|
503
|
var zoneid=''
|
768
|
|
- console.log('kkkkk',e.target.innerText);
|
769
|
504
|
const inntext= e.target.innerText.split('(')[0]
|
770
|
|
- console.log('vvvv',inntext,val.list[0].new_name);
|
771
|
505
|
for(let i=0;i<val.list.length;i++){
|
772
|
506
|
if(inntext == val.list[i].new_name){
|
773
|
|
- console.log('6666',val,value);
|
774
|
|
- console.log('7777',this.numberlist);
|
775
|
507
|
this.tipDialogVisible=true
|
776
|
508
|
this.currentData={
|
777
|
509
|
currentData_id:val.list[i].id,
|
778
|
510
|
currentData_name:val.list[i].name,
|
779
|
511
|
currentData_quhao:val.list[i].order.DeviceNumber.zone.name,
|
780
|
512
|
currentData_chaung:val.list[i].order.DeviceNumber.number,
|
781
|
|
- patient_id:val.list[i].patient_id
|
|
513
|
+ patient_id:val.list[i].patient_id,
|
|
514
|
+ bed_id:val.list[i].bed_id
|
782
|
515
|
}
|
783
|
516
|
}
|
784
|
517
|
}
|
|
@@ -821,7 +554,7 @@ export default {
|
821
|
554
|
patient_id:this.cur_drag_info.patient_id,
|
822
|
555
|
|
823
|
556
|
}
|
824
|
|
- console.log('8888',this.currentData.currentData_id);
|
|
557
|
+ console.log('8888',this.currentData);
|
825
|
558
|
this.setScheduleTwo(this.cur_drag_info.id)
|
826
|
559
|
// var params={
|
827
|
560
|
// patient_id:this.currentData.patient_id,
|
|
@@ -838,29 +571,6 @@ export default {
|
838
|
571
|
// })
|
839
|
572
|
// this.CreateScheduleTwo(this.currentData.patient_id,this.currentData,this.currentData.currentData_id)
|
840
|
573
|
}
|
841
|
|
-
|
842
|
|
- // for(let i=0;i<this.numberlist.length;i++){
|
843
|
|
- // for(let j=0;j<val.list.length;j++){
|
844
|
|
- // if(this.numberlist[i].id==val.list[y].bed_id){
|
845
|
|
-
|
846
|
|
- // }
|
847
|
|
- // }
|
848
|
|
- // }
|
849
|
|
- // this.currentData={
|
850
|
|
- // currentData_id:val.id,
|
851
|
|
- // currentData_name:val.name,
|
852
|
|
- // currentData_quhao:val.order.DeviceNumber.zone.name,
|
853
|
|
- // currentData_chaung:val.order.DeviceNumber.number,
|
854
|
|
- // },
|
855
|
|
-
|
856
|
|
- // this.currentData={
|
857
|
|
- // currentData_id:this.cur_drag_info.id,
|
858
|
|
- // currentData_name:this.cur_drag_info.name,
|
859
|
|
- // currentData_quhao:this.cur_drag_info.quhao,
|
860
|
|
- // currentData_chaung:this.cur_drag_info.chaung,
|
861
|
|
- // },
|
862
|
|
-
|
863
|
|
-
|
864
|
574
|
},
|
865
|
575
|
allowDrop(e) {
|
866
|
576
|
e.preventDefault();
|
|
@@ -881,13 +591,44 @@ export default {
|
881
|
591
|
this.$message.success("替换成功");
|
882
|
592
|
this.tipDialogVisible = false
|
883
|
593
|
this.tipDialogVisibleTwo = false
|
884
|
|
- this.getlist();
|
|
594
|
+ const listl=this.list
|
|
595
|
+ for(let i=0;i<listl.length;i++){
|
|
596
|
+ if(this.cur_drag_info.name== listl[i].name){
|
|
597
|
+ listl[i].bed_id = this.cur_drag_info.bed_id
|
|
598
|
+
|
|
599
|
+ }
|
|
600
|
+ if(this.currentData.currentData_name== listl[i].name){
|
|
601
|
+ listl[i].bed_id = this.cur_drag_info.bed_id
|
|
602
|
+ console.log('nnnn',this.ent_index,this.cur_drag_info.bed_id);
|
|
603
|
+ }
|
|
604
|
+ }
|
|
605
|
+ // this.getlist();
|
885
|
606
|
}
|
886
|
607
|
});
|
887
|
608
|
},
|
888
|
609
|
// 交换
|
889
|
610
|
changeSchTwo(){
|
|
611
|
+ // this.tipDialogVisible=false
|
890
|
612
|
this.tipDialogVisible=false
|
|
613
|
+ // this.tipDialogVisibleThree = false
|
|
614
|
+ // const listl=this.list
|
|
615
|
+ // for(let i=0;i<listl.length;i++){
|
|
616
|
+ // if(this.cur_drag_info.name== listl[i].name){
|
|
617
|
+ // // drag_index=i
|
|
618
|
+ // // this.drag_index=listl[i].bed_id
|
|
619
|
+ // this.currentData.bed_id =listl[i].bed_id
|
|
620
|
+ // console.log('mmmm',this.drag_index,this.currentData);
|
|
621
|
+
|
|
622
|
+ // }
|
|
623
|
+ // if(this.currentData.currentData_name== listl[i].name){
|
|
624
|
+ // // this.ent_index=listl[i].bed_id
|
|
625
|
+ // this.cur_drag_info.bed_id=listl[i].bed_id
|
|
626
|
+ // console.log('nnnn',this.ent_index,this.cur_drag_info.bed_id);
|
|
627
|
+ // }
|
|
628
|
+ // }
|
|
629
|
+ // // listl.splice(drag_index, 1, ...listl.splice(ent_index, 1, listl[drag_index]))
|
|
630
|
+ // console.log('zzzzz',this.cur_drag_info);
|
|
631
|
+ // console.log('xxxxx', this.currentData);
|
891
|
632
|
let params={
|
892
|
633
|
id_one:this.cur_drag_info.id,
|
893
|
634
|
id_two:this.currentData.currentData_id
|
|
@@ -902,9 +643,22 @@ export default {
|
902
|
643
|
this.$message.success("交换成功");
|
903
|
644
|
this.tipDialogVisible = false
|
904
|
645
|
this.tipDialogVisibleThree = false
|
905
|
|
- this.getlist();
|
|
646
|
+
|
|
647
|
+ const listl=this.list
|
|
648
|
+ for(let i=0;i<listl.length;i++){
|
|
649
|
+ if(this.cur_drag_info.name== listl[i].name){
|
|
650
|
+ listl[i].bed_id = this.currentData.bed_id
|
|
651
|
+ console.log('mmmm',listl,this.currentData);
|
|
652
|
+ }
|
|
653
|
+ if(this.currentData.currentData_name== listl[i].name){
|
|
654
|
+ // this.ent_index=listl[i].bed_id
|
|
655
|
+ listl[i].bed_id =this.cur_drag_info.bed_id
|
|
656
|
+ }
|
|
657
|
+ }
|
|
658
|
+ // this.getlist();
|
906
|
659
|
}
|
907
|
660
|
});
|
|
661
|
+
|
908
|
662
|
},
|
909
|
663
|
// 交换空白
|
910
|
664
|
setScheduleTwo(id_two){
|
|
@@ -920,8 +674,17 @@ export default {
|
920
|
674
|
if (response.data.state == 0) {
|
921
|
675
|
this.$message.error(response.data.msg);
|
922
|
676
|
} else {
|
923
|
|
- var schedule = response.data.data.schedule;
|
924
|
|
- this.getlist()
|
|
677
|
+ // var schedule = response.data.data.schedule;
|
|
678
|
+ // console.log('ddddd',schedule);
|
|
679
|
+ // this.list
|
|
680
|
+ const listl=this.list
|
|
681
|
+ for(let i=0;i<listl.length;i++){
|
|
682
|
+ if(this.schedule.patient== listl[i].name){
|
|
683
|
+ listl[i].bed_id = this.schedule.bed_id
|
|
684
|
+ console.log('mmmm',listl);
|
|
685
|
+ }
|
|
686
|
+ }
|
|
687
|
+ // this.getlist()
|
925
|
688
|
}
|
926
|
689
|
},
|
927
|
690
|
// 需要拖动的
|
|
@@ -945,8 +708,8 @@ export default {
|
945
|
708
|
}
|
946
|
709
|
}
|
947
|
710
|
|
948
|
|
- console.log('bbbb',e.target.innerText);
|
949
|
|
- console.log('4444',val);
|
|
711
|
+ // console.log('bbbb',e.target.innerText);
|
|
712
|
+ // console.log('4444',val);
|
950
|
713
|
console.log('5555',this.cur_drag_info);
|
951
|
714
|
},
|
952
|
715
|
// 选中日期
|
|
@@ -1141,6 +904,24 @@ export default {
|
1141
|
904
|
}
|
1142
|
905
|
return name
|
1143
|
906
|
},
|
|
907
|
+ getZonePatient(partition_id,schedule_type){
|
|
908
|
+
|
|
909
|
+ var arr = []
|
|
910
|
+ if(this.list!=null && this.list.length >0){
|
|
911
|
+ for(let i=0;i<this.list.length;i++){
|
|
912
|
+ if(partition_id == this.list[i].partition_id && schedule_type == this.list[i].schedule_type){
|
|
913
|
+ arr.push(this.list[i])
|
|
914
|
+ }
|
|
915
|
+ }
|
|
916
|
+ }
|
|
917
|
+
|
|
918
|
+ if(arr.length >0){
|
|
919
|
+ return arr.length
|
|
920
|
+ }else{
|
|
921
|
+ return ""
|
|
922
|
+ }
|
|
923
|
+
|
|
924
|
+ },
|
1144
|
925
|
// 双击打开弹窗
|
1145
|
926
|
db_click(e,val){
|
1146
|
927
|
if(e.target.innerText !=''){
|
|
@@ -1161,8 +942,9 @@ export default {
|
1161
|
942
|
this.huanzhe.patient_id = this.list[i].patient_id
|
1162
|
943
|
this.huanzhe.partition_id = this.list[i].partition_id
|
1163
|
944
|
this.huanzhe.schedule_week= this.list[i].schedule_week
|
|
945
|
+ this.huanzhe.bed_id = this.list[i].bed_id
|
1164
|
946
|
// return this.huanzhe
|
1165
|
|
- // console.log('55555',this.huanzhe);
|
|
947
|
+ console.log('kkkk',this.huanzhe);
|
1166
|
948
|
}
|
1167
|
949
|
// 双击弹窗的右侧第二个默认数据
|
1168
|
950
|
if(this.chuangwei==this.list[i].bed_id){
|
|
@@ -1174,8 +956,9 @@ export default {
|
1174
|
956
|
this.genghuan.genghuan_chuang = this.list[i].order.DeviceNumber.number
|
1175
|
957
|
this.genghuan.g_boolen_id = this.list[i].order.blood_access_id
|
1176
|
958
|
this.genghuan.genghuan_remark = this.list[i].order.schedule_remark
|
1177
|
|
- this.genghuan.patient_id = this.list[i].patient_id
|
1178
|
|
- // console.log('99999',this.genghuan);
|
|
959
|
+ this.genghuan.patient_id = this.list[i].patient_id,
|
|
960
|
+ this.genghuan.bed_id = this.list[i].bed_id
|
|
961
|
+ console.log('99999',this.genghuan);
|
1179
|
962
|
// console.log('000000',this.list[i].bed_id);
|
1180
|
963
|
// return this.genghuan
|
1181
|
964
|
}
|
|
@@ -1196,9 +979,6 @@ export default {
|
1196
|
979
|
this.centerDialogVisible=false
|
1197
|
980
|
}
|
1198
|
981
|
|
1199
|
|
- // console.log('双击弹窗',this.zeng_fenqu);
|
1200
|
|
- // console.log('双击弹窗33',e);
|
1201
|
|
- // console.log('双击弹窗333',value);
|
1202
|
982
|
},
|
1203
|
983
|
// 双击弹窗分区
|
1204
|
984
|
dialogfenqu(e){
|
|
@@ -1250,6 +1030,7 @@ export default {
|
1250
|
1030
|
this.genghuan.genghuan_chuang = this.list[i].order.DeviceNumber.number
|
1251
|
1031
|
this.genghuan.g_boolen_id =this.list[i].order.blood_access_id
|
1252
|
1032
|
this.genghuan.genghuan_remark = this.list[i].order.schedule_remark
|
|
1033
|
+ this.genghuan.patient_id = this.list[i].patient_id,
|
1253
|
1034
|
console.log('99999',this.genghuan);
|
1254
|
1035
|
console.log('000000',this.list[i].bed_id);
|
1255
|
1036
|
return this.genghuan
|
|
@@ -1266,34 +1047,8 @@ export default {
|
1266
|
1047
|
}
|
1267
|
1048
|
|
1268
|
1049
|
}
|
1269
|
|
- // this.numberlist= numberlist
|
1270
|
1050
|
}
|
1271
|
1051
|
})
|
1272
|
|
- // console.log('77777',this.chuangwei);
|
1273
|
|
- // for(let i=0;i<list.length;i++){
|
1274
|
|
- // if(this.chuangwei==list[i].bed_id){
|
1275
|
|
- // this.genghuan.name=list[i].name
|
1276
|
|
- // this.genghuan.mode_id=list[i].mode_id
|
1277
|
|
- // this.genghuan.genghuan_fenqu=list[i].order.DeviceNumber.zone.name
|
1278
|
|
- // this.genghuan.genghuan_chuang = list[i].order.DeviceNumber.number
|
1279
|
|
- // this.genghuan.g_boolen_id =list[i].order.blood_access_id
|
1280
|
|
- // this.genghuan.genghuan_remark = list[i].order.schedule_remark
|
1281
|
|
- // console.log('99999',this.genghuan);
|
1282
|
|
- // console.log('000000',list[i].bed_id);
|
1283
|
|
- // return this.genghuan
|
1284
|
|
- // }else{
|
1285
|
|
- // console.log('eeeeee');
|
1286
|
|
- // this.genghuan.name=''
|
1287
|
|
- // this.genghuan.mode_id=''
|
1288
|
|
- // this.genghuan.genghuan_fenqu=''
|
1289
|
|
- // this.genghuan.genghuan_chuang = ''
|
1290
|
|
- // this.genghuan.g_boolen_id = ''
|
1291
|
|
- // this.genghuan.genghuan_remark =''
|
1292
|
|
- // // return this.genghuan
|
1293
|
|
- // // console.log('qqqqqq',this.list[i].bed_id);
|
1294
|
|
- // }
|
1295
|
|
-
|
1296
|
|
- // }
|
1297
|
1052
|
},
|
1298
|
1053
|
// 双击弹窗床位
|
1299
|
1054
|
dialogchuangwei(e){
|
|
@@ -1312,7 +1067,7 @@ export default {
|
1312
|
1067
|
this.genghuan.genghuan_chuang = this.list[i].order.DeviceNumber.number
|
1313
|
1068
|
this.genghuan.g_boolen_id = this.list[i].order.blood_access_id
|
1314
|
1069
|
this.genghuan.genghuan_remark = this.list[i].order.schedule_remark
|
1315
|
|
-
|
|
1070
|
+ // this.genghuan.bed_id = this.list[i].bed_id
|
1316
|
1071
|
for(let y=0;y<this.subzone.length;y++){
|
1317
|
1072
|
if(this.chuangwei==this.subzone[y].id){
|
1318
|
1073
|
this.g_xian_fenqu=this.subzone[y]
|
|
@@ -1332,8 +1087,9 @@ export default {
|
1332
|
1087
|
this.genghuan.genghuan_chuang = ''
|
1333
|
1088
|
this.genghuan.g_boolen_id = ''
|
1334
|
1089
|
this.genghuan.genghuan_remark =''
|
1335
|
|
- // return this.genghuan
|
1336
|
|
- // console.log('qqqqqq',this.list[i].bed_id);
|
|
1090
|
+ this.genghuan.bed_id = ''
|
|
1091
|
+ this.genghuan.patient_id = ''
|
|
1092
|
+
|
1337
|
1093
|
}
|
1338
|
1094
|
}
|
1339
|
1095
|
// 更换的床位置
|
|
@@ -1366,42 +1122,22 @@ export default {
|
1366
|
1122
|
this.$message.success("交换成功");
|
1367
|
1123
|
this.tipDialogVisible = false
|
1368
|
1124
|
this.tipDialogVisibleThree = false
|
1369
|
|
- this.getlist();
|
|
1125
|
+ // this.getlist();
|
|
1126
|
+ const listl=this.list
|
|
1127
|
+ for(let i=0;i<listl.length;i++){
|
|
1128
|
+ if(this.huanzhe.name== listl[i].name){
|
|
1129
|
+ listl[i].bed_id = this.chuangwei
|
|
1130
|
+ console.log('mmmm',listl,this.currentData);
|
|
1131
|
+ }
|
|
1132
|
+ if(this.genghuan.name== listl[i].name){
|
|
1133
|
+ // this.ent_index=listl[i].bed_id
|
|
1134
|
+ listl[i].bed_id =this.huanzhe.bed_id
|
|
1135
|
+ }
|
|
1136
|
+ }
|
1370
|
1137
|
}
|
1371
|
1138
|
});
|
1372
|
1139
|
return this.genghuan
|
1373
|
1140
|
}
|
1374
|
|
- // // else{
|
1375
|
|
- // // var zonename=''
|
1376
|
|
- // // var bedname=''
|
1377
|
|
- // // var zoneid=''
|
1378
|
|
- // // console.log('6666',this.chuangwei);
|
1379
|
|
- // // for(let y=0;y<this.subzone.length;y++){
|
1380
|
|
- // // if(this.chuangwei == this.subzone[y].id){
|
1381
|
|
- // // bedname=this.subzone[y].number
|
1382
|
|
- // // zoneid=this.subzone[y].zone_id
|
1383
|
|
- // // console.log('aaaa',this.chuangwei,this.subzone[y].id,this.subzone[y].number);
|
1384
|
|
- // // this.schedule={
|
1385
|
|
- // // schedule_date:this.date,
|
1386
|
|
- // // schedule_type:this.classes,
|
1387
|
|
- // // bed_id:this.chuangwei,
|
1388
|
|
- // // partition_id:zoneid,
|
1389
|
|
- // // schedule_week:this.huanzhe.schedule_week,
|
1390
|
|
- // // mode_id:this.huanzhe.mode_id,
|
1391
|
|
- // // bed_name:bedname,
|
1392
|
|
- // // contagions:'',
|
1393
|
|
- // // id:0,
|
1394
|
|
- // // partition_type:'',
|
1395
|
|
- // // patient:this.huanzhe.name,
|
1396
|
|
- // // patient_id:this.huanzhe.patient_id,
|
1397
|
|
- // // type_name:'',
|
1398
|
|
- // // zone_name:zonename
|
1399
|
|
- // // }
|
1400
|
|
- // // this.setSchedulethree(this.huanzhe.id)
|
1401
|
|
- // // return ''
|
1402
|
|
- // // }
|
1403
|
|
- // // }
|
1404
|
|
- // // }
|
1405
|
1141
|
}
|
1406
|
1142
|
}
|
1407
|
1143
|
// else if(this.genghuan.id == 'null'){
|
|
@@ -1436,7 +1172,7 @@ export default {
|
1436
|
1172
|
}
|
1437
|
1173
|
// }
|
1438
|
1174
|
}
|
1439
|
|
- }
|
|
1175
|
+ },
|
1440
|
1176
|
}
|
1441
|
1177
|
</script>
|
1442
|
1178
|
|