房屋信息采集

main
许宏杰 8 months ago
parent abccb79975
commit 9dce23a1e1

@ -98,6 +98,13 @@
{
"navigationBarTitleText" : ""
}
},
{
"path" : "pages/house/houseGather",
"style" :
{
"navigationBarTitleText" : ""
}
}
],
"tabBar": {

@ -2,7 +2,7 @@
<navigation-general :title="title">
<view class="row-title">
<view class="main-title">住户信息</view>
<u-button type="primary" :plain="true" size="mini">房屋信息采集</u-button>
<u-button type="primary" :plain="true" size="mini" @click="handlerGather()"></u-button>
</view>
<u-cell-group>
@ -115,6 +115,17 @@
this.getPersonList()
},
methods: {
//
handlerGather() {
this.$u.route({
url: 'pages/house/houseGather',
params: {
buildingId: this.houseInfo.buildingId,
houseId: this.houseInfo.id,
deptId: this.houseInfo.deptId,
}
})
},
//
handlerInfo(id) {
this.$u.route({

@ -0,0 +1,110 @@
<template>
<navigation-general title="房屋信息采集">
<template v-slot:right>
<u-button style="margin-right: 20rpx;" type="error" size="mini" @click="show = true">删除</u-button>
</template>
<u-form :model="form" ref="uForm" label-width="130rpx">
<!-- <u-form-item label="填写方式" prop="name">
<u-radio-group v-model="radio">
<u-radio v-for="(item, index) in list" :key="index" :name="item.name">
{{item.name}}
</u-radio>
</u-radio-group>
</u-form-item> -->
<u-form-item label="房东姓名"><u-input v-model="form.fdxm" /></u-form-item>
<u-form-item label="房东电话" prop="phone"><u-input v-model="form.fdlxdh" /></u-form-item>
<u-form-item label="证件类型" prop="phone">
<u-input type="select" v-model="form.fdzjlx" @click="show = true" />
<u-action-sheet :list="dict.zjlx" v-model="show"></u-action-sheet>
</u-form-item>
<u-form-item label="身份证号" prop="phone"><u-input v-model="form.fdsfzh" /></u-form-item>
<u-form-item label="房屋类型" prop="phone"><u-input v-model="form.fwlx" /></u-form-item>
<u-form-item label="租住类型"><u-input v-model="form.zzlx" /></u-form-item>
<u-form-item label="出租间数"><u-input v-model="form.czjs" /></u-form-item>
<u-form-item label="出租面积"><u-input v-model="form.czmj" /></u-form-item>
<u-form-item label="社区"><u-input v-model="form.sqcjwh" /></u-form-item>
<u-form-item label="是否群租"><u-input v-model="form.sfqzf" /></u-form-item>
<u-form-item label="备注"><u-input v-model="form.person_information" /></u-form-item>
</u-form>
<bottom-btn type="primary" title="提交" @handlerClick="handlerClick"></bottom-btn>
<!-- 证件类型 -->
<!-- <u-select v-model="show" :list="dict.zjlx"></u-select> -->
</navigation-general>
</template>
<script>
import {
getDicts
} from "@/api/system/dict/data";
import {
getCommunitylist
} from "@/api/taicangpop/data";
export default {
data() {
return {
show: false,
dict: {},
radio: '人工填写',
list: [{
name: '人工填写'
},
{
name: '下拉选择'
},
],
form: {
sqcjwh: undefined, //
person_id: undefined, //
fdxm: undefined, //
fdlxdh: undefined, //
fdzjlx: undefined, //
fdsfzh: undefined, //
fwlx: undefined, //
sfqzf: undefined, //
zzlx: undefined, //
czjs: undefined, //
czmj: undefined, //
person_information: undefined, //
},
};
},
onLoad() {
this.getdicts()
},
methods: {
//
async getdicts() {
//
const res1 = await getDicts('bm_czfw_zjlx')
this.dict.zjlx = res1.data.map(item => {
item.text = item.dictLabel
return item
})
//
const res2 = await getDicts('bm_fwlx')
this.dict.fwlx = res2.data
//
const res3 = await getDicts('bm_czfw_zzlx')
this.dict.zzlx = res3.data
//
const res4 = await getCommunitylist()
this.dict.shequ = res4.data['社区list集合']
console.log(this.dict)
},
handlerClick() {
console.log(this.form)
}
},
}
</script>
<style lang="scss" scoped>
.u-form {
background: #fff;
padding: 20rpx;
padding-bottom: 120rpx;
}
</style>

@ -84,8 +84,11 @@
const res = await getWarningList(this.queryParams)
let list = handleColor(res.rows)
this.buildingList = [...this.buildingList, ...list]
console.log(this.buildingList, 'sss')
this.total = res.total
uni.setTabBarBadge({
index: 1,
text: this.total.toString()
})
this.queryParams.pageNum = this.queryParams.pageNum + 1
this.status = 'loadmore';
}

Loading…
Cancel
Save