1. 添加你入库页面验证
2. 库存查询条件 3. 接口任务完成修改 4. 添加物料及物料工序的修改
This commit is contained in:
1 parent
13d3a96f0c
commit
713c3528ad
15 files changed
+281
-155
No files matched your search
@@ -480,6 +480,18 @@ namespace HHWMS.Web
|
||||
// 处理移库:同时更新源库位和目标库位
|
||||
// 1. 更新源库位(移出后变为空)
|
||||
var sourceLocation = _unitWork.FindSingle<Location>(x => x.Code == task.FromLocation);
|
||||
|
||||
// 2. 更新目标库位(移入后有容器)
|
||||
var targetLocation = _unitWork.FindSingle<Location>(x => x.Code == task.ToLocation);
|
||||
if (targetLocation != null)
|
||||
{
|
||||
targetLocation.ContainerCode = task.ContainerCode;
|
||||
targetLocation.Status = LocationStatusEnum.未锁;
|
||||
targetLocation.ContainerStatus = sourceLocation.ContainerStatus;
|
||||
targetLocation.UpdateTime = DateTime.Now;
|
||||
_unitWork.Update(targetLocation);
|
||||
}
|
||||
|
||||
if (sourceLocation != null)
|
||||
{
|
||||
sourceLocation.ContainerCode = "";
|
||||
@@ -489,16 +501,6 @@ namespace HHWMS.Web
|
||||
_unitWork.Update(sourceLocation);
|
||||
}
|
||||
|
||||
// 2. 更新目标库位(移入后有容器)
|
||||
var targetLocation = _unitWork.FindSingle<Location>(x => x.Code == task.ToLocation);
|
||||
if (targetLocation != null)
|
||||
{
|
||||
targetLocation.ContainerCode = task.ContainerCode;
|
||||
targetLocation.Status = LocationStatusEnum.未锁;
|
||||
targetLocation.UpdateTime = DateTime.Now;
|
||||
_unitWork.Update(targetLocation);
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in new issue
Block a user