common.js 7.0 KB

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