feat: 入库预报支持预报/待入库编辑,唛头选填
All checks were successful
Build and Deploy / deploy (push) Successful in 1m5s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zzh 2026-10-22 18:54:33 +08:00
parent 8a1649ea66
commit 6021562fea
2 changed files with 5 additions and 3 deletions

View File

@ -258,6 +258,7 @@ public class WarehouseInboundSaveInput
[Required]
public int WarehouseId { get; set; }
/// <summary>唛头/快递单号,选填。</summary>
public string? MarkReference { get; set; }
public string InboundType { get; set; } = "normal";

View File

@ -155,7 +155,7 @@ public partial class WarehouseService
}
/// <summary>
/// 保存入库预报(新增或编辑)。
/// 保存入库预报(新增或编辑)。编辑仅允许「预报」「待入库」状态;唛头(MarkReference)选填。
/// </summary>
/// <param name="input">入参:入库预报保存数据。</param>
/// <returns>保存后的入库预报详情。</returns>
@ -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