common.js 6.2 KB

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