任务下发
This commit is contained in:
@@ -24,48 +24,28 @@ export const handLogin = (user, password) => request({
|
||||
/**
|
||||
* 任务下发
|
||||
*/
|
||||
// 一、生成任务
|
||||
export const callTask = (scode, ncode, type, vtype) => request({
|
||||
url:'api/hand/callTask',
|
||||
// 1.1根据起点查询任务信息
|
||||
export const getTaskInfoByStartPoint = (pcode1, ttype) => request({
|
||||
url:'api/hand/getTaskInfoByStartPoint',
|
||||
data: {
|
||||
start_device_code: scode,
|
||||
next_device_code: ncode,
|
||||
task_type: type,
|
||||
vehicle_type: vtype
|
||||
point_code1: pcode1,
|
||||
task_type: ttype
|
||||
}
|
||||
})
|
||||
// 二、查询区域
|
||||
export const queryArea = () => request({
|
||||
url:'api/hand/queryArea',
|
||||
data: {}
|
||||
})
|
||||
// 三、查询区域站点
|
||||
export const queryPointByArea = (rcode) => request({
|
||||
url:'api/hand/queryPointByArea',
|
||||
// 1.3下发
|
||||
export const sendPointTask = (ttype, pcode1, pcode2, pcode3, pcode4, isoverrun) => request({
|
||||
url:'api/hand/sendPointTask',
|
||||
data: {
|
||||
region_code: rcode
|
||||
task_type: ttype,
|
||||
point_code1: pcode1,
|
||||
point_code2: pcode2,
|
||||
point_code3: pcode3,
|
||||
point_code4: pcode4,
|
||||
is_overrun: isoverrun
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
/**
|
||||
* 任务管理
|
||||
*/
|
||||
// 四、查询未完成任务
|
||||
export const querytasks = () => request({
|
||||
url:'api/hand/tasks',
|
||||
data: {}
|
||||
})
|
||||
// 五、任务操作
|
||||
export const taskoperation = (id, type) => request({
|
||||
url:'api/hand/taskoperation',
|
||||
data: {
|
||||
task_uuid: id,
|
||||
type: type
|
||||
}
|
||||
})
|
||||
// 六、获取载具类型
|
||||
export const queryVehicleType = () => request({
|
||||
url:'api/hand/queryVehicleType',
|
||||
// 1.2查询所有任务类型
|
||||
export const getAllTaskType = () => request({
|
||||
url:'api/hand/getAllTaskType',
|
||||
data: {}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user