居住现状
-
-
请选择
+
+ {{ $dict.getLabel('houselivingStatus', houseInfo.livingStatus) || '请选择'}}
房屋用途
- 请选择
+ {{$dict.getLabel('houseUseStatus', houseInfo.houseUse) || '请选择'}}
承租情况
- 请选择
+ {{ $dict.getLabel('houselivingStatus', houseInfo.livingStatus) || '请选择'}}
起租日期
- 请选择
+ {{ houseInfo.startDate }}
租房备案证明
- 请选择
+ {{ $dict.getLabel('isFilingCertificateStatus', houseInfo.isFilingCertificate) || '请选择'}}
@@ -114,6 +112,8 @@
+
+
@@ -123,17 +123,42 @@ export default {
data() {
return {
-
+ id: '',
+ houseInfo: {},
+ showSelect: false,
+ selectList: [],
+ formName: ''
}
},
computed: { ...mapState(['user']) },
mounted() {
-
+ this.id = '1603004d26ad4e739b79ad5ba9f8d777'
+ this.$dict.load('householdRelation', 'houselivingStatus', 'houseLeaseSituation', 'houseUseStatus',
+ 'isFilingCertificateStatus', 'communityBuildingType', 'yesOrNo', 'BulidResidentType').then(() => {
+ this.getDetail()
+ })
},
methods: {
-
-
+ getDetail() {
+ this.$http.post(`app/appcommunityhouseinfo/queryDetailById?id=${this.id}`).then(res => {
+ if (res.code == 0) {
+ if(res.data.startDate) {
+ res.data.startDate = res.data.startDate.substring(0, 10)
+ }
+ this.houseInfo = res.data
+ }
+ })
+ },
+ selectClick(dictName, formName) {
+ console.log(123)
+ this.selectList = this.$dict.getDict(dictName)
+ this.formName = formName
+ this.showSelect = true
+ },
+ confirmSelect(e) {
+ this.houseInfo[this.formName] = e[0].value
+ }
}
}
diff --git a/src/apps/AppBuilding/components/detail.vue b/src/apps/AppBuilding/components/detail.vue
index e4f61092..76e1344f 100644
--- a/src/apps/AppBuilding/components/detail.vue
+++ b/src/apps/AppBuilding/components/detail.vue
@@ -43,45 +43,45 @@
-