|
@@ -57,7 +57,6 @@ export class SynthesizeStatisticsComponent implements OnInit {
|
57
|
57
|
}
|
58
|
58
|
] //报修耗材
|
59
|
59
|
ngOnInit() {
|
60
|
|
- this.initSessionData();
|
61
|
60
|
this.search();
|
62
|
61
|
}
|
63
|
62
|
|
|
@@ -335,6 +334,15 @@ export class SynthesizeStatisticsComponent implements OnInit {
|
335
|
334
|
this.dutyId = undefined;
|
336
|
335
|
this.parentDutyId = dutyId;
|
337
|
336
|
}
|
|
337
|
+
|
|
338
|
+ this.isLoading = true
|
|
339
|
+ this.getWorkData();
|
|
340
|
+ this.getMaintainData();
|
|
341
|
+ this.repairsChart();
|
|
342
|
+ this.malfunctionChart();
|
|
343
|
+ this.buildingChart();
|
|
344
|
+ this.getDeptCostData();
|
|
345
|
+ this.getConsumableData();
|
338
|
346
|
}
|
339
|
347
|
|
340
|
348
|
// 表格数据
|
|
@@ -406,21 +414,14 @@ export class SynthesizeStatisticsComponent implements OnInit {
|
406
|
414
|
|
407
|
415
|
// 搜索
|
408
|
416
|
search() {
|
409
|
|
- this.isLoading = true
|
410
|
|
- this.getWorkData();
|
411
|
|
- this.getMaintainData();
|
412
|
|
- this.repairsChart();
|
413
|
|
- this.malfunctionChart();
|
414
|
|
- this.buildingChart();
|
415
|
|
- this.getDeptCostData();
|
416
|
|
- this.getConsumableData();
|
|
417
|
+ this.initSessionData();
|
417
|
418
|
}
|
418
|
419
|
|
419
|
420
|
// 日期选择 日
|
420
|
421
|
dateRange: any = [format(startOfMonth(addMonths(new Date(), -1)), 'yyyy-MM-dd HH:mm:ss'), format(endOfMonth(addMonths(new Date(), -1)), 'yyyy-MM-dd HH:mm:ss')]; //发起时间区间 天
|
421
|
422
|
changeDate(result?): void {
|
422
|
|
- result[0] = format(result[0], 'yyyy-MM-dd HH:mm:ss');
|
423
|
|
- result[1] = format(result[1], 'yyyy-MM-dd HH:mm:ss');
|
|
423
|
+ result[0] = format(result[0], 'yyyy-MM-dd') + ' ' + '00:00:00';
|
|
424
|
+ result[1] = format(result[1], 'yyyy-MM-dd') + ' ' + '23:59:59';
|
424
|
425
|
this.dateRange = result;
|
425
|
426
|
// this.search();
|
426
|
427
|
console.log(this.dateRange);
|