|
|
|
@ -3743,9 +3743,11 @@ const exportReport=()=>{
|
|
|
|
|
let dataID={ |
|
|
|
|
workOrderStatus:details.query.workOrderStatus, |
|
|
|
|
} |
|
|
|
|
$_exportAftersalesWorkOrder(dataID).then(res => { |
|
|
|
|
$_exportAftersalesWorkOrder(dataID).then(res => { |
|
|
|
|
const currentDate = new Date(); |
|
|
|
|
const formattedDate = `${currentDate.getFullYear()}${(currentDate.getMonth() + 1).toString().padStart(2, '0')}${currentDate.getDate().toString().padStart(2, '0')}${currentDate.getHours().toString().padStart(2, '0')}${currentDate.getMinutes().toString().padStart(2, '0')}${currentDate.getSeconds().toString().padStart(2, '0')}`; |
|
|
|
|
console.log(res, '导出'); |
|
|
|
|
downloadXls(res.data, `报表.xlsx`); |
|
|
|
|
downloadXls(res.data, `导出异常工单数据${formattedDate}.xlsx`); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|