From c61d03437e914cc8764306d08c3159c1bb7bf356 Mon Sep 17 00:00:00 2001 From: gaojs <757918719@qq.com> Date: Sat, 12 Oct 2024 09:44:20 +0800 Subject: [PATCH] =?UTF-8?q?WMS=20bug=20HL-6222=EF=BC=9A=E5=99=A8=E5=85=B7?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E8=AE=B0=E5=BD=95=EF=BC=8C=E6=9D=A5?= =?UTF-8?q?=E6=BA=90=E5=BA=93=E4=BD=8D=E4=BB=A3=E7=A0=81=E5=BA=94=E5=8E=BB?= =?UTF-8?q?=E6=8E=89=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/containerRecordMain/index.ts | 11 +++++++++++ .../containermanage/containerRecordMain/index.vue | 9 +++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/api/wms/containerRecordMain/index.ts b/src/api/wms/containerRecordMain/index.ts index 5fe8c8a49..044e9d8ba 100644 --- a/src/api/wms/containerRecordMain/index.ts +++ b/src/api/wms/containerRecordMain/index.ts @@ -57,6 +57,17 @@ export const exportContainerRecordMain = async (params) => { } } +// 导出器具管理初始化记录主 Excel +export const exportContainerInitRecordMain = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = { ...params } + return await request.downloadPost({ url: '/wms/container-record-main/export-excel-init-senior', data }) + } else { + return await request.download({ url: `/wms/container-record-main/export-excel-init`, params }) + } +} + // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/container-record-main/get-import-template' }) diff --git a/src/views/wms/inventoryjobManage/containermanage/containerRecordMain/index.vue b/src/views/wms/inventoryjobManage/containermanage/containerRecordMain/index.vue index ebf7f6445..5009b7cba 100644 --- a/src/views/wms/inventoryjobManage/containermanage/containerRecordMain/index.vue +++ b/src/views/wms/inventoryjobManage/containermanage/containerRecordMain/index.vue @@ -260,8 +260,13 @@ const handleExport = async () => { // 发起导出 loadStart() const excelTitle = ref(route.meta.title) - const data = await ContainerRecordMainApi.exportContainerRecordMain(tableObject.params) - download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) + if(businessType.value = 'InitialContainerManage'){ + const data = await ContainerRecordMainApi.exportContainerInitRecordMain(tableObject.params) + download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) + }else { + const data = await ContainerRecordMainApi.exportContainerRecordMain(tableObject.params) + download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) + } } catch { } finally { loadDone()