1
This commit is contained in:
@@ -47,10 +47,12 @@ namespace Tnb.WarehouseMgr
|
||||
{
|
||||
private readonly ISqlSugarClient _db;
|
||||
private readonly IDictionaryDataService _dictionaryDataService;
|
||||
public WareHouseService(ISqlSugarRepository<WmsInstockH> repository, IDictionaryDataService dictionaryDataService)
|
||||
private readonly IBillRullService _billRullService;
|
||||
public WareHouseService(ISqlSugarRepository<WmsInstockH> repository, IDictionaryDataService dictionaryDataService, IBillRullService billRullService)
|
||||
{
|
||||
_db = repository.AsSugarClient();
|
||||
_dictionaryDataService = dictionaryDataService;
|
||||
_billRullService= billRullService;
|
||||
}
|
||||
/// <summary>
|
||||
/// 根据载具Id带出库位、仓库信息
|
||||
@@ -231,6 +233,7 @@ namespace Tnb.WarehouseMgr
|
||||
items.ForEach(x =>
|
||||
{
|
||||
x.is_chain = 0;
|
||||
x.bill_code= _billRullService.GetBillNumber(WmsWareHouseConst.WMS_TASK_EXECUTE_ENCODE).GetAwaiter().GetResult();
|
||||
x.chain_type = "0";
|
||||
});
|
||||
}
|
||||
@@ -266,6 +269,12 @@ namespace Tnb.WarehouseMgr
|
||||
{
|
||||
var moveNum = itGroup.First().move_num;
|
||||
var items = itGroup.Adapt<List<WmsDistaskH>>();
|
||||
items.ForEach(x =>
|
||||
{
|
||||
x.status = WmsWareHouseConst.TASK_BILL_STATUS_DZX_ID;
|
||||
x.bill_code = $"";
|
||||
x.is_sign = 1;
|
||||
});
|
||||
var areaPreTasks = itGroup.ToList();
|
||||
if (moveNum == 1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user