提交代码
This commit is contained in:
@ -44,6 +44,7 @@ namespace WCS.BLL.Services.Service
|
||||
OrderNumber = request.OrderNumber,
|
||||
OrderSource = request.OrderSource,
|
||||
OrderType = request.OrderType,
|
||||
SyncType = SyncTypeEnum.ByMatCode,
|
||||
CreateUser = request.UserName,
|
||||
};
|
||||
order.Id = await DbHelp.db.Insertable(order).ExecuteReturnIdentityAsync();
|
||||
@ -136,7 +137,7 @@ namespace WCS.BLL.Services.Service
|
||||
//锁库存
|
||||
inventoryDetails.ForEach(t =>
|
||||
{
|
||||
t.IsLocked = false;
|
||||
t.IsLocked = true;
|
||||
});
|
||||
var lockTask = DbHelp.db.Updateable(inventoryDetails).ExecuteCommandAsync();
|
||||
|
||||
@ -146,6 +147,7 @@ namespace WCS.BLL.Services.Service
|
||||
OrderNumber = request.OrderNumber,
|
||||
OrderSource = request.OrderSource,
|
||||
OrderType = request.OrderType,
|
||||
SyncType = SyncTypeEnum.ByMatSn,
|
||||
CreateUser = request.UserName,
|
||||
};
|
||||
order.Id = await DbHelp.db.Insertable(order).ExecuteReturnIdentityAsync();
|
||||
@ -291,12 +293,36 @@ namespace WCS.BLL.Services.Service
|
||||
|
||||
public async Task<ResponseBase> GoInOutstore(GetOutOrderDetailRequest request)
|
||||
{
|
||||
//获取出库单
|
||||
var order = await DbHelp.db.Queryable<OutOrder>()
|
||||
.WhereIF(request.OrderId != 0, t => t.Id == request.OrderId)
|
||||
.WhereIF(!string.IsNullOrEmpty(request.OrderNumber), t => t.OrderNumber == request.OrderNumber)
|
||||
.FirstAsync();
|
||||
if (order == null)
|
||||
{
|
||||
return new ResponseCommon()
|
||||
{
|
||||
Code = 201,
|
||||
Message = "不存在对应的出库单据!",
|
||||
Data = null
|
||||
};
|
||||
}
|
||||
//获取出库单据明细
|
||||
//TO DO 如果是按物料编码出库 需要计算物料明细保存并进行锁定
|
||||
if (order.SyncType == SyncTypeEnum.ByMatCode)
|
||||
{
|
||||
|
||||
//先找到所有物料
|
||||
}
|
||||
|
||||
//分组 按物料找到对应得货架编码
|
||||
//分组 按物料找到对应的货架
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//对应的货架进入出库模式 亮灯
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//返回
|
||||
return new ResponseCommon()
|
||||
|
Reference in New Issue
Block a user