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