common.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. import request from '@/utils/request'
  2. //危险作业工程列表查询
  3. export function getDangerousWorkProjectList(param) {
  4. return request({
  5. 'url': '/zdsz/engineeringDangerous/list',
  6. 'method': 'get',
  7. 'data': param
  8. })
  9. }
  10. //查询危险作业工程详情
  11. export function getDangerousWorkProjectDetails(id) {
  12. return request({
  13. 'url': '/zdsz/engineeringDangerous/query/'+id,
  14. 'method': 'get',
  15. })
  16. }
  17. // 根据小区楼栋单元 获取工程用料统计(areaId(string) 小区ID realityQuality材质 realitySpecifications 规格)
  18. export function getMunicipalStatisticsData(param) {
  19. return request({
  20. 'url': '/zdsz/materialStatistics/list',
  21. 'method': 'post',
  22. 'data': param
  23. })
  24. }
  25. // 根据楼栋小区单元楼栋 查询完成情况统计(areaId(string) 小区ID buildingId单元 unitId楼栋)
  26. export function getObtainRoomcCompletionInformationList(param) {
  27. return request({
  28. 'url': '/zdsz/engineeringCivil/getObtainRoomcCompletionInformationList',
  29. 'method': 'post',
  30. 'data': param
  31. })
  32. }
  33. // 新增(提交)市政工程
  34. export function submitMunicipalData(param) {
  35. return request({
  36. 'url': '/zdsz/engineeringIndustry',
  37. 'method': 'post',
  38. 'data': param
  39. })
  40. }
  41. // 工业工程新增
  42. export function Submitengineering(engineering) {
  43. return request({
  44. 'url': '/zdsz/engineeringIndustry',
  45. 'method': 'post',
  46. 'data': engineering
  47. })
  48. }
  49. // 获取房间工程历史
  50. export function getRoomProjectList(id, type) {
  51. return request({
  52. 'url': '/zdsz/engineeringCivil/' + id + '/' + type,
  53. 'method': 'get',
  54. })
  55. }
  56. // 查询房间是否有工程
  57. export function getRoomProjectId(room) {
  58. return request({
  59. 'url': '/zdsz/engineeringCivil/query',
  60. 'method': 'post',
  61. 'data': room
  62. })
  63. }
  64. // 材质规格下拉
  65. export function getEnginSpecificationsList(materId) {
  66. const data = {
  67. materId
  68. }
  69. return request({
  70. 'url': '/zdsz/enginSpecifications/getEnginSpecificationsList',
  71. 'method': 'get',
  72. 'data': data
  73. })
  74. }
  75. // 工程材质下拉
  76. export function getEnginMaterialQualityList(enginType) {
  77. const data = {
  78. enginType
  79. }
  80. return request({
  81. 'url': '/zdsz/enginMaterialQuality/getEnginMaterialQualityList',
  82. 'method': 'get',
  83. 'data': data
  84. })
  85. }
  86. // 新增拆旧管
  87. export function addTearOldPipe(param) {
  88. return request({
  89. 'url': '/zdsz/engineeringCivil',
  90. 'method': 'post',
  91. 'data': param
  92. })
  93. }
  94. // 获取小区字典值
  95. export function getAreaList(district) {
  96. const data = {
  97. district
  98. }
  99. return request({
  100. 'url': '/zdsz/area/getAreaList',
  101. 'method': 'get',
  102. 'data': data
  103. })
  104. }
  105. // 获取楼宇字典值
  106. export function getBuildingList(areaId) {
  107. const data = {
  108. areaId
  109. }
  110. return request({
  111. 'url': '/zdsz/building/getBuildingList',
  112. 'method': 'get',
  113. 'data': data
  114. })
  115. }
  116. // 获取单元字典值
  117. export function getUnitList(buildingId) {
  118. const data = {
  119. buildingId
  120. }
  121. return request({
  122. 'url': '/zdsz/unit/getUnitList',
  123. 'method': 'get',
  124. 'data': data
  125. })
  126. }
  127. // 获取房间字典值
  128. export function getHousesList(unitId) {
  129. const data = {
  130. unitId
  131. }
  132. return request({
  133. 'url': '/zdsz/house/getHousesList',
  134. 'method': 'get',
  135. 'data': data
  136. })
  137. }