|
@@ -1199,7 +1199,7 @@ export default {
|
1199
|
1199
|
);
|
1200
|
1200
|
},
|
1201
|
1201
|
//日期
|
1202
|
|
- handleScheduleDateChange: function() {
|
|
1202
|
+ handleScheduleDateChange: function(index) {
|
1203
|
1203
|
this.treatStateVal = 0
|
1204
|
1204
|
this.patientStateVal = 0
|
1205
|
1205
|
this.zoneVal = 0
|
|
@@ -1210,6 +1210,8 @@ export default {
|
1210
|
1210
|
// schedule_type: this.schedule_type_selected,
|
1211
|
1211
|
// schedule_date: this.selected_date,
|
1212
|
1212
|
// })
|
|
1213
|
+ this.selected_date = index
|
|
1214
|
+ this.$store.dispatch('SetSelectedDate', { selected_date: index })
|
1213
|
1215
|
this.requestDialysisSchedules()
|
1214
|
1216
|
},
|
1215
|
1217
|
//初始化数据
|
|
@@ -1225,9 +1227,10 @@ export default {
|
1225
|
1227
|
zone_options.push({ id: zone.id, text: zone.name })
|
1226
|
1228
|
}
|
1227
|
1229
|
this.zone_options = zone_options
|
1228
|
|
- this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
|
|
1230
|
+ // this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
|
1229
|
1231
|
this.arr = this.processedDialysisSchedules(schedules, this.zone_options)
|
1230
|
|
- this.getData()
|
|
1232
|
+ this.requestDialysisSchedules()
|
|
1233
|
+ // this.getData()
|
1231
|
1234
|
} else {
|
1232
|
1235
|
this.$message.error(resp.msg)
|
1233
|
1236
|
}
|
|
@@ -1236,27 +1239,27 @@ export default {
|
1236
|
1239
|
// 班次
|
1237
|
1240
|
handletimeType: function(index) {
|
1238
|
1241
|
this.scheduleStateVal = index
|
1239
|
|
- // this.$store.dispatch('SetScheduleTypeSelected', { schedule_type_selected: index })
|
|
1242
|
+ this.$store.dispatch('SetScheduleTypeSelected', { schedule_type_selected: index })
|
1240
|
1243
|
this.search_keyword = this.search_input = ''
|
1241
|
1244
|
this.getData()
|
1242
|
1245
|
},
|
1243
|
1246
|
//分区
|
1244
|
1247
|
handleZoneChange: function(index) {
|
1245
|
1248
|
this.zoneVal = index
|
1246
|
|
- // this.$store.dispatch('SetZoneSelected', { zone_selected: index })
|
|
1249
|
+ this.$store.dispatch('SetZoneSelected', { zone_selected: index })
|
1247
|
1250
|
this.search_keyword = this.search_input = ''
|
1248
|
1251
|
this.getData()
|
1249
|
1252
|
},
|
1250
|
1253
|
//患者状态
|
1251
|
1254
|
handleStateChange: function(index) {
|
1252
|
1255
|
this.patientStateVal = index
|
1253
|
|
- // this.$store.dispatch('SetPatientStateSelected', { patient_state_selected: index })
|
|
1256
|
+ this.$store.dispatch('SetPatientStateSelected', { patient_state_selected: index })
|
1254
|
1257
|
this.search_keyword = this.search_input = ''
|
1255
|
1258
|
this.getData()
|
1256
|
1259
|
},
|
1257
|
1260
|
handleTreatChange: function(index) {
|
1258
|
1261
|
this.treatStateVal = index
|
1259
|
|
- // this.$store.dispatch('SetTreatStateSelected', { treat_state_selected: index })
|
|
1262
|
+ this.$store.dispatch('SetTreatStateSelected', { treat_state_selected: index })
|
1260
|
1263
|
this.search_keyword = this.search_input = ''
|
1261
|
1264
|
this.getData()
|
1262
|
1265
|
},
|
|
@@ -1309,11 +1312,13 @@ export default {
|
1309
|
1312
|
if (resp.state == 1) {
|
1310
|
1313
|
var schedules = resp.data.schedules
|
1311
|
1314
|
this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
|
|
1315
|
+
|
1312
|
1316
|
let newArr = []
|
1313
|
1317
|
this.zone_schedules.map(item => {
|
1314
|
1318
|
newArr.push(...item.schedules)
|
1315
|
1319
|
})
|
1316
|
1320
|
this.tableData = newArr
|
|
1321
|
+ this.getData()
|
1317
|
1322
|
} else {
|
1318
|
1323
|
this.$message.error(resp.msg)
|
1319
|
1324
|
}
|
|
@@ -1502,6 +1507,26 @@ export default {
|
1502
|
1507
|
}
|
1503
|
1508
|
},
|
1504
|
1509
|
created() {
|
|
1510
|
+ var schedule_type_selected = this.$store.getters.schedule_type_selected
|
|
1511
|
+ var zone_selected = this.$store.getters.zone_selected
|
|
1512
|
+ var patient_state_selected = this.$store.getters.patient_state_selected
|
|
1513
|
+ var treat_state_selected = this.$store.getters.treat_state_selected
|
|
1514
|
+ var selected_date = this.$store.getters.selected_date
|
|
1515
|
+ if (schedule_type_selected) {
|
|
1516
|
+ this.scheduleStateVal = schedule_type_selected.schedule_type_selected
|
|
1517
|
+ }
|
|
1518
|
+ if (zone_selected) {
|
|
1519
|
+ this.zoneVal = zone_selected.zone_selected
|
|
1520
|
+ }
|
|
1521
|
+ if (patient_state_selected) {
|
|
1522
|
+ this.patientStateVal = patient_state_selected.patient_state_selected
|
|
1523
|
+ }
|
|
1524
|
+ if (treat_state_selected) {
|
|
1525
|
+ this.treatStateVal = treat_state_selected.treat_state_selected
|
|
1526
|
+ }
|
|
1527
|
+ if (selected_date.selected_date) {
|
|
1528
|
+ this.selected_date = selected_date.selected_date
|
|
1529
|
+ }
|
1505
|
1530
|
this.getInitData();
|
1506
|
1531
|
|
1507
|
1532
|
var xtuser = this.$store.getters.xt_user;
|