This commit is contained in:
2023-01-18 11:29:03 +08:00
parent 4cb4f1b374
commit 47de156305

View File

@@ -20,23 +20,23 @@ export const updatePass = (Rfold, Rfnew) => post2('api/pda/updatePass', {
/** 站点管理 */ /** 站点管理 */
// 1.1查询所有区域信息 // 1.1查询所有区域信息
// export const queryArea = () => post2('api/hand/queryArea', {}) export const queryArea = () => post2('api/hand/queryArea', {})
export const queryArea = () => { // export const queryArea = () => {
let res = { // let res = {
result: [{region_code: '1', region_name: 'JLDFJLLJ'}, {region_code: '2', region_name: 'JLDFJLLJ'}, {region_code: '3', region_name: 'JLDFJLLJ'}] // result: [{region_code: '1', region_name: 'JLDFJLLJ'}, {region_code: '2', region_name: 'JLDFJLLJ'}, {region_code: '3', region_name: 'JLDFJLLJ'}]
} // }
return res // return res
} // }
// 1.2根据区域查询设备编号及状态 // 1.2根据区域查询设备编号及状态
// export const queryPointByArea = (code) => post2('api/hand/queryPointByArea', { export const queryPointByArea = (code) => post2('api/hand/queryPointByArea', {
// areaCode: code areaCode: code
// }) })
export const queryPointByArea = (code) => { // export const queryPointByArea = (code) => {
let res = { // 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'}] // 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 // return res
} // }
// 1.3查询物料 // 1.3查询物料
export const queryMaterial = () => post2('api/hand/queryMaterial', {}) export const queryMaterial = () => post2('api/hand/queryMaterial', {})
// 1.4点位状态绑定 // 1.4点位状态绑定