41 lines
1.1 KiB
JavaScript
41 lines
1.1 KiB
JavaScript
import {post} from '@config/http.js'
|
|
|
|
/** 任务生成 */
|
|
// 1.1查询所有区域信息
|
|
export const handArea = () => post('api/anjyf/hand/area', {
|
|
})
|
|
// export const handArea = () => {
|
|
// let res = {
|
|
// code: '1',
|
|
// desc: '',
|
|
// result: [{region_id: '1', region_name: 'a'}]
|
|
// }
|
|
// return res
|
|
// }
|
|
// 1.2根据区域查询设备编号及状态
|
|
export const handPoint = (reg) => post('api/anjyf/hand/point', {
|
|
region: reg
|
|
})
|
|
// export const handPoint = (reg) => {
|
|
// let res = {
|
|
// code: '1',
|
|
// desc: '',
|
|
// result: [{status: '1', device_name: 'a'}, {status: '2', device_name: 'aa'}, {status: '2', device_name: 'aa'}, {status: '2', device_name: 'aa'}, {status: '2', device_name: 'aa'}]
|
|
// }
|
|
// return res
|
|
// }
|
|
// 1.3创建任务(确定起点、终点)
|
|
export const handTask = (scode, ncode, type, batch) => post('api/anjyf/hand/task', {
|
|
start_devicecode: scode,
|
|
next_devicecode: ncode,
|
|
material_type: type,
|
|
batch: batch
|
|
})
|
|
// export const handTask = (scode, ncode, type, batch) => {
|
|
// let res = {
|
|
// code: '1',
|
|
// desc: 'ok'
|
|
// }
|
|
// return res
|
|
// }
|