import request from '@/utils/request'
|
|
// 查询工艺流程列表
|
export function listTechnologyRoute(query) {
|
return request({
|
url: '/bs/technologyRoute/list',
|
method: 'get',
|
params: query
|
})
|
}
|
|
// 查询工艺流程详细
|
export function getTechnologyRoute(id) {
|
return request({
|
url: '/bs/technologyRoute/' + id,
|
method: 'get'
|
})
|
}
|
|
// 新增工艺流程
|
export function addTechnologyRoute(data) {
|
return request({
|
url: '/bs/technologyRoute',
|
method: 'post',
|
data: data
|
})
|
}
|
|
// 修改工艺流程
|
export function updateTechnologyRoute(data) {
|
return request({
|
url: '/bs/technologyRoute',
|
method: 'put',
|
data: data
|
})
|
}
|
|
export function updateTechnologyRouteAndChild(data) {
|
return request({
|
url: '/bs/technologyRoute/technologyRouteAndChild',
|
method: 'put',
|
data: data
|
})
|
}
|
|
// 删除工艺流程
|
export function delTechnologyRoute(id) {
|
return request({
|
url: '/bs/technologyRoute/' + id,
|
method: 'delete'
|
})
|
}
|