2025-08-08 10:03:19 +08:00
|
|
|
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.1根据点位查询区域
|
|
|
|
|
export const getRegionByPoint = (pcode) => request({
|
|
|
|
|
url:'api/hand/getRegionByPoint',
|
|
|
|
|
data: {point_code: pcode}
|
|
|
|
|
})
|
|
|
|
|
// 1.2查询物料信息
|
2025-09-03 14:30:22 +08:00
|
|
|
export const selectMaterialByRegion = (rcode) => request({
|
|
|
|
|
url:'api/hand/selectMaterialByRegion',
|
|
|
|
|
data: {region_code: rcode}
|
2025-08-08 10:03:19 +08:00
|
|
|
})
|
|
|
|
|
// 1.3叫料
|
2025-08-22 14:05:56 +08:00
|
|
|
export const loading = (pcode, rcode, mcode, num) => request({
|
2025-08-08 10:03:19 +08:00
|
|
|
url:'api/hand/loading',
|
2025-08-22 14:05:56 +08:00
|
|
|
data: {point_code: pcode, region_code: rcode, material_code: mcode, num: num}
|
2025-08-08 10:03:19 +08:00
|
|
|
})
|
|
|
|
|
|
|
|
|
|
// 产线下料
|
2025-09-08 09:47:21 +08:00
|
|
|
// 1.1查询物料信息
|
|
|
|
|
export const selectMaterials = (blurry, page, size) => request({
|
|
|
|
|
url:'api/hand/selectMaterials',
|
|
|
|
|
data: {blurry: blurry, page: page, size: size}
|
|
|
|
|
})
|
2025-08-08 10:03:19 +08:00
|
|
|
// 1.2查询所有区域
|
|
|
|
|
export const getRegions = () => request({
|
|
|
|
|
url:'api/hand/getRegions',
|
|
|
|
|
data: {}
|
|
|
|
|
})
|
|
|
|
|
// 1.3确认下料
|
|
|
|
|
export const blanking = (pcode, arr, rcode) => request({
|
|
|
|
|
url:'api/hand/blanking',
|
|
|
|
|
data: {point_code: pcode, data: arr, region_code: rcode}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
// 人工放货
|
|
|
|
|
// 1.2物料绑定
|
|
|
|
|
export const materialBinding = (pcode, arr) => request({
|
|
|
|
|
url:'api/hand/materialBinding',
|
|
|
|
|
data: {point_code: pcode, data: arr}
|
|
|
|
|
})
|
|
|
|
|
// 1.3空载具绑定
|
|
|
|
|
export const vehicleBinding = (pcode) => request({
|
|
|
|
|
url:'api/hand/vehicleBinding',
|
|
|
|
|
data: {point_code: pcode}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
// 人工取货
|
|
|
|
|
// 1.1根据点位查询物料信息
|
|
|
|
|
export const getMaterialInfoByPoint = (pcode) => request({
|
|
|
|
|
url:'api/hand/getMaterialInfoByPoint',
|
|
|
|
|
data: {point_code: pcode}
|
|
|
|
|
})
|
|
|
|
|
// 1.2确认取货
|
|
|
|
|
export const comfirmGetting = (pcode, arr) => request({
|
|
|
|
|
url:'api/hand/comfirmGetting',
|
|
|
|
|
data: {point_code: pcode, data: arr}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
// 点位维护
|
|
|
|
|
// 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.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.1查询未完成的任务
|
|
|
|
|
export const queryTask = (tcode) => request({
|
|
|
|
|
url:'api/hand/queryTask',
|
|
|
|
|
data: {task_code: tcode}
|
|
|
|
|
})
|
|
|
|
|
// 1.2重新下发
|
|
|
|
|
export const againTask = (tcode) => request({
|
|
|
|
|
url:'api/hand/againTask',
|
|
|
|
|
data: {task_code: tcode}
|
|
|
|
|
})
|
|
|
|
|
// 1.3强制确认
|
|
|
|
|
export const forceConfirm = (tcode) => request({
|
|
|
|
|
url:'api/hand/forceConfirm',
|
|
|
|
|
data: {task_code: tcode}
|
|
|
|
|
})
|
2025-08-27 09:23:50 +08:00
|
|
|
|
|
|
|
|
// 管制区域
|
|
|
|
|
// 1.1根据区域查询进出区域信息
|
|
|
|
|
export const selectRegionInfo = (rcode) => request({
|
|
|
|
|
url:'api/hand/selectRegionInfo',
|
|
|
|
|
data: {region_code: rcode}
|
|
|
|
|
})
|
|
|
|
|
// 1.3进入
|
|
|
|
|
export const inArea = (rcode) => request({
|
|
|
|
|
url:'api/hand/inArea',
|
|
|
|
|
data: {region_code: rcode}
|
|
|
|
|
})
|
|
|
|
|
// 1.3强制确认
|
|
|
|
|
export const outArea = (rcode) => request({
|
|
|
|
|
url:'api/hand/outArea',
|
|
|
|
|
data: {region_code: rcode}
|
|
|
|
|
})
|