From 0c80ec5cbdd13595151fbbf31e950b36e0661c1e Mon Sep 17 00:00:00 2001 From: songguoqiang Date: Tue, 31 Dec 2024 14:19:44 +0800 Subject: [PATCH] =?UTF-8?q?YT-1879=EF=BC=9A=E5=AF=BC=E5=87=BA=E5=BA=94?= =?UTF-8?q?=E4=B8=8E=E9=A1=B5=E9=9D=A2=E5=AD=97=E6=AE=B5=E4=B8=80=E8=87=B4?= =?UTF-8?q?=EF=BC=8C=E7=8E=B0=E5=AD=97=E6=AE=B5=E6=98=BE=E7=A4=BA=E4=B8=8D?= =?UTF-8?q?=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/barbasic/index.ts | 11 +++++++++++ .../labelManage/locationLabel/index.vue | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/api/wms/barbasic/index.ts b/src/api/wms/barbasic/index.ts index 6b82dcb85..ba1158dfa 100644 --- a/src/api/wms/barbasic/index.ts +++ b/src/api/wms/barbasic/index.ts @@ -59,6 +59,17 @@ export const exportBarbasic = async (params) => { } } +// 导出库位标签条码实体基类 Excel +export const exportLocationBarbasic = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.downloadPost({ url: '/wms/barbasic/export-location-excel-senior', data }) + } else { + return await request.download({ url: `/wms/barbasic/export-location-excel`, params }) + } +} + // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/barbasic/get-import-template' }) diff --git a/src/views/wms/basicDataManage/labelManage/locationLabel/index.vue b/src/views/wms/basicDataManage/labelManage/locationLabel/index.vue index 3536f24ca..69b6a0a44 100644 --- a/src/views/wms/basicDataManage/labelManage/locationLabel/index.vue +++ b/src/views/wms/basicDataManage/labelManage/locationLabel/index.vue @@ -216,7 +216,7 @@ const handleExport = async () => { // 发起导出 loadStart() const excelTitle = ref(route.meta.title) - const data = await BarbasicApi.exportBarbasic(tableObject.params) + const data = await BarbasicApi.exportLocationBarbasic(tableObject.params) download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) } catch { } finally {