Browse Source

缺陷:FWHL-240 --物料包装信息

hella_online_20250328
赵雪冰 2 weeks ago
parent
commit
0fbe9bbfb7
  1. 6
      src/api/wms/itempackage/index.ts
  2. 2
      src/views/wms/basicDataManage/itemManage/itempackage/index.vue

6
src/api/wms/itempackage/index.ts

@ -104,12 +104,12 @@ export const deleteItempackaging = async (id: number) => {
} }
// 导出物料包装信息 Excel // 导出物料包装信息 Excel
export const exportItempackaging = async (params) => { export const exportItempackaging = async (params,headers) => {
if (params.isSearch) { if (params.isSearch) {
const data = {...params} const data = {...params}
return await request.downloadPost({ url: `/wms/itempackage/export-excel-senior`, data }) return await request.downloadPostHeaders({ url: `/wms/itempackage/export-excel-senior`, data,headers })
} else { } else {
return await request.download({ url: `/wms/itempackage/export-excel`, params }) return await request.downloadHeaders({ url: `/wms/itempackage/export-excel`, params,headers })
} }
} }
// 下载用户导入模板 // 下载用户导入模板

2
src/views/wms/basicDataManage/itemManage/itempackage/index.vue

@ -327,7 +327,7 @@ const handleExport = async () => {
// //
loadStart() loadStart()
const excelTitle = ref(route.meta.title) const excelTitle = ref(route.meta.title)
const data = await ItempackagingApi.exportItempackaging(tableObject.params) const data = await ItempackagingApi.exportItempackaging(tableObject.params,{exportKey:routeName.value})
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {

Loading…
Cancel
Save