specYlgd.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. import request from '@/utils/request'
  2. // 查询特种设备压力管道台账列表
  3. export function listSpecYlgd(query) {
  4. return request({
  5. url: '/sems/specYlgd/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询特种设备压力管道台账详细
  11. export function getSpecYlgd(id) {
  12. return request({
  13. url: '/sems/specYlgd/' + id,
  14. method: 'get'
  15. })
  16. }
  17. /**
  18. * 查询特种设备压力管道的改造记录
  19. */
  20. export function getSpecYlgdByReform(devId) {
  21. return request({
  22. url: '/his/ylgd/reform/' + devId,
  23. method: 'get'
  24. })
  25. }
  26. // 新增特种设备压力管道台账
  27. export function addSpecYlgd(data) {
  28. return request({
  29. url: '/sems/specYlgd',
  30. method: 'post',
  31. data: data
  32. })
  33. }
  34. // 修改特种设备压力管道台账
  35. export function updateSpecYlgd(data) {
  36. return request({
  37. url: '/sems/specYlgd',
  38. method: 'put',
  39. data: data
  40. })
  41. }
  42. // 修改特种设备压力管道台账(申请)
  43. export function updateSpecYlgdPre(data) {
  44. return request({
  45. url: '/his/ylgd',
  46. method: 'post',
  47. data: data
  48. })
  49. }
  50. // 删除特种设备压力管道台账
  51. export function delSpecYlgd(id) {
  52. return request({
  53. url: '/sems/specYlgd/' + id,
  54. method: 'delete'
  55. })
  56. }
  57. // 导出特种设备压力管道台账
  58. export function exportSpecYlgd(query) {
  59. return request({
  60. url: '/sems/specYlgd/export',
  61. method: 'get',
  62. params: query
  63. })
  64. }
  65. // 导出特种设备压力管道台账
  66. export function exportSpecList(query) {
  67. return request({
  68. url: '/sems/specYlgd/exportDevList',
  69. method: 'post',
  70. data: query
  71. })
  72. }
  73. // 去重
  74. export function duplicate(query) {
  75. return request({
  76. url: '/sems/specYlgd/duplicate',
  77. method: 'get',
  78. params: query
  79. })
  80. }