common.js 4.5 KB

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