test #11

Merged
zzh merged 5 commits from test into master 2026-10-22 18:59:18 +08:00
2 changed files with 5 additions and 3 deletions
Showing only changes of commit 6021562fea - Show all commits

View File

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

View File

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