common.js 3.3 KB

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