指令、任务管理

This commit is contained in:
2024-07-18 15:40:32 +08:00
parent 2a02886a3d
commit c0fb3571e1
14 changed files with 421 additions and 151 deletions

View File

@@ -1,5 +1,4 @@
import request from './request.js'
import request1 from './request1.js'
// 版本更新测试
export const pdaUpdate = () => request({
@@ -97,4 +96,49 @@ export const changePointQty = (id, qty) => request({
group_id: id,
qty: qty
}
})
/**
* 指令管理
*/
// 1.1 查询未完成指令(生成任务号为-开头)
export const handInsts = (key, scode, ncode) => request({
url:'api/hand/insts',
acsurl: true,
data: {
keyword: key,
start_devicecode: scode,
next_devicecode: ncode
}
})
// 1.2 指令操作
export const handInst = (type, id) => request({
url:'api/hand/inst',
acsurl: true,
data: {
type: type,
inst_uuid: id
}
})
/**
* 任务管理
*/
// 1.1 1.1 查询无指令的任务(任务号为-开头)
export const handTasks = (key, scode, ncode) => request({
url:'api/hand/tasks',
acsurl: true,
data: {
keyword: key,
start_devicecode: scode,
next_devicecode: ncode
}
})
// 1.2 任务操作
export const handTaskoperation = (type, id) => request({
url:'api/hand/taskoperation',
acsurl: true,
data: {
type: type,
task_uuid: id
}
})