statistics-api.js 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. (function(exports) {
  2. var statisticAPI = {
  3. /*************首页*******************/
  4. getSignInfo: function(data){
  5. return httpRequest.get("/statistics/sign_info", {data: data});
  6. },
  7. /*************总体分析页面接口列表**************/
  8. //1、顶部各个tab的值
  9. statisticTotal: function(data){
  10. return httpRequest.get("/statistics/total", {data: data});
  11. },
  12. //微信绑定和设备绑定数据接口
  13. statisticBindAll: function(data){
  14. return httpRequest.get("/statistics/index_all", {data: data});
  15. },
  16. //健康文章发送数量
  17. articleAll: function(data){
  18. return httpRequest.get("/statistics/article_total", {data: data});
  19. },
  20. //2、中间折线图接口
  21. //增量(咨询量3、随访量4、健康教育5、代预约量27),到达量(绑定微信21、绑定设备20)
  22. interval: function(data){
  23. return httpRequest.get("statistics/interval", {data: data});
  24. },
  25. intervalTotal: function(data){
  26. return httpRequest.get("statistics/interval_total", {data: data});
  27. },
  28. //3、底部区域数据接口
  29. lowlevelTotal: function(data){
  30. return httpRequest.get("statistics/lowlevel_total", {data: data});
  31. },
  32. //微信绑定和设备绑定
  33. lowlevelAll: function(data){
  34. return httpRequest.get("statistics/lowlevel_all", {data: data});
  35. },
  36. //咨询量数据
  37. lowlevelTotalMesh: function(data){
  38. return httpRequest.get("statistics/lowlevel_total_mesh", {data: data});
  39. },
  40. articleLowlevelTotal: function(data){
  41. return httpRequest.get("/statistics/article_lowlevel_total", {data: data});
  42. },
  43. lowlevelData: function(url, data){
  44. return httpRequest.get(url, {data: data});
  45. },
  46. //获得团队的详情
  47. getTeamInfo: function(data){
  48. return httpRequest.get("doctor/admin-teams/teams/info", {data: data});
  49. },
  50. //获取居民分析相关数据
  51. leveltwoIncrementData: function(data){
  52. return httpRequest.get("/statistics/leveltwo_increment", {data: data});
  53. },
  54. statisticsTime:function(data){
  55. return httpRequest.get("/statistics/time", {data: data});
  56. },
  57. //长处方分析接口
  58. getPrescriptionTotalHistogram: function(data){
  59. return httpRequest.get("statistics/getPrescriptionTotalHistogram", {data: data})
  60. },
  61. //评价分析
  62. //按月份获得个月的评价平均分
  63. getAVGSocreByMonth: function(data){
  64. return httpRequest.get("/statistics/getAVGSocreByMonth", {data: data});
  65. },
  66. //资质分析
  67. doorQualificationAnalyze: function(data){
  68. return httpRequest.get("/doctor/statisticAnalyze/doorQualificationAnalyze", {data: data});
  69. },
  70. //资质分析导出excel
  71. doorQualificationAnalyzeExport:httpRequest.server+"doctor/statisticAnalyze/doorQualificationAnalyzeExport",
  72. //响应速度分析
  73. doorResponseAnalyze: function(data){
  74. return httpRequest.get("/doctor/statisticAnalyze/doorResponseAnalyze", {data: data});
  75. },
  76. //响应速度分析导出excel
  77. doorResponseAnalyzeExport:httpRequest.server+"doctor/statisticAnalyze/doorResponseAnalyzeExport",
  78. //服务工单分析
  79. doorServiceOrderAnalyze: function(data){
  80. return httpRequest.get("/doctor/statisticAnalyze/doorServiceOrderAnalyze", {data: data});
  81. },
  82. //服务工单分析导出excel
  83. doorServiceOrderAnalyzeExport:httpRequest.server+"doctor/statisticAnalyze/doorServiceOrderAnalyzeExport",
  84. //补助费用
  85. subsidyExpense: function(data){
  86. return httpRequest.get("/doctor/statisticAnalyze/subsidyExpense", {data: data});
  87. },
  88. //补助费用导出excel
  89. subsidyExpenseExport:httpRequest.server+"doctor/statisticAnalyze/subsidyExpenseExport",
  90. //代预约记录
  91. GetReservationByTeamId: function(data){
  92. return httpRequest.post("/doctor/guahao/GetReservationByTeamId", {data: data});
  93. },
  94. }
  95. exports.statisticAPI = statisticAPI;
  96. })(window)