迁移预警中心模块
- 新增计划与生产预警中心 V2 页面 - 新增预警中心接口、路由和中英文文案 - 更新迁移任务列表中的预警中心状态
This commit is contained in:
59
src/api/planning-production/alert-center.js
Normal file
59
src/api/planning-production/alert-center.js
Normal file
@@ -0,0 +1,59 @@
|
||||
import { request } from '@/api/_service'
|
||||
|
||||
const BASE = 'planning_production/produce/pin_check/'
|
||||
|
||||
function apiParams (method, data = {}) {
|
||||
return {
|
||||
method,
|
||||
platform: 'background',
|
||||
...data
|
||||
}
|
||||
}
|
||||
|
||||
export function getPincheckWorkstation (data) {
|
||||
return request({
|
||||
url: BASE + 'workstation',
|
||||
method: 'get',
|
||||
params: apiParams('planning_production_produce_pincheck_workstation', data)
|
||||
})
|
||||
}
|
||||
|
||||
export function getDevicePinCheckList (data) {
|
||||
return request({
|
||||
url: BASE + 'list',
|
||||
method: 'get',
|
||||
params: apiParams('planning_production_produce_pincheck_list', data)
|
||||
})
|
||||
}
|
||||
|
||||
export function getPinCheckDetail (data) {
|
||||
return request({
|
||||
url: BASE + 'detail',
|
||||
method: 'get',
|
||||
params: apiParams('planning_production_produce_pincheck_detail', data)
|
||||
})
|
||||
}
|
||||
|
||||
export function setPinCheckClean (data) {
|
||||
return request({
|
||||
url: BASE + 'clean',
|
||||
method: 'get',
|
||||
params: apiParams('planning_production_produce_pincheck_clean', data)
|
||||
})
|
||||
}
|
||||
|
||||
export function setPinCheckCleanSingle (data) {
|
||||
return request({
|
||||
url: BASE + 'clean_single_channel',
|
||||
method: 'get',
|
||||
params: apiParams('planning_production_produce_pincheck_clean_single_channel', data)
|
||||
})
|
||||
}
|
||||
|
||||
export function getWorkstationSearch (data) {
|
||||
return request({
|
||||
url: BASE + 'search',
|
||||
method: 'get',
|
||||
params: apiParams('planning_production_produce_pincheck_search', data)
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user