diff --git a/src/Oms.Application/Dtos/Warehouse/WarehouseDtos.cs b/src/Oms.Application/Dtos/Warehouse/WarehouseDtos.cs index 64968b0..47b6cff 100644 --- a/src/Oms.Application/Dtos/Warehouse/WarehouseDtos.cs +++ b/src/Oms.Application/Dtos/Warehouse/WarehouseDtos.cs @@ -258,6 +258,7 @@ public class WarehouseInboundSaveInput [Required] public int WarehouseId { get; set; } + /// 唛头/快递单号,选填。 public string? MarkReference { get; set; } public string InboundType { get; set; } = "normal"; diff --git a/src/Oms.Application/Services/Warehouse/WarehouseService.Inbound.cs b/src/Oms.Application/Services/Warehouse/WarehouseService.Inbound.cs index b1c1ced..4c58871 100644 --- a/src/Oms.Application/Services/Warehouse/WarehouseService.Inbound.cs +++ b/src/Oms.Application/Services/Warehouse/WarehouseService.Inbound.cs @@ -155,7 +155,7 @@ public partial class WarehouseService } /// - /// 保存入库预报(新增或编辑)。 + /// 保存入库预报(新增或编辑)。编辑仅允许「预报」「待入库」状态;唛头(MarkReference)选填。 /// /// 入参:入库预报保存数据。 /// 保存后的入库预报详情。 @@ -177,9 +177,10 @@ public partial class WarehouseService if (input.Id > 0) { notice = await GetInboundNoticeOrThrowAsync(customerId, input.Id); - if (notice.ReceiptStatus != WarehouseReceiptStatusCodes.Forecasted) + if (notice.ReceiptStatus != WarehouseReceiptStatusCodes.Forecasted + && notice.ReceiptStatus != WarehouseReceiptStatusCodes.Received) { - throw new BusinessException("仅预报状态可编辑"); + throw new BusinessException("仅预报或待入库状态可编辑"); } } else