questionnaire.js 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. const config = require("../config")
  2. module.exports = {
  3. // 获取初始互动接口
  4. getInitialInteraction: {
  5. url: config.base_new_url + "pheno/initial_interact_options",
  6. type: "get",
  7. },
  8. // 无分区时获取初始互动选项(录入品种页)
  9. getInitialInteractionWithoutZone: {
  10. url: config.base_new_url + "pheno/initial_interact_options_without_zone",
  11. type: "get",
  12. },
  13. // 保存感知结果接口
  14. saveInteractResult: {
  15. url: config.base_new_url + "pheno/interact_record",
  16. type: "post",
  17. },
  18. // 查看报告是否生成
  19. checkReportGenerated: {
  20. url: config.base_new_url + "report/check",
  21. type: "get",
  22. },
  23. // 获取外部感知任务接口
  24. getExternalInteractTasks: {
  25. url: config.base_new_url + "pheno/outer_interact_tasks",
  26. type: "get",
  27. },
  28. // 获取内部感知任务接口
  29. getInternalInteractTasks: {
  30. url: config.base_new_url + "pheno/inner_interact_tasks",
  31. type: "get",
  32. },
  33. // 分区农事任务列表:GET /api/questionnaire/zone_fw_task_list
  34. // 参数 zone_id + farm_id + trigger_date + crop_type
  35. // 返回 fw_tasks(标准)/ weather_work(气象)/ abnormal_fw_tasks(异常)
  36. getZoneFwTaskList: {
  37. url: config.base_new_url + "questionnaire/zone_fw_task_list",
  38. type: "get",
  39. },
  40. // 获取农事详细内容(人工 / 机械方案)
  41. getFwTaskDetails: {
  42. url: config.base_new_url + "pheno/fw_task_details",
  43. type: "get",
  44. },
  45. // 查询当前农户/农资下的果园信息
  46. getFarms: {
  47. url: config.base_new_url + "questionnaire/find_farm_information",
  48. type: "get",
  49. },
  50. // 查询是否填写农场信息
  51. checkFarmInit: {
  52. url: config.base_new_url + "questionnaire/farm_init/get",
  53. type: "get",
  54. },
  55. // 填写农场信息弹窗更新状态
  56. updateFarmInitStatus: {
  57. url: config.base_new_url + "questionnaire/farm_init/set",
  58. type: "post",
  59. },
  60. // 查询分区照片数量
  61. getZones: {
  62. url: config.base_new_url + "questionnaire/zone_images",
  63. type: "get",
  64. },
  65. // 查询是否填写农事弹窗
  66. checkFwInit: {
  67. url: config.base_new_url + "questionnaire/work_init/get",
  68. type: "get",
  69. },
  70. // 填写农场农事弹窗更新状态
  71. updateFwInitStatus: {
  72. url: config.base_new_url + "questionnaire/work_init/set",
  73. type: "post",
  74. },
  75. // 查询首页气象胁迫信息
  76. getWeatherReport: {
  77. url: config.base_new_url + "questionnaire/risk_report_info",
  78. type: "get",
  79. },
  80. // 查询气象预警报告
  81. getWeatherRisk: {
  82. url: config.base_new_url + "questionnaire/weather_risk_report",
  83. type: "get",
  84. },
  85. // 查询气象胁迫报告
  86. getWeatherStress: {
  87. url: config.base_new_url + "questionnaire/weather_stress_report",
  88. type: "get",
  89. },
  90. // 上传图片
  91. uploadImages: {
  92. url: config.base_new_url + "questionnaire/upload_image",
  93. type: "post",
  94. },
  95. // 查询分区照片列表
  96. getZoneImages: {
  97. url: config.base_new_url + "questionnaire/zone_image_list",
  98. type: "get",
  99. },
  100. // 诊断报告列表
  101. getReportList: {
  102. url: config.base_new_url + "questionnaire/weather_report_list",
  103. type: "get",
  104. },
  105. // 新建分区
  106. createZone: {
  107. url: config.base_new_url + "questionnaire/add_zone_info",
  108. type: "post",
  109. },
  110. // 查询分区是否有范围
  111. checkZoneRange: {
  112. url: config.base_new_url + "questionnaire/check_zone_polygon",
  113. type: "get",
  114. },
  115. // 分区画范围
  116. drawZoneRange: {
  117. url: config.base_new_url + "questionnaire/update_zone_polygon",
  118. type: "post",
  119. },
  120. }