common.js 5.4 KB

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