1
This commit is contained in:
@@ -133,7 +133,7 @@ namespace Tnb.WarehouseMgr
|
|||||||
}).ToList();
|
}).ToList();
|
||||||
//更新页面
|
//更新页面
|
||||||
//赋值签收状态
|
//赋值签收状态
|
||||||
if (loc.is_sign == 0)
|
if (loc.is_sign == 0)
|
||||||
{
|
{
|
||||||
preTasks[^1].is_sign = 0; // 修改最后一个元素的是否签收值
|
preTasks[^1].is_sign = 0; // 修改最后一个元素的是否签收值
|
||||||
}
|
}
|
||||||
@@ -150,7 +150,7 @@ namespace Tnb.WarehouseMgr
|
|||||||
preTaskUpInput.LocationIds = points.Select(x => x.location_id).ToList();
|
preTaskUpInput.LocationIds = points.Select(x => x.location_id).ToList();
|
||||||
|
|
||||||
//更新明细表
|
//更新明细表
|
||||||
WmsEmptyOutstockD wmsEmptyOutstockD = new ();
|
WmsEmptyOutstockD wmsEmptyOutstockD = new();
|
||||||
wmsEmptyOutstockD.id = SnowflakeIdHelper.NextId();
|
wmsEmptyOutstockD.id = SnowflakeIdHelper.NextId();
|
||||||
wmsEmptyOutstockD.bill_id = preTaskUpInput.RquireId;
|
wmsEmptyOutstockD.bill_id = preTaskUpInput.RquireId;
|
||||||
wmsEmptyOutstockD.biz_type = WmsWareHouseConst.BIZTYPE_WMSEPTYOUTSTK_ID;
|
wmsEmptyOutstockD.biz_type = WmsWareHouseConst.BIZTYPE_WMSEPTYOUTSTK_ID;
|
||||||
@@ -166,7 +166,7 @@ namespace Tnb.WarehouseMgr
|
|||||||
//根据空载具出库Id,回更单据状态
|
//根据空载具出库Id,回更单据状态
|
||||||
await _db.Updateable<WmsEmptyOutstockH>().SetColumns(it => new WmsEmptyOutstockH { status = WmsWareHouseConst.BILLSTATUS_ON_ID }).Where(it => it.id == preTaskUpInput.RquireId).ExecuteCommandAsync();
|
await _db.Updateable<WmsEmptyOutstockH>().SetColumns(it => new WmsEmptyOutstockH { status = WmsWareHouseConst.BILLSTATUS_ON_ID }).Where(it => it.id == preTaskUpInput.RquireId).ExecuteCommandAsync();
|
||||||
await _wareHouseService.GenInStockTaskHandleAfter(preTaskUpInput,
|
await _wareHouseService.GenInStockTaskHandleAfter(preTaskUpInput,
|
||||||
it => new WmsCarryH { is_lock = 1},
|
it => new WmsCarryH { is_lock = 1 },
|
||||||
it => new BasLocation { is_lock = 1 });
|
it => new BasLocation { is_lock = 1 });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -191,8 +191,9 @@ namespace Tnb.WarehouseMgr
|
|||||||
|
|
||||||
var emptyCarrys = await _db.Queryable<WmsEmptyOutstockD>().Where(it => it.bill_id == input.requireId).ToListAsync();
|
var emptyCarrys = await _db.Queryable<WmsEmptyOutstockD>().Where(it => it.bill_id == input.requireId).ToListAsync();
|
||||||
// 判断所有明细是否都完成
|
// 判断所有明细是否都完成
|
||||||
if (emptyCarrys.All(x=> x.status == WmsWareHouseConst.BILLSTATUS_COMPLETE_ID)) {
|
if (emptyCarrys?.Count > 0 && emptyCarrys.All(x => x.status == WmsWareHouseConst.BILLSTATUS_COMPLETE_ID))
|
||||||
await _db.Updateable<WmsEmptyOutstockH>().SetColumns(it=> new WmsEmptyOutstockH { status = WmsWareHouseConst.BILLSTATUS_COMPLETE_ID }).Where(it => it.id == input.requireId).ExecuteCommandHasChangeAsync();
|
{
|
||||||
|
await _db.Updateable<WmsEmptyOutstockH>().SetColumns(it => new WmsEmptyOutstockH { status = WmsWareHouseConst.BILLSTATUS_COMPLETE_ID }).Where(it => it.id == input.requireId).ExecuteCommandHasChangeAsync();
|
||||||
}
|
}
|
||||||
if (!isOk) throw Oops.Oh(ErrorCode.COM1001);
|
if (!isOk) throw Oops.Oh(ErrorCode.COM1001);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user