change
This commit is contained in:
@@ -49,3 +49,56 @@ export const getAllTaskType = () => request({
|
||||
url:'api/hand/getAllTaskType',
|
||||
data: {}
|
||||
})
|
||||
|
||||
/**
|
||||
* 任务管理
|
||||
*/
|
||||
// 1.1 查询无指令的任务
|
||||
export const tasks = (vcode, dcode) => request({
|
||||
url:'api/hand/tasks',
|
||||
data: {
|
||||
vehicle_code: vcode,
|
||||
device_code: dcode
|
||||
}
|
||||
})
|
||||
// 1.2 任务操作
|
||||
export const taskoperation = (type, id) => request({
|
||||
url:'api/hand/taskoperation',
|
||||
data: {
|
||||
type: type,
|
||||
task_id: id
|
||||
}
|
||||
})
|
||||
|
||||
/**
|
||||
* 指令管理
|
||||
*/
|
||||
// 1.1 查询未完成指令
|
||||
export const insts = (vcode, dcode) => request({
|
||||
url:'api/hand/insts',
|
||||
data: {
|
||||
vehicle_code: vcode,
|
||||
device_code: dcode
|
||||
}
|
||||
})
|
||||
// 1.2 指令操作
|
||||
export const inst = (type, id) => request({
|
||||
url:'api/hand/inst',
|
||||
data: {
|
||||
type: type,
|
||||
inst_id: id
|
||||
}
|
||||
})
|
||||
|
||||
/**
|
||||
* 呼叫agv
|
||||
*/
|
||||
// 创建任务(生成任务号为-开头)
|
||||
export const callTask = (scode, ncode, vcode) => request({
|
||||
url:'api/hand/callTask',
|
||||
data: {
|
||||
start_device_code: scode,
|
||||
next_device_code: ncode,
|
||||
vehicle_code: vcode
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user