namespace Admin.NET.Plugin.AiDOP.MaterialWarehouse.Dto;
///
/// 生产入库单列表 查询入参(只读)。读 mdp_std_production_receipt(扁平,一行=一条明细)。
///
public class ProductionReceiptListInput
{
/// 页码(从 1 开始)
public int Page { get; set; } = 1;
/// 每页条数
public int PageSize { get; set; } = 10;
/// 入库单号(nbr,模糊匹配)
public string? Nbr { get; set; }
/// 工单号(work_ord,模糊匹配)
public string? WorkOrd { get; set; }
/// ERP工单号(erp_work_ord,模糊匹配)
public string? ErpWorkOrd { get; set; }
/// 批序号(lot_serial,模糊匹配)
public string? LotSerial { get; set; }
/// 入库日期起(receipt_date,含当日,yyyy-MM-dd)
public string? DateFrom { get; set; }
/// 入库日期止(receipt_date,含当日,yyyy-MM-dd)
public string? DateTo { get; set; }
/// 排序字段(前端列 prop:nbr / receiptDate / status / workOrd / erpWorkOrd / lotSerial / itemNum / createTime)
public string? OrderBy { get; set; }
/// 排序方向(asc / desc)
public string? OrderDir { get; set; }
/// 租户 ID(前端 withAidopTenantParams 注入;为空则不按租户过滤)
public long? TenantId { get; set; }
}
///
/// 生产入库单列表 行(只读,扁平:一行=一条 NbrDetail 明细)。字段对齐前端列 prop(camelCase)。
///
public class ProductionReceiptListRow
{
/// 主键 id(mdp_std_production_receipt.id)
public long Id { get; set; }
/// 入库单号(nbr)
public string? Nbr { get; set; }
/// 项次(line)
public short Line { get; set; }
/// 入库日期(receipt_date)
public DateTime? ReceiptDate { get; set; }
/// 状态原值(status;本批 raw 展示)
public string? Status { get; set; }
/// 状态中文(status_desc;本批暂=raw)
public string? StatusDesc { get; set; }
/// 入库类型/备注(remark)
public string? Remark { get; set; }
/// 生产线(prod_line)
public string? ProdLine { get; set; }
/// 工单号(work_ord)
public string? WorkOrd { get; set; }
/// 部门(department + department_desc)
public string? DepartmentDesc { get; set; }
/// ERP工单号(erp_work_ord)
public string? ErpWorkOrd { get; set; }
/// 物料编码(item_num)
public string? ItemNum { get; set; }
/// 物料名称(item_name)
public string? ItemName { get; set; }
/// 规格型号(item_spec)
public string? ItemSpec { get; set; }
/// 入库库位(location_to)
public string? LocationTo { get; set; }
/// 入库库位名(location_to_desc)
public string? LocationToDesc { get; set; }
/// 批序号(lot_serial)
public string? LotSerial { get; set; }
/// 数量(qty_rec)
public decimal? QtyRec { get; set; }
/// 单位(um)
public string? Um { get; set; }
/// 相关单号(ord_nbr)
public string? OrdNbr { get; set; }
/// 申请人(applicant_name;默认隐藏,DTO 保留)
public string? ApplicantName { get; set; }
}