|
@@ -810,7 +810,8 @@ public class WmsDocOrderHeaderServiceImpl implements IWmsDocOrderHeaderService {
|
|
}
|
|
}
|
|
wmsDocOrderDetailsMapper.updateWmsDocOrderDetails(wmsDocOrderDetails);
|
|
wmsDocOrderDetailsMapper.updateWmsDocOrderDetails(wmsDocOrderDetails);
|
|
// 更新头单
|
|
// 更新头单
|
|
- String endMsg = "出货单已完全拣货!";
|
|
|
|
|
|
+ int qtyOrdered = 0;
|
|
|
|
+ int qtyPicked = 0;
|
|
String orderSts = Constant.ORDER_STS.STS99.getValue();
|
|
String orderSts = Constant.ORDER_STS.STS99.getValue();
|
|
WmsDocOrderHeader wmsDocOrderHeader = new WmsDocOrderHeader();
|
|
WmsDocOrderHeader wmsDocOrderHeader = new WmsDocOrderHeader();
|
|
wmsDocOrderHeader.setOrderNo(orderNo);
|
|
wmsDocOrderHeader.setOrderNo(orderNo);
|
|
@@ -818,9 +819,9 @@ public class WmsDocOrderHeaderServiceImpl implements IWmsDocOrderHeaderService {
|
|
for (WmsDocOrderDetails details : wmsDocOrderDetailsList) {
|
|
for (WmsDocOrderDetails details : wmsDocOrderDetailsList) {
|
|
if (!details.getLineStatus().equals(Constant.ORDER_STS.STS40.getValue())) {
|
|
if (!details.getLineStatus().equals(Constant.ORDER_STS.STS40.getValue())) {
|
|
orderSts = Constant.ORDER_STS.STS30.getValue();
|
|
orderSts = Constant.ORDER_STS.STS30.getValue();
|
|
- endMsg = "出货单还有未完全拣货!";
|
|
|
|
- break;
|
|
|
|
}
|
|
}
|
|
|
|
+ qtyOrdered += details.getQtyOrdered().intValue();
|
|
|
|
+ qtyPicked += details.getQtyPicked().intValue();
|
|
}
|
|
}
|
|
wmsDocOrderHeader.setOrderStatus(orderSts);
|
|
wmsDocOrderHeader.setOrderStatus(orderSts);
|
|
wmsDocOrderHeaderService.updateWmsDocOrderHeader(wmsDocOrderHeader);
|
|
wmsDocOrderHeaderService.updateWmsDocOrderHeader(wmsDocOrderHeader);
|
|
@@ -828,7 +829,7 @@ public class WmsDocOrderHeaderServiceImpl implements IWmsDocOrderHeaderService {
|
|
erpBarcodesService.recordErpBarcodeListSo(wmsDocOrderDetails, sn
|
|
erpBarcodesService.recordErpBarcodeListSo(wmsDocOrderDetails, sn
|
|
, "SORTATION01", palletNo, BigDecimal.ONE, "");
|
|
, "SORTATION01", palletNo, BigDecimal.ONE, "");
|
|
|
|
|
|
- return AjaxResult.success("拣货成功!" + endMsg);
|
|
|
|
|
|
+ return AjaxResult.success("拣货成功!分拣情况:" + qtyPicked + "/" + qtyOrdered);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -1308,6 +1309,7 @@ public class WmsDocOrderHeaderServiceImpl implements IWmsDocOrderHeaderService {
|
|
boolean isAllUpdate = false; // 库存转移类型,是全部修改,还是拆分
|
|
boolean isAllUpdate = false; // 库存转移类型,是全部修改,还是拆分
|
|
boolean isStockPalletNoTo = groupDiskFrom.isStockPalletNoTo(); // 目标托盘是否是备货托盘,为了方便,目标托盘默认是备货托盘
|
|
boolean isStockPalletNoTo = groupDiskFrom.isStockPalletNoTo(); // 目标托盘是否是备货托盘,为了方便,目标托盘默认是备货托盘
|
|
final Double toQty;
|
|
final Double toQty;
|
|
|
|
+ int taskQty = 0;
|
|
Long currentVirtualZone; // 当前所在的虚拟区
|
|
Long currentVirtualZone; // 当前所在的虚拟区
|
|
if (StringUtils.isNotEmpty(groupDiskFrom.getOrderNo())) {
|
|
if (StringUtils.isNotEmpty(groupDiskFrom.getOrderNo())) {
|
|
orderNo = groupDiskFrom.getOrderNo();
|
|
orderNo = groupDiskFrom.getOrderNo();
|
|
@@ -1315,15 +1317,19 @@ public class WmsDocOrderHeaderServiceImpl implements IWmsDocOrderHeaderService {
|
|
// 验证出库单
|
|
// 验证出库单
|
|
if (StringUtils.isNotEmpty(orderNo)) {
|
|
if (StringUtils.isNotEmpty(orderNo)) {
|
|
WmsDocOrderHeader header = wmsDocOrderHeaderService.selectWmsDocOrderHeaderByOrderNo(orderNo);
|
|
WmsDocOrderHeader header = wmsDocOrderHeaderService.selectWmsDocOrderHeaderByOrderNo(orderNo);
|
|
|
|
+ if (null == header) return AjaxResult.error("查无此出库单数据" + orderNo);
|
|
if (!header.getOrderType().equals(Constant.ORDER_TYP.BH.getValue())) {
|
|
if (!header.getOrderType().equals(Constant.ORDER_TYP.BH.getValue())) {
|
|
return AjaxResult.error("出库单类型不可备货组盘!");
|
|
return AjaxResult.error("出库单类型不可备货组盘!");
|
|
}
|
|
}
|
|
- if (header != null
|
|
|
|
- && !header.getOrderStatus().equals(Constant.ORDER_STS.STS10.getValue())
|
|
|
|
|
|
+ if (!header.getOrderStatus().equals(Constant.ORDER_STS.STS10.getValue())
|
|
&& !header.getOrderStatus().equals(Constant.ORDER_STS.STS20.getValue())
|
|
&& !header.getOrderStatus().equals(Constant.ORDER_STS.STS20.getValue())
|
|
&& !header.getOrderStatus().equals(Constant.ORDER_STS.STS22.getValue())) {
|
|
&& !header.getOrderStatus().equals(Constant.ORDER_STS.STS22.getValue())) {
|
|
return AjaxResult.error("出库单状态不可备货组盘!");
|
|
return AjaxResult.error("出库单状态不可备货组盘!");
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ for (WmsDocOrderDetails docOrderDetails : header.getWmsDocOrderDetailsList()) {
|
|
|
|
+ taskQty += docOrderDetails.getQtyOrdered().intValue();
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
// 根据条码获取物料号
|
|
// 根据条码获取物料号
|
|
@@ -1483,7 +1489,7 @@ public class WmsDocOrderHeaderServiceImpl implements IWmsDocOrderHeaderService {
|
|
boxInfoUpdate.setId(wmsBoxInfo.getId());
|
|
boxInfoUpdate.setId(wmsBoxInfo.getId());
|
|
boxInfoUpdate.setLocationId(currentVirtualZone);
|
|
boxInfoUpdate.setLocationId(currentVirtualZone);
|
|
wmsBoxInfoService.updateWmsBoxInfo(boxInfoUpdate);
|
|
wmsBoxInfoService.updateWmsBoxInfo(boxInfoUpdate);
|
|
- return AjaxResult.success("当前托盘备货成功!还剩余未备数:" + residual);
|
|
|
|
|
|
+ return AjaxResult.success("当前托盘备货成功!备货情况:" + taskQty + "/" + residual);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|