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 pdaRegion = (func) => post('api/pda/region', { func: func }) // 根据区域查询点位 export const pdaPoint = (func, code) => post('api/pda/point', { func: func, region_code: code }) // 查询设备 export const pdaDevice = (func) => post('api/pda/device', { func: func }) // 查询载具类型 export const pdavehicleType = (func) => post('api/pda/vehicleType', { func: func }) // 不合格品上报 export const pdaReport = (code, qty) => post('api/pda/report', { device_code: code, unqualified_qty: qty }) // 送料 export const sendMaterial = (code, vcode, qty, weight, is) => post('api/pda/sendMaterial', { point_code: code, vehicle_code: vcode, qty: qty, weight: weight, is_full: is }) // 叫料 export const callMaterial = (code) => post('api/pda/callMaterial', { point_code: code }) // 送空 export const sendEmpty = (code, vcode) => post('api/pda/sendEmpty', { point_code: code, vehicle_code: vcode }) // 叫空 export const callEmpty = (code) => post('api/pda/callEmpty', { point_code: code }) // 困料管理 export const standStatus = (vcode, type) => post('api/pda/standStatus', { vehicle_code: vcode, type: type }) // 入窑管理 export const inKiln = (vcode, type) => post('api/pda/inKiln', { vehicle_code: vcode, type: type }) // 载具绑定 export const vehicleBind = (code, vtype, vcode) => post('api/pda/vehicleBind', { point_code: code, vehicle_type: vtype, vehicle_code: vcode }) // 载具解绑 export const vehicleUnbind = (code) => post('api/pda/vehicleUnbind', { point_code: code }) // 呼叫次品料 export const callDefective = (code) => post('api/pda/callDefective', { device_code: code }) /** * 人工异常处理 */ // 区域下拉框 export const ExceptionHandlingRegionList = () => post('api/pda/manual/ExceptionHandlingTask/regionList', {}) // 点位下拉框 export const ExceptionHandlingTaskList = () => post('api/pda/manual/ExceptionHandlingTask/list', {}) // 任务信息列表 export const ExceptionHandlingTaskShow = (code) => post('api/pda/manual/ExceptionHandlingTask/show', { region_code: code }) // 确认 export const ExceptionHandlingTask = (id, point) => post('api/pda/manual/ExceptionHandlingTask', { task_id: id, end_point: point }) /** * 人工混碾搬运 */ // 混碾位置下拉框 export const getMixingPointList = () => post('api/pda/manual/getMixingPointList', {}) // 混碾人工任务列表 export const getMixingTaskList = () => post('api/pda/manual/getMixingTaskList', {}) // 确认 export const mixingMoveTask = (point, code, weight) => post('api/pda/manual/mixingMoveTask', { point_code: point, vehicle_code: code, weight: weight }) /** * 压机料盅转移 */ // 起点终点下拉框 export const transferPositionList = () => post('api/pda/manual/transfer/positionList', {}) // 料盅转移任务列表 export const transferTaskShow = () => post('api/pda/manual/transfer/taskShow', {}) // 确认 export const transferCreateTask = (sp, ep, code, is) => post('api/pda/manual/transfer/createTask', { start_point: sp, end_point: ep, vehicle_code: code, is_age: is })