1
This commit is contained in:
@@ -346,26 +346,28 @@ namespace Tnb.WarehouseMgr
|
|||||||
var sPoint = it.FirstOrDefault();
|
var sPoint = it.FirstOrDefault();
|
||||||
var ePoint = it.LastOrDefault();
|
var ePoint = it.LastOrDefault();
|
||||||
|
|
||||||
WmsPretaskH preTask = new();
|
WmsPretaskH preTask = new()
|
||||||
preTask.org_id = _userManager.User.OrganizeId;
|
{
|
||||||
preTask.startlocation_id = sPoint?.location_id ?? string.Empty;
|
org_id = _userManager.User.OrganizeId,
|
||||||
preTask.startlocation_code = sPoint?.location_code ?? string.Empty;
|
startlocation_id = sPoint?.location_id ?? string.Empty,
|
||||||
preTask.endlocation_id = ePoint?.location_id ?? string.Empty;
|
startlocation_code = sPoint?.location_code ?? string.Empty,
|
||||||
preTask.endlocation_code = ePoint?.location_code ?? string.Empty;
|
endlocation_id = ePoint?.location_id ?? string.Empty,
|
||||||
preTask.start_floor = sPoint?.floor.ToString();
|
endlocation_code = ePoint?.location_code ?? string.Empty,
|
||||||
preTask.end_floor = ePoint?.floor.ToString();
|
start_floor = sPoint?.floor.ToString(),
|
||||||
preTask.bill_code = _billRullService.GetBillNumber(WmsWareHouseConst.WMS_PRETASK_H_ENCODE).GetAwaiter().GetResult();
|
end_floor = ePoint?.floor.ToString(),
|
||||||
preTask.status = WmsWareHouseConst.PRETASK_BILL_STATUS_DXF_ID;
|
bill_code = _billRullService.GetBillNumber(WmsWareHouseConst.WMS_PRETASK_H_ENCODE).GetAwaiter().GetResult(),
|
||||||
preTask.biz_type = instock?.biz_type ?? string.Empty;
|
status = WmsWareHouseConst.PRETASK_BILL_STATUS_DXF_ID,
|
||||||
preTask.task_type = WmsWareHouseConst.WMS_PRETASK_INSTOCK_TYPE_ID;
|
biz_type = instock?.biz_type ?? string.Empty,
|
||||||
preTask.carry_id = instock?.carry_id ?? string.Empty;
|
task_type = WmsWareHouseConst.WMS_PRETASK_INSTOCK_TYPE_ID,
|
||||||
preTask.carry_code = instock?.carry_code ?? string.Empty;
|
carry_id = instock?.carry_id ?? string.Empty,
|
||||||
preTask.area_id = sPoint?.area_id ?? string.Empty;
|
carry_code = instock?.carry_code ?? string.Empty,
|
||||||
preTask.area_code = it.Key;
|
area_id = sPoint?.area_id ?? string.Empty,
|
||||||
preTask.require_id = instock?.id ?? string.Empty;
|
area_code = it.Key,
|
||||||
preTask.require_code = instock?.bill_code ?? string.Empty;
|
require_id = instock?.id ?? string.Empty,
|
||||||
preTask.create_id = _userManager.UserId;
|
require_code = instock?.bill_code ?? string.Empty,
|
||||||
preTask.create_time = DateTime.Now;
|
create_id = _userManager.UserId,
|
||||||
|
create_time = DateTime.Now
|
||||||
|
};
|
||||||
return preTask;
|
return preTask;
|
||||||
}).ToList();
|
}).ToList();
|
||||||
//生成预任务条码信息
|
//生成预任务条码信息
|
||||||
@@ -395,12 +397,14 @@ namespace Tnb.WarehouseMgr
|
|||||||
if (isOk)
|
if (isOk)
|
||||||
{
|
{
|
||||||
|
|
||||||
var preTaskUpInput = new GenPreTaskUpInput();
|
GenPreTaskUpInput preTaskUpInput = new()
|
||||||
preTaskUpInput.RquireId = instock?.id;
|
{
|
||||||
preTaskUpInput.CarryId = instock?.carry_id!;
|
RquireId = instock?.id,
|
||||||
preTaskUpInput.CarryStartLocationId = points.FirstOrDefault()?.location_id;
|
CarryId = instock?.carry_id!,
|
||||||
preTaskUpInput.CarryStartLocationCode = points.FirstOrDefault()?.location_code;
|
CarryStartLocationId = points.FirstOrDefault()?.location_id,
|
||||||
preTaskUpInput.LocationIds = (points?.Select(x => x.location_id)?.ToList() ?? Enumerable.Empty<string?>().ToList()) as List<string>;
|
CarryStartLocationCode = points.FirstOrDefault()?.location_code,
|
||||||
|
LocationIds = (points?.Select(x => x.location_id)?.ToList() ?? Enumerable.Empty<string?>().ToList()) as List<string>
|
||||||
|
};
|
||||||
|
|
||||||
//创建预任务操作记录
|
//创建预任务操作记录
|
||||||
var operBillId = string.Empty;
|
var operBillId = string.Empty;
|
||||||
|
|||||||
Reference in New Issue
Block a user