|
@@ -3,7 +3,7 @@
|
3
|
3
|
<!-- <router-link to="/dialysis/details"> -->
|
4
|
4
|
<div
|
5
|
5
|
class="patient"
|
6
|
|
- v-for="schedule in scheduleArr"
|
|
6
|
+ v-for="schedule in schedules"
|
7
|
7
|
v-if="schedule.patient"
|
8
|
8
|
:class="borderColor(schedule)"
|
9
|
9
|
@click.stop="detailAction(schedule)"
|
|
@@ -213,7 +213,6 @@ export default {
|
213
|
213
|
temp_schedual: null,
|
214
|
214
|
date:'',
|
215
|
215
|
modedata:0,
|
216
|
|
- scheduleArr:[]
|
217
|
216
|
};
|
218
|
217
|
},
|
219
|
218
|
props: {
|
|
@@ -378,12 +377,10 @@ export default {
|
378
|
377
|
this.doctor_advices = [];
|
379
|
378
|
getDialysisScheduleDetail(this.patient_id, dateStr).then(rs => {
|
380
|
379
|
var resp = rs.data;
|
381
|
|
-
|
382
|
380
|
if (resp.state == 1) {
|
383
|
381
|
var patient = resp.data.patient; // 患者信息
|
384
|
|
- // console.log("患者信息99999999",patient)
|
|
382
|
+ console.log("患者信息",patient)
|
385
|
383
|
var schedual = resp.data.schedual; // 患者排班信息
|
386
|
|
- // console.log("排班2222222222",schedual)
|
387
|
384
|
var prescription = resp.data.prescription; // 透析处方
|
388
|
385
|
if(prescription!=null){
|
389
|
386
|
if(prescription.body_fluid == -2 ){
|
|
@@ -505,8 +502,8 @@ export default {
|
505
|
502
|
this.admin_users = resp.data.doctors;
|
506
|
503
|
this.devices = resp.data.devices;
|
507
|
504
|
this.device_numbers = resp.data.device_numbers;
|
508
|
|
-
|
509
|
|
-
|
|
505
|
+
|
|
506
|
+
|
510
|
507
|
|
511
|
508
|
var device_map = {};
|
512
|
509
|
for (let index = 0; index < this.devices.length; index++) {
|
|
@@ -528,8 +525,6 @@ export default {
|
528
|
525
|
device_number_map[device_number.id] = device_number;
|
529
|
526
|
}
|
530
|
527
|
this.device_number_map = device_number_map;
|
531
|
|
-
|
532
|
|
-
|
533
|
528
|
this.getLongAdvice()
|
534
|
529
|
} else {
|
535
|
530
|
this.$message.error(resp.msg);
|
|
@@ -581,7 +576,6 @@ export default {
|
581
|
576
|
}
|
582
|
577
|
|
583
|
578
|
this.is_open = resp.data.is_open_remind;
|
584
|
|
-
|
585
|
579
|
this.longAdvices = totalAdvice;
|
586
|
580
|
this.waitUploadAdvices = waitUploadAdvices;
|
587
|
581
|
break;
|
|
@@ -595,8 +589,8 @@ export default {
|
595
|
589
|
this.$emit("advice");
|
596
|
590
|
},
|
597
|
591
|
open(schedual){
|
|
592
|
+ console.log("中国2222222",this)
|
598
|
593
|
|
599
|
|
-
|
600
|
594
|
this.date = schedual.schedule_date
|
601
|
595
|
this.patient_id = schedual.patient_id
|
602
|
596
|
this.modedata = 1
|
|
@@ -633,31 +627,8 @@ export default {
|
633
|
627
|
} else if (id == 3) {
|
634
|
628
|
return 'modePurple'
|
635
|
629
|
}
|
636
|
|
- },
|
637
|
|
-
|
638
|
|
- compare(propertyName) {
|
639
|
|
- return function(obj1, obj2) {
|
640
|
|
- var value1 = obj1[propertyName];
|
641
|
|
- var value2 = obj2[propertyName];
|
642
|
|
- if (value1 < value2) {
|
643
|
|
- return -1;
|
644
|
|
- } else if (value1 > value2) {
|
645
|
|
- return 1;
|
646
|
|
- } else {
|
647
|
|
- return 0;
|
648
|
|
- }
|
649
|
630
|
}
|
650
|
|
- }
|
651
|
|
-
|
652
|
631
|
},
|
653
|
|
- created(){
|
654
|
|
-
|
655
|
|
- for(let i=0;i<this.schedules.length;i++){
|
656
|
|
- this.schedules[i].Sort = this.schedules[i].device_number.sort
|
657
|
|
- }
|
658
|
|
- this.schedules.sort(this.compare("Sort"))
|
659
|
|
- this.scheduleArr = this.schedules
|
660
|
|
- }
|
661
|
632
|
};
|
662
|
633
|
</script>
|
663
|
634
|
|