diff --git a/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs b/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs index 3e38393b..7eedf18a 100644 --- a/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs +++ b/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs @@ -2351,7 +2351,7 @@ namespace Tnb.ProductionMgr List ids = prdVisionResultRecords.Select(x => x.id).ToList(); await db.Updateable().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(), @@ -2558,7 +2558,7 @@ namespace Tnb.ProductionMgr ["tbendtime"] = nowStr, ["tbstarttime"] = prdMoTask.act_start_date != null ? prdMoTask.act_start_date.Value.ToString("yyyy-MM-dd HH:mm:ss") : "", ["vbinbatchcode"] = report.batch, - ["vbmobillcode"] = prdMo.mo_code, + ["vbmobillcode"] = prdMo.mo_code.Split("-")[0], ["vbmorowno"] = prdMo.erp_lineno, ["vbrowno"] = prdMo.erp_lineno, ["vbdef2"] = null,//todo 工时后续要改