common.js 4.5 KB

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