接口调整

This commit is contained in:
tongfei
2023-11-17 14:12:42 +08:00
parent 5c65ff7c5b
commit 50246572d6
10 changed files with 120 additions and 32 deletions

View File

@@ -18,9 +18,8 @@ namespace WMS.Web.Core.Dto.InStockTask
public int TaskId { get; set; }
/// <summary>
/// 箱号
/// 箱号集合
/// </summary>
[Required(ErrorMessage = "箱号不能为空")]
public string BoxBillNo { get; set; }
public List<string> BoxBillNos { get; set; } = new List<string>();
}
}

View File

@@ -7,18 +7,18 @@ namespace WMS.Web.Core.Dto.InStockTask
/// <summary>
/// 采购订单物料明细和箱物料明细-对比影响对象
/// </summary>
public class ContrastMaterialsResponse:BoxBaseDto
public class ContrastMaterialsResponse
{
/// <summary>
/// 箱号明细数量的总和
/// 多个箱的信息
/// </summary>
public decimal TotalCount { get; set; }
public List<ContrastBoxResponse> Boxs { get; set; } = new List<ContrastBoxResponse>();
}
/// <summary>
/// 收货和上架需要用的箱的基本信息-对象
/// </summary>
public class BoxBaseDto
public class ContrastBoxResponse
{
/// <summary>
/// 箱号ID
@@ -29,5 +29,31 @@ namespace WMS.Web.Core.Dto.InStockTask
/// 箱号
/// </summary>
public string BoxBillNo { get; set; }
/// <summary>
/// 箱号明细数量的总和
/// </summary>
public decimal TotalCount { get; set; }
/// <summary>
/// 明细
/// </summary>
public List<ContrastBoxDetailsResponse> Details { get; set; }
}
/// <summary>
/// 箱明细
/// </summary>
public class ContrastBoxDetailsResponse
{
/// <summary>
/// 物料
/// </summary>
public int MaterialId { get; set; }
/// <summary>
/// 数量
/// </summary>
public decimal Qty { get; set; }
}
}