|
@@ -1296,6 +1296,31 @@ public class WmsDocOrderHeaderServiceImpl implements IWmsDocOrderHeaderService {
|
|
|
return AjaxResult.success();
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public AjaxResult groupDiskBHCheck(GroupDiskFrom groupDiskFrom) {
|
|
|
+
|
|
|
+
|
|
|
+ WmsDocOrderHeader header = wmsDocOrderHeaderService.selectWmsDocOrderHeaderByOrderNo(groupDiskFrom.getOrderNo());
|
|
|
+ if (null == header) return AjaxResult.error("查无此出库单数据" + groupDiskFrom.getOrderNo());
|
|
|
+ if (!header.getOrderType().equals(Constant.ORDER_TYP.BH.getValue())) {
|
|
|
+ return AjaxResult.error("出库单类型不可备货组盘!");
|
|
|
+ }
|
|
|
+ if (!header.getOrderStatus().equals(Constant.ORDER_STS.STS10.getValue())
|
|
|
+ && !header.getOrderStatus().equals(Constant.ORDER_STS.STS20.getValue())
|
|
|
+ && !header.getOrderStatus().equals(Constant.ORDER_STS.STS22.getValue())) {
|
|
|
+ return AjaxResult.error("出库单状态不可备货组盘!");
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ AjaxResult ajaxResultC = invLotLocIdService.checkPalletIsOnlyOrderNo(groupDiskFrom.getPalletNoTo()
|
|
|
+ , groupDiskFrom.getOrderNo());
|
|
|
+ if (!ajaxResultC.isSuccess()) {
|
|
|
+ return ajaxResultC;
|
|
|
+ }
|
|
|
+
|
|
|
+ return AjaxResult.success();
|
|
|
+ }
|
|
|
+
|
|
|
@Transactional
|
|
|
@Override
|
|
|
public synchronized AjaxResult groupDiskBH(GroupDiskFrom groupDiskFrom) {
|
|
@@ -1366,7 +1391,7 @@ public class WmsDocOrderHeaderServiceImpl implements IWmsDocOrderHeaderService {
|
|
|
|
|
|
if (invLotLocIdLotattList.size() == 0) {
|
|
|
|
|
|
- return groupDiskUnAllocationBH(groupDiskFrom);
|
|
|
+ return groupDiskUnAllocationBH(groupDiskFrom, taskQty);
|
|
|
|
|
|
}
|
|
|
|
|
@@ -1499,7 +1524,7 @@ public class WmsDocOrderHeaderServiceImpl implements IWmsDocOrderHeaderService {
|
|
|
* @return
|
|
|
*/
|
|
|
@Transactional
|
|
|
- public AjaxResult groupDiskUnAllocationBH(GroupDiskFrom groupDiskFrom) {
|
|
|
+ public AjaxResult groupDiskUnAllocationBH(GroupDiskFrom groupDiskFrom, int taskQty) {
|
|
|
String palletNoFrom = groupDiskFrom.getPalletNoFrom();
|
|
|
String palletNoTo = groupDiskFrom.getPalletNoTo();
|
|
|
String sn = groupDiskFrom.getSn();
|
|
@@ -1672,7 +1697,7 @@ public class WmsDocOrderHeaderServiceImpl implements IWmsDocOrderHeaderService {
|
|
|
boxInfoUpdate.setId(wmsBoxInfo.getId());
|
|
|
boxInfoUpdate.setLocationId(currentVirtualZone);
|
|
|
wmsBoxInfoService.updateWmsBoxInfo(boxInfoUpdate);
|
|
|
- return AjaxResult.success("当前托盘备货成功!(未分配条码),还剩余未备数:" + residual);
|
|
|
+ return AjaxResult.success("当前托盘备货成功!(未分配条码),备货情况:" + taskQty + "/" + residual);
|
|
|
}
|
|
|
|
|
|
@Transactional
|