@ -49,7 +49,12 @@ export const deleteArea = async (id: number) => {
// 导出库区 Excel
export const exportArea = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/areabasic/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/areabasic/export-excel`, params })
}
// 下载用户导入模板
@ -53,7 +53,12 @@ export const deleteDock = async (id: number) => {
// 导出月台 Excel
export const exportDock = async (params) => {
return await request.downloadPost({ url: `/wms/dock/export-excel-senior`, data })
return await request.download({ url: `/wms/dock/export-excel`, params })
@ -50,7 +50,12 @@ export const deleteEnterprise = async (id: number) => {
// 导出企业 Excel
export const exportEnterprise = async (params) => {
return await request.downloadPost({ url: `/wms/enterprise/export-excel-senior`, data })
return await request.download({ url: `/wms/enterprise/export-excel`, params })
@ -61,7 +61,13 @@ export const deleteLocation = async (id: number) => {
// 导出库位 Excel
export const exportLocation = async (params) => {
return await request.downloadPost({ url: `/wms/location/export-excel-senior`, data })
return await request.download({ url: `/wms/location/export-excel`, params })
@ -49,7 +49,12 @@ export const deleteLocationgroup = async (id: number) => {
// 导出库位组 Excel
export const exportLocationgroup = async (params) => {
return await request.downloadPost({ url: `/wms/locationgroup/export-excel-senior`, data })
return await request.download({ url: `/wms/locationgroup/export-excel`, params })
@ -46,7 +46,12 @@ export const deleteProcess = async (id: number) => {
// 导出工序 Excel
export const exportProcess = async (params) => {
return await request.downloadPost({ url: `/wms/process/export-excel-senior`, data })
return await request.download({ url: `/wms/process/export-excel`, params })
@ -47,7 +47,12 @@ export const deleteProductionline = async (id: number) => {
// 导出生产线 Excel
export const exportProductionline = async (params) => {
return await request.downloadPost({ url: `/wms/productionline/export-excel-senior`, data })
return await request.download({ url: `/wms/productionline/export-excel`, params })
@ -47,7 +47,12 @@ export const deleteWarehouse = async (id: number) => {
// 导出仓库 Excel
export const exportWarehouse = async (params) => {
return await request.downloadPost({ url: `/wms/warehouse/export-excel-senior`, data })
return await request.download({ url: `/wms/warehouse/export-excel`, params })
@ -44,7 +44,12 @@ export const deleteWorkshop = async (id: number) => {
// 导出车间 Excel
export const exportWorkshop = async (params) => {
return await request.downloadPost({ url: `/wms/workshop/export-excel-senior`, data })
return await request.download({ url: `/wms/workshop/export-excel`, params })
@ -48,7 +48,12 @@ export const deleteWorkstation = async (id: number) => {
// 导出工位 Excel
export const exportWorkstation = async (params) => {
return await request.downloadPost({ url: `/wms/workstation/export-excel-senior`, data })
return await request.download({ url: `/wms/workstation/export-excel`, params })
@ -205,7 +205,7 @@ const handleExport = async () => {
await message.exportConfirm()
// 发起导出
exportLoading.value = true
const data = await AreaApi.exportArea(setSearchParams)
const data = await AreaApi.exportArea(tableObject.params)
download.excel(data, '库区.xls')
} catch {
} finally {
const data = await DockApi.exportDock(setSearchParams)
const data = await DockApi.exportDock(tableObject.params)
download.excel(data, '月台.xls')
@ -175,7 +175,7 @@ const handleExport = async () => {
const data = await EnterpriseApi.exportEnterprise(setSearchParams)
const data = await EnterpriseApi.exportEnterprise(tableObject.params)
download.excel(data, '企业.xls')
const data = await LocationApi.exportLocation(setSearchParams)
const data = await LocationApi.exportLocation(tableObject.params)
download.excel(data, '库位.xls')
const data = await LocationgroupApi.exportLocationgroup(setSearchParams)
const data = await LocationgroupApi.exportLocationgroup(tableObject.params)
download.excel(data, '库位组.xls')
const data = await ProcessApi.exportProcess(setSearchParams)
const data = await ProcessApi.exportProcess(tableObject.params)
download.excel(data, '工序.xls')
const data = await ProductionlineApi.exportProductionline(setSearchParams)
const data = await ProductionlineApi.exportProductionline(tableObject.params)
download.excel(data, '生产线.xls')
@ -195,7 +195,7 @@ const handleExport = async () => {
const data = await WarehouseApi.exportWarehouse(setSearchParams)
const data = await WarehouseApi.exportWarehouse(tableObject.params)
download.excel(data, '仓库.xls')
const data = await WorkshopApi.exportWorkshop(setSearchParams)
const data = await WorkshopApi.exportWorkshop(tableObject.params)
download.excel(data, '车间.xls')
const data = await WorkstationApi.exportWorkstation(setSearchParams)
const data = await WorkstationApi.exportWorkstation(tableObject.params)
download.excel(data, '工位.xls')