AdoS0QualityDictionaryController.cs 2.2 KB

12345678910111213141516171819202122232425262728293031
  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 = "quality-base-types", label = "质量基础类型", route = "/aidop/s0/quality/dictionary", kind = "page" },
  14. new { key = "raw-whitelists", label = "原材料白名单", route = "/aidop/s0/quality/raw-whitelist", kind = "page" },
  15. new { key = "sampling-schemes", label = "抽样方案", route = "/aidop/s0/quality/sampling-scheme", kind = "page" },
  16. new { key = "instruments", label = "检验仪器/计量器具", route = "/aidop/s0/quality/instrument", kind = "page" },
  17. new { key = "inspection-methods", label = "检验方法", route = "/aidop/s0/quality/inspection-method", kind = "page" },
  18. new { key = "inspection-bases", label = "检验依据", route = "/aidop/s0/quality/inspection-basis", kind = "page" },
  19. new { key = "inspection-standards", label = "检验标准", route = "/aidop/s0/quality/inspection-standard", kind = "page" },
  20. new { key = "inspection-items", label = "检验项目", route = "/aidop/s0/quality/inspection-item", kind = "page" },
  21. new { key = "inspection-frequencies", label = "检验频率", route = "/aidop/s0/quality/inspection-frequency", kind = "page" },
  22. new { key = "inspection-plans", label = "检验方案", route = "/aidop/s0/quality/inspection-plan", kind = "page" },
  23. new { key = "raw-inspection-specs", label = "原材料检验规范", route = "/aidop/s0/quality/raw-inspection-spec", kind = "page" },
  24. new { key = "process-inspection-specs", label = "过程检验规范", route = "/aidop/s0/quality/process-inspection-spec", kind = "page" },
  25. new { key = "fqc-inspection-specs", label = "FQC检验规范", route = "/aidop/s0/quality/fqc-inspection-spec", kind = "page" },
  26. new { key = "oqc-inspection-specs", label = "OQC检验规范", route = "/aidop/s0/quality/oqc-inspection-spec", kind = "page" },
  27. };
  28. return Ok(nodes);
  29. }
  30. }