specGl.js 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. import request from '@/utils/request'
  2. // 查询特种设备锅炉台账列表
  3. export function listSpecGl(query) {
  4. return request({
  5. url: '/sems/specGl/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询特种设备锅炉台账详细
  11. export function getSpecGl(id) {
  12. return request({
  13. url: '/sems/specGl/' + id,
  14. method: 'get'
  15. })
  16. }
  17. /**
  18. * 查询特种设备压力容器的改造记录
  19. */
  20. export function getSpecGlByReform(devId) {
  21. return request({
  22. url: '/his/gl/reform/' + devId,
  23. method: 'get'
  24. })
  25. }
  26. // 新增特种设备锅炉台账
  27. export function addSpecGl(data) {
  28. return request({
  29. url: '/sems/specGl',
  30. method: 'post',
  31. data: data
  32. })
  33. }
  34. // 修改特种设备锅炉台账
  35. export function updateSpecGl(data) {
  36. return request({
  37. url: '/sems/specGl',
  38. method: 'put',
  39. data: data
  40. })
  41. }
  42. // 修改特种设备锅炉台账
  43. export function updateSpecGlBatch(data) {
  44. return request({
  45. url: '/sems/specGl/editBatch',
  46. method: 'put',
  47. data: data
  48. })
  49. }
  50. // 修改特种设备锅炉台账(申请)
  51. export function updateSpecGlPre(data) {
  52. return request({
  53. url: '/his/gl',
  54. method: 'post',
  55. data: data
  56. });
  57. }
  58. // 删除特种设备锅炉台账
  59. export function delSpecGl(id) {
  60. return request({
  61. url: '/sems/specGl/' + id,
  62. method: 'delete'
  63. })
  64. }
  65. // 导出特种设备锅炉台账
  66. export function exportSpecGl(query) {
  67. return request({
  68. url: '/sems/specGl/export',
  69. method: 'get',
  70. params: query
  71. })
  72. }
  73. // 导出特种设备锅炉台账
  74. export function exportSpecList(query) {
  75. return request({
  76. url: '/sems/specGl/exportDevList',
  77. method: 'get',
  78. params: query
  79. })
  80. }
  81. // 去重
  82. export function duplicate(query) {
  83. return request({
  84. url: '/sems/specGl/duplicate',
  85. method: 'get',
  86. params: query
  87. })
  88. }