箱的提示语放前面
This commit is contained in:
@@ -144,6 +144,11 @@ namespace WMS.Web.Domain.Services
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public async Task<Result<BoxInStockTaskDto>> GetInfoByBox(BoxInStockTaskRequest dto)
|
public async Task<Result<BoxInStockTaskDto>> GetInfoByBox(BoxInStockTaskRequest dto)
|
||||||
{
|
{
|
||||||
|
//1.1.找到箱对应的物料信息
|
||||||
|
var box = await _boxRepositories.GetByNo(dto.BoxBillNo);
|
||||||
|
if (box == null)
|
||||||
|
return Result<BoxInStockTaskDto>.ReFailure(ResultCodes.BoxNoData);
|
||||||
|
|
||||||
//1.获取物料集合
|
//1.获取物料集合
|
||||||
var materials_result = await _erpService.BillQueryForMaterial();
|
var materials_result = await _erpService.BillQueryForMaterial();
|
||||||
var materials = new List<ErpMaterialDto>();
|
var materials = new List<ErpMaterialDto>();
|
||||||
@@ -168,12 +173,6 @@ namespace WMS.Web.Domain.Services
|
|||||||
return Result<BoxInStockTaskDto>.ReFailure(ResultCodes.BoxBindTaskDetailsIdNotChoose);
|
return Result<BoxInStockTaskDto>.ReFailure(ResultCodes.BoxBindTaskDetailsIdNotChoose);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//2.找到箱对应的物料信息
|
|
||||||
var box = await _boxRepositories.GetByNo(dto.BoxBillNo);
|
|
||||||
if (box == null)
|
|
||||||
return Result<BoxInStockTaskDto>.ReFailure(ResultCodes.BoxNoData);
|
|
||||||
|
|
||||||
//2.1判断箱是否上架过了
|
//2.1判断箱是否上架过了
|
||||||
var isExist = await _inStockRepositories.IsExistBy(box.Id);
|
var isExist = await _inStockRepositories.IsExistBy(box.Id);
|
||||||
if (isExist)
|
if (isExist)
|
||||||
|
|||||||
Reference in New Issue
Block a user