Files
hht-fujia-uni/utils/getData2.js
2025-06-04 10:40:35 +08:00

123 lines
2.1 KiB
JavaScript

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 pdaHnby = (sp, ep, code) => request({
url:'api/pda/hnby',
data: {
startPoint: sp,
endPoint: ep,
barCode: code
}
})
/**
* 扫码出入库
*/
export const pdaSmck = (code, type) => request({
url:'api/pda/smck',
data: {
barCode: code,
type: type
}
})
/**
* 压制满料搬运
*/
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
}
})
/**
* 任务管理
*/
// 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 hnlgbd = (code, vcode, weight) => request({
url:'api/pda/hnlgbd',
data: {
deviceCode: code,
barCode: vcode,
weight: weight
}
})
/**
* 料罐物料查询
*/
export const hnlgcx = (vcode) => request({
url:'api/pda/hnlgcx',
data: {
barCode: vcode
}
})