common.js 2.1 KB

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