接口
This commit is contained in:
33
utils/getData0.js
Normal file
33
utils/getData0.js
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
import request from './request.js'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 公共接口
|
||||||
|
*/
|
||||||
|
// 查询区域
|
||||||
|
export const queryArea = () => request({
|
||||||
|
url:'api/hand/queryArea',
|
||||||
|
data: {}
|
||||||
|
})
|
||||||
|
|
||||||
|
// 根据区域查询点位
|
||||||
|
export const queryPointByArea = (rcode) => request({
|
||||||
|
url:'api/hand/queryPointByArea',
|
||||||
|
data: {
|
||||||
|
region_code: rcode
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 搬运任务
|
||||||
|
*/
|
||||||
|
// PDA任务下发接口
|
||||||
|
export const callTask = (sdcode, ndcode, type, material) => request({
|
||||||
|
url:'api/hand/callTask',
|
||||||
|
data: {
|
||||||
|
start_device_code: sdcode,
|
||||||
|
next_device_code: ndcode,
|
||||||
|
task_type: type,
|
||||||
|
material: material
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
Reference in New Issue
Block a user