全局开发

This commit is contained in:
2024-08-02 17:26:50 +08:00
parent 1fa746d6cb
commit 03e0d44dd6
20 changed files with 931 additions and 1067 deletions

View File

@@ -14,181 +14,52 @@ export const pdaUpdate = () => request({
// 登录
export const handLogin = (user, password) => request({
url:'mobile/auth/login',
url:'api/bigScreenScreen/login',
data: {
username: user,
user: user,
password: password
}
})
/**
* 混碾搬运
* 组盘入库
*/
// 查询货架上未拆包料盅信息
export const unpackShelfInfo = () => request({
url:'api/pda/unpackShelfInfo',
data: {}
// 单据类型
export const FormTypes = () => request({
method: 'GET',
url:'api/bmFormStruc/getTypes?type=pda'
})
// 查询拆包机点位
export const getCbjPoint = () => request({
url:'api/pda/getCbjPoint',
data: {}
// 单据数据
export const pmFormData = (page, size, sort, form_type) => request({
method: 'GET',
url:'api/pmFormData?page=' + page + '&size=' + size + '&sort=' + sort + '&form_type=' + form_type
})
// 拆包机叫料
export const cbjqlTask = (sp, ep) => request({
url:'api/pda/cbjqlTask',
data: {
startPoint: sp,
endPoint: ep
}
// 组盘确认
export const mdGruopDick = (item, code, type) => request({
url:'api/mdGruopDick',
data: {item: item, stor_code: code, type: type}
})
// 查询混碾工单
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 pdaPalletIostorinvIn = (code, id) => request({
url:'api/pdaPalletIostorinv/in',
data: {vehicle_code: code, material_id: id}
})
// 压机上料位强制回货架
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 pdaPalletIostorinvOut = (id, qty, point) => request({
url:'api/pdaPalletIostorinv/out',
data: {material_id: id, qty: qty, pcsn: '1', target_point: point}
})
/**
* 人工分拣
* 出库确认
*/
// 查询人工分拣点位
export const rgfjPoint = () => request({
url:'api/pda/rgfjPoint',
data: {}
export const ioStorageOut = (code) => request({
url:'api/ioStorage/out',
data: {vehicle_code: code}
})
// 查询缓存货架点位
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
}
})