From d03fc3ac335bced81c42369ab05dcf3f2b61807e Mon Sep 17 00:00:00 2001 From: chenfang <1057876684@qq.com> Date: Mon, 14 Oct 2024 16:02:46 +0800 Subject: [PATCH] =?UTF-8?q?HL-6245=20=E4=BF=AE=E5=A4=8D=E9=9A=94=E7=A6=BB?= =?UTF-8?q?=E6=94=B6=E8=B4=A7=E4=BB=BB=E5=8A=A1=E5=AF=BC=E5=87=BA=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/productreceiptJobMain/index.ts | 11 +++++++++++ .../productreceiptscrapJobMain/index.vue | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/api/wms/productreceiptJobMain/index.ts b/src/api/wms/productreceiptJobMain/index.ts index 3464939cc..91f9d4e90 100644 --- a/src/api/wms/productreceiptJobMain/index.ts +++ b/src/api/wms/productreceiptJobMain/index.ts @@ -128,6 +128,17 @@ export const exportProductreceiptJobMainAssemble = async (params) => { } } +// 导出装配收货任务主 Excel +export const exportProductreceiptJobMainScrap = async (params) => { + params.type = 'scrap' + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/productreceipt-job-main/export-excel-senior`, data }) + } else { + return await request.download({ url: `/wms/productreceipt-job-main/export-excel`, params }) + } +} + // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/productreceipt-job-main/get-import-template' }) diff --git a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapJobMain/index.vue b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapJobMain/index.vue index 6d4ce9739..577cc44b9 100644 --- a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapJobMain/index.vue +++ b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapJobMain/index.vue @@ -289,7 +289,7 @@ const handleExport = async () => { // 发起导出 loadStart() const excelTitle = ref(route.meta.title) - const data = await ProductreceiptJobMainApi.exportProductreceiptJobMain(tableObject.params) + const data = await ProductreceiptJobMainApi.exportProductreceiptJobMainScrap(tableObject.params) download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) } catch { } finally {