diff --git a/src/api/wms/customer/index.ts b/src/api/wms/customer/index.ts index 19b3db259..7cc18302d 100644 --- a/src/api/wms/customer/index.ts +++ b/src/api/wms/customer/index.ts @@ -57,7 +57,12 @@ export const deleteCustomer = async (id: number) => { // 导出客户 Excel export const exportCustomer = async (params) => { - return await request.download({ url: `/wms/customer/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/customer/export-excel-senior`, data }) + } else { + return await request.download({ url: `/wms/customer/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/api/wms/customerdock/index.ts b/src/api/wms/customerdock/index.ts index f60062347..5a5d1dbc4 100644 --- a/src/api/wms/customerdock/index.ts +++ b/src/api/wms/customerdock/index.ts @@ -50,7 +50,12 @@ export const deleteCustomerdock = async (id: number) => { // 导出客户月台 Excel export const exportCustomerdock = async (params) => { - return await request.download({ url: `/wms/customerdock/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/customerdock/export-excel-senior`, data }) + } else { + return await request.download({ url: `/wms/customerdock/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/api/wms/customeritem/index.ts b/src/api/wms/customeritem/index.ts index 1efaa7573..b906a86c6 100644 --- a/src/api/wms/customeritem/index.ts +++ b/src/api/wms/customeritem/index.ts @@ -50,7 +50,12 @@ export const deleteCustomeritem = async (id: number) => { // 导出客户物品 Excel export const exportCustomeritem = async (params) => { - return await request.download({ url: `/wms/customeritem/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/customeritem/export-excel-senior`, data }) + } else { + return await request.download({ url: `/wms/customeritem/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/api/wms/project/index.ts b/src/api/wms/project/index.ts index 6063b5b5b..2689abd43 100644 --- a/src/api/wms/project/index.ts +++ b/src/api/wms/project/index.ts @@ -44,7 +44,12 @@ export const deleteProject = async (id: number) => { // 导出项目 Excel export const exportProject = async (params) => { - return await request.download({ url: `/wms/project/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/project/export-excel-senior`, data }) + } else { + return await request.download({ url: `/wms/project/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/api/wms/saleprice/index.ts b/src/api/wms/saleprice/index.ts index 3d3e35f26..6ac634e3d 100644 --- a/src/api/wms/saleprice/index.ts +++ b/src/api/wms/saleprice/index.ts @@ -44,7 +44,12 @@ export const deleteSaleprice = async (id: number) => { // 导出销售价格单 Excel export const exportSaleprice = async (params) => { - return await request.download({ url: `/wms/saleprice/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/saleprice/export-excel-senior`, data }) + } else { + return await request.download({ url: `/wms/saleprice/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/views/wms/basicDataManage/customerManage/customer/index.vue b/src/views/wms/basicDataManage/customerManage/customer/index.vue index 8e0aa158a..d03578621 100644 --- a/src/views/wms/basicDataManage/customerManage/customer/index.vue +++ b/src/views/wms/basicDataManage/customerManage/customer/index.vue @@ -197,7 +197,7 @@ const handleExport = async () => { await message.exportConfirm() // 发起导出 exportLoading.value = true - const data = await CustomerApi.exportCustomer(setSearchParams) + const data = await CustomerApi.exportCustomer(tableObject.params) download.excel(data, '客户 .xls') } catch { } finally { diff --git a/src/views/wms/basicDataManage/customerManage/customerdock/index.vue b/src/views/wms/basicDataManage/customerManage/customerdock/index.vue index 06937dae6..0440cade3 100644 --- a/src/views/wms/basicDataManage/customerManage/customerdock/index.vue +++ b/src/views/wms/basicDataManage/customerManage/customerdock/index.vue @@ -230,7 +230,7 @@ const handleExport = async () => { await message.exportConfirm() // 发起导出 exportLoading.value = true - const data = await CustomerdockApi.exportCustomerdock(setSearchParams) + const data = await CustomerdockApi.exportCustomerdock(tableObject.params) download.excel(data, '客户月台.xls') } catch { } finally { diff --git a/src/views/wms/basicDataManage/customerManage/customeritem/index.vue b/src/views/wms/basicDataManage/customerManage/customeritem/index.vue index bd8eee158..f11c7e4ce 100644 --- a/src/views/wms/basicDataManage/customerManage/customeritem/index.vue +++ b/src/views/wms/basicDataManage/customerManage/customeritem/index.vue @@ -205,7 +205,7 @@ const handleExport = async () => { await message.exportConfirm() // 发起导出 exportLoading.value = true - const data = await CustomeritemApi.exportCustomeritem(setSearchParams) + const data = await CustomeritemApi.exportCustomeritem(tableObject.params) download.excel(data, '客户物品 .xls') } catch { } finally { diff --git a/src/views/wms/basicDataManage/customerManage/project/index.vue b/src/views/wms/basicDataManage/customerManage/project/index.vue index e8da474c9..f2a465f83 100644 --- a/src/views/wms/basicDataManage/customerManage/project/index.vue +++ b/src/views/wms/basicDataManage/customerManage/project/index.vue @@ -216,7 +216,7 @@ const handleExport = async () => { await message.exportConfirm() // 发起导出 exportLoading.value = true - const data = await ProjectApi.exportProject(setSearchParams) + const data = await ProjectApi.exportProject(tableObject.params) download.excel(data, '项目.xls') } catch { } finally { diff --git a/src/views/wms/basicDataManage/customerManage/saleprice/index.vue b/src/views/wms/basicDataManage/customerManage/saleprice/index.vue index 6c0097d54..277e3d81e 100644 --- a/src/views/wms/basicDataManage/customerManage/saleprice/index.vue +++ b/src/views/wms/basicDataManage/customerManage/saleprice/index.vue @@ -223,7 +223,7 @@ const handleExport = async () => { await message.exportConfirm() // 发起导出 exportLoading.value = true - const data = await SalepriceApi.exportSaleprice(setSearchParams) + const data = await SalepriceApi.exportSaleprice(tableObject.params) download.excel(data, '销售价格单.xls') } catch { } finally {