chenfang
9 months ago
4 changed files with 60 additions and 3 deletions
@ -0,0 +1,50 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface ItemareaDetailVO { |
|||
id: number |
|||
masterId: number |
|||
remark: string |
|||
locationGroup: string |
|||
locationCode: string |
|||
} |
|||
|
|||
// 查询物料库区配置表子列表
|
|||
export const getItemareaDetailPage = async (params) => { |
|||
if (params.isSearch) { |
|||
delete params.isSearch |
|||
const data = {...params} |
|||
return await request.post({ url: '/wms/itemarea-detail/senior', data }) |
|||
} else { |
|||
return await request.get({ url: `/wms/itemarea-detail/page`, params }) |
|||
} |
|||
} |
|||
|
|||
// 查询物料库区配置表子详情
|
|||
export const getItemareaDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/itemarea-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增物料库区配置表子
|
|||
export const createItemareaDetail = async (data: ItemareaDetailVO) => { |
|||
return await request.post({ url: `/wms/itemarea-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改物料库区配置表子
|
|||
export const updateItemareaDetail = async (data: ItemareaDetailVO) => { |
|||
return await request.put({ url: `/wms/itemarea-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除物料库区配置表子
|
|||
export const deleteItemareaDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/itemarea-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出物料库区配置表子 Excel
|
|||
export const exportItemareaDetail = async (params) => { |
|||
return await request.download({ url: `/wms/itemarea-detail/export-excel`, params }) |
|||
} |
|||
|
|||
// 下载用户导入模板
|
|||
export const importTemplate = () => { |
|||
return request.download({ url: '/wms/itemarea-detail/get-import-template' }) |
|||
} |
Loading…
Reference in new issue