hao
2025-06-03 0747214832e5a0fa8474ea244df70e5a4594b225
采购退料加源单id
已修改5个文件
20 ■■■■ 文件已修改
StandardInterface/MES.Service/Dto/webApi/ErpCGTHA.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
StandardInterface/MES.Service/Dto/webApi/ErpCGTHB.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
StandardInterface/MES.Service/Modes/CgthSq.cs 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
StandardInterface/MES.Service/Modes/CgthSqDetail.cs 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
StandardInterface/MES.Service/service/CgthSqManager.cs 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
StandardInterface/MES.Service/Dto/webApi/ErpCGTHA.cs
@@ -25,4 +25,5 @@
    public string? Ys_fs { get; set; }              //验收方式
    public string? bz { get; set; }              //备注
    public string? ERPID { get; set; }              //单据头id
    public string? yd_id { get; set; }              //源单id
}
StandardInterface/MES.Service/Dto/webApi/ErpCGTHB.cs
@@ -14,6 +14,7 @@
  public string? flot { get; set; }            //批号
  public string? fmoto { get; set; }            //计划跟踪号
    public string? quantity { get; set; }            //数量
    public string? ydfl_id { get; set; }            //源单分录id
StandardInterface/MES.Service/Modes/CgthSq.cs
@@ -158,7 +158,12 @@
        /// <summary>
        /// ERPID 
        ///</summary>
         [SugarColumn(ColumnName="ERPID"    )]
         public string Erpid { get; set; }
        [SugarColumn(ColumnName = "ERPID")]
        public string Erpid { get; set; }
        /// <summary>
        /// ERP源单ID
        ///</summary>
        [SugarColumn(ColumnName = "YDID")]
        public string Ydid { get; set; }
    }
}
StandardInterface/MES.Service/Modes/CgthSqDetail.cs
@@ -115,5 +115,10 @@
        ///</summary>
         [SugarColumn(ColumnName="FMTO"    )]
         public string Fmto { get; set; }
        /// <summary>
        /// 源单分录id
        ///</summary>
        [SugarColumn(ColumnName = "YDFL_ID")]
        public string YdflId { get; set; }
    }
}
StandardInterface/MES.Service/service/CgthSqManager.cs
@@ -67,7 +67,8 @@
                YsFs = dto.Ys_fs,                               //验收方式
                Bz = dto.bz,                                 //备注
                Erpid = dto.ERPID,                              //单据头id
                CreateDate=DateTime.Now,
                Ydid=dto.yd_id,
                CreateDate =DateTime.Now,
            }; 
            var single = base.GetSingle(it => it.Erpid == entity.Erpid);
            if (single != null) entity.Id = single.Id; 
@@ -92,6 +93,7 @@
                     Eid  = dto.eid,                 //单据头id
                     Flot=dto.flot,                           //批号
                     Fmto=dto.fmoto,                           //计划跟踪号
                    YdflId = dto.ydfl_id,                           //源单分录id
                    Quantity = decimal.TryParse(dto.quantity, out var qtyVal) ? qtyVal : null,        //数量
                };