common.js 3.3 KB

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