dajia
This commit is contained in:
194
utils/getData2.js
Normal file
194
utils/getData2.js
Normal file
@@ -0,0 +1,194 @@
|
||||
import request from './request.js'
|
||||
|
||||
// 版本更新测试
|
||||
export const pdaUpdate = () => request({
|
||||
url:'api/pda/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
|
||||
}
|
||||
})
|
||||
|
||||
/**
|
||||
* 混碾搬运
|
||||
*/
|
||||
// 查询货架上未拆包料盅信息
|
||||
export const unpackShelfInfo = () => request({
|
||||
url:'api/pda/unpackShelfInfo',
|
||||
data: {}
|
||||
})
|
||||
// 查询拆包机点位
|
||||
export const getCbjPoint = () => request({
|
||||
url:'api/pda/getCbjPoint',
|
||||
data: {}
|
||||
})
|
||||
// 拆包机叫料
|
||||
export const cbjqlTask = (sp, ep) => request({
|
||||
url:'api/pda/cbjqlTask',
|
||||
data: {
|
||||
startPoint: sp,
|
||||
endPoint: ep
|
||||
}
|
||||
})
|
||||
// 查询混碾工单
|
||||
export const hnWorkOrder = () => request({
|
||||
url:'api/pda/hnWorkOrder',
|
||||
data: {}
|
||||
})
|
||||
// 拆包机下料位满料入货架
|
||||
export const cbjmlTask = (code, bcode, sp) => request({
|
||||
url:'api/pda/cbjmlTask',
|
||||
data: {orderCode: code,barCode: bcode,startPoint: sp}
|
||||
})
|
||||
// 拆包机下料位叫空蛊
|
||||
export const cbjqkTask = (ep) => request({
|
||||
url:'api/pda/cbjqkTask',
|
||||
data: {endPoint: ep}
|
||||
})
|
||||
// 拆包机空料位送空蛊
|
||||
export const cbjskTask = (type, sp) => request({
|
||||
url:'api/pda/cbjskTask',
|
||||
data: {nextType: type, startPoint: sp}
|
||||
})
|
||||
|
||||
/**
|
||||
* 压机搬运
|
||||
*/
|
||||
// 压机上料位下拉框
|
||||
export const yjslwPointList = () => request({
|
||||
url:'api/pda/yjslwPointList',
|
||||
data: {}
|
||||
})
|
||||
// 压机上料位强制回货架
|
||||
export const qzhhjTask = (code) => request({
|
||||
url:'api/pda/qzhhjTask',
|
||||
data: {deviceCode: code}
|
||||
})
|
||||
// 查询货架上已拆包料盅信息
|
||||
export const packShelfInfo = () => request({
|
||||
url:'api/pda/packShelfInfo',
|
||||
data: {}
|
||||
})
|
||||
// 困料货架点对点到布料机上料位
|
||||
export const yzqlTask = (sp, ep) => request({
|
||||
url:'api/pda/yzqlTask',
|
||||
data: {startPoint: sp, endPoint: ep}
|
||||
})
|
||||
|
||||
/**
|
||||
* 物料报废
|
||||
*/
|
||||
// 物料报废
|
||||
export const materialScrap = (code) => request({
|
||||
url:'api/pda/materialScrap',
|
||||
data: {
|
||||
barCode: code
|
||||
}
|
||||
})
|
||||
|
||||
/**
|
||||
* 人工分拣
|
||||
*/
|
||||
// 查询人工分拣点位
|
||||
export const rgfjPoint = () => request({
|
||||
url:'api/pda/rgfjPoint',
|
||||
data: {}
|
||||
})
|
||||
// 查询缓存货架点位
|
||||
export const hchjPoint = () => request({
|
||||
url:'api/pda/hchjPoint',
|
||||
data: {}
|
||||
})
|
||||
// 人工分拣叫料
|
||||
export const rgfjqlTask = (sp, code) => request({
|
||||
url:'api/pda/rgfjqlTask',
|
||||
data: {startPoint: sp, deviceCode: code}
|
||||
})
|
||||
// 人工分拣送空盘
|
||||
export const rgfjskTask = (code) => request({
|
||||
url:'api/pda/rgfjskTask',
|
||||
data: {deviceCode: code}
|
||||
})
|
||||
|
||||
/**
|
||||
* 任务管理
|
||||
*/
|
||||
// 1.1 1.1 查询无指令的任务(任务号为-开头)
|
||||
export const handTasks = () => request({
|
||||
url:'api/hand/tasks',
|
||||
acsurl: true,
|
||||
data: {}
|
||||
})
|
||||
// 1.2 任务操作
|
||||
export const handTaskoperation = (type, id) => request({
|
||||
url:'api/hand/taskoperation',
|
||||
acsurl: true,
|
||||
data: {
|
||||
type: type,
|
||||
task_uuid: id
|
||||
}
|
||||
})
|
||||
|
||||
/**
|
||||
* 指令管理
|
||||
*/
|
||||
// 1.1 查询未完成指令(生成任务号为-开头)
|
||||
export const handInsts = () => request({
|
||||
url:'api/hand/insts',
|
||||
acsurl: true,
|
||||
data: {}
|
||||
})
|
||||
// 1.2 指令操作
|
||||
export const handInst = (type, id) => request({
|
||||
url:'api/hand/inst',
|
||||
acsurl: true,
|
||||
data: {
|
||||
type: type,
|
||||
inst_uuid: id
|
||||
}
|
||||
})
|
||||
|
||||
/**
|
||||
* 压制混碾满料搬运
|
||||
*/
|
||||
export const mlTask = (code, vcode, weight, qty) => request({
|
||||
url:'api/pda/mlTask',
|
||||
data: {
|
||||
deviceCode: code,
|
||||
vehicle_code: vcode,
|
||||
weight: weight,
|
||||
qty: qty
|
||||
}
|
||||
})
|
||||
|
||||
/**
|
||||
* 条码解绑
|
||||
*/
|
||||
export const vehicleUnbind = (code) => request({
|
||||
url:'api/pda/vehicleUnbind',
|
||||
data: {
|
||||
point_code: code
|
||||
}
|
||||
})
|
||||
|
||||
/**
|
||||
* 组盘查看
|
||||
*/
|
||||
export const zpxxTask = (code) => request({
|
||||
url:'api/pda/zpxxTask',
|
||||
data: {
|
||||
vehicle_code: code
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user