diff --git a/src/api/wms/barbasic/index.ts b/src/api/wms/barbasic/index.ts index ba1158dfa..4a751ba04 100644 --- a/src/api/wms/barbasic/index.ts +++ b/src/api/wms/barbasic/index.ts @@ -70,6 +70,17 @@ export const exportLocationBarbasic = async (params) => { } } +// 导出库位标签条码实体基类 Excel +export const exportProductionlineBarbasic = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.downloadPost({ url: '/wms/barbasic/export-productionline-excel-senior', data }) + } else { + return await request.download({ url: `/wms/barbasic/export-productionline-excel`, params }) + } +} + // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/barbasic/get-import-template' }) diff --git a/src/views/wms/basicDataManage/labelManage/productionLineLabel/index.vue b/src/views/wms/basicDataManage/labelManage/productionLineLabel/index.vue index f7528a1a8..b3f9555c2 100644 --- a/src/views/wms/basicDataManage/labelManage/productionLineLabel/index.vue +++ b/src/views/wms/basicDataManage/labelManage/productionLineLabel/index.vue @@ -214,7 +214,7 @@ const handleExport = async () => { // 发起导出 loadStart() const excelTitle = ref(route.meta.title) - const data = await BarbasicApi.exportLocationBarbasic(tableObject.params) + const data = await BarbasicApi.exportProductionlineBarbasic(tableObject.params) download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) } catch { } finally {