站点管理呼叫管理

This commit is contained in:
2023-01-18 10:57:51 +08:00
parent fa9fbaf4a4
commit 4cb4f1b374
8 changed files with 630 additions and 376 deletions

View File

@@ -18,11 +18,38 @@ export const updatePass = (Rfold, Rfnew) => post2('api/pda/updatePass', {
RfnewPass: Rfnew
})
/** 任务生成 */
// 1.1查询设备
export const queryDevice = () => post2('api/pda/queryDevice', {})
// 1.2根据区域查询点位
export const pdaTask = (scode, ncode) => post2('api/pda/task', {
start_devicecode: scode,
next_devicecode: ncode
/** 站点管理 */
// 1.1查询所有区域信息
// export const queryArea = () => post2('api/hand/queryArea', {})
export const queryArea = () => {
let res = {
result: [{region_code: '1', region_name: 'JLDFJLLJ'}, {region_code: '2', region_name: 'JLDFJLLJ'}, {region_code: '3', region_name: 'JLDFJLLJ'}]
}
return res
}
// 1.2根据区域查询设备编号及状态
// export const queryPointByArea = (code) => post2('api/hand/queryPointByArea', {
// areaCode: code
// })
export const queryPointByArea = (code) => {
let res = {
result: [{device_code: '1', device_name: 'JLDFJLLJ', input_material: '1', status: '0'}, {device_code: '2', device_name: 'fffdf', status: '1'}, {device_code: '3', device_name: 'dffsfg', status: '2'}]
}
return res
}
// 1.3查询物料
export const queryMaterial = () => post2('api/hand/queryMaterial', {})
// 1.4点位状态绑定
export const bindpoint = (code, mtype, type, status) => post2('api/hand/bindpoint', {
device_code: code,
material_type: mtype,
type: type,
status: status
})
/** 呼叫管理 */
// 1.1创建任务(确定起点)
export const callTask = (scodes, code) => post2('api/hand/callTask', {
start_device_codes: scodes,
next_device_code: code
})