|
|
@ -291,12 +291,13 @@ const handleExport = async () => { |
|
|
|
await message.exportConfirm() |
|
|
|
// 发起导出 |
|
|
|
exportLoading.value = true |
|
|
|
const excelTitle = ref(route.meta.title) |
|
|
|
if(routeName.value.includes('SCP')){ |
|
|
|
const data = await PurchasereceiptRecordMainApi.exportPurchasereceiptRecordMainSCP(tableObject.params) |
|
|
|
download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) |
|
|
|
download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) |
|
|
|
}else{ |
|
|
|
const data = await PurchasereceiptRecordMainApi.exportPurchasereceiptRecordRefuseMain(tableObject.params) |
|
|
|
download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) |
|
|
|
download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) |
|
|
|
} |
|
|
|
} catch { |
|
|
|
} finally { |
|
|
|