任务管理、指令管理

This commit is contained in:
2024-04-04 18:03:33 +08:00
parent 2a533f04a8
commit 25765da896
4 changed files with 72 additions and 46 deletions

View File

@@ -1,21 +1,49 @@
export const handInsts = () => {
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": "ok",
"data": [
{
"inst_uuid": "51",
"task_no": "ADB001",
"start_devicecode": "46",
"next_devicecode": "2",
"inst_status": "3",
"priority": "一级",
"create_time": "1976-04-07 02:36:18",
"carrier": "890000008",
"instruction_code": '0000',
"carno": '1号车',
"inst_step": '1'
}
]
"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
}