|
|
@@ -489,23 +489,25 @@
|
|
|
_this.totalOrders.partPacking += item.partPacking;
|
|
|
_this.totalOrders.sowComplete += item.sowComplete;
|
|
|
});
|
|
|
- this.initOrderCountingRecords();
|
|
|
- this.orderCountingRecordsChart = echarts.init(document.getElementById('orderCountingRecords'));
|
|
|
- this.initOrderCountingRecordsChart();
|
|
|
+ if (this.orderCountingRecords[0]!=null) {
|
|
|
+ this.initOrderCountingRecords();
|
|
|
+ this.orderCountingRecordsChart = echarts.init(document.getElementById('orderCountingRecords'));
|
|
|
+ this.initOrderCountingRecordsChart();
|
|
|
+ }
|
|
|
|
|
|
this.logisticsCountingRecordsChart = echarts.init(document.getElementById('logisticsCountingRecords'));
|
|
|
this.initLogisticsCountingRecordsChart();
|
|
|
|
|
|
this.warehouseCountingRecordsChart = echarts.init(document.getElementById('warehouseCountingRecords'));
|
|
|
this.initWarehouseCountingRecordsChart();
|
|
|
-
|
|
|
+ @can('人事管理-临时工报表-可见全部组')
|
|
|
this.initLaborReportsCountingRecords();
|
|
|
this.laborReportsCountingRecordsChart = echarts.init(document.getElementById('laborReportsCountingRecords'));
|
|
|
this.initLaborReportsCountingRecordsChart();
|
|
|
|
|
|
this.laborReportsUserGroupsCountChart = echarts.init(document.getElementById('laborReportsUserGroupsCount'));
|
|
|
this.initLaborReportsUserGroupsCountChart();
|
|
|
-
|
|
|
+ @endcan
|
|
|
},
|
|
|
methods: {
|
|
|
switchDataPanel_forOrderCountingRecords(fromUnit, toUnit) {
|