common.js 3.9 KB

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