|
|
|
@ -636,6 +636,7 @@ import {
|
|
|
|
|
$_exportWorkOrder1, |
|
|
|
|
$_exportWorkOrder2, |
|
|
|
|
$_exportWorkOrder3, |
|
|
|
|
$_exportWorkOrder4, |
|
|
|
|
} from '@/api/aftersales/aftersalesWorkOrder'; |
|
|
|
|
import { |
|
|
|
|
columnList, |
|
|
|
@ -2830,6 +2831,10 @@ const exportReport = () => {
|
|
|
|
|
// 理赔金额未出 |
|
|
|
|
ExportClaimAmount(dataID); |
|
|
|
|
break; |
|
|
|
|
case 6: |
|
|
|
|
// 完结 |
|
|
|
|
CompleteExport(dataID); |
|
|
|
|
break; |
|
|
|
|
default: |
|
|
|
|
ExportAll(dataID); |
|
|
|
|
break; |
|
|
|
@ -2934,6 +2939,26 @@ const ExportClaimAmount = async dataID => {
|
|
|
|
|
} finally { |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
// 完结导出 |
|
|
|
|
const CompleteExport = async dataID => { |
|
|
|
|
try { |
|
|
|
|
let res = await $_exportWorkOrder4(dataID); |
|
|
|
|
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')}`; |
|
|
|
|
downloadXls(res.data, `导出工单数据${formattedDate}.xlsx`); |
|
|
|
|
} catch (e) { |
|
|
|
|
console.log(e); |
|
|
|
|
} finally { |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
// 处理完毕导出 |
|
|
|
|
const ProcessedExported = async dataID => { |
|
|
|
|
try { |
|
|
|
|