提报记录添加工单号

This commit is contained in:
2023-11-28 09:37:27 +08:00
parent c622f14aa5
commit 64d0a9bf9a
5 changed files with 17 additions and 1 deletions

View File

@@ -1287,6 +1287,7 @@ namespace Tnb.ProductionMgr
record.mo_task_type = mo?.mo_type;
record.status = taskInfo.mo_task_status;
record.mo_task_id = taskInfo.id;
record.mo_code = mo?.mo_code ?? "";
//record.completed_qty = (await db.Queryable<PrdReport>().Where(it => it.mo_task_code == taskInfo.mo_task_code).SumAsync(it => it.reported_work_qty)).Value;
prdReportLogs.Add(record);
@@ -1307,7 +1308,8 @@ namespace Tnb.ProductionMgr
create_time = DateTime.Now,
mo_task_id = taskInfo.id,
mo_task_code = taskInfo.mo_task_code,
mo_task_type = mo?.mo_type
mo_task_type = mo?.mo_type,
mo_code = mo?.mo_code ?? "",
};
sacipRecord.status = taskInfo.mo_task_status;
prdTaskDefectLogs.Add(sacipRecord);

View File

@@ -98,6 +98,7 @@ namespace Tnb.ProductionMgr
{
id = a.id,
masterial_code = a.masterial_code,
mo_code = a.mo_code,
masterial_name = a.masterial_name,
mo_task_code = a.mo_task_code,
mo_task_id = a.mo_task_code,