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.

61 lines
1.1 KiB
JavaScript

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'
});
}
// 查询部门下拉树结构
export function treeselect() {
return request({
url: '/wms/equipment/tree',
method: 'get'
})
}
// 查询设备类型
export function getEquipmentTypeList() {
return request({
url: '/wms/equipment/getEquipmentTypeList',
method: 'get'
});
}