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.6 KiB

import request from '@/config/axios'
export interface SpareitemLocationVO {
itemCode: string
name: string
desc1: string
desc2: string
locationCode: string
locationName: string
available: string
remark: string
}
// 查询维修备件默认库位列表
export const getSpareitemLocationPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/spareitem-location/senior', data })
} else {
return await request.get({ url: `/wms/spareitem-location/page`, params })
}
}
// 查询维修备件默认库位详情
export const getSpareitemLocation = async (id: number) => {
return await request.get({ url: `/wms/spareitem-location/get?id=` + id })
}
// 新增维修备件默认库位
export const createSpareitemLocation = async (data: SpareitemLocationVO) => {
return await request.post({ url: `/wms/spareitem-location/create`, data })
}
// 修改维修备件默认库位
export const updateSpareitemLocation = async (data: SpareitemLocationVO) => {
return await request.put({ url: `/wms/spareitem-location/update`, data })
}
// 删除维修备件默认库位
export const deleteSpareitemLocation = async (id: number) => {
return await request.delete({ url: `/wms/spareitem-location/delete?id=` + id })
}
// 导出维修备件默认库位 Excel
export const exportSpareitemLocation = async (params) => {
return await request.download({ url: `/wms/spareitem-location/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/spareitem-location/get-import-template' })
}