xiaosha.js 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. const {
  2. request_wxrlxf
  3. } = require("../func/request")
  4. // --------------问题上报---------------
  5. //问题上报
  6. const addProblemReport = (data) => {
  7. return request_wxrlxf({
  8. url: '/problemReport/addProblemReport',
  9. data: data,
  10. method: 'post',
  11. type: 'application/json'
  12. })
  13. }
  14. //处理结果满意度评价
  15. const evaluate = (data) => {
  16. return request_wxrlxf({
  17. url: '/problemReport/evaluate',
  18. data: data,
  19. method: 'post',
  20. type: 'application/json'
  21. })
  22. }
  23. //上报记录列表
  24. const getProblemReportList = (data) => {
  25. return request_wxrlxf({
  26. url: '/problemReport/getProblemReportList',
  27. data: data,
  28. method: 'post',
  29. type: 'application/json'
  30. })
  31. }
  32. //查询问题上报详情
  33. const getProblemReportDetailById = (reportId) => {
  34. return request_wxrlxf({
  35. url: '/problemReport/getProblemReportDetailById',
  36. data: {
  37. reportId
  38. },
  39. method: 'post',
  40. type: 'application/x-www-form-urlencoded'
  41. })
  42. }
  43. //查询管理员是否开启问题上报,区域消杀
  44. const getAuthFlagByAdminId = (adminId) => {
  45. return request_wxrlxf({
  46. url: '/problemReport/getAuthFlagByAdminId',
  47. data: {
  48. adminId
  49. },
  50. method: 'post',
  51. type: 'application/x-www-form-urlencoded'
  52. })
  53. }
  54. // -------------区域消杀----------------
  55. //账号判定回显
  56. const adminShowCheck = (data) => {
  57. return request_wxrlxf({
  58. url: '/api/disinfect/adminShowCheck',
  59. data: data,
  60. method: 'post',
  61. type: 'application/json'
  62. })
  63. }
  64. //消杀登记-openId填入
  65. const disinfectSetOpenId = (data) => {
  66. return request_wxrlxf({
  67. url: '/api/disinfect/disinfectSetOpenId',
  68. data: data,
  69. method: 'post',
  70. type: 'application/json'
  71. })
  72. }
  73. //消杀登记-扫码
  74. const disinfectScanQrcode = (data) => {
  75. return request_wxrlxf({
  76. url: '/api/disinfect/disinfectScanQrcode',
  77. data: data,
  78. method: 'post',
  79. type: 'application/json'
  80. })
  81. }
  82. //消杀登记-上报
  83. const disinfectCommit = (data) => {
  84. return request_wxrlxf({
  85. url: '/api/disinfect/disinfectCommit',
  86. data: data,
  87. method: 'post',
  88. type: 'application/json'
  89. })
  90. }
  91. //消杀记录-消杀区域列表
  92. const disinfectList = (data) => {
  93. return request_wxrlxf({
  94. url: '/api/disinfect/disinfectList',
  95. data: data,
  96. method: 'post',
  97. type: 'application/json'
  98. })
  99. }
  100. //消杀记录-消杀区域今日消杀
  101. const disinfectTodayList = (data) => {
  102. return request_wxrlxf({
  103. url: '/api/disinfect/disinfectTodayList',
  104. data: data,
  105. method: 'post',
  106. type: 'application/json'
  107. })
  108. }
  109. //消杀记录-消杀区域提醒消杀
  110. const disinfectRemind = (data) => {
  111. return request_wxrlxf({
  112. url: '/api/disinfect/disinfectRemind',
  113. data: data,
  114. method: 'post',
  115. type: 'application/json'
  116. })
  117. }
  118. //消杀记录-消杀区域编辑
  119. const disinfectEdit = (data) => {
  120. return request_wxrlxf({
  121. url: '/api/disinfect/disinfectEdit',
  122. data: data,
  123. method: 'post',
  124. type: 'application/json'
  125. })
  126. }
  127. module.exports = {
  128. getProblemReportDetailById,
  129. getProblemReportList,
  130. evaluate,
  131. addProblemReport,
  132. getAuthFlagByAdminId,
  133. adminShowCheck,
  134. disinfectSetOpenId,
  135. disinfectScanQrcode,
  136. disinfectCommit,
  137. disinfectList,
  138. disinfectTodayList,
  139. disinfectRemind,
  140. disinfectEdit,
  141. }