|
@@ -10,7 +10,7 @@
|
10
|
10
|
:value="item.id">
|
11
|
11
|
</el-option>
|
12
|
12
|
</el-select>
|
13
|
|
-
|
|
13
|
+
|
14
|
14
|
<!-- <span style="margin-left:100px">班次:</span>
|
15
|
15
|
<el-select v-model="schedule_type" placeholder="请选择" @change="changeSchedule_type">
|
16
|
16
|
<el-option
|
|
@@ -21,7 +21,7 @@
|
21
|
21
|
</el-option>
|
22
|
22
|
</el-select> -->
|
23
|
23
|
</div>
|
24
|
|
-
|
|
24
|
+
|
25
|
25
|
<div class="cell clearfix" v-if="weekTime == 'thisWeek' || weekTime == 'nextWeek' || weekTime == 'nextTwoWeek' ">
|
26
|
26
|
<el-input
|
27
|
27
|
size="small"
|
|
@@ -37,12 +37,12 @@
|
37
|
37
|
type="primary"
|
38
|
38
|
icon="el-icon-search"
|
39
|
39
|
@click="search"
|
40
|
|
-
|
|
40
|
+
|
41
|
41
|
>搜索</el-button
|
42
|
42
|
>
|
43
|
43
|
</div>
|
44
|
|
-
|
45
|
|
-
|
|
44
|
+
|
|
45
|
+
|
46
|
46
|
|
47
|
47
|
<el-dialog :visible.sync="searchTableVisible" width="80%">
|
48
|
48
|
<el-table
|
|
@@ -86,7 +86,7 @@
|
86
|
86
|
</template>
|
87
|
87
|
</el-table-column>
|
88
|
88
|
<el-table-column label="操作" align="center" width="300">
|
89
|
|
-
|
|
89
|
+
|
90
|
90
|
<template slot-scope="scope">
|
91
|
91
|
<span v-if="now_time>scope.row.schedule_date">
|
92
|
92
|
<el-button
|
|
@@ -112,8 +112,8 @@
|
112
|
112
|
</el-button>
|
113
|
113
|
</span>
|
114
|
114
|
</template>
|
115
|
|
-
|
116
|
|
-
|
|
115
|
+
|
|
116
|
+
|
117
|
117
|
<template slot-scope="scope">
|
118
|
118
|
<span v-if="now_time <=scope.row.schedule_date">
|
119
|
119
|
<el-button
|
|
@@ -138,7 +138,7 @@
|
138
|
138
|
调整模式
|
139
|
139
|
</el-button>
|
140
|
140
|
</span>
|
141
|
|
-
|
|
141
|
+
|
142
|
142
|
</template>
|
143
|
143
|
</el-table-column>
|
144
|
144
|
</el-table>
|
|
@@ -845,7 +845,7 @@ export default {
|
845
|
845
|
this.scheduleZone=[]
|
846
|
846
|
var partionStr = this.partition_id
|
847
|
847
|
var arr = this.zoneIdList.join(',')
|
848
|
|
-
|
|
848
|
+
|
849
|
849
|
var str = ""
|
850
|
850
|
if(partionStr == 0){
|
851
|
851
|
str = arr
|
|
@@ -853,8 +853,8 @@ export default {
|
853
|
853
|
if(partionStr != 0){
|
854
|
854
|
str = partionStr.join(',')
|
855
|
855
|
}
|
856
|
|
-
|
857
|
|
-
|
|
856
|
+
|
|
857
|
+
|
858
|
858
|
getWeekPanelsOne(1,str).then(response => {
|
859
|
859
|
if (response.data.state == 0) {
|
860
|
860
|
return false
|
|
@@ -875,7 +875,7 @@ export default {
|
875
|
875
|
that.scheduleZoneRow.push(partition.jihaos.length)
|
876
|
876
|
|
877
|
877
|
that.partitions[partition.id] = partition
|
878
|
|
-
|
|
878
|
+
|
879
|
879
|
partition.jihaos.forEach(function(jihao) {
|
880
|
880
|
var thisPa = {
|
881
|
881
|
area: partition.name,
|
|
@@ -1033,9 +1033,9 @@ export default {
|
1033
|
1033
|
},
|
1034
|
1034
|
total: 0
|
1035
|
1035
|
}
|
1036
|
|
-
|
|
1036
|
+
|
1037
|
1037
|
that.scheduleZone.push(thisPa)
|
1038
|
|
-
|
|
1038
|
+
|
1039
|
1039
|
})
|
1040
|
1040
|
})
|
1041
|
1041
|
}
|
|
@@ -1043,7 +1043,7 @@ export default {
|
1043
|
1043
|
this.scheduleZone.sort(this.compare('sort'))
|
1044
|
1044
|
})
|
1045
|
1045
|
},
|
1046
|
|
-
|
|
1046
|
+
|
1047
|
1047
|
cellClass({ row, column, rowIndex, columnIndex }) {
|
1048
|
1048
|
if (columnIndex == 0 || columnIndex == 1 || columnIndex == 23) {
|
1049
|
1049
|
return "";
|
|
@@ -1135,7 +1135,7 @@ export default {
|
1135
|
1135
|
return sums;
|
1136
|
1136
|
},
|
1137
|
1137
|
objectSpanMethod({ row, column, rowIndex, columnIndex }) {
|
1138
|
|
-
|
|
1138
|
+
|
1139
|
1139
|
var that = this;
|
1140
|
1140
|
var rowNum = 0;
|
1141
|
1141
|
rowNumber = 0;
|
|
@@ -1194,7 +1194,7 @@ export default {
|
1194
|
1194
|
patitionid:str,
|
1195
|
1195
|
schedule_type:this.schedule_type,
|
1196
|
1196
|
}
|
1197
|
|
-
|
|
1197
|
+
|
1198
|
1198
|
getSchedulesOne(params).then(response => {
|
1199
|
1199
|
if (response.data.state == 1) {
|
1200
|
1200
|
this.weekTitle = response.data.data.weekTitle;
|
|
@@ -1202,11 +1202,11 @@ export default {
|
1202
|
1202
|
this.weekDays = response.data.data.days;
|
1203
|
1203
|
this.toDay = response.data.data.today;
|
1204
|
1204
|
var theSchedules = response.data.data.schdules;
|
1205
|
|
-
|
|
1205
|
+
|
1206
|
1206
|
var that = this;
|
1207
|
|
-
|
|
1207
|
+
|
1208
|
1208
|
this.scheduleZone.forEach(function(zone, index) {
|
1209
|
|
-
|
|
1209
|
+
|
1210
|
1210
|
that.scheduleZone[index].Mon_M = {
|
1211
|
1211
|
mode_id: 0,
|
1212
|
1212
|
mode_name: "",
|
|
@@ -1339,14 +1339,14 @@ export default {
|
1339
|
1339
|
theSchedules.forEach(function(schedule, sindex) {
|
1340
|
1340
|
|
1341
|
1341
|
if (zone.jihao_id == schedule.bed_id) {
|
1342
|
|
-
|
|
1342
|
+
|
1343
|
1343
|
var weekPath = that.weekPath(
|
1344
|
1344
|
schedule.schedule_week,
|
1345
|
1345
|
schedule.schedule_type
|
1346
|
1346
|
);
|
1347
|
1347
|
|
1348
|
1348
|
if (weekPath.length == 2) {
|
1349
|
|
-
|
|
1349
|
+
|
1350
|
1350
|
|
1351
|
1351
|
var weekPathKey = weekPath[0] + "_" + weekPath[1];
|
1352
|
1352
|
that.scheduleZone[index][weekPathKey] = {
|
|
@@ -1362,14 +1362,14 @@ export default {
|
1362
|
1362
|
: that.modeOptions[schedule.mode_id].name
|
1363
|
1363
|
};
|
1364
|
1364
|
that.scheduleZone[index].total += 1;
|
1365
|
|
-
|
|
1365
|
+
|
1366
|
1366
|
}
|
1367
|
1367
|
}
|
1368
|
1368
|
});
|
1369
|
1369
|
}
|
1370
|
1370
|
|
1371
|
1371
|
});
|
1372
|
|
-
|
|
1372
|
+
|
1373
|
1373
|
} else {
|
1374
|
1374
|
this.$message.error("网络错误");
|
1375
|
1375
|
return false;
|
|
@@ -1561,7 +1561,7 @@ export default {
|
1561
|
1561
|
clickThis(row, column, cell, event) {
|
1562
|
1562
|
// debugger
|
1563
|
1563
|
var week = this.weekDay(column.property);
|
1564
|
|
-
|
|
1564
|
+
|
1565
|
1565
|
|
1566
|
1566
|
if (week[0] == -1 || week[1] == -1) {
|
1567
|
1567
|
return false;
|
|
@@ -1578,7 +1578,7 @@ export default {
|
1578
|
1578
|
|
1579
|
1579
|
this.currentData.type_name = this.dayType(week[1]);
|
1580
|
1580
|
this.currentData.zone_name = row.area;
|
1581
|
|
-
|
|
1581
|
+
|
1582
|
1582
|
this.currentData.bed_name = row.cut;
|
1583
|
1583
|
this.currentData.partition_type = row.zone_type;
|
1584
|
1584
|
|
|
@@ -1801,7 +1801,7 @@ export default {
|
1801
|
1801
|
|
1802
|
1802
|
this.zone_names = Object.keys(this.zone_device_map);
|
1803
|
1803
|
// console.log('8989898989898989',this.zone_names)
|
1804
|
|
-
|
|
1804
|
+
|
1805
|
1805
|
// console.log(this.current_devices);
|
1806
|
1806
|
|
1807
|
1807
|
if (this.zone_names.length > 0) {
|
|
@@ -1809,7 +1809,7 @@ export default {
|
1809
|
1809
|
this.current_devices = this.zone_device_map[this.zone_name];
|
1810
|
1810
|
this.device_id = this.current_devices[0].id;
|
1811
|
1811
|
}
|
1812
|
|
-
|
|
1812
|
+
|
1813
|
1813
|
|
1814
|
1814
|
this.zone_device_options = [
|
1815
|
1815
|
{ values: this.zone_names },
|
|
@@ -2154,7 +2154,7 @@ export default {
|
2154
|
2154
|
}else if(this.weekTime == 'nextTwoWeek'){
|
2155
|
2155
|
week_type = 3
|
2156
|
2156
|
}
|
2157
|
|
-
|
|
2157
|
+
|
2158
|
2158
|
const params = {
|
2159
|
2159
|
keywords: this.keywords,
|
2160
|
2160
|
week_type: week_type,
|
|
@@ -2295,7 +2295,7 @@ export default {
|
2295
|
2295
|
}
|
2296
|
2296
|
this.zones.push(...zones)
|
2297
|
2297
|
var strArr = this.zoneIdList.join(",")
|
2298
|
|
-
|
|
2298
|
+
|
2299
|
2299
|
this.strArr = strArr
|
2300
|
2300
|
this.getWeekPanels()
|
2301
|
2301
|
}
|
|
@@ -2306,7 +2306,7 @@ export default {
|
2306
|
2306
|
this.partition_id = val
|
2307
|
2307
|
this.getWeekPanels()
|
2308
|
2308
|
this.getSchedules()
|
2309
|
|
-
|
|
2309
|
+
|
2310
|
2310
|
},
|
2311
|
2311
|
changeSchedule_type(val){
|
2312
|
2312
|
this.$emit('event2', val)
|
|
@@ -2318,9 +2318,9 @@ export default {
|
2318
|
2318
|
ScheduleItem
|
2319
|
2319
|
},
|
2320
|
2320
|
mounted() {
|
2321
|
|
-
|
|
2321
|
+
|
2322
|
2322
|
this.tableContainHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 120;
|
2323
|
|
-
|
|
2323
|
+
|
2324
|
2324
|
// var theType = this.weekType(this.weekTime);
|
2325
|
2325
|
// this.getSchedules(theType);
|
2326
|
2326
|
const that = this;
|
|
@@ -2352,17 +2352,17 @@ export default {
|
2352
|
2352
|
}
|
2353
|
2353
|
var nowDate = year + "-" + month + "-" + day
|
2354
|
2354
|
var date = new Date(nowDate + " 00:00:00")
|
2355
|
|
- console.log("date23232323232323",date.getTime()/1000)
|
|
2355
|
+ console.log("date23232323232323",date.getTime()/1000)
|
2356
|
2356
|
this.now_time = date.getTime()/1000
|
2357
|
2357
|
this.getAllZones()
|
2358
|
|
-
|
|
2358
|
+
|
2359
|
2359
|
this.changeScheduleType(1)
|
2360
|
2360
|
rowNumber = 0;
|
2361
|
2361
|
this.modeOptions = this.$store.getters.treatment_mode;
|
2362
|
|
-
|
|
2362
|
+
|
2363
|
2363
|
this.partitions = this.partitionsProp;
|
2364
|
2364
|
|
2365
|
|
-
|
|
2365
|
+
|
2366
|
2366
|
var contagions = this.$store.getters.contagions;
|
2367
|
2367
|
if (contagions.length > 0) {
|
2368
|
2368
|
var that = this;
|
|
@@ -2372,15 +2372,15 @@ export default {
|
2372
|
2372
|
}
|
2373
|
2373
|
});
|
2374
|
2374
|
}
|
2375
|
|
-
|
|
2375
|
+
|
2376
|
2376
|
this.scheduleZoneRow = this.scheduleZoneRowProp;
|
2377
|
|
-
|
|
2377
|
+
|
2378
|
2378
|
|
2379
|
2379
|
this.weekday = new Date().getDay();
|
2380
|
2380
|
if (this.weekday == 0) {
|
2381
|
2381
|
this.weekday = 7;
|
2382
|
2382
|
}
|
2383
|
|
-
|
|
2383
|
+
|
2384
|
2384
|
}
|
2385
|
2385
|
};
|
2386
|
2386
|
</script>
|