|
@@ -569,8 +569,10 @@ public class WmsDocOrderHeaderServiceImpl implements IWmsDocOrderHeaderService {
|
|
|
invLocIdSearchFrom.setLotattDTO(lotattDTO);
|
|
|
List<InvLotLocIdLotattVO> invLotLocIdLotattVOList = invLotLocIdService.selectInvLocIdLotattList(invLocIdSearchFrom);
|
|
|
for (InvLotLocIdLotattVO locIdLotattVO : invLotLocIdLotattVOList) {
|
|
|
+ String lotatt15 = locIdLotattVO.getLotatt15();
|
|
|
+ WmsDocOrderHeader wmsDocOrderHeader = wmsDocOrderHeaderService.selectWmsDocOrderHeaderByOrderNo(lotatt15);
|
|
|
PickingListVO pickingListVO = new PickingListVO();
|
|
|
- pickingListVO.setOrderNo("");
|
|
|
+ pickingListVO.setOrderNo(wmsDocOrderHeader.getSoReference1()); // ERP单号
|
|
|
pickingListVO.setSku(locIdLotattVO.getSku());
|
|
|
pickingListVO.setPickQty(BigDecimal.ZERO.doubleValue());
|
|
|
pickingListVO.setToBePickQty(locIdLotattVO.getQty());
|
|
@@ -643,7 +645,7 @@ public class WmsDocOrderHeaderServiceImpl implements IWmsDocOrderHeaderService {
|
|
|
endActAllocation = EqualAllocationList.get(0);
|
|
|
}
|
|
|
if (endActAllocation == null) {
|
|
|
- return AjaxResult.error("没有可以拣货的分配明细!");
|
|
|
+ return AjaxResult.error("没有可以拣货的分配明细!可能拣货数量大于单条分配明细未拣货数量!");
|
|
|
}
|
|
|
// 更新库存数量
|
|
|
String lotnum = endActAllocation.getLotnum();
|
|
@@ -708,7 +710,7 @@ public class WmsDocOrderHeaderServiceImpl implements IWmsDocOrderHeaderService {
|
|
|
String palletNo = check.getPalletNo();
|
|
|
//生成任务呼叫到接驳位
|
|
|
BaseLocationInfo baseLocationInfo = baseLocationInfoService.selectBaseLocationInfoByIdOrNo(check.getLocationNo(), Constant.WAREHOUSE_ID);
|
|
|
- FlowConfigHeaderVO flowConfigHeaderVO = flowConfigHeaderService.selectFlowConfigHeaderById(6L);
|
|
|
+ FlowConfigHeaderVO flowConfigHeaderVO = flowConfigHeaderService.selectFlowConfigHeaderById((long)Constant.FLOW_ID_SO);
|
|
|
AgvCallDTO agvCallDTO = new AgvCallDTO();
|
|
|
agvCallDTO.setId(flowConfigHeaderVO.getId());
|
|
|
agvCallDTO.setLocationFrom(baseLocationInfo.getId().toString());
|
|
@@ -802,13 +804,13 @@ public class WmsDocOrderHeaderServiceImpl implements IWmsDocOrderHeaderService {
|
|
|
}
|
|
|
// 验证出库单
|
|
|
if (StringUtils.isNotEmpty(orderNo)) {
|
|
|
- WmsDocOrderHeader header = wmsDocOrderHeaderService.selectWmsDocOrderHeaderByOrderNo(orderNo);
|
|
|
- if (header != null
|
|
|
- && !header.getOrderStatus().equals(Constant.ORDER_STS.STS10.getValue())
|
|
|
- && !header.getOrderStatus().equals(Constant.ORDER_STS.STS20.getValue())
|
|
|
- && !header.getOrderStatus().equals(Constant.ORDER_STS.STS21.getValue())) {
|
|
|
- return AjaxResult.error("出库单状态不可组盘!");
|
|
|
- }
|
|
|
+// WmsDocOrderHeader header = wmsDocOrderHeaderService.selectWmsDocOrderHeaderByOrderNo(orderNo);
|
|
|
+// if (header != null
|
|
|
+// && !header.getOrderStatus().equals(Constant.ORDER_STS.STS10.getValue())
|
|
|
+// && !header.getOrderStatus().equals(Constant.ORDER_STS.STS20.getValue())
|
|
|
+// && !header.getOrderStatus().equals(Constant.ORDER_STS.STS21.getValue())) {
|
|
|
+// return AjaxResult.error("出库单状态不可组盘!");
|
|
|
+// }
|
|
|
}
|
|
|
// 根据条码获取物料号
|
|
|
CodeSkuRelationshipVO codeSkuRelationshipVO = codeSkuRelationshipService.checkIsProduct(sn);
|