展品维保小程序前端代码接口
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.

93 lines
1.7 KiB

  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. }