namespace Admin.NET.Plugin.AiDOP.Order; // ─────────────────────────── 查询入参 ─────────────────────────── /// 订单列表分页查询入参 public class SeOrderListInput { public int Page { get; set; } = 1; public int PageSize { get; set; } = 10; /// 订单号(模糊) public string? BillNo { get; set; } /// 客户编码(模糊) public string? CustomNo { get; set; } /// 状态:新建 / 评审 / 确认 public string? State { get; set; } /// 订单类别:1=销售 2=计划 public int? OrderType { get; set; } } /// 关键词分页查询(客户 / 物料弹窗) public class KeywordPageInput { public int Page { get; set; } = 1; public int PageSize { get; set; } = 10; public string? Keyword { get; set; } } // ─────────────────────────── 保存入参 ─────────────────────────── /// 订单明细行入参 public class SeOrderEntryInput { /// 明细主键(编辑时传入,新增行为 null) public long? Id { get; set; } public int? EntrySeq { get; set; } public string? ItemNumber { get; set; } public string? ItemName { get; set; } public string? Specification { get; set; } public string? Unit { get; set; } public decimal? Qty { get; set; } public string? PlanDate { get; set; } public string? SysCapacityDate { get; set; } public string? Date { get; set; } public string? Remark { get; set; } } /// 新增 / 编辑销售订单入参 public class SeOrderSaveInput { public long? Id { get; set; } [Required(ErrorMessage = "订单编号不能为空")] public string BillNo { get; set; } = string.Empty; public int OrderType { get; set; } = 2; public long? CustomId { get; set; } public string? CustomNo { get; set; } public string? CustomName { get; set; } /// 签订日期(yyyy-MM-dd) public string? Date { get; set; } public int? CustomLevel { get; set; } public int Urgent { get; set; } = 0; public string? BillFrom { get; set; } public string? Country { get; set; } = "中国"; public string? RDate { get; set; } public List Entries { get; set; } = new(); } /// 变更申请保存入参 public class SeOrderChangeSaveInput { public long SeOrderId { get; set; } public string? BillNo { get; set; } public int OrderType { get; set; } = 2; public long? CustomId { get; set; } public string? CustomNo { get; set; } public string? CustomName { get; set; } public string? Date { get; set; } public int? CustomLevel { get; set; } public int Urgent { get; set; } = 0; public string? BillFrom { get; set; } public string? Country { get; set; } public string? RDate { get; set; } [Required(ErrorMessage = "变更原因不能为空")] public string? ChangeReason { get; set; } [Required(ErrorMessage = "变更要求不能为空")] public string? ChangeType { get; set; } [Required(ErrorMessage = "变更内容不能为空")] public string? ChangeContent { get; set; } public List Entries { get; set; } = new(); }