| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- namespace Admin.NET.Plugin.AiDOP.MaterialWarehouse.Dto;
- public class IqcTaskEntryListInput
- {
- public string? ApplyBillNo { get; set; }
- public string? MaterialCode { get; set; }
- public string? LotNo { get; set; }
- public string? InspectStatus { get; set; }
- public string? Receiver { get; set; }
- public int Page { get; set; } = 1;
- public int PageSize { get; set; } = 20;
- }
- public class IqcTaskEntryRow
- {
- public long Id { get; set; }
- public long? Glid { get; set; }
- public string? ApplyBillNo { get; set; }
- public string? BizType { get; set; }
- public string? MaterialCode { get; set; }
- public string? MaterialName { get; set; }
- public string? Spec { get; set; }
- public string? LotNo { get; set; }
- public string? Receiver { get; set; }
- public decimal? ApplyQty { get; set; }
- public string? InspectStatus { get; set; }
- public string? OwnerId { get; set; }
- public string? OwnerName { get; set; }
- public long? Priority { get; set; }
- public string? SupplierCode { get; set; }
- public string? SupplierName { get; set; }
- public string? ShipmentNo { get; set; }
- public long? InspBillId { get; set; }
- public string? InspBillNo { get; set; }
- }
- public class IqcTaskEntryIdsInput
- {
- public List<long> Ids { get; set; } = new();
- }
- public class IqcTaskEntryAssignInput
- {
- public List<long> Ids { get; set; } = new();
- /// <summary>检验负责人用户 Id(统一存用户 id,见任务书 Q6/U9)</summary>
- public long InspectorUserId { get; set; }
- }
- public class IqcTaskEntryPriorityInput
- {
- public List<long> Ids { get; set; } = new();
- public long Priority { get; set; }
- }
- public class IqcGenerateInspBillInput
- {
- /// <summary>报检分录 id(qms_qcp_insappnentry.id)</summary>
- public long EntryId { get; set; }
- }
- public class IqcGenerateInspBillOutput
- {
- public long InspBillId { get; set; }
- public string InspBillNo { get; set; } = "";
- // ── 以下为 B-2 追加的检规解析可观测字段。全部可空/有默认值,向后兼容:
- // 既有前端不读这些字段也不会报错,且未新增任何必填入参。
- /// <summary>
- /// 检规解析状态:MATCHED / MATCHED_MANUAL / MATCHED_UNDATED / NO_SPEC / NO_EFFECTIVE_SPEC / AMBIGUOUS。
- /// 仅 MATCHED* 会把检规固化进 qms_qcp_inspbill 的 jgbh/jgbb/jgsxrq/jygfid。
- /// </summary>
- public string? SpecStatus { get; set; }
- /// <summary>命中的检规编号(未命中为 null)。</summary>
- public string? SpecNo { get; set; }
- /// <summary>面向 S0 维护者的整改提示;未命中或歧义时非空。</summary>
- public string? SpecWarning { get; set; }
- /// <summary>候选检规数量(可观测性用;0 表示该物料无检规映射)。</summary>
- public int SpecCandidateCount { get; set; }
- /// <summary>
- /// B2:本单实际冻结的检规明细条数(写入 ado_s5_iqc_insp_bill_item 的行数)。
- ///
- /// 与 <see cref="SpecStatus"/> 正交,不可互相推断:
- /// · SpecStatus=MATCHED* 且 ItemCount>0 → 已冻结 N 条检验项目
- /// · SpecStatus=MATCHED* 且 ItemCount=0 → 合法状态:命中检规,但该检规未维护明细
- /// · SpecStatus=NO_SPEC / NO_EFFECTIVE_SPEC / AMBIGUOUS → 无快照对象,恒为 0
- /// 0 一律不视为错误(S5 刻意放宽,见 S5IqcSpecResolver.cs:76-79)。
- /// </summary>
- public int ItemCount { get; set; }
- }
|