diff --git a/src/api/wms/purchaseprice/index.ts b/src/api/wms/purchaseprice/index.ts index 01fafc37a..cf2438619 100644 --- a/src/api/wms/purchaseprice/index.ts +++ b/src/api/wms/purchaseprice/index.ts @@ -44,7 +44,12 @@ export const deletePurchaseprice = async (id: number) => { // 导出采购价格单 Excel export const exportPurchaseprice = async (params) => { - return await request.download({ url: `/wms/purchaseprice/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/purchaseprice/export-excel-senior`, data }) + } else { + return await request.download({ url: `/wms/purchaseprice/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/api/wms/supplier/index.ts b/src/api/wms/supplier/index.ts index 97609ae09..805a4163c 100644 --- a/src/api/wms/supplier/index.ts +++ b/src/api/wms/supplier/index.ts @@ -58,7 +58,12 @@ export const deleteSupplier = async (id: number) => { // 导出供应商 Excel export const exportSupplier = async (params) => { - return await request.download({ url: `/wms/supplier/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/supplier/export-excel-senior`, data }) + } else { + return await request.download({ url: `/wms/supplier/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/api/wms/supplieritem/index.ts b/src/api/wms/supplieritem/index.ts index e11eeb5f6..387777af6 100644 --- a/src/api/wms/supplieritem/index.ts +++ b/src/api/wms/supplieritem/index.ts @@ -53,7 +53,12 @@ export const deleteSupplieritem = async (id: number) => { // 导出供应商物品 Excel export const exportSupplieritem = async (params) => { - return await request.download({ url: `/wms/supplieritem/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/supplieritem/export-excel-senior`, data }) + } else { + return await request.download({ url: `/wms/supplieritem/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/views/wms/basicDataManage/supplierManage/purchaseprice/index.vue b/src/views/wms/basicDataManage/supplierManage/purchaseprice/index.vue index 52c6d779f..2a67f2edd 100644 --- a/src/views/wms/basicDataManage/supplierManage/purchaseprice/index.vue +++ b/src/views/wms/basicDataManage/supplierManage/purchaseprice/index.vue @@ -205,7 +205,7 @@ const handleExport = async () => { await message.exportConfirm() // 发起导出 exportLoading.value = true - const data = await PurchasepriceApi.exportPurchaseprice(setSearchParams) + const data = await PurchasepriceApi.exportPurchaseprice(tableObject.params) download.excel(data, '采购价格单.xls') } catch { } finally { diff --git a/src/views/wms/basicDataManage/supplierManage/supplier/index.vue b/src/views/wms/basicDataManage/supplierManage/supplier/index.vue index ef1aed92c..469c87bac 100644 --- a/src/views/wms/basicDataManage/supplierManage/supplier/index.vue +++ b/src/views/wms/basicDataManage/supplierManage/supplier/index.vue @@ -192,7 +192,7 @@ const handleExport = async () => { await message.exportConfirm() // 发起导出 exportLoading.value = true - const data = await SupplierApi.exportSupplier(setSearchParams) + const data = await SupplierApi.exportSupplier(tableObject.params) download.excel(data, '供应商.xls') } catch { } finally { diff --git a/src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue b/src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue index b81ae1355..7ae70e8e3 100644 --- a/src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue +++ b/src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue @@ -205,7 +205,7 @@ const handleExport = async () => { await message.exportConfirm() // 发起导出 exportLoading.value = true - const data = await SupplieritemApi.exportSupplieritem(setSearchParams) + const data = await SupplieritemApi.exportSupplieritem(tableObject.params) download.excel(data, '供应商物品.xls') } catch { } finally {