天河备件前端
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.
 
 
 
 
 

53 lines
1.5 KiB

import request from '@/config/axios'
export interface LocationAreaVO {
number: string
name: string
description: string
type: string
siteId: string
available: string
concurrencyStamp: number
}
// 查询库区列表
export const getLocationAreaPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/basic/location-area/senior', data })
} else {
return await request.get({ url: `/eam/basic/location-area/page`, params })
}
}
// 查询库区详情
export const getLocationArea = async (id: number) => {
return await request.get({ url: `/eam/basic/location-area/get?id=` + id })
}
// 新增库区
export const createLocationArea = async (data: LocationAreaVO) => {
return await request.post({ url: `/eam/basic/location-area/create`, data })
}
// 修改库区
export const updateLocationArea = async (data: LocationAreaVO) => {
return await request.put({ url: `/eam/basic/location-area/update`, data })
}
// 删除库区
export const deleteLocationArea = async (id: number) => {
return await request.delete({ url: `/eam/basic/location-area/delete?id=` + id })
}
// 导出库区 Excel
export const exportLocationArea = async (params) => {
return await request.download({ url: `/eam/basic/location-area/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/basic/location-area/get-import-template' })
}