|
@@ -101,12 +101,12 @@
|
101
|
101
|
</el-tab-pane>
|
102
|
102
|
<el-tab-pane label="透析区" name="second">
|
103
|
103
|
<div class="cell clearfix" style="margin-bottom:10px;">
|
104
|
|
- <el-date-picker v-model="selected_date" prefix-icon="el-icon-date" @change="handleScheduleDateChange" :editable="false" :clearable="false" style="width: 130px;" type="date" placeholder="选择日期时间" align="right" ></el-date-picker>
|
105
|
|
- <el-input size="small" style="width:80px;" v-model.trim="search_input" class="filter-item"/>
|
106
|
|
- <el-button size="small" class="filter-item" type="primary" @click="searchAction">搜索</el-button>
|
|
104
|
+ <el-date-picker v-model="selected_date" prefix-icon="el-icon-date" @change="handleScheduleDateChange" :editable="false" :clearable="false" style="width: 45%;margin-right:10px;" type="date" placeholder="选择日期时间" align="right" ></el-date-picker>
|
|
105
|
+ <el-input size="small" style="width:24%;" v-model.trim="search_input" class="filter-item"/>
|
|
106
|
+ <el-button size="small" class="filter-item" style="margin-right:20px;" type="primary" @click="searchAction">搜索</el-button>
|
107
|
107
|
</div>
|
108
|
|
- <div class="cell clearfix" style="margin-bottom:10px;">
|
109
|
|
- <el-select v-model="patientStateVal" placeholder="全部患者状态" style="width:130px;" @change="handleStateChange">
|
|
108
|
+ <div class="cell clearfix" style="margin-bottom:10px;display:flex;">
|
|
109
|
+ <el-select v-model="patientStateVal" placeholder="全部患者状态" style="margin-right:10px;" @change="handleStateChange">
|
110
|
110
|
<el-option
|
111
|
111
|
v-for="item in patient_state"
|
112
|
112
|
:key="item.value"
|
|
@@ -114,7 +114,7 @@
|
114
|
114
|
:value="item.value">
|
115
|
115
|
</el-option>
|
116
|
116
|
</el-select>
|
117
|
|
- <el-select v-model="treatStateVal" placeholder="全部治疗状态" style="width:130px;" @change="handleTreatChange">
|
|
117
|
+ <el-select v-model="treatStateVal" placeholder="全部治疗状态" style="margin-right:20px;" @change="handleTreatChange">
|
118
|
118
|
<el-option
|
119
|
119
|
v-for="item in treat_state"
|
120
|
120
|
:key="item.value"
|
|
@@ -123,8 +123,8 @@
|
123
|
123
|
</el-option>
|
124
|
124
|
</el-select>
|
125
|
125
|
</div>
|
126
|
|
- <div class="cell clearfix" style="margin-bottom:10px;">
|
127
|
|
- <el-select v-model="scheduleStateVal" placeholder="班次" style="width:130px;" @change="handletimeType">
|
|
126
|
+ <div class="cell clearfix" style="margin-bottom:10px;display:flex;">
|
|
127
|
+ <el-select v-model="scheduleStateVal" placeholder="班次" style="margin-right:10px;" @change="handletimeType">
|
128
|
128
|
<el-option
|
129
|
129
|
v-for="item in schedule_options"
|
130
|
130
|
:key="item.value"
|
|
@@ -132,7 +132,7 @@
|
132
|
132
|
:value="item.value">
|
133
|
133
|
</el-option>
|
134
|
134
|
</el-select>
|
135
|
|
- <el-select v-model="zoneVal" placeholder="分区" style="width:130px;" @change="handleZoneChange">
|
|
135
|
+ <el-select v-model="zoneVal" placeholder="分区" style="margin-right:20px;" @change="handleZoneChange">
|
136
|
136
|
<el-option
|
137
|
137
|
v-for="item in zone_options"
|
138
|
138
|
:key="item.id"
|
|
@@ -637,7 +637,7 @@ export default {
|
637
|
637
|
var date = this.$route.query.date;
|
638
|
638
|
this.patient_id = patient_id;
|
639
|
639
|
this.date = date;
|
640
|
|
- this.getInitData();
|
|
640
|
+
|
641
|
641
|
this.getScheduleDetail();
|
642
|
642
|
this.getLongAdvice();
|
643
|
643
|
|
|
@@ -646,6 +646,7 @@ export default {
|
646
|
646
|
var zone_selected = this.$store.getters.zone_selected
|
647
|
647
|
var patient_state_selected = this.$store.getters.patient_state_selected
|
648
|
648
|
var treat_state_selected = this.$store.getters.treat_state_selected
|
|
649
|
+ var selected_date = this.$store.getters.selected_date
|
649
|
650
|
if (schedule_type_selected) {
|
650
|
651
|
this.scheduleStateVal = schedule_type_selected.schedule_type_selected
|
651
|
652
|
}
|
|
@@ -658,12 +659,20 @@ export default {
|
658
|
659
|
if (treat_state_selected) {
|
659
|
660
|
this.treatStateVal = treat_state_selected.treat_state_selected
|
660
|
661
|
}
|
|
662
|
+ if(selected_date.selected_date){
|
|
663
|
+ this.selected_date = selected_date.selected_date
|
|
664
|
+
|
|
665
|
+ }
|
|
666
|
+
|
|
667
|
+ this.getInitData();
|
|
668
|
+ this.requestDialysisSchedules()
|
661
|
669
|
|
662
|
670
|
|
663
|
671
|
},
|
664
|
672
|
mounted(){
|
665
|
673
|
const timer = setInterval(() =>{
|
666
|
|
- this.getInitData();
|
|
674
|
+ // this.getInitData();
|
|
675
|
+ this.requestDialysisSchedules()
|
667
|
676
|
}, 1000 * 60);
|
668
|
677
|
// 通过$once来监听定时器,在beforeDestroy钩子可以被清除。
|
669
|
678
|
this.$once('hook:beforeDestroy', () => {
|
|
@@ -1019,7 +1028,7 @@ export default {
|
1019
|
1028
|
)
|
1020
|
1029
|
},
|
1021
|
1030
|
//日期
|
1022
|
|
- handleScheduleDateChange: function() {
|
|
1031
|
+ handleScheduleDateChange: function(index) {
|
1023
|
1032
|
this.treatStateVal = 0
|
1024
|
1033
|
this.patientStateVal = 0
|
1025
|
1034
|
this.zoneVal = 0
|
|
@@ -1030,6 +1039,8 @@ export default {
|
1030
|
1039
|
// schedule_type: this.schedule_type_selected,
|
1031
|
1040
|
// schedule_date: this.selected_date,
|
1032
|
1041
|
// })
|
|
1042
|
+ this.selected_date = index
|
|
1043
|
+ this.$store.dispatch('SetSelectedDate', { selected_date: index })
|
1033
|
1044
|
this.requestDialysisSchedules()
|
1034
|
1045
|
},
|
1035
|
1046
|
//初始化数据
|
|
@@ -1045,7 +1056,7 @@ export default {
|
1045
|
1056
|
zone_options.push({ id: zone.id, text: zone.name })
|
1046
|
1057
|
}
|
1047
|
1058
|
this.zone_options = zone_options
|
1048
|
|
- this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
|
|
1059
|
+ // this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
|
1049
|
1060
|
this.arr = this.processedDialysisSchedules(schedules, this.zone_options)
|
1050
|
1061
|
this.getData()
|
1051
|
1062
|
} else {
|