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.
49 lines
1.6 KiB
49 lines
1.6 KiB
import request from '@/config/axios'
|
|
|
|
export interface ItemLocationReplaceVO {
|
|
locationNumber: string
|
|
describe: string
|
|
oldItemNumber: string
|
|
itemNumber: string
|
|
}
|
|
|
|
// 查询备件库位变更记录列表
|
|
export const getItemLocationReplacePage = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/eam/item-location-replace/senior', data })
|
|
} else {
|
|
return await request.get({ url: `/eam/item-location-replace/page`, params })
|
|
}
|
|
}
|
|
|
|
// 查询备件库位变更记录详情
|
|
export const getItemLocationReplace = async (id: number) => {
|
|
return await request.get({ url: `/eam/item-location-replace/get?id=` + id })
|
|
}
|
|
|
|
// 新增备件库位变更记录
|
|
export const createItemLocationReplace = async (data: ItemLocationReplaceVO) => {
|
|
return await request.post({ url: `/eam/item-location-replace/create`, data })
|
|
}
|
|
|
|
// 修改备件库位变更记录
|
|
export const updateItemLocationReplace = async (data: ItemLocationReplaceVO) => {
|
|
return await request.put({ url: `/eam/item-location-replace/update`, data })
|
|
}
|
|
|
|
// 删除备件库位变更记录
|
|
export const deleteItemLocationReplace = async (id: number) => {
|
|
return await request.delete({ url: `/eam/item-location-replace/delete?id=` + id })
|
|
}
|
|
|
|
// 导出备件库位变更记录 Excel
|
|
export const exportItemLocationReplace = async (params) => {
|
|
return await request.download({ url: `/eam/item-location-replace/export-excel`, params })
|
|
}
|
|
|
|
// 下载用户导入模板
|
|
export const importTemplate = () => {
|
|
return request.download({ url: '/eam/item-location-replace/get-import-template' })
|
|
}
|
|
|