add test and outbound test

This commit is contained in:
zhougf committed 2026-06-01 23:30:36 +08:00
1 parent 38ecbf82e5
commit 7f621dd553
23 files changed
+1301 -26

No files matched your search

+35 -1
View File
@@ -190,7 +190,41 @@ public class InboundConfirmLineResultDto
public class OutboundOrderSaveRequest : OrderSaveRequestBase
{
[MinLength(1)]
public List<InventoryOrderLineRequest> Lines { get; set; } = new();
public List<OutboundOrderLineRequest> Lines { get; set; } = new();
}
public class OutboundOrderLineRequest
{
[Required]
[EnumDataType(typeof(InventoryKind))]
public InventoryKind InventoryKind { get; set; } = InventoryKind.Material;
[StringLength(64)]
public string? MaterialCode { get; set; }
[StringLength(64)]
public string? ContainerCode { get; set; }
[Required]
[StringLength(64)]
public string WarehouseCode { get; set; } = string.Empty;
[Required]
[StringLength(64)]
public string AreaCode { get; set; } = string.Empty;
/// <summary>可选。为空时由库存分配服务在仓库+库区范围内自动分配;有值时只从指定库位分配。</summary>
[StringLength(64)]
public string? LocationCode { get; set; }
[Range(typeof(decimal), "0.000001", "9999999999999999")]
public decimal Qty { get; set; }
[Required]
[StringLength(32)]
public string Unit { get; set; } = string.Empty;
public Dictionary<string, object>? Attrs { get; set; }
}
public class TransferOrderSaveRequest : OrderSaveRequestBase
@@ -0,0 +1,41 @@
using System.Collections.Generic;
using WmsLite.Api.Enums;
namespace WmsLite.Api.Dtos.Orders;
public class OutboundPickTaskViewDto
{
public string Id { get; set; } = string.Empty;
public string OrderId { get; set; } = string.Empty;
public string OrderLineId { get; set; } = string.Empty;
public string TaskNo { get; set; } = string.Empty;
public string InventoryId { get; set; } = string.Empty;
public InventoryKind InventoryKind { get; set; }
public string? MaterialCode { get; set; }
public string? ContainerCode { get; set; }
public string WarehouseCode { get; set; } = string.Empty;
public string AreaCode { get; set; } = string.Empty;
public string ZoneCode { get; set; } = string.Empty;
public string LocationCode { get; set; } = string.Empty;
public decimal Qty { get; set; }
public decimal PickedQty { get; set; }
public string Unit { get; set; } = string.Empty;
public PickTaskStatus TaskStatus { get; set; }
public Dictionary<string, object>? Attrs { get; set; }
}