盘料出1个盘料盒对多次料塔

散料出库扫描 站台码
This commit is contained in:
zgf committed 2023-11-22 03:24:57 +08:00
1 parent 2cae99cb34
commit b833415dbf
5 files changed
+87 -92

No files matched your search

@@ -41,33 +41,22 @@ public class ShipOutController : BaseController
Location box = new Location();
if (code.Contains("C"))
{
box = _unitWork.FindSingle<Location>(x => x.ContainerCode.Equals(code) && x.Type == LocationTypeEnum.散料库站台);
box = _unitWork.FindSingle<Location>(x => x.Code.Equals(code) && x.Type == LocationTypeEnum.散料库站台);
}
else if (code.Contains("L"))
{
box = _unitWork.FindSingle<Location>(x => x.Code.Equals(code));
box = _unitWork.FindSingle<Location>(x => x.Code.Equals(code) && x.Type == LocationTypeEnum.料塔);
}
// 判断箱号是否合理
if (box != null)
{
if (box.Type == LocationTypeEnum.散料库站台 || box.Type == LocationTypeEnum.料塔)
{
var inv = _unitWork.Find<Inventory>(x => x.LocationCode.Equals(code));
if (code.Contains("C"))
{
inv = _unitWork.Find<Inventory>(x => x.ContainerCode.Equals(code));
}
return JsonMore(inv);
}
else
{
return JsonMore(null, 500, $"{code}不在站台!");
}
var inv = _unitWork.Find<Inventory>(x => x.LocationCode.Equals(code));
return JsonMore(inv);
}
else
{
return JsonMore(null, 500, $"{code}不正确!");
return JsonMore(null, 500, $"站台信息 {code} 不正确,请检查后重新扫描!");
}
}