common.js 8.3 KB

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