This commit is contained in:
2025-11-24 11:02:42 +08:00
parent ca41f4f528
commit 765f48bd03
12 changed files with 441 additions and 221 deletions

View File

@@ -57,15 +57,15 @@ export const selectMaterials = (blurry, page, size) => request({
url:'api/hand/selectMaterials',
data: {blurry: blurry, page: page, size: size}
})
// 1.2查询所有区域
export const getNextRegions = () => request({
url:'api/hand/getNextRegions',
data: {}
// 1.2根据点位查询终点区域
export const getNextRegionsByPoint = (pcode) => request({
url:'api/hand/getNextRegionsByPoint',
data: {point_code: pcode}
})
// 1.3确认下料
export const blanking = (pcode, arr, rcode) => request({
url:'api/hand/blanking',
data: {point_code: pcode, data: arr, region_code: rcode}
// 1.3生产下料
export const productBlanking = (pcode, arr, rcode, type) => request({
url:'api/hand/productBlanking',
data: {point_code: pcode, data: arr, region_code: rcode, type: type}
})
// 人工放货
@@ -79,11 +79,6 @@ 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.2查询所有物料类型
export const getMaterialTypes = () => request({
url:'api/hand/getMaterialTypes',
@@ -101,10 +96,20 @@ 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.2清空列
export const cleanCol = (pcode, col) => request({
url:'api/hand/cleanCol',
data: {point_code: pcode, col: col}
})
// 1.3清空点位
export const cleanPoint = (pcode) => request({
url:'api/hand/cleanPoint',
data: {point_code: pcode}
})
// 1.4根据点位查询该区域的列信息
export const getColsByPoint = (pcode) => request({
url:'api/hand/getColsByPoint',
data: {point_code: pcode}
})
// 库存锁定解锁
@@ -123,11 +128,11 @@ export const unlock = (arr) => request({
url:'api/hand/unlock',
data: {data: arr}
})
// 1.4查询所有区域
export const getRegions = () => request({
url:'api/hand/getRegions',
data: {}
})
// // 1.4查询所有区域
// export const getRegions = () => request({
// url:'api/hand/getRegions',
// data: {}
// })
// 定点任务
// 1.1根据区域查询点位
@@ -175,18 +180,41 @@ export const selectRegionInfo = (rcode) => request({
url:'api/hand/selectRegionInfo',
data: {region_code: rcode}
})
// 1.2查询所有管制区域
export const getChargeRegions = () => request({
url:'api/hand/getChargeRegions',
// 1.2查询所有区域
export const getRegions = () => request({
url:'api/hand/getRegions',
data: {}
})
// 1.3进入
export const inArea = (rcode) => request({
url:'api/hand/inArea',
// 1.3管制
export const chargeArea = (rcode, option) => request({
url:'api/hand/chargeArea',
data: {region_code: rcode, option: option}
})
// 1.4解除管制
export const releaseArea = (rcode, option) => request({
url:'api/hand/releaseArea',
data: {region_code: rcode, option: option}
})
// AGV管制
// 1.1根据区域查询进出区域信息
export const selectCarInfo = (rcode) => request({
url:'api/hand/selectCarInfo',
data: {region_code: rcode}
})
// 1.3强制确认
export const outArea = (obj) => request({
url:'api/hand/outArea',
data: obj
// 1.2查询所有车号
export const getAgvNos = () => request({
url:'api/hand/getAgvNos',
data: {}
})
// 1.3暂停
export const pause = (agvno, option) => request({
url:'api/hand/pause',
data: {agv_no: agvno, option: option}
})
// 1.4恢复
export const resume = (agvno, option) => request({
url:'api/hand/resume',
data: {agv_no: agvno, option: option}
})