import {post} from '@config/http.js' // 手持登录 export const loginApi = (user, password) => post('api/pda/login', { username: user, password: password }) // 手持登陆查询菜单权限 export const authority = (id) => post('api/pda/authority', { accountId: id }) // 修改密码 export const updatePass = (Rfold, Rfnew) => post('api/pda/updatePass', { RfoldPass: Rfold, RfnewPass: Rfnew }) /** 呼叫空托盘 */ // 1.1查询区域 export const queryArea = () => post('api/pda/callEmpty/queryArea', {}) // 1.2根据区域查询点位 export const queryPointByArea = (code) => post('api/pda/callEmpty/queryPointByArea', { area_code: code }) // 1.3 呼叫空托盘确定 export const callEmptyConfirm = (id, code, pname, acode) => post('api/pda/callEmpty/confirm', { point_id: id, point_code: code, point_name: pname, area_code: acode }) /** 托盘点位绑定 */ // 1.1查询区域 export const queryArea1 = () => post('api/pda/sendEmpty/queryArea', {}) // 1.2根据区域查询点位 export const queryPointByArea1 = (code) => post('api/pda/sendEmpty/queryPointByArea', { area_code: code }) // 1.2托盘点位绑定确认 export const bindingConfirm = (code, vcode, status, is) => post('api/pda/binding/confirm', { point_code: code, vehicle_code: vcode, point_status: status, is_lock: is }) /** 盘点管理 */ // 1.1查询物料 export const queryMaterial = (page, size) => post('api/pda/check/queryMaterial', { page: page, size: size }) // 1.2查询盘点单据 export const queryIvt = (suuid, tuuid, page, size) => post('api/pda/check/queryIvt', { sect_uuid: suuid, struct_uuid: tuuid, page: page, size: size }) // 1.3盘点确定 export const checkConfirm = (arr) => post('api/pda/check/confirm', { JSONarray: arr }) // 1.4查询库区 export const querySectCode = () => post('api/pda/check/querySectCode', {}) // 1.5查询仓位 export const queryStructCode = (uuid) => post('api/pda/check/queryStructCode', { sect_uuid: uuid }) /** 液压机出库 */ // 1.1查询点位 export const queryPoint = () => post('api/pda/pressure/queryPoint', {}) // 1.5查询仓位 export const pressureConfirm = (id, code, pname) => post('api/pda/pressure/confirm', { point_id: id, point_code: code, point_name: pname })