任务、指令管理
This commit is contained in:
@@ -120,4 +120,46 @@ export const rgfjqlTask = (sp, code) => request({
|
||||
export const rgfjskTask = (code) => request({
|
||||
url:'api/pda/rgfjskTask',
|
||||
data: {deviceCode: code}
|
||||
})
|
||||
|
||||
/**
|
||||
* 任务管理
|
||||
*/
|
||||
// 1.1 1.1 查询无指令的任务(任务号为-开头)
|
||||
export const handTasks = (key, scode, ncode) => request({
|
||||
url:'api/hand/tasks',
|
||||
data: {
|
||||
keyword: key,
|
||||
start_devicecode: scode,
|
||||
next_devicecode: ncode
|
||||
}
|
||||
})
|
||||
// 1.2 任务操作
|
||||
export const handTaskoperation = (type, id) => request({
|
||||
url:'api/hand/taskoperation',
|
||||
data: {
|
||||
type: type,
|
||||
task_uuid: id
|
||||
}
|
||||
})
|
||||
|
||||
/**
|
||||
* 指令管理
|
||||
*/
|
||||
// 1.1 查询未完成指令(生成任务号为-开头)
|
||||
export const handInsts = (key, scode, ncode) => request({
|
||||
url:'api/hand/insts',
|
||||
data: {
|
||||
keyword: key,
|
||||
start_devicecode: scode,
|
||||
next_devicecode: ncode
|
||||
}
|
||||
})
|
||||
// 1.2 指令操作
|
||||
export const handInst = (type, id) => request({
|
||||
url:'api/hand/inst',
|
||||
data: {
|
||||
type: type,
|
||||
inst_uuid: id
|
||||
}
|
||||
})
|
||||
@@ -499,4 +499,61 @@ export const rgfjqlTask = (sp, code) => {
|
||||
export const rgfjskTask = (code) => {
|
||||
let res = {"message":"人工分拣送空请求成功"}
|
||||
return res
|
||||
}
|
||||
// 任务管理
|
||||
export const handTasks = (key, scode, ncode) => {
|
||||
let res = {
|
||||
"data": [
|
||||
{
|
||||
"task_no": "-087",
|
||||
"task_status": "2",
|
||||
"create_time": "2024-03-28 10:54:39",
|
||||
"carrier": '001',
|
||||
"task_uuid": "012bc5e653ce48949020f1147333aa7f",
|
||||
"inst_step": "7",
|
||||
"next_devicecode": "L1",
|
||||
"start_devicecode": "RKSSX2",
|
||||
"instruction_code": "163",
|
||||
"priority": "1"
|
||||
}
|
||||
],
|
||||
"message": "操作成功"
|
||||
}
|
||||
return res
|
||||
}
|
||||
// 1.2 任务操作
|
||||
export const handTaskoperation = (type, id) => {
|
||||
let res = {
|
||||
"message": "001"
|
||||
}
|
||||
return res
|
||||
}
|
||||
// 指令管理
|
||||
export const handInsts = () => {
|
||||
let res = {
|
||||
"data": [
|
||||
{
|
||||
"task_no": "-087",
|
||||
"inst_status": "2",
|
||||
"create_time": "2024-03-28 10:54:39",
|
||||
"carrier": '001',
|
||||
"carno": '1号车',
|
||||
"inst_uuid": "012bc5e653ce48949020f1147333aa7f",
|
||||
"inst_step": "3",
|
||||
"instruction_code": '11100',
|
||||
"next_devicecode": "L1",
|
||||
"start_devicecode": "RKSSX2",
|
||||
"instruction_code": "163",
|
||||
"priority": "1"
|
||||
}
|
||||
],
|
||||
"message": "操作成功"
|
||||
}
|
||||
return res
|
||||
}
|
||||
export const handInst = (code) => {
|
||||
let res = {
|
||||
"message": "001"
|
||||
}
|
||||
return res
|
||||
}
|
||||
Reference in New Issue
Block a user