common.js 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. import request from '@/utils/request'
  2. // 获取顶管工程历史
  3. export function getTopPipeHistoryList(id, type) {
  4. return request({
  5. 'url': '/zdsz/engineeringPipeJacking/' + id + '/' + type,
  6. 'method': 'get',
  7. })
  8. }
  9. //顶管工程新增
  10. export function SubmitTopPipeWork(param) {
  11. return request({
  12. 'url': '/zdsz/engineeringPipeJacking/AppAdd',
  13. 'method': 'post',
  14. 'data': param
  15. })
  16. }
  17. //查询顶管工程详情
  18. export function getTopPipeWorkDetails(id) {
  19. return request({
  20. 'url': '/zdsz/engineeringPipeJacking/' + id,
  21. 'method': 'get',
  22. })
  23. }
  24. //顶管工程查询名称
  25. export function getTopPipeNameList() {
  26. return request({
  27. 'url': '/zdsz/engineeringPipeJacking/queryListNew',
  28. 'method': 'get',
  29. })
  30. }
  31. //危险作业工程列表查询
  32. export function getDangerousWorkProjectList(param) {
  33. return request({
  34. 'url': '/zdsz/engineeringDangerous/list',
  35. 'method': 'get',
  36. 'data': param
  37. })
  38. }
  39. //查询危险作业工程详情
  40. export function getDangerousWorkProjectDetails(id) {
  41. return request({
  42. 'url': '/zdsz/engineeringDangerous/query/' + id,
  43. 'method': 'get',
  44. })
  45. }
  46. // 获取工业工程历史
  47. export function getEngineeringHistoryList(id, type) {
  48. return request({
  49. 'url': '/zdsz/engineeringIndustry/' + id + '/' + type,
  50. 'method': 'get',
  51. })
  52. }
  53. // 工业工程 市政工程 详情 根据id 查询
  54. export function getEngineeringDetails(id) {
  55. return request({
  56. 'url': '/zdsz/engineeringIndustry/' + id,
  57. 'method': 'get',
  58. })
  59. }
  60. // 工业工程 市政工程 - 根据工程类型查询列表
  61. export function getengineeringNameList(enginType, type, enginClassification) {
  62. const data = {
  63. enginType,
  64. type,
  65. enginClassification
  66. }
  67. return request({
  68. 'url': '/zdsz/engineeringIndustry/queryNameByType',
  69. 'method': 'get',
  70. 'data': data
  71. })
  72. }
  73. // 根据小区楼栋单元 获取工程用料统计(areaId(string) 小区ID realityQuality材质 realitySpecifications 规格)
  74. export function getMunicipalStatisticsData(param) {
  75. return request({
  76. 'url': '/zdsz/materialStatistics/list',
  77. 'method': 'post',
  78. 'data': param
  79. })
  80. }
  81. // 根据楼栋小区单元楼栋 查询完成情况统计(areaId(string) 小区ID buildingId单元 unitId楼栋)
  82. export function getObtainRoomcCompletionInformationList(param) {
  83. return request({
  84. 'url': '/zdsz/engineeringCivil/getObtainRoomcCompletionInformationList',
  85. 'method': 'post',
  86. 'data': param
  87. })
  88. }
  89. // 新增(提交)市政工程
  90. export function submitMunicipalData(param) {
  91. return request({
  92. 'url': '/zdsz/engineeringIndustry',
  93. 'method': 'post',
  94. 'data': param
  95. })
  96. }
  97. // 工业工程修改
  98. export function Submitengineering(engineering) {
  99. return request({
  100. 'url': '/zdsz/engineeringIndustry',
  101. 'method': 'put',
  102. 'data': engineering
  103. })
  104. }
  105. // 获取房间工程历史
  106. export function getRoomProjectList(id, type) {
  107. return request({
  108. 'url': '/zdsz/engineeringCivil/' + id + '/' + type,
  109. 'method': 'get',
  110. })
  111. }
  112. // 查询房间是否有工程
  113. export function getRoomProjectId(room) {
  114. return request({
  115. 'url': '/zdsz/engineeringCivil/query',
  116. 'method': 'post',
  117. 'data': room
  118. })
  119. }
  120. // 材质规格下拉
  121. export function getEnginSpecificationsList(materId) {
  122. const data = {
  123. materId
  124. }
  125. return request({
  126. 'url': '/zdsz/enginSpecifications/getEnginSpecificationsList',
  127. 'method': 'get',
  128. 'data': data
  129. })
  130. }
  131. // 工程材质下拉
  132. export function getEnginMaterialQualityList(enginType) {
  133. const data = {
  134. enginType
  135. }
  136. return request({
  137. 'url': '/zdsz/enginMaterialQuality/getEnginMaterialQualityList',
  138. 'method': 'get',
  139. 'data': data
  140. })
  141. }
  142. // 新增拆旧管
  143. export function addTearOldPipe(param) {
  144. return request({
  145. 'url': '/zdsz/engineeringCivil',
  146. 'method': 'post',
  147. 'data': param
  148. })
  149. }
  150. // 获取小区字典值
  151. export function getAreaList(district) {
  152. const data = {
  153. district
  154. }
  155. return request({
  156. 'url': '/zdsz/area/getAreaList',
  157. 'method': 'get',
  158. 'data': data
  159. })
  160. }
  161. // 获取楼宇字典值
  162. export function getBuildingList(areaId) {
  163. const data = {
  164. areaId
  165. }
  166. return request({
  167. 'url': '/zdsz/building/getBuildingList',
  168. 'method': 'get',
  169. 'data': data
  170. })
  171. }
  172. // 获取单元字典值
  173. export function getUnitList(buildingId) {
  174. const data = {
  175. buildingId
  176. }
  177. return request({
  178. 'url': '/zdsz/unit/getUnitList',
  179. 'method': 'get',
  180. 'data': data
  181. })
  182. }
  183. // 获取房间字典值
  184. export function getHousesList(unitId) {
  185. const data = {
  186. unitId
  187. }
  188. return request({
  189. 'url': '/zdsz/house/getHousesList',
  190. 'method': 'get',
  191. 'data': data
  192. })
  193. }