Browse Source

供应商制造商模板导出

master_hella_20240701
ljlong_2630 7 months ago
parent
commit
51d9251a48
  1. 7
      src/api/eam/equipmentManufacturer/index.ts
  2. 7
      src/api/eam/equipmentSupplier/index.ts

7
src/api/eam/equipmentManufacturer/index.ts

@ -54,7 +54,12 @@ export const deleteEquipmentManufacturer = async (id: number) => {
// 导出设备制造商 Excel // 导出设备制造商 Excel
export const exportEquipmentManufacturer = async (params) => { export const exportEquipmentManufacturer = async (params) => {
return await request.download({ url: `/eam/basic/equipment-manufacturer/export-excel`, params }) if (params.isSearch) {
const data = { ...params }
return await request.downloadPost({ url: `/eam/basic/equipment-manufacturer/export-excel-senior`, data })
} else {
return await request.download({ url: `/eam/basic/equipment-manufacturer/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

7
src/api/eam/equipmentSupplier/index.ts

@ -54,7 +54,12 @@ export const deleteEquipmentSupplier = async (id: number) => {
// 导出供应商 Excel // 导出供应商 Excel
export const exportEquipmentSupplier = async (params) => { export const exportEquipmentSupplier = async (params) => {
return await request.download({ url: `/eam/basic/equipment-supplier/export-excel`, params }) if (params.isSearch) {
const data = { ...params }
return await request.downloadPost({ url: `/eam/basic/equipment-supplier/export-excel-senior`, data })
} else {
return await request.download({ url: `/eam/basic/equipment-supplier/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

Loading…
Cancel
Save