diff --git a/src/api/wms/productionlineitem/index.ts b/src/api/wms/productionlineitem/index.ts index bd6c109ee..6b99a1cd5 100644 --- a/src/api/wms/productionlineitem/index.ts +++ b/src/api/wms/productionlineitem/index.ts @@ -43,7 +43,12 @@ export const deleteProductionlineitem = async (id: number) => { // 导出生产线物料关系 Excel export const exportProductionlineitem = async (params) => { - return await request.download({ url: `/wms/productionlineitem/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/productionlineitem/export-excel-senior`, data }) + } else { + return await request.download({ url: `/wms/productionlineitem/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/api/wms/stdcostprice/index.ts b/src/api/wms/stdcostprice/index.ts index a8ff7cbe4..b7e3be15a 100644 --- a/src/api/wms/stdcostprice/index.ts +++ b/src/api/wms/stdcostprice/index.ts @@ -44,7 +44,12 @@ export const deleteStdcostprice = async (id: number) => { // 导出标准成本价格单 Excel export const exportStdcostprice = async (params) => { - return await request.download({ url: `/wms/stdcostprice/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/stdcostprice/export-excel-senior`, data }) + } else { + return await request.download({ url: `/wms/stdcostprice/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/views/wms/basicDataManage/itemManage/productionlineitem/index.vue b/src/views/wms/basicDataManage/itemManage/productionlineitem/index.vue index dc96164d5..feebbd4ef 100644 --- a/src/views/wms/basicDataManage/itemManage/productionlineitem/index.vue +++ b/src/views/wms/basicDataManage/itemManage/productionlineitem/index.vue @@ -206,7 +206,7 @@ const handleExport = async () => { await message.exportConfirm() // 发起导出 exportLoading.value = true - const data = await ProductionlineitemApi.exportProductionlineitem(setSearchParams) + const data = await ProductionlineitemApi.exportProductionlineitem(tableObject.params) download.excel(data, '生产线物料关系.xls') } catch { } finally { diff --git a/src/views/wms/basicDataManage/itemManage/stdcostprice/index.vue b/src/views/wms/basicDataManage/itemManage/stdcostprice/index.vue index b4e4c0c1c..d514d1885 100644 --- a/src/views/wms/basicDataManage/itemManage/stdcostprice/index.vue +++ b/src/views/wms/basicDataManage/itemManage/stdcostprice/index.vue @@ -205,7 +205,7 @@ const handleExport = async () => { await message.exportConfirm() // 发起导出 exportLoading.value = true - const data = await StdcostpriceApi.exportStdcostprice(setSearchParams) + const data = await StdcostpriceApi.exportStdcostprice(tableObject.params) download.excel(data, '标准成本价格单 .xls') } catch { } finally {