common.js 5.4 KB

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