common.js 6.9 KB

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