出库,散料 箱子回库逻辑
分解订单 排除入库锁定库存
This commit is contained in:
1 parent
1365920fee
commit
0269655891
5 files changed
+34
-16
No files matched your search
@@ -93,7 +93,7 @@ public class ShipOutController : BaseController
|
||||
if (list.Count() == 0)
|
||||
{
|
||||
var Sation = _unitWork.Find<Location>(x => x.Code == station).FirstOrDefault();
|
||||
if (Sation != null)
|
||||
if (Sation != null && Sation.Type == "L")
|
||||
{
|
||||
Sation.ContainerCode = "";
|
||||
Sation.Height = 0;
|
||||
@@ -125,8 +125,12 @@ public class ShipOutController : BaseController
|
||||
{
|
||||
return JsonMore(null, 500, $"站台{boxCode}不存在,无法回库!");
|
||||
}
|
||||
if (string.IsNullOrEmpty(station.ContainerCode))
|
||||
{
|
||||
return JsonMore(null, 500, $"{boxCode}站台没有料箱,无法入库!");
|
||||
}
|
||||
//判断是否拣货完成
|
||||
if(_unitWork.IsExit<Inventory>(x => x.LocationCode.Equals(station.Code)))
|
||||
if (_unitWork.IsExit<Inventory>(x => x.LocationCode.Equals(station.Code)))
|
||||
{
|
||||
return JsonMore(null, 500, $"站台{boxCode}存在未拣货物料,无法回库!");
|
||||
}
|
||||
@@ -152,7 +156,7 @@ public class ShipOutController : BaseController
|
||||
ZoneCode = ZoneCodeEnum.散料库,
|
||||
TaskNo = _unitWork.GetSerialNumber("CIn"),
|
||||
TaskType = TaskTypeEnum.散料盒入库,
|
||||
ContainerCode = station.ContainerCode,
|
||||
ContainerCode = toLocation.Code,
|
||||
FromLocation = station.Code,
|
||||
ToLocation = toLocation.Code,
|
||||
Status = TaskStatusEnum.待下发,
|
||||
|
||||
Reference in new issue
Block a user