PDA扫码入库增加预任务条码表
This commit is contained in:
@@ -183,7 +183,21 @@ namespace Tnb.WarehouseMgr
|
|||||||
preTask.create_time = DateTime.Now;
|
preTask.create_time = DateTime.Now;
|
||||||
return preTask;
|
return preTask;
|
||||||
}).ToList();
|
}).ToList();
|
||||||
var isOk = await _wareHouseService.GenPreTask(preTasks, null!);
|
List<WmsPretaskCode> pretaskCodes = new();
|
||||||
|
foreach (var pt in preTasks)
|
||||||
|
{
|
||||||
|
WmsPretaskCode ptc = pt.Adapt<WmsPretaskCode>();
|
||||||
|
ptc.id = SnowflakeIdHelper.NextId();
|
||||||
|
ptc.bill_id = pt.id;
|
||||||
|
ptc.material_id = instockCode.material_id;
|
||||||
|
ptc.material_code = instockCode.material_code;
|
||||||
|
ptc.barcode = instockCode.barcode;
|
||||||
|
ptc.codeqty = instockCode.codeqty;
|
||||||
|
ptc.unit_id = instockCode.unit_id;
|
||||||
|
ptc.code_batch = instockCode.code_batch;
|
||||||
|
pretaskCodes.Add(ptc);
|
||||||
|
}
|
||||||
|
var isOk = await _wareHouseService.GenPreTask(preTasks, pretaskCodes);
|
||||||
if (isOk)
|
if (isOk)
|
||||||
{
|
{
|
||||||
var preTaskUpInput = new GenPreTaskUpInput();
|
var preTaskUpInput = new GenPreTaskUpInput();
|
||||||
|
|||||||
Reference in New Issue
Block a user