|
|
@@ -38,6 +38,9 @@ namespace Business.ResourceExamineManagement
|
|
|
public List<mo_mes_mooccupy> mooccupyAllList = new List<mo_mes_mooccupy>();
|
|
|
public List<mo_srm_po_list> srm_po_list = new List<mo_srm_po_list>();
|
|
|
|
|
|
+ public List<mo_srm_po_list> srm_Po_Lists = new List<mo_srm_po_list>();
|
|
|
+ public List<mo_srm_po_occupy> srm_Po_Occupies = new List<mo_srm_po_occupy>();
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 工艺路径
|
|
|
/// </summary>
|
|
|
@@ -509,6 +512,8 @@ namespace Business.ResourceExamineManagement
|
|
|
else if (item.erp_cls == 3)
|
|
|
{
|
|
|
//先找在途
|
|
|
+ _purchaseOrderAppService.mo_Srm_Po_Lists = srm_Po_Lists;
|
|
|
+ _purchaseOrderAppService.srm_Po_Occupies = srm_Po_Occupies;
|
|
|
CalcInTransit(sentrys, item, bangid, plan_date.GetValueOrDefault());
|
|
|
if (item.lack_qty > 0)
|
|
|
{
|
|
|
@@ -886,6 +891,11 @@ namespace Business.ResourceExamineManagement
|
|
|
}
|
|
|
else if (sct.erp_cls == 3)
|
|
|
{
|
|
|
+ //先找在途
|
|
|
+ _purchaseOrderAppService.mo_Srm_Po_Lists = srm_Po_Lists;
|
|
|
+ _purchaseOrderAppService.srm_Po_Occupies = srm_Po_Occupies;
|
|
|
+ CalcInTransit(sentrys, sct, bangid, plan_date.GetValueOrDefault());
|
|
|
+
|
|
|
//采购申请
|
|
|
var SRMPRDto = CreateSRMPR(sct, input.tenantId, input.factoryId, bangid, sct.erp_cls, leadTimeList, supplierList, planList, plan_date.Value);
|
|
|
sct.purchase_qty = sct.lack_qty;
|
|
|
@@ -1112,6 +1122,7 @@ namespace Business.ResourceExamineManagement
|
|
|
{
|
|
|
ocp.po_billno = polist.po_billno;
|
|
|
}
|
|
|
+ item.purchase_occupy_list.Add(ocp);
|
|
|
});
|
|
|
}
|
|
|
}
|