import request from '@/config/axios' export interface AreaVO { code: string name: string description: string warehouseCode: string type: string isFunctional: number available: number activeTime: Date expireTime: Date remark: string } // 查询库区列表 export const getAreaPage = async (params) => { return await request.get({ url: `/wms/areabasic/page`, params }) } // 查询库区详情 export const getArea = async (id: number) => { return await request.get({ url: `/wms/areabasic/get?id=` + id }) } // 新增库区 export const createArea = async (data: AreaVO) => { return await request.post({ url: `/wms/areabasic/create`, data }) } // 修改库区 export const updateArea = async (data: AreaVO) => { return await request.put({ url: `/wms/areabasic/update`, data }) } // 删除库区 export const deleteArea = async (id: number) => { return await request.delete({ url: `/wms/areabasic/delete?id=` + id }) } // 导出库区 Excel export const exportArea = async (params) => { return await request.download({ url: `/wms/areabasic/export-excel`, params }) } // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/areabasic/get-import-template' }) }