common.js 5.2 KB

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