Lou
2023-11-03 c247a506d95bbe4ec66d92d08096c7107e799e21
subPackage/bs/views/zhsb.vue
@@ -22,7 +22,7 @@
            <view class="title">出租管理</view>
         </view>
         <view class="list">
            <rentList :list="rentList"></rentList>
            <rentList :list="rentList" @refreshData="refreshData"></rentList>
         </view>
      </view>
@@ -79,19 +79,24 @@
         } = 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()
      }
   }
}