work-order.js 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. import { httpApi } from '../../request/httpApi'
  2. export default {
  3. //获取工单服务列表
  4. async queryUserOpinionPage(form) {
  5. return httpApi({
  6. url: '/api/blade-business/userOpinion/queryUserOpinionPage',
  7. method: 'get',
  8. params: form,
  9. })
  10. },
  11. //获取当前用户提交的工单服务
  12. async queryCurrentUserOpinionList(form) {
  13. return httpApi({
  14. url: '/api/blade-business/userOpinion/queryCurrentUserOpinionList',
  15. method: 'post',
  16. data: form,
  17. })
  18. },
  19. //新增工单服务信息
  20. async saveUserOpinion(form) {
  21. return httpApi({
  22. url: '/api/blade-business/userOpinion/saveUserOpinion',
  23. method: 'post',
  24. data: form,
  25. })
  26. },
  27. //获取当前工单的最新流程
  28. async queryUserFlowOpinion(form) {
  29. return httpApi({
  30. url: '/api/blade-business/userOpinionFlow/queryCurrentUserOpinionFlowByUserOpinionId',
  31. method: 'get',
  32. params: form,
  33. })
  34. },
  35. //统合处理意见接口
  36. async disposeUserFeedback(form) {
  37. return httpApi({
  38. url: '/api/blade-business/userOpinionFlow/disposeUserOpinionFeedback',
  39. method: 'post',
  40. params: form,
  41. })
  42. },
  43. //获取字典信息
  44. async queryDictBizList(msg = true) {
  45. return httpApi({
  46. url: '/api/blade-business/userOpinion/queryDictBizList',
  47. method: 'get',
  48. })
  49. },
  50. //获取当前工单下的所有评论
  51. async queryCommentsList(form) {
  52. return httpApi({
  53. url: '/api/blade-business/userOpinionComments/queryUserOpinionCommentsByUserOpinionId',
  54. method: 'get',
  55. params: form,
  56. })
  57. },
  58. //新增评论
  59. async saveUserComments(form) {
  60. return httpApi({
  61. url: '/api/blade-business/userOpinionComments/saveUserOpinionComments',
  62. method: 'post',
  63. data: form,
  64. })
  65. },
  66. //点赞
  67. async addGoodNumber(form) {
  68. return httpApi({
  69. url: '/api/blade-business/userOpinion/addGoodNumber',
  70. method: 'post',
  71. params: form,
  72. })
  73. },
  74. //取消点赞
  75. async cancelGood(form) {
  76. return httpApi({
  77. url: '/api/blade-business/userOpinion/cancelGood',
  78. method: 'post',
  79. params: form,
  80. })
  81. },
  82. }