fix:配盘配送目标点位添加映射
This commit is contained in:
@@ -211,10 +211,11 @@ public class PdaDirectDeliveryServiceImpl implements PdaDirectDeliveryService {
|
||||
if (loadPort.equals(startCode)) {
|
||||
throw new BadRequestException("托盘已在上料口" + loadPort + ",无需再次配送");
|
||||
}
|
||||
// 配送终点:上料口区域空闲点位
|
||||
// 配送终点:上料口区域中点位类型为1、且备注等于上料口的空闲点位
|
||||
end = selectIdlePoint(portPoint.getRegion_code(), startCode, loadPort);
|
||||
if (ObjectUtil.isEmpty(end)) {
|
||||
throw new BadRequestException("上料口区域无空闲点位,无法生成配送任务");
|
||||
throw new BadRequestException("上料口" + loadPort
|
||||
+ "所在区域无可用点位(需点位类型1且备注为上料口" + loadPort + "),无法生成配送任务");
|
||||
}
|
||||
}
|
||||
// 组织出库明细:按物料汇总
|
||||
@@ -377,7 +378,8 @@ public class PdaDirectDeliveryServiceImpl implements PdaDirectDeliveryService {
|
||||
}
|
||||
|
||||
/**
|
||||
* 查找上料口区域内 point_type=1 的空闲点位(无托盘且未被任务占用)
|
||||
* 查找上料口区域内 point_type=1 的可用点位:
|
||||
* 点位备注必须等于上料口(备注用于标识该点位归属的上料口),且无托盘、未被任务占用
|
||||
*/
|
||||
private SchBasePoint selectIdlePoint(String regionCode, String startCode, String loadPort) {
|
||||
List<SchBasePoint> candidates = iSchBasePointService.list(new LambdaQueryWrapper<SchBasePoint>()
|
||||
@@ -386,6 +388,7 @@ public class PdaDirectDeliveryServiceImpl implements PdaDirectDeliveryService {
|
||||
.eq(SchBasePoint::getIs_used, true)
|
||||
.ne(SchBasePoint::getPoint_code, startCode)
|
||||
.ne(SchBasePoint::getPoint_code, loadPort)
|
||||
.apply("TRIM(remark) = {0}", loadPort)
|
||||
.orderByAsc(SchBasePoint::getIn_order_seq));
|
||||
if (candidates.isEmpty()) {
|
||||
return null;
|
||||
|
||||
@@ -338,7 +338,8 @@ public class PlatingDeliveryServiceImpl implements PlatingDeliveryService {
|
||||
SchBasePoint portPoint = pointService.selectByCode(port);
|
||||
SchBasePoint end = selectIdlePoint(portPoint.getRegion_code(), port, pointType, usedPoints);
|
||||
if (end == null) {
|
||||
throw new BadRequestException("上料口" + port + "所在区域无空闲点位,无法生成配送任务");
|
||||
throw new BadRequestException("上料口" + port + "所在区域无可用点位(需点位类型"
|
||||
+ pointType + "且备注为上料口" + port + "),无法生成配送任务");
|
||||
}
|
||||
usedPoints.add(end.getPoint_code());
|
||||
StOutTask stOutTask = SpringContextHolder.getBean("STOutTask");
|
||||
@@ -381,7 +382,8 @@ public class PlatingDeliveryServiceImpl implements PlatingDeliveryService {
|
||||
}
|
||||
|
||||
/**
|
||||
* 查找上料口所在区域的空闲点位
|
||||
* 查找上料口所在区域的可用点位:
|
||||
* 点位类型匹配、已启用、非上料口本身,且点位备注必须等于上料口(备注用于标识该点位归属的上料口)
|
||||
*/
|
||||
private SchBasePoint selectIdlePoint(String regionCode, String loadPort, String pointType, Set<String> usedPoints) {
|
||||
List<SchBasePoint> candidates = pointService.list(new LambdaQueryWrapper<SchBasePoint>()
|
||||
@@ -389,6 +391,7 @@ public class PlatingDeliveryServiceImpl implements PlatingDeliveryService {
|
||||
.eq(SchBasePoint::getPoint_type, pointType)
|
||||
.eq(SchBasePoint::getIs_used, true)
|
||||
.ne(SchBasePoint::getPoint_code, loadPort)
|
||||
.apply("TRIM(remark) = {0}", loadPort)
|
||||
.orderByAsc(SchBasePoint::getIn_order_seq));
|
||||
if (candidates.isEmpty()) {
|
||||
return null;
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
|
||||
<div class="tips">
|
||||
出库单类型为「库存调拨」,送达完成后自动回传 SAP MM057(311 转储至线边库 X001),线边库库存不在 WMS 管理。
|
||||
配送终点取上料口所在区域中「点位类型1 且备注=上料口」的空闲点位。
|
||||
</div>
|
||||
|
||||
<el-table
|
||||
|
||||
@@ -89,6 +89,7 @@
|
||||
|
||||
<div class="tips">
|
||||
组盘托盘不入库,直接调拨出库到产线上料口:生成「库存调拨」出库单并回传 SAP MM057(311 转储至线边库 X001),线边库库存不在 WMS 管理。
|
||||
配送终点取上料口所在区域中「点位类型1 且备注=上料口」的空闲点位。
|
||||
<template v-if="agvDelivery">开启 AGV 配送时需扫描起始点位,托盘送达后任务完成并出库过账。</template>
|
||||
<template v-else>未开启 AGV 配送,提交后立即出库过账。</template>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user