namespace Admin.NET.Plugin.AiDOP.WorkOrder; /// /// 批量采购确认 - 未匹配到供应商的工单物料明细行(仅初始 p 状态工单)。 /// public class UnmatchedPurchaseRow { public long DetailRecId { get; set; } public string? WorkOrd { get; set; } public string? SalesOrderNo { get; set; } public string? ContractNo { get; set; } public string? ParentItemNum { get; set; } public string? ParentDescr { get; set; } public string? Factory { get; set; } public string? ItemNum { get; set; } public string? Descr { get; set; } public string? Descr1 { get; set; } public decimal? QtyRequired { get; set; } public string? Um { get; set; } public string? ProjectText { get; set; } /// 物料主数据 Buyer(采购员预填)。 public string? Purchaser { get; set; } } /// 批量采购确认请求体。 public class PurchaseConfirmInput { public List Items { get; set; } = new(); } /// 批量采购确认明细行。 public class PurchaseConfirmItem { public string? ItemNum { get; set; } public string? Descr { get; set; } public string? Um { get; set; } /// 决策采购(写入 order_rector_name / purcher)。 public string? Purchaser { get; set; } /// 供应商名称(写入 supplier_name,编码/ID 从 SuppMaster 回填)。 public string? Supplier { get; set; } public string? SupplierContact { get; set; } public decimal? UnitPrice { get; set; } } /// 批量采购确认结果。 public class PurchaseConfirmResult { /// 新增货源清单记录数。 public int Inserted { get; set; } /// 更新已有货源清单记录数。 public int Updated { get; set; } /// 因供应商为空而跳过的行数。 public int Skipped { get; set; } /// 提交总行数。 public int Total { get; set; } }