common.js 6.1 KB

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