工作站设置设备资源
This commit is contained in:
44
src/api/mes/md/workstationmachine.js
Normal file
44
src/api/mes/md/workstationmachine.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询设备资源列表
|
||||
export function listWorkstationmachine(query) {
|
||||
return request({
|
||||
url: '/mes/md/workstationmachine/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询设备资源详细
|
||||
export function getWorkstationmachine(recordId) {
|
||||
return request({
|
||||
url: '/mes/md/workstationmachine/' + recordId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增设备资源
|
||||
export function addWorkstationmachine(data) {
|
||||
return request({
|
||||
url: '/mes/md/workstationmachine',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改设备资源
|
||||
export function updateWorkstationmachine(data) {
|
||||
return request({
|
||||
url: '/mes/md/workstationmachine',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除设备资源
|
||||
export function delWorkstationmachine(recordId) {
|
||||
return request({
|
||||
url: '/mes/md/workstationmachine/' + recordId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user