You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
2.1 KiB

12 months ago
import request from '@/config/axios'
export interface LocationgroupVO {
code: string
name: string
description: string
warehouseCode: string
areaCode: string
available: number
activeTime: Date
expireTime: Date
remark: string
}
// 查询库位组列表
export const getLocationgroupPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return request.post({ url: '/wms/locationgroup/senior', data })
} else {
return await request.get({ url: `/wms/locationgroup/page`, params })
}
}
// 校验库位组
export const verifyLocationgroup = async (params) => {
return await request.get({ url: `/wms/locationgroup/ListByCode`, params })
}
12 months ago
// 查询库位组列表
export const getLocationgroupList = async (params) => {
return await request.get({ url: `/wms/locationgroup/list`, params })
}
// 查询库位组详情
export const getLocationgroup = async (id: number) => {
return await request.get({ url: `/wms/locationgroup/get?id=` + id })
}
// 新增库位组
export const createLocationgroup = async (data: LocationgroupVO) => {
return await request.post({ url: `/wms/locationgroup/create`, data })
}
// 修改库位组
export const updateLocationgroup = async (data: LocationgroupVO) => {
return await request.put({ url: `/wms/locationgroup/update`, data })
}
// 删除库位组
export const deleteLocationgroup = async (id: number) => {
return await request.delete({ url: `/wms/locationgroup/delete?id=` + id })
}
// 导出库位组 Excel
export const exportLocationgroup = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/locationgroup/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/locationgroup/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/locationgroup/get-import-template' })
}
// 根据code获取数据列表
export const getLocationgroupByCodes = async (params) => {
return await request.get({ url: `/wms/locationgroup/listByCodes`, params })
}