common.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. import request from '@/utils/request'
  2. // 获取房间工程历史
  3. export function getRoomProjectList(id,type) {
  4. return request({
  5. 'url': '/zdsz/engineeringCivil/'+id+'/'+type,
  6. 'method': 'get',
  7. })
  8. }
  9. // 查询房间是否有工程
  10. export function getRoomProjectId(room) {
  11. return request({
  12. 'url': '/zdsz/engineeringCivil/query',
  13. 'method': 'post',
  14. 'data': room
  15. })
  16. }
  17. // 材质规格下拉
  18. export function getEnginSpecificationsList(materId) {
  19. const data = {
  20. materId
  21. }
  22. return request({
  23. 'url': '/zdsz/enginSpecifications/getEnginSpecificationsList',
  24. 'method': 'get',
  25. 'data': data
  26. })
  27. }
  28. // 工程材质下拉
  29. export function getEnginMaterialQualityList(enginType) {
  30. const data = {
  31. enginType
  32. }
  33. return request({
  34. 'url': '/zdsz/enginMaterialQuality/getEnginMaterialQualityList',
  35. 'method': 'get',
  36. 'data': data
  37. })
  38. }
  39. // 新增拆旧管
  40. export function addTearOldPipe(param) {
  41. return request({
  42. 'url': '/zdsz/engineeringCivil',
  43. 'method': 'post',
  44. 'data': param
  45. })
  46. }
  47. // 获取小区字典值
  48. export function getAreaList(district) {
  49. const data = {
  50. district
  51. }
  52. return request({
  53. 'url': '/zdsz/area/getAreaList',
  54. 'method': 'get',
  55. 'data': data
  56. })
  57. }
  58. // 获取楼宇字典值
  59. export function getBuildingList(areaId) {
  60. const data = {
  61. areaId
  62. }
  63. return request({
  64. 'url': '/zdsz/building/getBuildingList',
  65. 'method': 'get',
  66. 'data': data
  67. })
  68. }
  69. // 获取单元字典值
  70. export function getUnitList(buildingId) {
  71. const data = {
  72. buildingId
  73. }
  74. return request({
  75. 'url': '/zdsz/unit/getUnitList',
  76. 'method': 'get',
  77. 'data': data
  78. })
  79. }
  80. // 获取房间字典值
  81. export function getHousesList(unitId) {
  82. const data = {
  83. unitId
  84. }
  85. return request({
  86. 'url': '/zdsz/house/getHousesList',
  87. 'method': 'get',
  88. 'data': data
  89. })
  90. }