Blame view

src/api/fee/shareReadingFeeApi.js 822 Bytes
a0f584aa   wuxw   费用公摊开发完成
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
  import request from '@/utils/request'
  
  /**
   * 获取公摊费用列表
   * @param {Object} params 查询参数
   * @returns {Promise} Promise对象
   */
  export function listFloorShareFee(params) {
    return new Promise((resolve, reject) => {
      request({
        url: '/meter.listFloorShareFee',
        method: 'get',
        params
      }).then(response => {
        const res = response.data
        resolve(res)
      }).catch(error => {
        reject(error)
      })
    })
  }
  
  /**
   * 获取社区ID
   * @returns {Promise} Promise对象
   */
  export function getCommunityId() {
    return new Promise((resolve, reject) => {
      request({
        url: '/community.getCommunityId',
        method: 'get'
      }).then(response => {
        const res = response.data
        resolve(res.communityId)
      }).catch(error => {
        reject(error)
      })
    })
  }