common.js 6.8 KB

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