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