From 6021562fea402685fd7c7dd772f1a7334fec3b55 Mon Sep 17 00:00:00 2001 From: zzh <1368735060@qq.com> Date: Thu, 22 Oct 2026 18:54:33 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=85=A5=E5=BA=93=E9=A2=84=E6=8A=A5?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E9=A2=84=E6=8A=A5/=E5=BE=85=E5=85=A5?= =?UTF-8?q?=E5=BA=93=E7=BC=96=E8=BE=91=EF=BC=8C=E5=94=9B=E5=A4=B4=E9=80=89?= =?UTF-8?q?=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- src/Oms.Application/Dtos/Warehouse/WarehouseDtos.cs | 1 + .../Services/Warehouse/WarehouseService.Inbound.cs | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) 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