You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
784 B
JavaScript
45 lines
784 B
JavaScript
2 years ago
|
import request from '@/utils/request'
|
||
|
|
||
|
// 查询设备管理列表
|
||
|
export function listEquipment(query) {
|
||
|
return request({
|
||
|
url: '/wms/equipment/list',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
});
|
||
|
}
|
||
|
|
||
|
// 查询设备管理详细
|
||
|
export function getEquipment(equipmentId) {
|
||
|
return request({
|
||
|
url: '/wms/equipment/' + equipmentId,
|
||
|
method: 'get'
|
||
|
});
|
||
|
}
|
||
|
|
||
|
// 新增设备管理
|
||
|
export function addEquipment(data) {
|
||
|
return request({
|
||
|
url: '/wms/equipment',
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
});
|
||
|
}
|
||
|
|
||
|
// 修改设备管理
|
||
|
export function updateEquipment(data) {
|
||
|
return request({
|
||
|
url: '/wms/equipment',
|
||
|
method: 'put',
|
||
|
data: data
|
||
|
});
|
||
|
}
|
||
|
|
||
|
// 删除设备管理
|
||
|
export function delEquipment(equipmentId) {
|
||
|
return request({
|
||
|
url: '/wms/equipment/' + equipmentId,
|
||
|
method: 'delete'
|
||
|
});
|
||
|
}
|