From c247a506d95bbe4ec66d92d08096c7107e799e21 Mon Sep 17 00:00:00 2001
From: Lou <luzhiping@qqyjz.com>
Date: Fri, 03 Nov 2023 17:44:22 +0800
Subject: [PATCH] Merge branch 'master' of http://s16s652780.51mypc.cn:49896/r/jczz_app

---
 subPackage/bs/views/zhsb.vue |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/subPackage/bs/views/zhsb.vue b/subPackage/bs/views/zhsb.vue
index a603a03..2ae5da5 100644
--- a/subPackage/bs/views/zhsb.vue
+++ b/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()
 		}
 	}
 }

--
Gitblit v1.9.3