AdoS0QualityDictionaryController.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. namespace Admin.NET.Plugin.AiDOP.Controllers.S0.Quality;
  2. [ApiController]
  3. [Route("api/s0/quality/dictionary")]
  4. [AllowAnonymous]
  5. [NonUnify]
  6. public class AdoS0QmsDictionaryController : ControllerBase
  7. {
  8. [HttpGet("nodes")]
  9. public IActionResult GetNodes()
  10. {
  11. var nodes = new[]
  12. {
  13. new { key = "doc-types", label = "单据类型", route = "", kind = "dict" },
  14. new { key = "biz-types", label = "业务类型", route = "", kind = "dict" },
  15. new { key = "complaint", label = "客诉", route = "", kind = "dict" },
  16. new { key = "inspection-priority", label = "检验优先级", route = "", kind = "dict" },
  17. new { key = "product-ncr", label = "产品不合格联络单", route = "", kind = "dict" },
  18. new { key = "8d", label = "8D", route = "", kind = "dict" },
  19. new { key = "ncr", label = "NCR", route = "", kind = "dict" },
  20. new { key = "project", label = "项目管理", route = "", kind = "dict" },
  21. new { key = "biochemical", label = "生化", route = "", kind = "dict" },
  22. new { key = "capa", label = "CAPA", route = "", kind = "dict" },
  23. new { key = "production-record-list", label = "生产记录清单", route = "", kind = "dict" },
  24. new { key = "inspection-status", label = "检验状态", route = "", kind = "dict" },
  25. new { key = "aql-level", label = "AQL接受水平", route = "", kind = "dict" },
  26. new { key = "aql-value", label = "AQL值", route = "", kind = "dict" },
  27. new { key = "raw-whitelists", label = "原材料白名单", route = "/aidop/s0/quality/raw-whitelist", kind = "page" },
  28. new { key = "sampling-schemes", label = "抽样方案", route = "/aidop/s0/quality/sampling-scheme", kind = "page" },
  29. new { key = "instruments", label = "检验仪器", route = "/aidop/s0/quality/instrument", kind = "page" },
  30. new { key = "inspection-methods", label = "检验方法", route = "/aidop/s0/quality/inspection-method", kind = "page" },
  31. new { key = "inspection-bases", label = "检验依据", route = "/aidop/s0/quality/inspection-basis", kind = "page" },
  32. new { key = "inspection-standards", label = "检验标准", route = "/aidop/s0/quality/inspection-standard", kind = "page" },
  33. new { key = "inspection-items", label = "检验项目", route = "/aidop/s0/quality/inspection-item", kind = "page" },
  34. new { key = "inspection-frequencies", label = "检验频率", route = "/aidop/s0/quality/inspection-frequency", kind = "page" },
  35. new { key = "inspection-plans", label = "检验方案", route = "/aidop/s0/quality/inspection-plan", kind = "page" },
  36. new { key = "raw-inspection-specs", label = "原材料检验规范", route = "/aidop/s0/quality/raw-inspection-spec", kind = "page" },
  37. new { key = "process-inspection-specs", label = "过程检验规范", route = "/aidop/s0/quality/process-inspection-spec", kind = "page" },
  38. };
  39. return Ok(nodes);
  40. }
  41. }