修复bug
This commit is contained in:
@@ -152,7 +152,7 @@ namespace WMS.Web.Repositories
|
||||
public async Task<OutStockTask> Get(int id)
|
||||
{
|
||||
var res = await _context.OutStockTask
|
||||
.Include(s => s.Details).ThenInclude(x=>x.ErpDetails)
|
||||
.Include(s => s.Details).ThenInclude(x => x.ErpDetails)
|
||||
.FirstOrDefaultAsync(f => id == f.Id);
|
||||
|
||||
return res.Clone();
|
||||
@@ -292,6 +292,9 @@ namespace WMS.Web.Repositories
|
||||
RealityQty = s.detail.RealityQty,
|
||||
CreateTime = s.order.CreateTime.DateToStringSeconds(),
|
||||
OperateTime = s.order.OperateTime.DateToStringSeconds(),
|
||||
Operator = _singleDataService.GetSingleData(SingleAction.Staffs, _loginRepositories.CompanyId, s.order.OperatorId ?? 0),
|
||||
OutStockTime = s.order.OperateTime.DateToStringSeconds(),
|
||||
OutStock = _singleDataService.GetSingleData(SingleAction.Staffs, _loginRepositories.CompanyId, s.order.OutStockId ?? 0),
|
||||
OutStockBeginTime = s.detail.OutStockBeginTime.DateToStringSeconds(),
|
||||
OutStockEndTime = s.detail.OutStockEndTime.DateToStringSeconds(),
|
||||
Stock = _singleDataService.GetSingleData(SingleAction.StocksJoinOrgCode, _loginRepositories.CompanyId, s.order.StockCode + s.order.OrgCode),
|
||||
@@ -309,7 +312,7 @@ namespace WMS.Web.Repositories
|
||||
#endregion
|
||||
|
||||
}).Skip((dto.PageNo - 1) * dto.PageSize).Take(dto.PageSize).ToListAsync();
|
||||
foreach(var l in list)
|
||||
foreach (var l in list)
|
||||
{
|
||||
l.SourceBillNo = string.Join(",", l.SourceBillNoList.Distinct());
|
||||
l.SaleBillNo = string.Join(",", l.SaleBillNoList.Distinct());
|
||||
@@ -341,7 +344,7 @@ namespace WMS.Web.Repositories
|
||||
{
|
||||
var entity = list.FirstOrDefault(f => f.Id == r.Id);
|
||||
r.StockCode = entity.StockCode;
|
||||
r.StockName = _singleDataService.GetSingleData(SingleAction.StocksJoinOrgCode, _loginRepositories.CompanyId, entity.StockCode+ entity.OrgCode);
|
||||
r.StockName = _singleDataService.GetSingleData(SingleAction.StocksJoinOrgCode, _loginRepositories.CompanyId, entity.StockCode + entity.OrgCode);
|
||||
}
|
||||
//获取物料信息 显示物料三件套
|
||||
foreach (var r in response.SelectMany(s => s.details))
|
||||
@@ -428,7 +431,7 @@ namespace WMS.Web.Repositories
|
||||
_transaction.Commit();
|
||||
return true;
|
||||
}
|
||||
catch(Exception e)
|
||||
catch (Exception e)
|
||||
{
|
||||
if (_transaction != null)
|
||||
_transaction.Rollback();
|
||||
|
||||
Reference in New Issue
Block a user