拆包机搬运

This commit is contained in:
2024-04-09 10:07:54 +08:00
parent f29b104068
commit f95afac0e1
5 changed files with 221 additions and 126 deletions

View File

@@ -24,25 +24,38 @@ export const handLogin = (user, password) => request({
/**
* 混碾搬运
*/
// 查询货架上未拆包料盅信息
export const unpackShelfInfo = () => request({
url:'http://192.168.81.130:8011/api/pda/unpackShelfInfo',
data: {}
})
// 查询拆包机点位
export const getCbjPoint = () => request({
url:'http://192.168.81.130:8011/api/pda/getCbjPoint',
data: {}
})
// 拆包机叫料
export const cbjqlTask = (sp, ep) => request({
url:'http://192.168.81.130:8011/api/pda/cbjqlTask',
data: {
startPoint: sp,
endPoint: ep
}
})
// 查询混碾工单
export const hnWorkOrder = () => request({
url:'http://192.168.81.190:8011/api/pda/hnWorkOrder',
data: {}
})
// 混碾工单完成
export const hnOrderFinish = (code) => request({
url:'http://192.168.81.190:8011/api/pda/orderFinish',
data: {orderCode: code}
// 拆包机下料位满料入货架
export const cbjmlTask = (code, bcode, sp) => request({
url:'http://192.168.81.190:8011/api/pda/cbjmlTask',
data: {orderCode: code,barCode: bcode,startPoint: sp}
})
// 拆包机料盅入库
export const hnmlTask = (code, bcode, time) => request({
url:'http://192.168.81.190:8011/api/pda/hnmlTask',
data: {orderCode: code,barCode: bcode,createTime: time}
})
// 拆包机叫空蛊
export const hnqkTask = () => request({
url:'http://192.168.81.190:8011/api/pda/hnqkTask',
data: {}
// 拆包机下料位叫空蛊
export const cbjqkTask = (ep) => request({
url:'http://192.168.81.130:8011/api/pda/cbjqkTask',
data: {endPoint: ep}
})
/**
@@ -58,14 +71,26 @@ export const qzhhjTask = (code) => request({
url:'http://192.168.81.190:8011/api/pda/qzhhjTask',
data: {deviceCode: code}
})
// 查询货架上已拆包料盅信息
export const packShelfInfo = () => request({
url:'http://192.168.81.130:8011/api/pda/packShelfInfo',
data: {}
})
// 困料货架点对点到布料机上料位
export const yzqlTask = (sp, ep) => request({
url:'http://192.168.81.130:8011/api/pda/yzqlTask',
data: {startPoint: sp, endPoint: ep}
})
/**
* 物料报废
*/
// 物料报废
export const materialScrap = () => request({
export const materialScrap = (code) => request({
url:'http://192.168.81.190:8011/api/pda/materialScrap',
data: {}
data: {
barCode: code
}
})
/**

View File

@@ -1,3 +1,39 @@
// 查询货架上未拆包料盅信息
export const unpackShelfInfo = () => {
let res = [
{
"pointCode": "KLHW03",
"materialCode": "ML-60BT",
"instorageTime": "2024-01-11 16:26:55"
}
]
return res
}
// 查询拆包机点位
export const getCbjPoint = () => {
let res = [
{
"value": "CBJKLW",
"text": "拆包机空料位"
},
{
"value": "CBJMLW",
"text": "拆包机满料位"
},
{
"value": "CBJXLW ",
"text": "拆包机下料位"
}
]
return res
}
// 拆包机叫料
export const cbjqlTask = () => {
let res = {
"message": "拆包机缺料请求成功"
}
return res
}
// 查询混碾工单
export const hnWorkOrder = () => {
let res = [
@@ -126,20 +162,13 @@ export const hnWorkOrder = () => {
]
return res
}
// 混碾工单完成
export const hnOrderFinish = () => {
let res = {
"message": "string"
}
return res
}
// 拆包机料盅入库
export const hnmlTask = () => {
// 拆包机下料位满料入货架
export const cbjmlTask = () => {
let res = {"message":"满料入库请求成功"}
return res
}
// 拆包机叫空蛊
export const hnqkTask = () => {
// 拆包机下料位叫空蛊
export const cbjqkTask = () => {
let res = {"message":"空蛊出库请求成功"}
return res
}