南骏 池
2025-09-21 105ee9e867d29a322517888a9c3efb13f3e89961
MES.Service/service/BasicData/ProductionOrderManager.cs
@@ -74,10 +74,10 @@
    private bool SaveOrUpdateData(SqlSugarScope db, ProductionOrder mesRohIn,
        List<ProductionOrderSub> mesRohInDatas, string type)
    {
        if(type == "3")
        if(type == "3" || (mesRohIn.DocumentStatus != null && mesRohIn.DocumentStatus != "C"))
        {
            mesRohIn.Typea = "3";  // 新增字段赋值
            mesRohIn.OrderNo = mesRohIn.OrderNo + "F";
            mesRohIn.OrderNo = mesRohIn.OrderNo + "F" + mesRohIn.ErpProductionEntryCode;
        }
        if (StringUtil.CheckGuid(mesRohIn.Guid))