|
|
@ -84,7 +84,7 @@ const updataTableColumns = (val) => { |
|
|
|
} |
|
|
|
|
|
|
|
const { tableObject, tableMethods } = useTable({ |
|
|
|
getListApi: PurchasepriceApi.getPurchasepricePage // 分页接口 |
|
|
|
getListApi: routeName.value.includes('SCP')?PurchasepriceApi.getPurchasepricePageSCP:PurchasepriceApi.getPurchasepricePage // 分页接口 |
|
|
|
}) |
|
|
|
|
|
|
|
// 获得表格的各种操作 |
|
|
@ -238,8 +238,13 @@ const handleExport = async () => { |
|
|
|
await message.exportConfirm() |
|
|
|
// 发起导出 |
|
|
|
exportLoading.value = true |
|
|
|
const data = await PurchasepriceApi.exportPurchaseprice(tableObject.params) |
|
|
|
download.excel(data, `${t('ts.采购价格单')}.xlsx`) |
|
|
|
if(routeName.value.includes('SCP')){ |
|
|
|
const data = await PurchasepriceApi.exportPurchasepriceSCP(tableObject.params) |
|
|
|
download.excel(data, `${t('ts.采购价格单')}.xlsx`) |
|
|
|
}else{ |
|
|
|
const data = await PurchasepriceApi.exportPurchaseprice(tableObject.params) |
|
|
|
download.excel(data, `${t('ts.采购价格单')}.xlsx`) |
|
|
|
} |
|
|
|
} catch { |
|
|
|
} finally { |
|
|
|
exportLoading.value = false |
|
|
|