出库增加箱对应的仓位
This commit is contained in:
@@ -41,6 +41,11 @@ namespace WMS.Web.Core.Dto.OutStock
|
|||||||
[Required(ErrorMessage = "箱不能为空")]
|
[Required(ErrorMessage = "箱不能为空")]
|
||||||
public int BoxId { get; set; }
|
public int BoxId { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
/// 仓位不能为空
|
||||||
|
/// </summary>
|
||||||
|
[Required(ErrorMessage = "箱不能为空")]
|
||||||
|
public int SubStockId { get; set; }
|
||||||
|
/// <summary>
|
||||||
/// 序列号集
|
/// 序列号集
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public List<string> SerialNumbers { get; set; } = new List<string>();
|
public List<string> SerialNumbers { get; set; } = new List<string>();
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ namespace WMS.Web.Domain.Services
|
|||||||
BoxId = boxId,
|
BoxId = boxId,
|
||||||
InventoryInOutMethod = dto.Method,
|
InventoryInOutMethod = dto.Method,
|
||||||
StockCode = outStockTask.StockCode,
|
StockCode = outStockTask.StockCode,
|
||||||
SubStockId = 0,// outStockTask.Details.First().SubStockId,
|
SubStockId = dto.Details.FirstOrDefault(f => f.BoxId == boxId)?.SubStockId ?? 0,// outStockTask.Details.First().SubStockId,
|
||||||
Details = inventoryDetail
|
Details = inventoryDetail
|
||||||
};
|
};
|
||||||
inventoryList.Add(inventory);
|
inventoryList.Add(inventory);
|
||||||
|
|||||||
Reference in New Issue
Block a user