生成电梯任务与判断一托延迟处理,生产入库调整

This commit is contained in:
2024-09-02 09:04:57 +08:00
parent d493a9322e
commit 6536f4f8e3
12 changed files with 251 additions and 162 deletions

View File

@@ -2320,7 +2320,7 @@ namespace Tnb.ProductionMgr
List<string> ids = prdVisionResultRecords.Select(x => x.id).ToList();
await db.Updateable<PrdVisionResultRecord>().SetColumns(x => x.status == 1).Where(x => ids.Contains(x.id)).ExecuteCommandAsync();
await ReportInstock(new CheckCompleteInput()
await ReportInstock(new CheckCompleteInput()
{
report_id = report.id,
pqty = report.reported_qty.ParseToDecimal(),
@@ -2397,15 +2397,14 @@ namespace Tnb.ProductionMgr
wmsPrdInstockInput.type = prdMo.mo_type;
wmsPrdInstockInput.create_id = report.create_id;
wmsPrdInstockInput.prd_report_id = report.id;
wmsPrdInstockInput.prdInstockDs = new List<WmsPrdInstockDInput>();
wmsPrdInstockInput.prdInstockCodes = new List<WmsPrdInstockCodeInput>();
wmsPrdInstockInput.prdInstockDs.Add(new WmsPrdInstockDInput()
wmsPrdInstockInput.prdInstockD = new WmsPrdInstockDInput()
{
task_bill_code = prdMoTask.mo_task_code,
warehouse_id = report.warehouse_id,
startlocation_id = location.id,
carry_id = wmsCarryH.id,
});
};
if (prdMoTask.schedule_type == 1)
{