257 lines
6.5 KiB
JavaScript
257 lines
6.5 KiB
JavaScript
import request from './request.js'
|
|
|
|
// 版本更新测试
|
|
export const pdaUpdate = () => request({
|
|
url:'api/pda/iosOut/update'
|
|
})
|
|
// export const pdaUpdate = () => {
|
|
// let res = {
|
|
// versionName: '1.0.1',
|
|
// url: 'https://mp-e979e0eb-882b-42b3-a4a1-923ad08ea194.cdn.bspapp.com/cloudstorage/f72ec59f-7b25-487d-a034-fead1b6654c6.apk'
|
|
// }
|
|
// return res
|
|
// }
|
|
|
|
// 登录
|
|
export const handLogin = (user, password) => request({
|
|
url:'mobile/auth/login',
|
|
data: {
|
|
username: user,
|
|
password: password
|
|
}
|
|
})
|
|
|
|
// 1.2推送确认
|
|
export const messageConfirm = (type) => request({
|
|
url:'api/hand/messageConfirm',
|
|
data: {type: type}
|
|
})
|
|
|
|
// 公共接口
|
|
|
|
// 产线叫料
|
|
// 1.1根据点位查询区域
|
|
export const getRegionByPoint = (pcode) => request({
|
|
url:'api/hand/getRegionByPoint',
|
|
data: {point_code: pcode}
|
|
})
|
|
// 1.2查询物料信息
|
|
export const selectMaterialByRegion = (rcode) => request({
|
|
url:'api/hand/selectMaterialByRegion',
|
|
data: {region_code: rcode}
|
|
})
|
|
// 1.3叫料
|
|
export const loading = (pcode, rcode, mcode, num) => request({
|
|
url:'api/hand/loading',
|
|
data: {point_code: pcode, region_code: rcode, material_code: mcode, num: num}
|
|
})
|
|
// 1.4查询物料信息
|
|
export const selectFullMaterials = (rcode) => request({
|
|
url:'api/hand/selectFullMaterials',
|
|
data: {region_code: rcode}
|
|
})
|
|
// 1.4查询所有叫料区域
|
|
export const getCallRegions = () => request({
|
|
url:'api/hand/getCallRegions',
|
|
data: {}
|
|
})
|
|
|
|
|
|
// 产线下料
|
|
// 1.1查询物料信息
|
|
export const selectMaterials = (blurry, page, size) => request({
|
|
url:'api/hand/selectMaterials',
|
|
data: {blurry: blurry, page: page, size: size}
|
|
})
|
|
// 1.2根据点位查询终点区域
|
|
export const getNextRegionsByPoint = (pcode) => request({
|
|
url:'api/hand/getNextRegionsByPoint',
|
|
data: {point_code: pcode}
|
|
})
|
|
// 1.3生产下料
|
|
export const productBlanking = (pcode, arr, rcode, type) => request({
|
|
url:'api/hand/productBlanking',
|
|
data: {point_code: pcode, data: arr, region_code: rcode, type: type}
|
|
})
|
|
|
|
// 人工放货
|
|
// 1.1查询物料信息
|
|
export const rgfhSelectMaterials = (blurry, type, page, size) => request({
|
|
url:'api/hand/selectMaterials',
|
|
data: {blurry: blurry, material_type: type, page: page, size: size}
|
|
})
|
|
// 1.2物料绑定
|
|
export const materialBinding = (pcode, arr) => request({
|
|
url:'api/hand/materialBinding',
|
|
data: {point_code: pcode, data: arr}
|
|
})
|
|
// 1.2查询所有物料类型
|
|
export const getMaterialTypes = () => request({
|
|
url:'api/hand/getMaterialTypes',
|
|
data: {}
|
|
})
|
|
// 1.3根据点位查询物料
|
|
export const selectMaterialByPointCode = (pcode) => request({
|
|
url:'api/hand/selectMaterialByPointCode',
|
|
data: {point_code: pcode}
|
|
})
|
|
|
|
// 人工取货
|
|
// 1.1根据点位查询物料信息
|
|
export const getMaterialInfoByPoint = (pcode) => request({
|
|
url:'api/hand/getMaterialInfoByPoint',
|
|
data: {point_code: pcode}
|
|
})
|
|
// 1.2清空列
|
|
export const cleanCol = (pcode, col) => request({
|
|
url:'api/hand/cleanCol',
|
|
data: {point_code: pcode, col: col}
|
|
})
|
|
// 1.3清空点位
|
|
export const cleanPoint = (pcode) => request({
|
|
url:'api/hand/cleanPoint',
|
|
data: {point_code: pcode}
|
|
})
|
|
// 1.4根据点位查询该区域的列信息
|
|
export const getColsByPoint = (pcode) => request({
|
|
url:'api/hand/getColsByPoint',
|
|
data: {point_code: pcode}
|
|
})
|
|
|
|
// 库存锁定解锁
|
|
// 1.1查询缓冲区点位库存
|
|
export const getPointInfo = (rcode, pcode, mcode) => request({
|
|
url:'api/hand/getPointInfo',
|
|
data: {region_code: rcode, point_code: pcode, material_code: mcode}
|
|
})
|
|
// 1.2锁定
|
|
export const lock = (arr) => request({
|
|
url:'api/hand/lock',
|
|
data: {data: arr}
|
|
})
|
|
// 1.3解锁
|
|
export const unlock = (arr) => request({
|
|
url:'api/hand/unlock',
|
|
data: {data: arr}
|
|
})
|
|
// // 1.4查询所有区域
|
|
// export const getRegions = () => request({
|
|
// url:'api/hand/getRegions',
|
|
// data: {}
|
|
// })
|
|
|
|
// 定点任务
|
|
// 1.1根据区域查询点位
|
|
export const getPointnByRegion = (rcode) => request({
|
|
url:'api/hand/getPointnByRegion',
|
|
data: {region_code: rcode}
|
|
})
|
|
// 1.2确认
|
|
export const sendPointTask = (pcode1, pcode2) => request({
|
|
url:'api/hand/sendPointTask',
|
|
data: {point_code: pcode1, point_code2: pcode2}
|
|
})
|
|
// 1.2查询所有起点区域
|
|
export const getStartRegions = () => request({
|
|
url:'api/hand/getStartRegions',
|
|
data: {}
|
|
})
|
|
// 1.2查询所有终点区域
|
|
export const getEndRegions = () => request({
|
|
url:'api/hand/getEndRegions',
|
|
data: {}
|
|
})
|
|
|
|
|
|
// 作业管理
|
|
// 1.1查询未完成的任务
|
|
export const queryTask = (tcode) => request({
|
|
url:'api/hand/queryTask',
|
|
data: {task_code: tcode}
|
|
})
|
|
// 1.2完成
|
|
export const finishTask = (tcode) => request({
|
|
url:'api/hand/finishTask',
|
|
data: {task_code: tcode}
|
|
})
|
|
// 1.3起点确认
|
|
export const startPointConfirm = (tcode, pcode) => request({
|
|
url:'api/hand/startPointConfirm',
|
|
data: {task_code: tcode, point_code: pcode}
|
|
})
|
|
// 1.3终点确认
|
|
export const endPointConfirm = (tcode, pcode) => request({
|
|
url:'api/hand/endPointConfirm',
|
|
data: {task_code: tcode, point_code: pcode}
|
|
})
|
|
|
|
|
|
// 管制区域
|
|
// 1.1根据区域查询进出区域信息
|
|
export const selectRegionInfo = (rcode) => request({
|
|
url:'api/hand/selectRegionInfo',
|
|
data: {region_code: rcode}
|
|
})
|
|
// 1.2查询所有区域
|
|
export const getRegions = () => request({
|
|
url:'api/hand/getRegions',
|
|
data: {}
|
|
})
|
|
// 1.3管制
|
|
export const chargeArea = (rcode, option) => request({
|
|
url:'api/hand/chargeArea',
|
|
data: {region_code: rcode, option: option}
|
|
})
|
|
// 1.4解除管制
|
|
export const releaseArea = (rcode, option) => request({
|
|
url:'api/hand/releaseArea',
|
|
data: {region_code: rcode, option: option}
|
|
})
|
|
|
|
|
|
// AGV管制
|
|
// 1.1根据区域查询进出区域信息
|
|
export const selectCarInfo = (rcode) => request({
|
|
url:'api/hand/selectCarInfo',
|
|
data: {region_code: rcode}
|
|
})
|
|
// 1.2查询所有车号
|
|
export const getAgvNos = () => request({
|
|
url:'api/hand/getAgvNos',
|
|
data: {}
|
|
})
|
|
// 1.3暂停
|
|
export const pause = (agvno, option) => request({
|
|
url:'api/hand/pause',
|
|
data: {agv_no: agvno, option: option}
|
|
})
|
|
// 1.4恢复
|
|
export const resume = (agvno, option) => request({
|
|
url:'api/hand/resume',
|
|
data: {agv_no: agvno, option: option}
|
|
})
|
|
// 1.1根据区域查询进出区域信息
|
|
export const selectAgvInfo = (agvno) => request({
|
|
url:'api/hand/selectAgvInfo',
|
|
data: {agv_no: agvno}
|
|
})
|
|
|
|
// 站点管理
|
|
// 1.2查询区域
|
|
export const selectRegions = () => request({
|
|
url:'api/hand/selectRegions',
|
|
data: {}
|
|
})
|
|
// 1.1根据区域查询进出区域信息
|
|
export const selectPointInfo = (rcode) => request({
|
|
url:'api/hand/selectPointInfo',
|
|
data: {region_code: rcode}
|
|
})
|
|
|
|
// 人工移库
|
|
// 1.2人工移库
|
|
export const materialTransfer = (pcode1, pcode2) => request({
|
|
url:'api/hand/materialTransfer',
|
|
data: {point_code1: pcode1, point_code2: pcode2}
|
|
})
|