| | |
| | | <view class="title">出租管理</view>
|
| | | </view>
|
| | | <view class="list">
|
| | | <rentList :list="rentList"></rentList>
|
| | | <rentList :list="rentList" @refreshData="refreshData"></rentList>
|
| | | </view>
|
| | | </view>
|
| | |
|
| | |
| | | } = res.data
|
| | | this.rentList = []
|
| | | this.location = (!!aoiName ? aoiName : '') + buildingName
|
| | | this.room = (!!unitName ? unitName : '') + doorplateName + "室"
|
| | | this.room = (!!unitName ? unitName : '') + doorplateName + "室" |
| | | this.num = 0
|
| | | houseRentalList !== 0 && houseRentalList.forEach(item => {
|
| | | const { houseTenantVOList, dueTime, rentalTime } = item |
| | | item.num = houseTenantVOList.length |
| | | this.num += item.num
|
| | | if (item.num !== 0) { |
| | | item.name = houseTenantVOList[0].name |
| | | item.housingRentalId = houseTenantVOList[0].housingRentalId |
| | | }
|
| | | this.rentList = houseRentalList
|
| | | })
|
| | | },
|
| | | addRent() {
|
| | | this.$u.func.globalNavigator("/subPackage/bs/views/rentDetail?houseCode=" + this.houseCode)
|
| | | }, |
| | | refreshData() { |
| | | this.getHouseRent() |
| | | }
|
| | | }
|
| | | }
|