对比接口-筛选仓库对应明细
This commit is contained in:
@@ -437,12 +437,12 @@
|
||||
</member>
|
||||
<member name="P:WMS.Web.Core.Dto.ChangeBoxRecord.SaveChangeBoxRecordRequest.StockCode">
|
||||
<summary>
|
||||
目标箱的仓库(可为空:当目标箱不需要上架时候)
|
||||
目标箱的仓库或重新上架选择仓位对应的仓库
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:WMS.Web.Core.Dto.ChangeBoxRecord.SaveChangeBoxRecordRequest.SubStockId">
|
||||
<summary>
|
||||
仓位
|
||||
目标箱仓位或重新上架选择仓位
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:WMS.Web.Core.Dto.ChangeBoxRecord.SaveChangeBoxRecordRequest.SrcBoxOrgCode">
|
||||
@@ -1230,11 +1230,6 @@
|
||||
单据ID(等同-入库任务单ID)
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:WMS.Web.Core.Dto.InStockTask.ContrastMaterialsRequest.StockCode">
|
||||
<summary>
|
||||
仓库编码
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:WMS.Web.Core.Dto.InStockTask.ContrastMaterialsRequest.BoxBillNos">
|
||||
<summary>
|
||||
箱号集合
|
||||
|
||||
@@ -20,19 +20,18 @@ namespace WMS.Web.Core.Dto.ChangeBoxRecord
|
||||
[Required(ErrorMessage = "目标箱子不能为空")]
|
||||
public int DestBoxId { get; set; }
|
||||
/// <summary>
|
||||
/// 目标箱的仓库(可为空:当目标箱不需要上架时候)
|
||||
/// 目标箱的仓库或重新上架选择仓位对应的仓库
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "仓库不能为空")]
|
||||
public string StockCode { get; set; }
|
||||
/// <summary>
|
||||
/// 仓位
|
||||
/// 目标箱仓位或重新上架选择仓位
|
||||
///</summary>
|
||||
[Required(ErrorMessage = "仓位不能为空")]
|
||||
public string SubStockId { get; set; }
|
||||
/// <summary>
|
||||
/// 原箱组织编码
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "原箱组织不能为空")]
|
||||
public string SrcBoxOrgCode { get; set; }
|
||||
/// <summary>
|
||||
/// 目标箱组织编码
|
||||
|
||||
@@ -41,6 +41,11 @@ namespace WMS.Web.Core.Dto.OutStock
|
||||
[Required(ErrorMessage = "箱不能为空")]
|
||||
public int BoxId { get; set; }
|
||||
/// <summary>
|
||||
/// 仓位不能为空
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "箱不能为空")]
|
||||
public int SubStockId { get; set; }
|
||||
/// <summary>
|
||||
/// 序列号集
|
||||
/// </summary>
|
||||
public List<string> SerialNumbers { get; set; } = new List<string>();
|
||||
|
||||
@@ -115,7 +115,7 @@ namespace WMS.Web.Domain.Services
|
||||
BoxId = boxId,
|
||||
InventoryInOutMethod = dto.Method,
|
||||
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
|
||||
};
|
||||
inventoryList.Add(inventory);
|
||||
|
||||
Reference in New Issue
Block a user