S6ProcessInspectionReviewDto.cs 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. namespace Admin.NET.Plugin.AiDOP.Manufacturing.Dto;
  2. /// <summary>Phase 1D 审核流状态(只读,供前端按钮控制)。所有判定/状态由后端拥有,前端不得回传状态。</summary>
  3. public class S6ReviewStateOutput
  4. {
  5. public long BillId { get; set; }
  6. public long? InstanceId { get; set; }
  7. /// <summary>Phase 1C 质量结果(PASS/FAIL/PENDING/INVALID)—— 只读回显,审批不改写。</summary>
  8. public string? OverallResult { get; set; }
  9. /// <summary>Phase 1C 结果状态(NOT_STARTED/IN_PROGRESS/COMPLETED)。</summary>
  10. public string? ResultStatus { get; set; }
  11. /// <summary>流程状态:NotStarted / Running / Approved / Rejected / Cancelled / Terminated。</summary>
  12. public string? FlowStatus { get; set; }
  13. public string? CurrentNodeCode { get; set; }
  14. public string? CurrentNodeName { get; set; }
  15. public string? CurrentAssigneeRole { get; set; }
  16. public bool IsCompleted { get; set; }
  17. public bool HasDisposition { get; set; }
  18. /// <summary>网关判据(FAIL→1)。</summary>
  19. public int DispositionRequired { get; set; }
  20. // 按钮门控(后端计算)
  21. public bool CanSubmitReview { get; set; }
  22. public bool CanSupervisorApprove { get; set; }
  23. public bool CanSupervisorReturn { get; set; }
  24. public bool CanSubmitDisposition { get; set; }
  25. public string? Message { get; set; }
  26. }
  27. /// <summary>提交审核入参:仅单据 id;租户/发起人后端自解析。</summary>
  28. public class S6SubmitReviewInput
  29. {
  30. public long BillId { get; set; }
  31. public string? Comment { get; set; }
  32. }
  33. /// <summary>主管审核通过入参(路由自动按 overall_result 决定去向)。</summary>
  34. public class S6ReviewApproveInput
  35. {
  36. public long BillId { get; set; }
  37. public string? Comment { get; set; }
  38. }
  39. /// <summary>主管退回入参(意见必填)。</summary>
  40. public class S6ReviewReturnInput
  41. {
  42. public long BillId { get; set; }
  43. public string? Comment { get; set; }
  44. }
  45. /// <summary>QE 质量处置入参(不改写 Phase 1C 质量结果)。</summary>
  46. public class S6QeDispositionInput
  47. {
  48. public long BillId { get; set; }
  49. /// <summary>REWORK / CONCESSION / SCRAP / OTHER。</summary>
  50. public string DispositionType { get; set; } = string.Empty;
  51. public decimal? DispositionQty { get; set; }
  52. public decimal? ReworkQty { get; set; }
  53. public decimal? ConcessionQty { get; set; }
  54. public decimal? ScrapQty { get; set; }
  55. public string? DispositionOpinion { get; set; }
  56. public string? ResponsibilityDept { get; set; }
  57. public string? ResponsibleUser { get; set; }
  58. public string? Comment { get; set; }
  59. }