Browse Source

FWHL-240--物料基本信息

hella_online_20250313
赵雪冰 4 weeks ago
parent
commit
3b5d159aa6
  1. 6
      src/api/wms/itembasic/index.ts
  2. 2
      src/views/wms/basicDataManage/itemManage/itembasic/index.vue

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

@ -64,12 +64,12 @@ export const deleteItembasic = async (id: number) => {
}
// 导出物料基本信息 Excel
export const exportItembasic = async (params) => {
export const exportItembasic = async (params,headers) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/itembasic/export-excel-senior`, data })
return await request.downloadPostHeaders({ url: `/wms/itembasic/export-excel-senior`, data,headers })
} else {
return await request.download({ url: `/wms/itembasic/export-excel`, params })
return await request.downloadHeaders({ url: `/wms/itembasic/export-excel`, params,headers })
}
}

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

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

Loading…
Cancel
Save