优化接口
This commit is contained in:
@@ -1797,6 +1797,11 @@
|
||||
所选物料
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:WMS.Web.Core.Dto.InStockTask.ContrastMaterialsRequest.IsPurchase">
|
||||
<summary>
|
||||
是否是采购上架
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:WMS.Web.Core.Dto.InStockTask.ContrastMaterialsRequest.BoxBillNos">
|
||||
<summary>
|
||||
箱号集合
|
||||
|
||||
@@ -28,6 +28,11 @@ namespace WMS.Web.Core.Dto.InStockTask
|
||||
/// </summary>
|
||||
public string MaterialNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否是采购上架
|
||||
/// </summary>
|
||||
public bool IsPurchase { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// 箱号集合
|
||||
/// </summary>
|
||||
|
||||
@@ -659,6 +659,9 @@ namespace WMS.Web.Domain.Services
|
||||
if (boxs == null || boxs.Count == 0)
|
||||
return Result<ContrastMaterialsResponse>.ReFailure(ResultCodes.BoxNoData);
|
||||
|
||||
//只有采购入库-是选择了物料明细
|
||||
if (dto.IsPurchase)
|
||||
{
|
||||
//判断箱不存在所选的物料
|
||||
foreach (var item in boxs)
|
||||
{
|
||||
@@ -666,7 +669,7 @@ namespace WMS.Web.Domain.Services
|
||||
if (!isAnyHave)
|
||||
return Result<ContrastMaterialsResponse>.ReFailure(ResultCodes.Contrast_Purchase_Count_Error);
|
||||
//return Result<ContrastMaterialsResponse>.ReFailure(item.BoxBillNo + ResultCodes.BoxNoMaterialError.Item2, ResultCodes.BoxNoMaterialError.Item1);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user