质量bug

This commit is contained in:
2024-08-23 16:55:35 +08:00
parent ff36f85219
commit f5d86c2f95
4 changed files with 11 additions and 4 deletions

View File

@@ -1220,6 +1220,7 @@ namespace Tnb.ProductionMgr
processid = task.process_id, processid = task.process_id,
workid = task.workstation_id, workid = task.workstation_id,
triggerevent = EnumTriggerEvent., triggerevent = EnumTriggerEvent.,
plan_check_type = WmsWareHouseConst.SHOUJIAN_ID,
}; };
await _qcCheckPlanService.CreateTask(entity); await _qcCheckPlanService.CreateTask(entity);
} }
@@ -1847,6 +1848,7 @@ namespace Tnb.ProductionMgr
carry_code = report.material_box_code, carry_code = report.material_box_code,
report_id = report.id, report_id = report.id,
batch = report.batch, batch = report.batch,
plan_check_type = WmsWareHouseConst.MOJIAN_ID,
}; };
await _qcCheckPlanService.CreateTask(entity); await _qcCheckPlanService.CreateTask(entity);
} }
@@ -1900,7 +1902,9 @@ namespace Tnb.ProductionMgr
carry_code = report.material_box_code, carry_code = report.material_box_code,
report_id = report.id, report_id = report.id,
batch = report.batch, batch = report.batch,
check_type = WmsWareHouseConst.FULLREVIEW_CODE check_type = WmsWareHouseConst.FULLREVIEW_CODE,
plan_check_type = WmsWareHouseConst.LINGBUJIANZUIZHONGJIANYAN_ID,
}; };
int? reported = prdMoTask.reported_work_qty == null ? 0 : prdMoTask.reported_work_qty; int? reported = prdMoTask.reported_work_qty == null ? 0 : prdMoTask.reported_work_qty;
int? scrap = prdMoTask.scrap_qty == null ? 0 : prdMoTask.scrap_qty; int? scrap = prdMoTask.scrap_qty == null ? 0 : prdMoTask.scrap_qty;

View File

@@ -54,6 +54,7 @@ namespace Tnb.QcMgr.Entities
/// </summary> /// </summary>
public string report_id { get; set; } public string report_id { get; set; }
public string check_type { get; set; } public string check_type { get; set; }
public string plan_check_type { get; set; }
public string batch { get; set; } public string batch { get; set; }
} }

View File

@@ -504,7 +504,7 @@ namespace Tnb.QcMgr
RemarkAttribute remark = RemarkAttribute.GetRemark(enumTriggerEvent); RemarkAttribute remark = RemarkAttribute.GetRemark(enumTriggerEvent);
string type = DictionaryData.Where(p => p.FullName == remark.CheckType).First().Id; string type = DictionaryData.Where(p => p.FullName == remark.CheckType).First().Id;
TriggerEvent = _repository.AsSugarClient().Queryable<QcTriggerEvent>().Where(p => p.type == type && p.name == remark.CheckContent).First(); TriggerEvent = _repository.AsSugarClient().Queryable<QcTriggerEvent>().Where(p => p.type == type && p.name == remark.CheckContent).First();
Query = Query.Where((a, b, c, d, e) => b.triggertype == "3" && b.content!.Contains(TriggerEvent.id)); Query = Query.Where((a, b, c, d, e) => b.triggertype == "3" && b.content!.Contains(TriggerEvent.id) && a.checktype==entity.plan_check_type);
} }
private void Filter(List<QcCheckPlanH> QcCheckPlanHs, TriggerPlanEntity entity) private void Filter(List<QcCheckPlanH> QcCheckPlanHs, TriggerPlanEntity entity)
{ {

View File

@@ -160,8 +160,10 @@ namespace Tnb.WarehouseMgr
["dbizdate"] = instock.create_time.ToString("yyyy-MM-dd HH:mm:ss"), ["dbizdate"] = instock.create_time.ToString("yyyy-MM-dd HH:mm:ss"),
["dplanarrivedate"] = instock.create_time.ToString("yyyy-MM-dd HH:mm:ss"), ["dplanarrivedate"] = instock.create_time.ToString("yyyy-MM-dd HH:mm:ss"),
["dplanoutdate"] = instock.create_time.ToString("yyyy-MM-dd HH:mm:ss"), ["dplanoutdate"] = instock.create_time.ToString("yyyy-MM-dd HH:mm:ss"),
["nnum"] = item.qty, // ["nnum"] = item.qty,
["nshouldnum"] = item.pr_qty, // ["nshouldnum"] = item.pr_qty,
["nnum"] = wmsRawmatTransferinstockD.actual_qty,
["nshouldnum"] = wmsRawmatTransferinstockD.actual_qty,
["pk_group"] = erpOrg.pk_group, ["pk_group"] = erpOrg.pk_group,
["pk_org"] = erpOrg.pk_org, ["pk_org"] = erpOrg.pk_org,
["pk_org_v"] = erpOrg.pk_org_v, ["pk_org_v"] = erpOrg.pk_org_v,