增加序列号冻结启用

This commit is contained in:
18942506660
2024-04-07 16:47:30 +08:00
parent 235ca654e8
commit 40e4b7a1d1
8 changed files with 85 additions and 26 deletions

View File

@@ -130,7 +130,7 @@ namespace WMS.Web.Domain.Services
var moveBoxRecord = moveBoxRecords.FirstOrDefault(f => f.BoxId == entity.BoxId);
//修改序列号和箱绑定关系
//entity.Bind(moveBoxRecord.BoxId);
entity.MoveBox(moveBoxRecord.Type);
//记录序列号操作日志
SerialNumberOperate op = new SerialNumberOperate()
{
@@ -392,11 +392,13 @@ namespace WMS.Web.Domain.Services
if (box == null) continue;
//if (backRecord.Type == BackRecordType.InstockOff)
// entity.UnBind();
if (backRecord.Type == BackRecordType.OutstockOn)
{
entity.Bind(detail.BoxId, box.CompleteCartonTime);
entity.IsOutStock = false;//标识出库状态
}
entity.BackRecord(backRecord.Type, detail.BoxId);
//if (backRecord.Type == BackRecordType.OutstockOn)
//{
// entity.Bind(detail.BoxId, box.CompleteCartonTime);
// entity.IsDelete = false;//解冻
//}
//记录序列号操作日志
@@ -477,8 +479,8 @@ namespace WMS.Web.Domain.Services
}
else
{
s_entity.TakeStock(takeStockDetail.BoxId);
if (s_entity.BoxId == takeStockDetail.BoxId) continue;
s_entity.BoxId = takeStockDetail.BoxId;
var takeStock = takeStocks.FirstOrDefault(w => w.Details.FirstOrDefault(w => w.SerialNumbers.Contains(s)) != null);
//记录序列号操作日志