单表增删改查
This commit is contained in:
44
klp-ui/src/api/wms/productionLine.js
Normal file
44
klp-ui/src/api/wms/productionLine.js
Normal file
@@ -0,0 +1,44 @@
|
||||
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'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user