namespace Admin.NET.Plugin.AiDOP.MaterialWarehouse.Dto; /// /// 委外发料单列表 查询入参(只读)。读 mdp_std_outsource_issue。 /// public class OutsourceIssueListInput { /// 页码(从 1 开始) public int Page { get; set; } = 1; /// 每页条数 public int PageSize { get; set; } = 10; /// 发料单号(bill_no,模糊匹配) public string? BillNo { get; set; } /// 委外单号(outsource_no,模糊匹配) public string? OutsourceNo { get; set; } /// 发料日期起(issue_date,含当日,yyyy-MM-dd) public string? IssueDateStart { get; set; } /// 发料日期止(issue_date,含当日,yyyy-MM-dd) public string? IssueDateEnd { get; set; } /// 排序字段(前端列 prop:billNo / issueDate / sourceCreateTime) public string? SortField { get; set; } /// 排序方向(asc / desc) public string? SortOrder { get; set; } /// 租户 ID(前端 withAidopTenantParams 注入;为空则不按租户过滤) public long? TenantId { get; set; } } /// /// 委外发料单列表 行(只读)。字段对齐前端骨架列 prop(camelCase)。 /// public class OutsourceIssueListRow { /// 主键 id(mdp_std_outsource_issue.id) public long Id { get; set; } /// 发料单号(bill_no) public string? Nbr { get; set; } /// 发料日期(issue_date) public DateTime? Date { get; set; } /// 状态中文(status_desc) public string? StatusDescr { get; set; } /// 委外单号(outsource_no) public string? Address { get; set; } /// 工单号(work_order,默认隐藏列) public string? WorkOrd { get; set; } /// 部门(department_code + department_name) public string? DepartmentDescr { get; set; } /// 发料人(issuer) public string? User1 { get; set; } /// 备注(remark) public string? Remark { get; set; } /// 创建用户(create_user) public string? CreateUser { get; set; } /// 创建时间(source_create_time) public DateTime? CreateTime { get; set; } } /// /// 委外发料单详情(只读):头 + 明细(已确认 9 列;发料数量/已发数/批次号 3 候选列后置不返回)。 /// public class OutsourceIssueDetailDto { public long Id { get; set; } public string? Nbr { get; set; } public DateTime? Date { get; set; } public string? Address { get; set; } public string? WorkOrd { get; set; } public string? DepartmentDescr { get; set; } public string? User1 { get; set; } public string? StatusDescr { get; set; } public string? Remark { get; set; } public string? CreateUser { get; set; } public DateTime? CreateTime { get; set; } /// 明细行(已确认 9 列) public List Lines { get; set; } = new(); } /// /// 委外发料单明细行(只读,已确认 9 列)。 /// public class OutsourceIssueDetailLineDto { public long Id { get; set; } public short Line { get; set; } public string? ItemNum { get; set; } public string? ItemName { get; set; } public string? Um { get; set; } public decimal? QtyOrd { get; set; } public string? LocationFrom { get; set; } public string? LocationTo { get; set; } public string? Status { get; set; } public string? Remark { get; set; } }