点位管理

This commit is contained in:
2023-10-12 17:00:46 +08:00
parent 8c9bf09057
commit 428a6a695f
12 changed files with 1278 additions and 408 deletions

View File

@@ -21,117 +21,50 @@ export const handLogin = (user, password) => request({
}
})
// 菜单
export const authority = () => {
let res = {
sonTree: [
{menu_id: '1', imgsrc: 'RF01', name: '呼叫管理', path: '/pages/modules/callmanage'},
{menu_id: '2', imgsrc: 'RF02', name: '指令管理', path: '/pages/modules/zlmanage'},
{menu_id: '3', imgsrc: 'RF03', name: '任务管理', path: '/pages/modules/taskmanage'}
]
}
return res
}
/**
* 点管理
* 点管理
*/
// 1.1查询所有区域信息
// 1.1查询区域
export const queryArea = () => request({
url:'api/hand/queryArea',
url:'api/hand/region',
data: {}
})
// export const queryArea = () => {
// let res = {
// result: [{region_code: '1', region_name: 'A1'}, {region_code: '2', region_name: 'A2'}, {region_code: '3', region_name: 'A2'}, {region_code: '4', region_name: 'A10'}]
// result: [{value: '1', label: 'A1'}, {value: '2', label: 'A2'}]
// }
// return res
// }
// 1.2根据区域查询设备编号及状态
// 1.2查询点位
export const queryPointByArea = (code) => request({
url:'api/hand/queryPointByArea',
url:'api/hand/point',
data: {
areaCode: code
region_code: code
}
})
// export const queryPointByArea = () => {
// let res = {
// result: [{
// device_code: '1',
// device_name: 'JLDFJLLJ'
// }, {
// device_code: '12',
// device_name: 'JLDFJLLJ'
// }, {
// device_code: '13',
// device_name: 'JLDFJLLJ'
// }, {
// device_code: '14',
// device_name: 'JLDFJLLJ'
// }, {
// device_code: '15',
// device_name: 'JLDFJLLJ'
// }, {
// device_code: '16',
// device_name: 'JLDFJLLJ'
// }, {
// device_code: '17',
// device_name: 'JLDFJLLJ'
// }]
// result: [{device_code: '1', device_name: 'JLDFJLLJ', status: '0', material_type: '1', qty: '10'}, {device_code: '2', device_name: 'JLDFJLLJ2'}]
// }
// return res
// }
/**
* 呼叫管理
*/
// 1.1创建任务(确定起点)
export const callTask = (scodes, code) => request({
url:'api/hand/callTask',
// 1.3查询物料
export const handMaterial = () => request({
url:'api/hand/material',
data: {}
})
// export const handMaterial = () => {
// let res = {
// result: [{value: '1', label: 'a'}, {value: '2', label: 'b'}, {value: '3', label: 'abc'}]
// }
// return res
// }
// 1.4点位操作
export const handPointOpt = (type, mtype, qty) => request({
url:'api/hand/pointOpt',
data: {
start_device_codes: scodes,
next_device_code: code
}
})
/**
* 指令管理
*/
// 1.1查询未完成指令
export const queryInstraction = (keyword, scode, ncode) => request({
url:'api/hand/insts',
data: {
keyword: keyword,
start_devicecode: scode,
next_devicecode: ncode
}
})
//1.2 指令操作
export const instOperation = (uuid, type) => request({
url:'api/hand/inst',
data: {
inst_uuid: uuid,
type: type
}
})
/**
* 任务管理
*/
// 1.1 查询未完成指令
export const queryTask = (keyword, scode, ncode) => request({
url:'api/hand/tasks',
data: {
keyword: keyword,
start_devicecode: scode,
next_devicecode: ncode
}
})
// 1.2 指令操作
export const taskOperation = (uuid, type) => request({
url:'api/hand/taskoperation',
data: {
inst_uuid: uuid,
type: type
type: type,
material_type: mtype,
qty: qty
}
})