diff --git a/oms_web/oms_vue/src/views/finance/receipt/components/ReceiptDialog.vue b/oms_web/oms_vue/src/views/finance/receipt/components/ReceiptDialog.vue index 281d8553..0e524b92 100644 --- a/oms_web/oms_vue/src/views/finance/receipt/components/ReceiptDialog.vue +++ b/oms_web/oms_vue/src/views/finance/receipt/components/ReceiptDialog.vue @@ -114,15 +114,15 @@ - - - - - - - - - + + + +
diff --git a/ruoyi-sip/src/main/java/com/ruoyi/sip/service/impl/InventoryDeliveryServiceImpl.java b/ruoyi-sip/src/main/java/com/ruoyi/sip/service/impl/InventoryDeliveryServiceImpl.java index 11d673bd..9009c435 100644 --- a/ruoyi-sip/src/main/java/com/ruoyi/sip/service/impl/InventoryDeliveryServiceImpl.java +++ b/ruoyi-sip/src/main/java/com/ruoyi/sip/service/impl/InventoryDeliveryServiceImpl.java @@ -134,6 +134,10 @@ public class InventoryDeliveryServiceImpl implements IInventoryDeliveryService { }).collect(Collectors.toList()); inventoryInfoService.saveBatch(inventoryInfoList); } else { + Long warehouseId = productSnDataList.get(0).getWarehouseId(); + if (warehouseId!=null && !warehouseId.equals(inventoryDelivery.getWarehouseId())){ + throw new ServiceException("发货数据仓库与出库单仓库不一致,请确认后重试"); + } for (InventoryInfo inventoryInfo : productSnDataList) { inventoryInfo.setInventoryStatus(InventoryInfo.InventoryStatusEnum.OUTER.getCode()); inventoryInfo.setOuterCode(inventoryDelivery.getOuterCode());