工装设备台账

This commit is contained in:
JinLu.Yin
2022-05-11 23:22:25 +08:00
parent 7652a3d02b
commit 3a557ab979
3 changed files with 586 additions and 0 deletions

44
src/api/mes/tm/tool.js Normal file
View File

@@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询工装夹具清单列表
export function listTool(query) {
return request({
url: '/mes/tm/tool/list',
method: 'get',
params: query
})
}
// 查询工装夹具清单详细
export function getTool(toolId) {
return request({
url: '/mes/tm/tool/' + toolId,
method: 'get'
})
}
// 新增工装夹具清单
export function addTool(data) {
return request({
url: '/mes/tm/tool',
method: 'post',
data: data
})
}
// 修改工装夹具清单
export function updateTool(data) {
return request({
url: '/mes/tm/tool',
method: 'put',
data: data
})
}
// 删除工装夹具清单
export function delTool(toolId) {
return request({
url: '/mes/tm/tool/' + toolId,
method: 'delete'
})
}

View File

@@ -9,6 +9,14 @@ export function listTooltype(query) {
})
}
// 查询所有工装夹具类型
export function listAllTooltype() {
return request({
url: '/mes/tm/tooltype/listAll',
method: 'get',
})
}
// 查询工装夹具类型详细
export function getTooltype(toolTypeId) {
return request({