|
|
@@ -436,8 +436,9 @@ namespace Business.ResourceExamineManagement
|
|
|
//
|
|
|
calcTest(getBomList, bangid, o.Id, o.qty.Value);
|
|
|
|
|
|
- //最晚开工时间
|
|
|
- dtl.latest_times = o.plan_date.GetValueOrDefault();
|
|
|
+ //TODO:最晚开始时间
|
|
|
+ //最晚开工时间=订单行客户要求交期-采购提前期-质检提前期-入库提前期-发料提前期
|
|
|
+ dtl.latest_times = o.plan_date.GetValueOrDefault().AddDays(-2 - 3 - 4 - 5);
|
|
|
//物料齐套时间
|
|
|
dtl.kitting_times = getBomList.Where(p => p.is_use).OrderByDescending(m => m.kitting_time).First().kitting_time.GetValueOrDefault();
|
|
|
//替代关系展开list
|
|
|
@@ -448,43 +449,7 @@ namespace Business.ResourceExamineManagement
|
|
|
#endregion
|
|
|
//订单行资源检查明细list
|
|
|
rtn.examines = examines;
|
|
|
-
|
|
|
-
|
|
|
- //数据准备
|
|
|
- //await SaveChangesCompletedEventData()
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- List<BomChildExamineDto> returnlist = new List<BomChildExamineDto>();
|
|
|
- BomChildExamineDto bomChild = new BomChildExamineDto();
|
|
|
- bomChild.id = 4331979;
|
|
|
- bomChild.item_id = 809914;
|
|
|
- bomChild.item_name = "壳子";
|
|
|
- bomChild.unit = "只";
|
|
|
- bomChild.item_code = "2.1.01.01.0007";
|
|
|
- bomChild.lack_qty = 20;
|
|
|
- bomChild.erp_cls = 2;
|
|
|
- returnlist.Add(bomChild);
|
|
|
- BomChildExamineDto bomChild2 = new BomChildExamineDto();
|
|
|
- bomChild2.id = 4331981;
|
|
|
- bomChild2.item_id = 809667;
|
|
|
- bomChild2.item_name = "壳子";
|
|
|
- bomChild2.unit = "只";
|
|
|
- bomChild2.item_code = "2.1.01.01.0053";
|
|
|
- bomChild2.lack_qty = 20;
|
|
|
- bomChild2.erp_cls = 2;
|
|
|
- returnlist.Add(bomChild2);
|
|
|
- DateTime dateTime = DateTime.Now.AddDays(5);
|
|
|
- CheckOnOrder(returnlist, 102, 10201, dateTime, bangid);
|
|
|
-
|
|
|
- //产能检查
|
|
|
- //await ProductiveExamine(bom_number, packages);
|
|
|
- //var id = Save(input.tenantId, input.factoryId);
|
|
|
- //await GenerateMorder(1736470478942093312);
|
|
|
- //var dateTime = DateTime.Parse("2021-09-03");
|
|
|
- //await CheckMorder("9.1.03.01.0541", 1000, dateTime, 1736470478942093312);
|
|
|
- return null;
|
|
|
- throw new NotImplementedException();
|
|
|
+ return rtn;
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 测试使用新增销售订单数据
|