1. 新增工厂区域全量查询API 2. 新增产线管理API、页面、路由与多语言配置 3. 新增工艺流程类别管理API、页面、路由与多语言配置 4. 新增产品管理API、页面、路由与多语言配置 5. 修复MenuTree组件slot-scope语法兼容问题 6. 追加对应功能的测试文档与版本记录
52 lines
1.0 KiB
JavaScript
52 lines
1.0 KiB
JavaScript
import { request } from '@/api/_service'
|
|
|
|
const BASE = 'production_configuration/factory_model/factory_area/'
|
|
|
|
function apiParams (method, data = {}) {
|
|
return {
|
|
method: `production_master_data_factory_model_factory_area_${method}`,
|
|
platform: 'background',
|
|
...data
|
|
}
|
|
}
|
|
|
|
export function getFactoryAreaALL (data) {
|
|
return request({
|
|
url: BASE + 'all',
|
|
method: 'get',
|
|
params: apiParams('all', data)
|
|
})
|
|
}
|
|
|
|
export function getFactoryAreaList (data) {
|
|
return request({
|
|
url: BASE + 'list',
|
|
method: 'get',
|
|
params: apiParams('list', data)
|
|
})
|
|
}
|
|
|
|
export function createFactoryArea (data) {
|
|
return request({
|
|
url: BASE + 'create',
|
|
method: 'post',
|
|
data: apiParams('create', data)
|
|
})
|
|
}
|
|
|
|
export function editFactoryArea (data) {
|
|
return request({
|
|
url: BASE + 'edit',
|
|
method: 'put',
|
|
data: apiParams('edit', data)
|
|
})
|
|
}
|
|
|
|
export function deleteFactoryArea (data) {
|
|
return request({
|
|
url: BASE + 'delete',
|
|
method: 'delete',
|
|
data: apiParams('delete', data)
|
|
})
|
|
}
|