56 lines
1.1 KiB
JavaScript
56 lines
1.1 KiB
JavaScript
/*
|
|
* @Author: zwq
|
|
* @Date: 2020-12-29 16:00:14
|
|
* @LastEditors: zwq
|
|
* @LastEditTime: 2021-01-12 10:57:09
|
|
* @Description:
|
|
*/
|
|
import request from '@/utils/request'
|
|
|
|
export function lineList(data) { // 获取产线列表
|
|
return request({
|
|
url: '/basic/production-line/page',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function lineDetail(id) { // 获取产线单条数据
|
|
return request({
|
|
url: '/basic/production-line/get',
|
|
method: 'post',
|
|
data: { id }
|
|
})
|
|
}
|
|
|
|
export function lineUpdate(data) { // 更新产线单条数据
|
|
return request({
|
|
url: '/basic/production-line/update',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function lineAdd(data) { // 新增产线单条数据
|
|
return request({
|
|
url: '/basic/production-line/add',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function lineCode() { // 获取产线code
|
|
return request({
|
|
url: '/basic/production-line/get-code',
|
|
method: 'post'
|
|
})
|
|
}
|
|
|
|
export function lineDelete(id) { // 删除产线单条数据
|
|
return request({
|
|
url: '/basic/production-line/delete',
|
|
method: 'post',
|
|
data: { id }
|
|
})
|
|
}
|