questionnaire.js 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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/interact_tasks",
  26. type: "get",
  27. },
  28. // 获取内部感知任务接口
  29. getInternalInteractTasks: {
  30. url: config.base_new_url + "pheno/inner_interact_tasks",
  31. type: "get",
  32. },
  33. // 获取农事任务(zone_id + date,返回当日扁平 fw_tasks)
  34. getFwTasks: {
  35. url: config.base_new_url + "pheno/fw_tasks",
  36. type: "get",
  37. },
  38. // 获取农事详细内容(人工 / 机械方案)
  39. getFwTaskDetails: {
  40. url: config.base_new_url + "pheno/fw_task_details",
  41. type: "get",
  42. },
  43. // 查询当前农户/农资下的果园信息
  44. getFarms: {
  45. url: config.base_new_url + "questionnaire/find_farm_information",
  46. type: "get",
  47. },
  48. // 查询是否填写农场信息
  49. checkFarmInit: {
  50. url: config.base_new_url + "questionnaire/farm_init/get",
  51. type: "get",
  52. },
  53. // 填写农场信息弹窗更新状态
  54. updateFarmInitStatus: {
  55. url: config.base_new_url + "questionnaire/farm_init/set",
  56. type: "post",
  57. },
  58. // 查询分区照片数量
  59. getZones: {
  60. url: config.base_new_url + "questionnaire/zone_images",
  61. type: "get",
  62. }
  63. }