PDA扫码入库增加预任务条码表
This commit is contained in:
@@ -101,7 +101,7 @@ namespace Tnb.WarehouseMgr
|
|||||||
unit_id = mat.unit_id,
|
unit_id = mat.unit_id,
|
||||||
pr_qty = item.codeqty,
|
pr_qty = item.codeqty,
|
||||||
qty = 0,
|
qty = 0,
|
||||||
code_batch= item.code_batch,
|
code_batch = item.code_batch,
|
||||||
warehouse_id = "26103372441637",
|
warehouse_id = "26103372441637",
|
||||||
print_qty = item.codeqty,
|
print_qty = item.codeqty,
|
||||||
scan_qty = item.codeqty,
|
scan_qty = item.codeqty,
|
||||||
@@ -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