|
@@ -420,12 +420,12 @@ export class DashboardAnalysisComponent implements OnInit {
|
|
|
|
|
|
exportLoading=false;
|
|
|
export(){
|
|
|
- let month=this.year.substring(2,4)+this.month;
|
|
|
- this.fbsWorkshopDispatchListService.export(month).then((response)=>{
|
|
|
- let list=[];
|
|
|
- list=response.result
|
|
|
+ // let month=this.year.substring(2,4)+this.month;
|
|
|
+ // this.fbsWorkshopDispatchListService.export(month).then((response)=>{
|
|
|
+ // let list=[];
|
|
|
+ // list=response.result
|
|
|
|
|
|
- this.exportLoading=true;
|
|
|
+ // this.exportLoading=true;
|
|
|
let data = [];
|
|
|
let title = [
|
|
|
['项目名称'], // 项目名称
|
|
@@ -438,7 +438,7 @@ export class DashboardAnalysisComponent implements OnInit {
|
|
|
['累计完成工时'], // 累计完成工时
|
|
|
];
|
|
|
data.push(title);
|
|
|
- list.forEach(element => {
|
|
|
+ this.listOfData.forEach(element => {
|
|
|
let row=[];
|
|
|
row.push(element.projectName)
|
|
|
row.push(element.productionOrderNumberName)
|
|
@@ -462,7 +462,9 @@ export class DashboardAnalysisComponent implements OnInit {
|
|
|
['其他总工时'],
|
|
|
[this.AbnormalWorkingHoursTotal.train],
|
|
|
['异常总工时统计'],
|
|
|
- [this.AbnormalWorkingHoursTotal.abnormalWorkingHours]
|
|
|
+ [this.AbnormalWorkingHoursTotal.abnormalWorkingHours],
|
|
|
+ ['仓库总工时统计'],
|
|
|
+ [this.AbnormalWorkingHoursTotal.warehouse]
|
|
|
];
|
|
|
data.push(efficiencyTotal);
|
|
|
// 导出
|
|
@@ -475,8 +477,8 @@ export class DashboardAnalysisComponent implements OnInit {
|
|
|
],
|
|
|
filename: '生产订单汇总导出.xlsx',
|
|
|
});
|
|
|
- this.exportLoading=false;
|
|
|
- })
|
|
|
+ // this.exportLoading=false;
|
|
|
+ // })
|
|
|
}
|
|
|
|
|
|
}
|