展品维保小程序前端代码接口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

135 lines
2.4 KiB

1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
  1. import http from "@/api/http";
  2. export default {
  3. // 查看展品信息列表
  4. async queryShowpieceList(data) {
  5. return http({
  6. url: '/showpiece/queryShowpieceList',
  7. method: 'GET',
  8. data
  9. })
  10. },
  11. // 查看维修记录列表
  12. async queryRepairList(data) {
  13. return http({
  14. url: '/showpiece/queryRepairList',
  15. method: 'GET',
  16. data
  17. })
  18. },
  19. // 查看保养记录
  20. async queryMaintenanceList(data) {
  21. return http({
  22. url: '/showpiece/queryMaintenanceList',
  23. method: 'GET',
  24. data
  25. })
  26. },
  27. // 保养-新增保养记录
  28. async addMaintenance(data) {
  29. return http({
  30. url: '/showpiece/addMaintenance',
  31. method: 'POST',
  32. data,
  33. showLoading: true,
  34. needToken: true
  35. })
  36. },
  37. // 报修- 查看报修单列表
  38. async queryMalfunctionList(data) {
  39. return http({
  40. url: '/showpiece/queryMalfunctionList',
  41. method: 'GET',
  42. data
  43. })
  44. },
  45. // 报修- 新增报修单
  46. async addMalfunction(data) {
  47. return http({
  48. url: '/showpiece/addMalfunction',
  49. method: 'POST',
  50. data,
  51. showLoading: true,
  52. needToken: true
  53. })
  54. },
  55. // 查看保修单详情
  56. async queryMalfunctionById(data) {
  57. return http({
  58. url: '/showpiece/queryMalfunctionById',
  59. method: 'GET',
  60. data
  61. })
  62. },
  63. // 修改保修单
  64. async updateMalfunction(data) {
  65. return http({
  66. url: '/showpiece/updateMalfunction',
  67. method: 'POST',
  68. data,
  69. showLoading: true,
  70. needToken: true
  71. })
  72. },
  73. // 新增维修记录
  74. async addRepair(data) {
  75. return http({
  76. url: '/showpiece/addRepair',
  77. method: 'POST',
  78. data,
  79. showLoading: true,
  80. needToken: true
  81. })
  82. },
  83. // 查看维修记录详情
  84. async queryRepairById(data) {
  85. return http({
  86. url: '/showpiece/queryRepairById',
  87. method: 'GET',
  88. data
  89. })
  90. },
  91. // 保养- 查看保养记录详情
  92. async queryMaintenanceById(data) {
  93. return http({
  94. url: '/showpiece/queryMaintenanceById',
  95. method: 'GET',
  96. data
  97. })
  98. },
  99. // 修改保养记录
  100. async updateMaintenance(data) {
  101. return http({
  102. url: '/showpiece/updateMaintenance',
  103. method: 'POST',
  104. data,
  105. showLoading: true,
  106. needToken: true
  107. })
  108. },
  109. async updateRepair(data) {
  110. return http({
  111. url: '/showpiece/updateRepair',
  112. method: 'POST',
  113. data,
  114. showLoading: true,
  115. needToken: true
  116. })
  117. }
  118. }