diff --git a/nc_wms_web/src/api/business/wms/base/location/location-api.ts b/nc_wms_web/src/api/business/wms/base/location/location-api.ts index 1030dee..529f8c2 100644 --- a/nc_wms_web/src/api/business/wms/base/location/location-api.ts +++ b/nc_wms_web/src/api/business/wms/base/location/location-api.ts @@ -5,7 +5,7 @@ * @Date: 2024-11-18 14:17:31 * @Copyright 友仓 */ -import {postRequest, getRequest, getDownload} from '/@/lib/axios'; +import {postRequest, getRequest, postDownload2} from '/@/lib/axios'; export const locationApi = { @@ -76,7 +76,7 @@ export const locationApi = { /** * 导出 @author hj */ - exportLocations : () =>{ - return getDownload('/location/exportLocations',{}); - } + exportLocations: (taskId: string, param: any, signal?: AbortSignal) => { + return postDownload2(`/location/exportLocations/${taskId}`, param, signal); + }, }; diff --git a/nc_wms_web/src/api/business/wms/base/stock/stock-api.ts b/nc_wms_web/src/api/business/wms/base/stock/stock-api.ts index 40bdc51..b0922b2 100644 --- a/nc_wms_web/src/api/business/wms/base/stock/stock-api.ts +++ b/nc_wms_web/src/api/business/wms/base/stock/stock-api.ts @@ -5,7 +5,7 @@ * @Date: 2024-11-26 11:37:48 * @Copyright 友仓 */ -import {postRequest, getRequest,getDownload} from '/@/lib/axios'; +import {postRequest, getRequest,postDownload2} from '/@/lib/axios'; export const stockApi = { @@ -61,9 +61,9 @@ export const stockApi = { /** * 导出 @author hj */ - exportStocks: () => { - return getDownload('/stock/exportStocks', {}); - } + exportStocks: (taskId: string, param: any, signal?: AbortSignal) => { + return postDownload2(`/stock/exportStocks/${taskId}`, param, signal); + }, }; diff --git a/nc_wms_web/src/views/business/wms/base/address/address-list.vue b/nc_wms_web/src/views/business/wms/base/address/address-list.vue index d5dce1b..7c35112 100644 --- a/nc_wms_web/src/views/business/wms/base/address/address-list.vue +++ b/nc_wms_web/src/views/business/wms/base/address/address-list.vue @@ -544,6 +544,7 @@ const onCancel = () => { abortController.value.abort(); abortController.value = null; } + handleExportError(); }; onMounted(queryData); diff --git a/nc_wms_web/src/views/business/wms/base/item/item-list.vue b/nc_wms_web/src/views/business/wms/base/item/item-list.vue index 36fcdc5..0b34b5e 100644 --- a/nc_wms_web/src/views/business/wms/base/item/item-list.vue +++ b/nc_wms_web/src/views/business/wms/base/item/item-list.vue @@ -598,6 +598,7 @@ const onCancel = () => { abortController.value.abort(); abortController.value = null; } + handleExportError(); }; onMounted(queryData); diff --git a/nc_wms_web/src/views/business/wms/base/location/location-list.vue b/nc_wms_web/src/views/business/wms/base/location/location-list.vue index f6d6577..25ee221 100644 --- a/nc_wms_web/src/views/business/wms/base/location/location-list.vue +++ b/nc_wms_web/src/views/business/wms/base/location/location-list.vue @@ -85,6 +85,28 @@ 导入 + + + + +