common.js 2.7 KB

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