common.js 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  1. import request from '@/utils/request'
  2. // 获取 房间现住人电话
  3. export function getRoomDetails(id) {
  4. return request({
  5. 'url': '/zdsz/house/' + id,
  6. 'method': 'get',
  7. })
  8. }
  9. // 未安装新增
  10. export function AddNotInstalled(param) {
  11. return request({
  12. 'url': '/zdsz/enginNotInstalled',
  13. 'method': 'post',
  14. 'data': param
  15. })
  16. }
  17. // 修改历史
  18. export function putHistory(param) {
  19. return request({
  20. 'url': '/zdsz/engineeringCivil',
  21. 'method': 'put',
  22. 'data': param
  23. })
  24. }
  25. // 获取历史详情
  26. export function getHistoryDetails(id, name) {
  27. return request({
  28. 'url': '/zdsz/engineeringCivil/' + id + '/' + name,
  29. 'method': 'get',
  30. })
  31. }
  32. // 通过身份查询历史
  33. export function gethistoryList(param) {
  34. return request({
  35. 'url': '/zdsz/engineeringCivil/list',
  36. 'method': 'get',
  37. 'data': param
  38. })
  39. }
  40. // 新增拆旧管
  41. export function openBolt(param) {
  42. return request({
  43. 'url': '/zdsz/openbolt',
  44. 'method': 'post',
  45. 'data': param
  46. })
  47. }
  48. // 修改房间信息
  49. export function putRoomDetails(id, newPhone) {
  50. const data = {
  51. id,
  52. newPhone
  53. }
  54. return request({
  55. 'url': '/zdsz/house/editById',
  56. 'method': 'post',
  57. 'data': data
  58. })
  59. }
  60. // 通过身份证查询房间信息
  61. export function getRoomDetailsIDCard(idCard) {
  62. const data = {
  63. idCard,
  64. }
  65. return request({
  66. 'url': '/zdsz/house/getHousesByIdCard',
  67. 'method': 'get',
  68. 'data': data
  69. })
  70. }
  71. // 获取公告列表
  72. export function getNoticeList(noticeType, pageNum, pageSize) {
  73. const data = {
  74. noticeType,
  75. pageNum,
  76. pageSize
  77. }
  78. return request({
  79. 'url': '/system/notice/listApp',
  80. 'method': 'get',
  81. 'data': data
  82. })
  83. }
  84. export function getInfrastructureList(id, type) {
  85. return request({
  86. 'url': '/zdsz/engineeringInfrastructure/' + id + '/' + type,
  87. 'method': 'get',
  88. })
  89. }
  90. //基建工程新增
  91. export function SubmitInfrastructure(param) {
  92. return request({
  93. 'url': '/zdsz/engineeringInfrastructure/AddApp',
  94. 'method': 'post',
  95. 'data': param
  96. })
  97. }
  98. //查询基建工程详情
  99. export function getInfrastructureDetails(id) {
  100. return request({
  101. 'url': '/zdsz/engineeringInfrastructure/' + id,
  102. 'method': 'get',
  103. })
  104. }
  105. //基建工程查询工程名称
  106. export function getInfrastructureNameList() {
  107. return request({
  108. 'url': '/zdsz/engineeringInfrastructure/select',
  109. 'method': 'get',
  110. })
  111. }
  112. //危险作业工程修改详情
  113. export function updateDangerousWorkProject(param) {
  114. return request({
  115. 'url': '/zdsz/engineeringDangerous',
  116. 'method': 'put',
  117. 'data': param,
  118. })
  119. }
  120. // 获取顶管工程历史
  121. export function getTopPipeHistoryList(id, type) {
  122. return request({
  123. 'url': '/zdsz/engineeringPipeJacking/' + id + '/' + type,
  124. 'method': 'get',
  125. })
  126. }
  127. //顶管工程新增
  128. export function SubmitTopPipeWork(param) {
  129. return request({
  130. 'url': '/zdsz/engineeringPipeJacking/AppAdd',
  131. 'method': 'post',
  132. 'data': param
  133. })
  134. }
  135. //查询顶管工程详情
  136. export function getTopPipeWorkDetails(id) {
  137. return request({
  138. 'url': '/zdsz/engineeringPipeJacking/' + id,
  139. 'method': 'get',
  140. })
  141. }
  142. //顶管工程查询名称
  143. export function getTopPipeNameList() {
  144. return request({
  145. 'url': '/zdsz/engineeringPipeJacking/queryListNew',
  146. 'method': 'get',
  147. })
  148. }
  149. //危险作业工程下拉列表查询
  150. export function getDangerousWorkProjectList(param) {
  151. return request({
  152. 'url': '/zdsz/engineeringDangerous/nameAndIdList',
  153. 'method': 'get',
  154. 'data': param
  155. })
  156. }
  157. //查询危险作业工程详情
  158. export function getDangerousWorkProjectDetails(id) {
  159. return request({
  160. 'url': '/zdsz/engineeringDangerous/query/' + id,
  161. 'method': 'get',
  162. })
  163. }
  164. // 获取工业工程历史
  165. export function getEngineeringHistoryList(id, type) {
  166. return request({
  167. 'url': '/zdsz/engineeringIndustry/' + id + '/' + type,
  168. 'method': 'get',
  169. })
  170. }
  171. // 工业工程 市政工程 详情 根据id 查询
  172. export function getEngineeringDetails(id) {
  173. return request({
  174. 'url': '/zdsz/engineeringIndustry/' + id,
  175. 'method': 'get',
  176. })
  177. }
  178. // 工业工程 市政工程 - 根据工程类型查询列表
  179. export function getengineeringNameList(enginType, type, enginClassification) {
  180. const data = {
  181. enginType,
  182. type,
  183. enginClassification
  184. }
  185. return request({
  186. 'url': '/zdsz/engineeringIndustry/queryNameByType',
  187. 'method': 'get',
  188. 'data': data
  189. })
  190. }
  191. // 根据小区楼栋单元 获取工程用料统计(areaId(string) 小区ID realityQuality材质 realitySpecifications 规格)
  192. export function getMunicipalStatisticsData(param) {
  193. return request({
  194. 'url': '/zdsz/materialStatistics/list',
  195. 'method': 'post',
  196. 'data': param
  197. })
  198. }
  199. // 根据楼栋小区单元楼栋 查询完成情况统计(areaId(string) 小区ID buildingId单元 unitId楼栋)
  200. export function getObtainRoomcCompletionInformationList(param) {
  201. return request({
  202. 'url': '/zdsz/engineeringCivil/getObtainRoomcCompletionInformationList',
  203. 'method': 'post',
  204. 'data': param
  205. })
  206. }
  207. // 新增(提交)市政工程
  208. export function submitMunicipalData(param) {
  209. return request({
  210. 'url': '/zdsz/engineeringIndustry',
  211. 'method': 'post',
  212. 'data': param
  213. })
  214. }
  215. // 工业工程修改
  216. export function Submitengineering(engineering) {
  217. return request({
  218. 'url': '/zdsz/engineeringIndustry',
  219. 'method': 'put',
  220. 'data': engineering
  221. })
  222. }
  223. // 获取房间工程历史
  224. export function getRoomProjectList(id, type) {
  225. return request({
  226. 'url': '/zdsz/engineeringCivil/' + id + '/' + type,
  227. 'method': 'get',
  228. })
  229. }
  230. // 查询房间是否有工程
  231. export function getRoomProjectId(room) {
  232. return request({
  233. 'url': '/zdsz/engineeringCivil/query',
  234. 'method': 'post',
  235. 'data': room
  236. })
  237. }
  238. // 材质规格下拉
  239. export function getEnginSpecificationsList(materId) {
  240. const data = {
  241. materId
  242. }
  243. return request({
  244. 'url': '/zdsz/enginSpecifications/getEnginSpecificationsList',
  245. 'method': 'get',
  246. 'data': data
  247. })
  248. }
  249. // 工程材质下拉
  250. export function getEnginMaterialQualityList(enginType, enginSort, enginNode, enginStep, nameType) {
  251. const data = {
  252. enginType
  253. }
  254. if (enginSort !== undefined) {
  255. data['enginSort'] = enginSort
  256. data['enginNode'] = enginNode
  257. data['enginStep'] = enginStep
  258. }
  259. if (nameType !== undefined) {
  260. data['nameType'] = nameType
  261. }
  262. return request({
  263. 'url': '/zdsz/enginMaterialQuality/getEnginMaterialQualityList',
  264. 'method': 'get',
  265. 'data': data
  266. })
  267. }
  268. // 新增拆旧管
  269. export function addTearOldPipe(param) {
  270. return request({
  271. 'url': '/zdsz/engineeringCivil',
  272. 'method': 'post',
  273. 'data': param
  274. })
  275. }
  276. // 获取小区字典值
  277. export function getAreaList(district) {
  278. const data = {
  279. district
  280. }
  281. return request({
  282. 'url': '/zdsz/area/getAreaList',
  283. 'method': 'get',
  284. 'data': data
  285. })
  286. }
  287. // 获取楼宇字典值
  288. export function getBuildingList(areaId) {
  289. const data = {
  290. areaId
  291. }
  292. return request({
  293. 'url': '/zdsz/building/getBuildingList',
  294. 'method': 'get',
  295. 'data': data
  296. })
  297. }
  298. // 获取单元字典值
  299. export function getUnitList(buildingId) {
  300. const data = {
  301. buildingId
  302. }
  303. return request({
  304. 'url': '/zdsz/unit/getUnitList',
  305. 'method': 'get',
  306. 'data': data
  307. })
  308. }
  309. // 获取房间字典值
  310. export function getHousesList(unitId) {
  311. const data = {
  312. unitId
  313. }
  314. return request({
  315. 'url': '/zdsz/house/getHousesList',
  316. 'method': 'get',
  317. 'data': data
  318. })
  319. }
  320. // 列表选择带气封堵施工工程
  321. export function getGasSealingProjectList(enginType) {
  322. const data = {
  323. enginType
  324. }
  325. return request({
  326. 'url': '/zdsz/engineeringAirWall/list',
  327. 'method': 'get',
  328. 'data': data
  329. })
  330. }
  331. //新增/修改 带气封堵施工工程
  332. export function submitGasSealingProject(param) {
  333. return request({
  334. 'url': '/zdsz/engineeringAirWall',
  335. 'method': 'put',
  336. 'data': param
  337. })
  338. }
  339. //列表 带气封堵施工工程
  340. export function getGasSealingHistoryList(id, type) {
  341. return request({
  342. 'url': '/zdsz/engineeringAirWall/'+id+'/'+type,
  343. 'method': 'get',
  344. })
  345. }