common.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. import request from '@/utils/request'
  2. // 新增(提交)市政工程
  3. export function submitMunicipalData(param) {
  4. return request({
  5. 'url': '/zdsz/engineeringIndustry',
  6. 'method': 'post',
  7. 'data': param
  8. })
  9. }
  10. // 获取房间工程历史
  11. export function getRoomProjectList(id,type) {
  12. return request({
  13. 'url': '/zdsz/engineeringCivil/'+id+'/'+type,
  14. 'method': 'get',
  15. })
  16. }
  17. // 查询房间是否有工程
  18. export function getRoomProjectId(room) {
  19. return request({
  20. 'url': '/zdsz/engineeringCivil/query',
  21. 'method': 'post',
  22. 'data': room
  23. })
  24. }
  25. // 材质规格下拉
  26. export function getEnginSpecificationsList(materId) {
  27. const data = {
  28. materId
  29. }
  30. return request({
  31. 'url': '/zdsz/enginSpecifications/getEnginSpecificationsList',
  32. 'method': 'get',
  33. 'data': data
  34. })
  35. }
  36. // 工程材质下拉
  37. export function getEnginMaterialQualityList(enginType) {
  38. const data = {
  39. enginType
  40. }
  41. return request({
  42. 'url': '/zdsz/enginMaterialQuality/getEnginMaterialQualityList',
  43. 'method': 'get',
  44. 'data': data
  45. })
  46. }
  47. // 新增拆旧管
  48. export function addTearOldPipe(param) {
  49. return request({
  50. 'url': '/zdsz/engineeringCivil',
  51. 'method': 'post',
  52. 'data': param
  53. })
  54. }
  55. // 获取小区字典值
  56. export function getAreaList(district) {
  57. const data = {
  58. district
  59. }
  60. return request({
  61. 'url': '/zdsz/area/getAreaList',
  62. 'method': 'get',
  63. 'data': data
  64. })
  65. }
  66. // 获取楼宇字典值
  67. export function getBuildingList(areaId) {
  68. const data = {
  69. areaId
  70. }
  71. return request({
  72. 'url': '/zdsz/building/getBuildingList',
  73. 'method': 'get',
  74. 'data': data
  75. })
  76. }
  77. // 获取单元字典值
  78. export function getUnitList(buildingId) {
  79. const data = {
  80. buildingId
  81. }
  82. return request({
  83. 'url': '/zdsz/unit/getUnitList',
  84. 'method': 'get',
  85. 'data': data
  86. })
  87. }
  88. // 获取房间字典值
  89. export function getHousesList(unitId) {
  90. const data = {
  91. unitId
  92. }
  93. return request({
  94. 'url': '/zdsz/house/getHousesList',
  95. 'method': 'get',
  96. 'data': data
  97. })
  98. }