居民档案
This commit is contained in:
139
src/apps/AppResidentDocument/AppResidentDocument.vue
Normal file
139
src/apps/AppResidentDocument/AppResidentDocument.vue
Normal file
@@ -0,0 +1,139 @@
|
||||
<template>
|
||||
<div class="AppResidentDocument">
|
||||
<u-tabs :list="tabList" :is-scroll="false" :current="currentTabs" height="96" bg-color="#3975C6" inactive-color="#fff" active-color="#fff" @change="change"></u-tabs>
|
||||
|
||||
<AiAreaPicker v-model="areaId" all :areaId="areaId" @select="areaSelect"></AiAreaPicker>
|
||||
|
||||
<div class="line"></div>
|
||||
|
||||
<div class="seachObj">
|
||||
<u-search v-model="keyword" :clearabled="true" placeholder="搜索" :show-action="false" bg-color="#F5F5F5" search-icon-color="#E2E8F1" color="#666" height="58" @search="handerSearch" @clear="handerClear"></u-search>
|
||||
</div>
|
||||
|
||||
<div class="datas" v-if="datas.length > 0">
|
||||
<div class="datass" v-for="(item, iindex) in datas" :key="iindex" @click="toDetailCard(item)">
|
||||
<!-- <div class="left">
|
||||
<img :src="item.photo" alt="" v-if="item.photo" />
|
||||
<img src="./components/img/4.png" alt="" v-else />
|
||||
</div>
|
||||
|
||||
<div class="right">
|
||||
<div class="rightTop">{{ item.name }}</div>
|
||||
<div class="rightBottom">
|
||||
<span>{{ item.idNumber.replace(/^(\w{6})\w{8}(.*)$/, '$1****$2') }}</span>
|
||||
|
||||
<span>{{ item.phone }}</span>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<AiEmpty v-else></AiEmpty>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'AppResidentDocument',
|
||||
appName: '居民档案',
|
||||
components: {},
|
||||
props: {},
|
||||
data() {
|
||||
return {
|
||||
datas: [],
|
||||
current: 1,
|
||||
size: 10,
|
||||
tabList: [
|
||||
{
|
||||
name: '本地居民',
|
||||
},
|
||||
{
|
||||
name: '流动人员',
|
||||
},
|
||||
],
|
||||
currentTabs: 0,
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
watch: {},
|
||||
onLoad() {},
|
||||
onShow() {},
|
||||
methods: {
|
||||
getList() {
|
||||
this.$http
|
||||
.post('/app/wxcp/wxcustomer/list', null, {
|
||||
params: {
|
||||
size: this.size,
|
||||
current: this.current,
|
||||
// createUserId: this.currentTabs == 1 ? this.user.id : '',
|
||||
},
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
|
||||
|
||||
this.pages = res.data.pages
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
change(index) {
|
||||
this.currentTabs = index
|
||||
this.getList()
|
||||
},
|
||||
|
||||
toDetailCard(item) {
|
||||
uni.navigateTo({ url: `./DetailCard?id=${item.id}` })
|
||||
},
|
||||
},
|
||||
onReachBottom() {
|
||||
this.current = this.current + 1
|
||||
this.getList()
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.AppResidentDocument {
|
||||
height: 100%;
|
||||
background: #fff;
|
||||
.line {
|
||||
height: 16px;
|
||||
background: #f5f5f5;
|
||||
}
|
||||
.seachObj {
|
||||
border-bottom: 2px solid #f5f5f5;
|
||||
border-top: 2px solid #f5f5f5;
|
||||
padding: 20px 32px;
|
||||
}
|
||||
.datas {
|
||||
.datass {
|
||||
display: flex;
|
||||
padding: 24px 32px;
|
||||
.left {
|
||||
img {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
.right {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-left: 32px;
|
||||
width: 100%;
|
||||
.rightTop {
|
||||
font-size: 32px;
|
||||
font-weight: 500;
|
||||
color: #333333;
|
||||
}
|
||||
.rightBottom {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-top: 8px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
193
src/apps/AppResidentDocument/DetailCard.vue
Normal file
193
src/apps/AppResidentDocument/DetailCard.vue
Normal file
@@ -0,0 +1,193 @@
|
||||
<template>
|
||||
<div class="DetailCard">
|
||||
<div class="top"></div>
|
||||
|
||||
<div class="middle">
|
||||
<div class="hint">家庭地址</div>
|
||||
|
||||
<div class="areaHint">
|
||||
<u-icon name="map-fill" color="#73ABFF"></u-icon>
|
||||
<span>{{ currentAreaName }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="bottom">
|
||||
<div class="hints">家庭成员</div>
|
||||
|
||||
<div v-if="data.family && data.family.length > 0">
|
||||
<div class="card" v-for="(item, i) in data.family" :key="i" @click="toDetailPeople(item)">
|
||||
<div class="photos">
|
||||
<img :src="item.photo" alt="" v-if="item.photo" />
|
||||
<img src="./components/img/2.png" alt="" v-else />
|
||||
</div>
|
||||
|
||||
<div class="right">
|
||||
<div class="rightTop">
|
||||
<div class="rightTop-lefts">
|
||||
<span class="names">{{ item.name }}</span>
|
||||
<span class="householdNames" v-if="item.householdName == 1">户主</span>
|
||||
<span class="householdNames" v-else>
|
||||
{{ $dict.getLabel('householdRelation', item.householdName) }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="rightTop-rights">
|
||||
<u-section :show-line="false" sub-title="详情"></u-section>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="rightBottom">
|
||||
<span>身份证号:</span>
|
||||
<span>{{ item.idNumber.replace(/^(\w{6})\w{8}(.*)$/, '$1****$2') }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<AiEmpty v-else></AiEmpty>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'DetailCard',
|
||||
components: {},
|
||||
props: {},
|
||||
data() {
|
||||
return {
|
||||
id: '',
|
||||
data: [],
|
||||
currentAreaName: '',
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
watch: {},
|
||||
onLoad(o) {
|
||||
this.id = o.id
|
||||
this.$dict.load('householdRelation').then(() => {
|
||||
this.getDetail()
|
||||
})
|
||||
},
|
||||
onShow() {},
|
||||
methods: {
|
||||
getDetail() {
|
||||
this.$http.post(`/app/appresident/detail?id=${this.id}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.data = res.data
|
||||
this.$nextTick(() => {
|
||||
this.currentAreaName = res.data.resident.currentAreaName
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
toDetailPeople(item) {
|
||||
uni.navigateTo({ url: `./DetailPeople?id=${item.id}` })
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.DetailCard {
|
||||
height: 100%;
|
||||
.top {
|
||||
height: 112px;
|
||||
background: #3975c6;
|
||||
}
|
||||
|
||||
.middle {
|
||||
margin: -80px 32px 0 32px;
|
||||
padding: 38px 30px 78px 28px;
|
||||
background: #ffffff;
|
||||
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.02);
|
||||
border-radius: 16px;
|
||||
z-index: 999;
|
||||
.hint {
|
||||
font-size: 32px;
|
||||
font-weight: 500;
|
||||
color: #333333;
|
||||
}
|
||||
.areaHint {
|
||||
margin-top: 38px;
|
||||
span {
|
||||
margin-left: 14px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.bottom {
|
||||
margin: 32px 30px 48px 30px;
|
||||
background: #fff;
|
||||
padding: 38px 30px 30px 30px;
|
||||
.hints {
|
||||
margin-bottom: 38px;
|
||||
}
|
||||
.card {
|
||||
display: flex;
|
||||
box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.08);
|
||||
border-radius: 16px;
|
||||
padding: 48px 32px;
|
||||
margin-bottom: 32px;
|
||||
.photos {
|
||||
img {
|
||||
width: 96px;
|
||||
height: 96px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
|
||||
.right {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-left: 40px;
|
||||
width: 100%;
|
||||
.rightTop {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
.rightTop-lefts {
|
||||
.names {
|
||||
font-size: 32px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.householdNames {
|
||||
margin-left: 30px;
|
||||
font-size: 26px;
|
||||
font-weight: 500;
|
||||
color: #5aad6a;
|
||||
}
|
||||
}
|
||||
.rightTop-rights {
|
||||
::v-deep .u-section {
|
||||
.u-section__right-info {
|
||||
color: #3975c6 !important;
|
||||
.u-section__right-info__icon-arrow {
|
||||
.u-icon {
|
||||
.u-icon__icon {
|
||||
color: #3975c6 !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.rightBottom {
|
||||
margin-top: 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.card:nth-child(2n-1) {
|
||||
// background: royalblue;
|
||||
background: url(http://respub.sinoecare.net/20211222/装饰-20211222162743.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
.card:nth-child(2n) {
|
||||
// background: pink;
|
||||
background: url(http://respub.sinoecare.net/20211222/装饰2-20211222162934.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
215
src/apps/AppResidentDocument/DetailPeople.vue
Normal file
215
src/apps/AppResidentDocument/DetailPeople.vue
Normal file
@@ -0,0 +1,215 @@
|
||||
<template>
|
||||
<div class="DetailPeople">
|
||||
<div class="top">
|
||||
<div class="photos">
|
||||
<img :src="data.resident.photo" alt="" v-if="data.resident.photo" />
|
||||
<img src="./components/img/2.png" alt="" v-else />
|
||||
</div>
|
||||
|
||||
<div class="right">
|
||||
<div class="rightTop">
|
||||
<span class="names">{{ data.resident.name }}</span>
|
||||
|
||||
<span class="householdNames" v-if="data.resident.name == 1">户主</span>
|
||||
<span class="householdNames" v-else>
|
||||
{{ $dict.getLabel('householdRelation', data.resident.householdName) }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="rightBottom">{{ data.resident.phone }}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="line"></div>
|
||||
|
||||
<div class="middle">
|
||||
<div class="hint">个人基本信息</div>
|
||||
|
||||
<div class="contents">
|
||||
<div class="item">
|
||||
<span>家庭地址</span>
|
||||
<span>{{ data.resident.birthplaceAreaName }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<span>身份证号</span>
|
||||
<span>{{ data.resident.idNumber.replace(/^(\w{6})\w{8}(.*)$/, '$1****$2') }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<span>民族</span>
|
||||
<span> {{ $dict.getLabel('nation', data.resident.householdName) }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<span>文化程度</span>
|
||||
<span>{{ $dict.getLabel('education', data.resident.education) }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<span>婚姻状况</span>
|
||||
<span>{{ $dict.getLabel('maritalStatus', data.resident.maritalStatus) }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<span>政治面貌</span>
|
||||
<span>{{ $dict.getLabel('politicsStatus', data.resident.politicsStatus) }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<span>兵役状况</span>
|
||||
<span>{{ $dict.getLabel('militaryStatus', data.resident.militaryStatus) }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<span>宗教信仰</span>
|
||||
<span>{{ $dict.getLabel('faithType', data.resident.faithType) }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<span>职业</span>
|
||||
<span>{{ $dict.getLabel('job', data.resident.job) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="lines"></div>
|
||||
|
||||
<div class="bottom">
|
||||
<div class="hint">联络信息</div>
|
||||
|
||||
<div class="contents">
|
||||
<div class="item">
|
||||
<span>联系方式</span>
|
||||
<span class="phones">{{ data.resident.phone }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<span>现住址</span>
|
||||
<span>{{ data.resident.currentAreaName }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<span>现住详细地址</span>
|
||||
<span>{{ data.resident.currentAddress }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<span>户籍地址</span>
|
||||
<span>{{ data.resident.householdAreaName }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<span>户籍详细地址</span>
|
||||
<span>{{ data.resident.householdAddress }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'DetailPeople',
|
||||
components: {},
|
||||
props: {},
|
||||
data() {
|
||||
return {
|
||||
id: '',
|
||||
data: [],
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
watch: {},
|
||||
onLoad(o) {
|
||||
this.id = o.id
|
||||
this.$dict.load('householdRelation', 'nation', 'education', 'maritalStatus', 'politicsStatus', 'militaryStatus', 'faithType', 'job').then(() => {
|
||||
this.getDetail()
|
||||
})
|
||||
},
|
||||
onShow() {},
|
||||
methods: {
|
||||
getDetail() {
|
||||
this.$http.post(`/app/appresident/detail?id=${this.id}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.data = res.data
|
||||
// this.$nextTick(() => {
|
||||
// this.currentAreaName = res.data.resident.currentAreaName
|
||||
// })
|
||||
}
|
||||
})
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.DetailPeople {
|
||||
height: 100%;
|
||||
background: #fff;
|
||||
.top {
|
||||
display: flex;
|
||||
padding: 48px 32px 32px 32px;
|
||||
.photos {
|
||||
img {
|
||||
width: 112px;
|
||||
height: 112px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
.right {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
margin-left: 24px;
|
||||
.rightTop {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
.names {
|
||||
font-size: 32px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.householdNames {
|
||||
margin-left: 30px;
|
||||
font-size: 26px;
|
||||
font-weight: 500;
|
||||
color: #5aad6a;
|
||||
}
|
||||
}
|
||||
.rightBottom {
|
||||
margin-top: 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.line {
|
||||
height: 8px;
|
||||
background: #f5f5f5;
|
||||
}
|
||||
|
||||
.middle,
|
||||
.bottom {
|
||||
padding: 0 32px;
|
||||
|
||||
.hint {
|
||||
padding: 32px 0;
|
||||
}
|
||||
|
||||
.contents {
|
||||
.item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 14px 0;
|
||||
.phones {
|
||||
color: #3d94fb;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.lines {
|
||||
height: 4px;
|
||||
background: #f5f5f5;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
BIN
src/apps/AppResidentDocument/components/img/2.png
Normal file
BIN
src/apps/AppResidentDocument/components/img/2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 888 B |
Reference in New Issue
Block a user