45 lines
814 B
JavaScript
45 lines
814 B
JavaScript
|
|
import request from '@/utils/request'
|
||
|
|
|
||
|
|
// 查询产线列表
|
||
|
|
export function listProductionLine(query) {
|
||
|
|
return request({
|
||
|
|
url: '/klp/productionLine/list',
|
||
|
|
method: 'get',
|
||
|
|
params: query
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
// 查询产线详细
|
||
|
|
export function getProductionLine(lineId) {
|
||
|
|
return request({
|
||
|
|
url: '/klp/productionLine/' + lineId,
|
||
|
|
method: 'get'
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
// 新增产线
|
||
|
|
export function addProductionLine(data) {
|
||
|
|
return request({
|
||
|
|
url: '/klp/productionLine',
|
||
|
|
method: 'post',
|
||
|
|
data: data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
// 修改产线
|
||
|
|
export function updateProductionLine(data) {
|
||
|
|
return request({
|
||
|
|
url: '/klp/productionLine',
|
||
|
|
method: 'put',
|
||
|
|
data: data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
// 删除产线
|
||
|
|
export function delProductionLine(lineId) {
|
||
|
|
return request({
|
||
|
|
url: '/klp/productionLine/' + lineId,
|
||
|
|
method: 'delete'
|
||
|
|
})
|
||
|
|
}
|