namespace Admin.NET.Plugin.AiDOP.MaterialWarehouse.Dto;
///
/// S5 暂收在检列表 查询入参(只读)。
///
/// 数据源:aidopdev.MissedPrint(Status='I' 暂收待检、Qty>0、Location 空),按存储过程
/// pr_WMS_GetMissedTempQty 口径 join qms 检验单 / ItemMaster / SuppMaster 聚合。
/// MissedPrint 无 tenant_id 列;Domain 由 GeneralizedCodeMaster(SystemConfig/CompanyCode) 解析,
/// TenantId 仅为前端 withAidopTenantParams 注入的透传参数,本查询不据其过滤。
///
public class PendingInspectionListInput
{
/// 页码(从 1 开始)
public int Page { get; set; } = 1;
/// 每页条数
public int PageSize { get; set; } = 10;
/// 要货令单号(MissedPrint.PurOrd,模糊匹配)
public string? DemandNo { get; set; }
/// 货架(MissedPrint.Shelf,模糊匹配)
public string? Shelf { get; set; }
/// 批次号(MissedPrint.LotSerial,模糊匹配)
public string? BatchNo { get; set; }
/// 物料编码(MissedPrint.ItemNum,模糊匹配)
public string? MaterialCode { get; set; }
/// 检验状态(qms_qcp_insappnentry.FINSPECTSTATUS,精确匹配,下拉选择)
public string? InspectStatus { get; set; }
/// 供应商(MissedPrint.Supply,精确匹配,下拉选择)
public string? Supplier { get; set; }
/// 租户 ID(前端 withAidopTenantParams 注入;MissedPrint 无租户列,本查询忽略)
public long? TenantId { get; set; }
}
///
/// S5 暂收在检列表 行(只读)。字段对齐前端列 prop(camelCase),源列见注释(存储过程 pr_WMS_GetMissedTempQty)。
///
public class PendingInspectionListRow
{
/// 要货令单号(MissedPrint.PurOrd)
public string? DemandNo { get; set; }
/// 要货令行号(MissedPrint.PurLine)
public int? DemandLineNo { get; set; }
/// 物料编码(MissedPrint.ItemNum)
public string? MaterialCode { get; set; }
/// 物料名称(ItemMaster.Descr)
public string? MaterialName { get; set; }
/// 批次号(MissedPrint.LotSerial)
public string? BatchNo { get; set; }
/// 数量(SUM(MissedPrint.Qty))
public decimal? Qty { get; set; }
/// 单位(ItemMaster.UM)
public string? Unit { get; set; }
/// 待检货架(MAX(MissedPrint.Shelf))
public string? PendingShelf { get; set; }
/// 送货单号(MissedPrint.ShipperNbr)
public string? DeliveryNo { get; set; }
/// 检验单号(MAX(MissedPrint.CheckNo))
public string? InspectNo { get; set; }
/// 检验状态(MAX(qms_qcp_insappnentry.FINSPECTSTATUS),clfs='3' 时追加 -挑选使用)
public string? InspectStatus { get; set; }
/// 供应商(MissedPrint.Supply)
public string? Supplier { get; set; }
/// 供应商简称(SuppMaster.SortName)
public string? SupplierShortName { get; set; }
}
/// 检验状态下拉选项(qms_qcp_insappnentry.FINSPECTSTATUS distinct)。
public class PendingInspectionStatusOption
{
/// 检验状态值
public string? Val { get; set; }
}
/// 供应商下拉选项(暂收在检集合内 distinct Supply + SuppMaster.SortName)。
public class PendingInspectionSupplierOption
{
/// 供应商编码(MissedPrint.Supply)
public string? Val { get; set; }
/// 供应商简称(SuppMaster.SortName)
public string? Label { get; set; }
}