|
@ -167,8 +167,14 @@ const handleExport = async () => { |
|
|
await message.exportConfirm() |
|
|
await message.exportConfirm() |
|
|
// 发起导出 |
|
|
// 发起导出 |
|
|
exportLoading.value = true |
|
|
exportLoading.value = true |
|
|
|
|
|
if(routeName.value.includes('SCP')){ |
|
|
|
|
|
const data = await PurchasereturnRecordMainApi.exportPurchasereturnRecordMainSCP(tableObject.params) |
|
|
|
|
|
download.excel(data, `${t('ts.采购退货记录主')}.xlsx`) |
|
|
|
|
|
}else{ |
|
|
const data = await PurchasereturnRecordMainApi.exportPurchasereturnRecordMain(tableObject.params) |
|
|
const data = await PurchasereturnRecordMainApi.exportPurchasereturnRecordMain(tableObject.params) |
|
|
download.excel(data, `${t('ts.采购退货记录主')}.xlsx`) |
|
|
download.excel(data, `${t('ts.采购退货记录主')}.xlsx`) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} catch { |
|
|
} catch { |
|
|
} finally { |
|
|
} finally { |
|
|
exportLoading.value = false |
|
|
exportLoading.value = false |
|
|