common.js 3.7 KB

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