IqcTaskEntryDto.cs 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. namespace Admin.NET.Plugin.AiDOP.MaterialWarehouse.Dto;
  2. public class IqcTaskEntryListInput
  3. {
  4. public string? ApplyBillNo { get; set; }
  5. public string? MaterialCode { get; set; }
  6. public string? LotNo { get; set; }
  7. public string? InspectStatus { get; set; }
  8. public string? Receiver { get; set; }
  9. public int Page { get; set; } = 1;
  10. public int PageSize { get; set; } = 20;
  11. }
  12. public class IqcTaskEntryRow
  13. {
  14. public long Id { get; set; }
  15. public long? Glid { get; set; }
  16. public string? ApplyBillNo { get; set; }
  17. public string? BizType { get; set; }
  18. public string? MaterialCode { get; set; }
  19. public string? MaterialName { get; set; }
  20. public string? Spec { get; set; }
  21. public string? LotNo { get; set; }
  22. public string? Receiver { get; set; }
  23. public decimal? ApplyQty { get; set; }
  24. public string? InspectStatus { get; set; }
  25. public string? OwnerId { get; set; }
  26. public string? OwnerName { get; set; }
  27. public long? Priority { get; set; }
  28. public string? SupplierCode { get; set; }
  29. public string? SupplierName { get; set; }
  30. public string? ShipmentNo { get; set; }
  31. public long? InspBillId { get; set; }
  32. public string? InspBillNo { get; set; }
  33. }
  34. public class IqcTaskEntryIdsInput
  35. {
  36. public List<long> Ids { get; set; } = new();
  37. }
  38. public class IqcTaskEntryAssignInput
  39. {
  40. public List<long> Ids { get; set; } = new();
  41. /// <summary>检验负责人用户 Id(统一存用户 id,见任务书 Q6/U9)</summary>
  42. public long InspectorUserId { get; set; }
  43. }
  44. public class IqcTaskEntryPriorityInput
  45. {
  46. public List<long> Ids { get; set; } = new();
  47. public long Priority { get; set; }
  48. }
  49. public class IqcGenerateInspBillInput
  50. {
  51. /// <summary>报检分录 id(qms_qcp_insappnentry.id)</summary>
  52. public long EntryId { get; set; }
  53. }
  54. public class IqcGenerateInspBillOutput
  55. {
  56. public long InspBillId { get; set; }
  57. public string InspBillNo { get; set; } = "";
  58. // ── 以下为 B-2 追加的检规解析可观测字段。全部可空/有默认值,向后兼容:
  59. // 既有前端不读这些字段也不会报错,且未新增任何必填入参。
  60. /// <summary>
  61. /// 检规解析状态:MATCHED / MATCHED_MANUAL / MATCHED_UNDATED / NO_SPEC / NO_EFFECTIVE_SPEC / AMBIGUOUS。
  62. /// 仅 MATCHED* 会把检规固化进 qms_qcp_inspbill 的 jgbh/jgbb/jgsxrq/jygfid。
  63. /// </summary>
  64. public string? SpecStatus { get; set; }
  65. /// <summary>命中的检规编号(未命中为 null)。</summary>
  66. public string? SpecNo { get; set; }
  67. /// <summary>面向 S0 维护者的整改提示;未命中或歧义时非空。</summary>
  68. public string? SpecWarning { get; set; }
  69. /// <summary>候选检规数量(可观测性用;0 表示该物料无检规映射)。</summary>
  70. public int SpecCandidateCount { get; set; }
  71. }