namespace Admin.NET.Plugin.AiDOP.Manufacturing.Dto; /// prepare 入参:仅工单号;租户/检规均后端解析,前端不得传 tenantId/specId。 public class S6ProcessInspectionPrepareInput { public string? WorkOrderNo { get; set; } } /// prepare 结果。只有 Status==MATCHED 才有 BillId。 public class S6ProcessInspectionPrepareResult { public string Status { get; set; } = string.Empty; public string Message { get; set; } = string.Empty; public long? BillId { get; set; } /// 是否复用既有 active 检验单(幂等)。 public bool Reused { get; set; } public string? SpecCode { get; set; } public string? SpecVersion { get; set; } public int CandidateCount { get; set; } } /// 过程检验单详情(只读:单据 + 快照头 + 快照明细)。 public class S6ProcessInspectionDetailDto { public long BillId { get; set; } public string? WorkOrderNo { get; set; } public string? LotSerial { get; set; } public string? ItemCode { get; set; } public string? ItemName { get; set; } public string? Specification { get; set; } public long? SpecId { get; set; } public string? SpecCode { get; set; } public string? SpecVersion { get; set; } public string? EffectiveDate { get; set; } public string? InspectionStatus { get; set; } public string? CreatedByName { get; set; } public DateTime? CreateTime { get; set; } public List Lines { get; set; } = new(); } /// 快照明细行(只读,Phase 1B 冻结自 S0 检规明细)。 public class S6ProcessInspectionSnapshotLineDto { public long Id { get; set; } public string? InspectionItem { get; set; } public string? ProcessCode { get; set; } public string? ProcessName { get; set; } public string? Method { get; set; } public string? SpecValue { get; set; } public string? TechStandard { get; set; } public string? LowerLimit { get; set; } public string? UpperLimit { get; set; } public string? InspectionFrequency { get; set; } public string? ResultType { get; set; } public int? SortNo { get; set; } }