居民档案
This commit is contained in:
@@ -5,12 +5,38 @@
|
||||
<div class="header-content-bg">
|
||||
<img src="https://cdn.sinoecare.com/i/2024/07/12/6690a1303d423.png" alt="">
|
||||
</div>
|
||||
<div class="list-content">
|
||||
<div class="item">
|
||||
<span class="tips">*</span>
|
||||
<div class="label">标签</div>
|
||||
<div class="value">
|
||||
<u-input v-model="labelName" input-align="right" height="44" placeholder="请输入..." maxlength="32" />
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="item">
|
||||
<span class="tips">*</span>
|
||||
<div class="label">标签</div>
|
||||
<div class="value">
|
||||
<u-input v-model="text" input-align="right" height="44" placeholder="请输入..." />
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="tips">*</span>
|
||||
<div class="label">标签</div>
|
||||
<div class="value">
|
||||
<u-input v-model="text" input-align="right" height="44" placeholder="请输入..." />
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
<!-- <div class="add-btn">
|
||||
<img src="https://cdn.sinoecare.com/i/2024/07/16/669618fc80480.png" alt="">
|
||||
</div> -->
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- <AiEmpty class="emptyWrap" v-else></AiEmpty> -->
|
||||
<div class="footer">
|
||||
<div class="footer" @click="confirm">
|
||||
<div class="btn">保存</div>
|
||||
</div>
|
||||
|
||||
@@ -22,7 +48,7 @@ import {mapState} from 'vuex'
|
||||
|
||||
export default {
|
||||
name: 'AddTag',
|
||||
appName: '居民标签管理',
|
||||
labelName: '居民标签管理',
|
||||
customNavigation: true,
|
||||
data() {
|
||||
return {
|
||||
@@ -30,15 +56,18 @@ export default {
|
||||
background: 'url(https://cdn.sinoecare.com/i/2024/07/12/6690a1309c7d3.png) no-repeat',
|
||||
backgroundSize: 'cover',
|
||||
},
|
||||
current: 1,
|
||||
pages: 2
|
||||
labelName: '',
|
||||
id: ''
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(['user']),
|
||||
},
|
||||
onLoad() {
|
||||
|
||||
onLoad(e) {
|
||||
this.id = e.id || ''
|
||||
if(this.id) {
|
||||
this.getDetail()
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
uni.setNavigationBarColor({
|
||||
@@ -47,31 +76,26 @@ export default {
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
getList() {
|
||||
if(this.current > this.pages) return
|
||||
this.$instance.post('/app/appresident/list', null, {
|
||||
params: {
|
||||
size: 20,
|
||||
current: this.current,
|
||||
},
|
||||
})
|
||||
.then((res) => {
|
||||
getDetail() {
|
||||
this.$instance.post(`/app/appresidentlabelinfo/queryDetailById?id=${this.id}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
res.data.records.map((item) => {
|
||||
item.isCheck = false
|
||||
})
|
||||
this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records
|
||||
|
||||
this.pages = res.data.pages
|
||||
this.labelName = res.data.labelName
|
||||
}
|
||||
})
|
||||
},
|
||||
confirm() {
|
||||
this.$instance.post(`/app/appresidentlabelinfo/addOrUpdate`, {id: this.id, labelName: this.labelName}).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.$u.toast(this.id ? '编辑成功!' : '新增成功!')
|
||||
setTimeout(()=> {
|
||||
uni.navigateBack()
|
||||
uni.$emit('updateTag')
|
||||
}, 600)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
onReachBottom() {
|
||||
// this.current = this.current + 1
|
||||
// this.getList()
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -80,12 +104,64 @@ export default {
|
||||
height: 100%;
|
||||
.header-content-bg {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
position: fixed;
|
||||
img {
|
||||
width: 100%;
|
||||
height: 592px;
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
}
|
||||
}
|
||||
.list-content {
|
||||
padding: 16px 0 220px 0;
|
||||
.item {
|
||||
width: calc(100% - 64px);
|
||||
background-color: #fff;
|
||||
margin-left: 32px;
|
||||
padding: 34px 32px;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
border-bottom: 1px solid #eee;
|
||||
.tips {
|
||||
position: absolute;
|
||||
top: 40px;
|
||||
left: 14px;
|
||||
font-family: PingFangSC-Regular;
|
||||
font-weight: 400;
|
||||
font-size: 32px;
|
||||
color: #F46;
|
||||
}
|
||||
.label {
|
||||
display: inline-block;
|
||||
width: 176px;
|
||||
line-height: 44px;
|
||||
font-family: PingFangSC-Regular;
|
||||
font-weight: 400;
|
||||
font-size: 32px;
|
||||
color: #333;
|
||||
}
|
||||
.value {
|
||||
display: inline-block;
|
||||
width: calc(100% - 176px);
|
||||
}
|
||||
}
|
||||
.item:nth-of-type(1) {
|
||||
border-top-left-radius: 16px;
|
||||
border-top-right-radius: 16px;
|
||||
}
|
||||
.item:nth-last-of-type(1) {
|
||||
border-bottom-left-radius: 16px;
|
||||
border-bottom-right-radius: 16px;
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
.add-btn {
|
||||
position: fixed;
|
||||
bottom: 300px;
|
||||
right: 0;
|
||||
z-index: 9;
|
||||
padding: 30px;
|
||||
img {
|
||||
width: 104px;
|
||||
height: 104px;
|
||||
}
|
||||
}
|
||||
.footer {
|
||||
|
||||
@@ -28,7 +28,7 @@ export default {
|
||||
{
|
||||
img: 'https://cdn.sinoecare.com/i/2024/07/16/66960746d79c9.png',
|
||||
title: '居民标签管理',
|
||||
linkUrl: './ExamineList'
|
||||
linkUrl: './TagList'
|
||||
}
|
||||
],
|
||||
backgroundNavbar: {
|
||||
|
||||
@@ -1,49 +1,51 @@
|
||||
<template>
|
||||
<div class="DetailCard">
|
||||
<div class="top"></div>
|
||||
|
||||
<u-navbar back-icon-color="#000" title="居民管理" title-color="#000" title-width="300" title-size="32"
|
||||
:title-bold="true" :background="backgroundNavbar" :is-fixed="true" height="44" z-index="999"></u-navbar>
|
||||
<div class="header-content-bg">
|
||||
<img src="https://cdn.sinoecare.com/i/2024/07/12/6690a1303d423.png" alt="">
|
||||
</div>
|
||||
<div class="middle">
|
||||
<div class="hint">家庭地址</div>
|
||||
|
||||
<div class="areaHint">
|
||||
<u-icon name="map-fill" color="#73ABFF"></u-icon>
|
||||
<span>{{resident.currentAreaName}}{{resident.currentAddress || ''}}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="bottom">
|
||||
<div class="hints">家庭成员 {{ data.family && data.family.length }}人</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/44.png" alt="" v-else />
|
||||
</div>
|
||||
<img src="https://cdn.sinoecare.com/i/2024/07/16/669622c50d6be.png" alt="" class="bg-img">
|
||||
<div class="user-info">
|
||||
<div class="photos">
|
||||
<img :src="item.photo" alt="" v-if="item.photo" />
|
||||
<img src="https://cdn.sinoecare.com/i/2024/07/16/6695e2a0d95c9.png" alt="" v-else />
|
||||
</div>
|
||||
<div class="right">
|
||||
<div class="rightTop">
|
||||
<div class="rightTop-lefts">
|
||||
<span class="names">{{ item.name }}</span>
|
||||
<span class="fileStatuss" v-if="item.fileStatus == 1"> 已注销</span>
|
||||
<span class="householdNames" v-if="item.householdName == 1">户主</span>
|
||||
<span class="householdNames" v-else>
|
||||
{{ $dict.getLabel('householdRelation', item.householdRelation) }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="right">
|
||||
<div class="rightTop">
|
||||
<div class="rightTop-lefts">
|
||||
<span class="names">{{ item.name }}</span>
|
||||
<span class="fileStatuss" v-if="item.fileStatus == 1"> 已注销</span>
|
||||
<span class="householdNames" v-if="item.householdName == 1">户主</span>
|
||||
<span class="householdNames" v-else>
|
||||
{{ $dict.getLabel('householdRelation', item.householdRelation) }}
|
||||
</span>
|
||||
<div class="rightTop-rights">
|
||||
<u-section :show-line="false" sub-title="详情"></u-section>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="rightTop-rights">
|
||||
<u-section :show-line="false" sub-title="详情"></u-section>
|
||||
<div class="rightBottom">
|
||||
<span>身份证号:</span>
|
||||
<span>{{ item.idNumber.replace(/^(\w{6})\w{8}(.*)$/, '$1********$2') }}</span>
|
||||
</div>
|
||||
<!-- <div class="spacial" v-if="item.idNumber == data.resident.idNumber">
|
||||
<span v-for="(e,index) in spacialList" :key="index">{{e.applicationName}}</span>
|
||||
</div> -->
|
||||
</div>
|
||||
|
||||
<div class="rightBottom">
|
||||
<span>身份证号:</span>
|
||||
<span>{{ item.idNumber.replace(/^(\w{6})\w{8}(.*)$/, '$1********$2') }}</span>
|
||||
</div>
|
||||
<!-- <div class="spacial" v-if="item.idNumber == data.resident.idNumber">
|
||||
<span v-for="(e,index) in spacialList" :key="index">{{e.applicationName}}</span>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -56,14 +58,17 @@
|
||||
<script>
|
||||
export default {
|
||||
name: 'DetailCard',
|
||||
components: {},
|
||||
props: {},
|
||||
customNavigation: true,
|
||||
data() {
|
||||
return {
|
||||
id: '',
|
||||
data: [],
|
||||
resident: {},
|
||||
// spacialList: [],
|
||||
backgroundNavbar: {
|
||||
background: 'url(https://cdn.sinoecare.com/i/2024/07/12/6690a1309c7d3.png) no-repeat',
|
||||
backgroundSize: 'cover',
|
||||
},
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
@@ -75,7 +80,10 @@ export default {
|
||||
})
|
||||
},
|
||||
onShow() {
|
||||
document.title = '居民档案'
|
||||
uni.setNavigationBarColor({
|
||||
frontColor: 'black',
|
||||
backgroundColor: '#ffffff'
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
getDetail() {
|
||||
@@ -102,25 +110,35 @@ export default {
|
||||
<style scoped lang="scss">
|
||||
.DetailCard {
|
||||
height: 100%;
|
||||
.top {
|
||||
height: 112px;
|
||||
background: #3975c6;
|
||||
.header-content-bg {
|
||||
width: 100%;
|
||||
position: fixed;
|
||||
z-index: -1;
|
||||
img {
|
||||
width: 100%;
|
||||
height: 592px;
|
||||
}
|
||||
}
|
||||
|
||||
.middle {
|
||||
margin: -80px 32px 0 32px;
|
||||
padding: 38px 30px 78px 28px;
|
||||
background: #ffffff;
|
||||
margin: 16px 32px 0 32px;
|
||||
padding: 32px;
|
||||
background-color: #fff;
|
||||
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.02);
|
||||
border-radius: 16px;
|
||||
z-index: 999;
|
||||
z-index: 1;
|
||||
.hint {
|
||||
font-size: 32px;
|
||||
font-weight: 500;
|
||||
color: #333333;
|
||||
}
|
||||
.areaHint {
|
||||
margin-top: 38px;
|
||||
margin-top: 22px;
|
||||
font-family: PingFangSC-Regular;
|
||||
font-weight: 400;
|
||||
font-size: 32px;
|
||||
color: #666;
|
||||
line-height: 44px;
|
||||
span {
|
||||
margin-left: 14px;
|
||||
}
|
||||
@@ -128,18 +146,40 @@ export default {
|
||||
}
|
||||
|
||||
.bottom {
|
||||
margin: 32px 30px 48px 30px;
|
||||
margin: 32px 0 0 32px;
|
||||
background: #fff;
|
||||
padding: 38px 30px 30px 30px;
|
||||
padding: 32px;
|
||||
box-sizing: border-box;
|
||||
width: calc(100% - 64px);
|
||||
border-radius: 16px;
|
||||
.hints {
|
||||
margin-bottom: 38px;
|
||||
height: 44px;
|
||||
font-family: PingFangSC-Medium;
|
||||
font-weight: 500;
|
||||
font-size: 32px;
|
||||
color: #333;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
.card {
|
||||
display: flex;
|
||||
box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.08);
|
||||
border-radius: 16px;
|
||||
padding: 48px 32px;
|
||||
margin-bottom: 32px;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 192px;
|
||||
.bg-img {
|
||||
width: 100%;
|
||||
height: 100px;
|
||||
}
|
||||
.user-info {
|
||||
display: flex;
|
||||
padding: 48px 32px;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.photos {
|
||||
img {
|
||||
width: 96px;
|
||||
@@ -147,7 +187,6 @@ export default {
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
|
||||
.right {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -158,25 +197,35 @@ export default {
|
||||
justify-content: space-between;
|
||||
.rightTop-lefts {
|
||||
.names {
|
||||
font-size: 32px;
|
||||
display: inline-block;
|
||||
line-height: 44px;
|
||||
font-family: PingFangSC-SNaNpxibold;
|
||||
font-weight: 600;
|
||||
font-size: 32px;
|
||||
color: #333;
|
||||
margin-right: 16px;
|
||||
}
|
||||
.householdNames {
|
||||
margin-left: 30px;
|
||||
font-size: 26px;
|
||||
display: inline-block;
|
||||
line-height: 44px;
|
||||
font-family: PingFangSC-Medium;
|
||||
font-weight: 500;
|
||||
color: #5aad6a;
|
||||
font-size: 26px;
|
||||
color: #5AAD6A;
|
||||
|
||||
}
|
||||
.fileStatuss {
|
||||
display: inline-block;
|
||||
margin-left: 30px;
|
||||
color: #ff4466;
|
||||
background: #ffecef;
|
||||
border-radius: 8px;
|
||||
width: 88px;
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
text-align: center;
|
||||
background: #FFECEF;
|
||||
border-radius: 8px;
|
||||
font-family: PingFangSC-Regular;
|
||||
font-weight: 400;
|
||||
font-size: 24px;
|
||||
color: #F46;
|
||||
margin-right: 16px;
|
||||
}
|
||||
}
|
||||
.rightTop-rights {
|
||||
@@ -196,6 +245,11 @@ export default {
|
||||
}
|
||||
.rightBottom {
|
||||
margin-top: 20px;
|
||||
font-family: PingFangSC-Regular;
|
||||
font-weight: 400;
|
||||
font-size: 26px;
|
||||
color: #333;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
// .spacial {
|
||||
// margin-top: 10px;
|
||||
@@ -207,16 +261,6 @@ export default {
|
||||
// }
|
||||
}
|
||||
}
|
||||
.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>
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
<img :src="data.resident.photo" alt="" v-if="data.resident && data.resident.photo" />
|
||||
<img src="./components/img/44.png" alt="" v-else />
|
||||
</div>
|
||||
|
||||
<div class="right">
|
||||
<div class="rightTop">
|
||||
<span class="names">{{ data.resident && data.resident.name }}<span v-if="data.resident.fileStatus == 1" class="fileStatuss"> 已注销 </span></span>
|
||||
@@ -19,141 +18,136 @@
|
||||
{{ $dict.getLabel('householdRelation', data.resident && data.resident.householdRelation) }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="rightBottom" v-if="data.resident && data.resident.phone">{{ data.resident.phone }}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="line"></div>
|
||||
|
||||
<div class="tab-list">
|
||||
<div v-for="(item, index) in tabList" :key="index" :class="tabIndex == index ? 'tab-item active' : 'tab-item' " @click="tabIndex=index">
|
||||
<div v-if="index == 0">
|
||||
<img :src="item.activeIcon" alt="" v-if="tabIndex==0">
|
||||
<img :src=" item.icon" alt="" v-if="tabIndex!=0">
|
||||
</div>
|
||||
<div v-if="index != 0">
|
||||
<img src="./components/img/tsrq备份@2x.png" alt="" v-if="tabIndex==index && index != 0">
|
||||
<img src="./components/img/tsrq@2x.png" alt="" v-if="tabIndex!=index && index != 0">
|
||||
</div>
|
||||
|
||||
<p v-if="index==0">{{item.name}}</p>
|
||||
<p v-else class="type">{{item.applicationName}}</p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 基本信息 -->
|
||||
<div v-if="tabIndex == 0">
|
||||
<div class="middle">
|
||||
<div class="hint">个人基本信息</div>
|
||||
|
||||
<div class="contents">
|
||||
<div class="item">
|
||||
<span>籍贯</span>
|
||||
<span>{{ data.resident && data.resident.birthplaceAreaName }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<span>身份证号</span>
|
||||
<span>{{ data.resident && data.resident.idNumber.replace(/^(\w{6})\w{8}(.*)$/, '$1********$2') }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<span>民族</span>
|
||||
<span v-if="data.resident && data.resident.nation"> {{ $dict.getLabel('nation', data.resident.nation) }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<span>文化程度</span>
|
||||
<span v-if="data.resident && data.resident.education">{{ $dict.getLabel('education', data.resident.education) }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<span>婚姻状况</span>
|
||||
<span v-if="data.resident && data.resident.maritalStatus">{{ $dict.getLabel('maritalStatus', data.resident.maritalStatus) }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<span>政治面貌</span>
|
||||
<span v-if="data.resident && data.resident.politicsStatus">{{ $dict.getLabel('politicsStatus', data.resident.politicsStatus) }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<span>兵役状况</span>
|
||||
<span v-if="data.resident && data.resident.militaryStatus">{{ $dict.getLabel('militaryStatus', data.resident.militaryStatus) }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<span>宗教信仰</span>
|
||||
<span v-if="data.resident && data.resident.faithType">{{ $dict.getLabel('faithType', data.resident.faithType) }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<span>职业</span>
|
||||
<span v-if="data.resident && data.resident.job">{{ $dict.getLabel('job', data.resident.job) }}</span>
|
||||
<div class="user-content">
|
||||
<div class="tab-list">
|
||||
<div v-for="(item, index) in tabList" :key="index" :class="tabIndex == index ? 'tab-item active' : 'tab-item' " @click="tabIndex=index">
|
||||
<div v-if="index == 0">
|
||||
<img :src="item.activeIcon" alt="" v-if="tabIndex==0">
|
||||
<img :src=" item.icon" alt="" v-if="tabIndex!=0">
|
||||
</div>
|
||||
<div v-if="index != 0">
|
||||
<img src="./components/img/tsrq备份@2x.png" alt="" v-if="tabIndex==index && index != 0">
|
||||
<img src="./components/img/tsrq@2x.png" alt="" v-if="tabIndex!=index && index != 0">
|
||||
</div>
|
||||
<p v-if="index==0">{{item.name}}</p>
|
||||
<p v-else class="type">{{item.applicationName}}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 基本信息 -->
|
||||
<div v-if="tabIndex == 0">
|
||||
<div class="middle">
|
||||
<div class="hint">个人基本信息</div>
|
||||
|
||||
<div class="lines"></div>
|
||||
<div class="contents">
|
||||
<div class="item">
|
||||
<span class="label">籍贯</span>
|
||||
<span class="value">{{ data.resident && data.resident.birthplaceAreaName }}</span>
|
||||
</div>
|
||||
|
||||
<div class="bottom">
|
||||
<div class="hint">联络信息</div>
|
||||
<div class="item">
|
||||
<span class="label">身份证号</span>
|
||||
<span class="value">{{ data.resident && data.resident.idNumber.replace(/^(\w{6})\w{8}(.*)$/, '$1********$2') }}</span>
|
||||
</div>
|
||||
|
||||
<div class="contents">
|
||||
<div class="item">
|
||||
<span>联系方式</span>
|
||||
<span class="phones" v-if="data.resident && data.resident.phone" @click="callPhone(data.resident.phone)">{{ data.resident.phone }}</span>
|
||||
<div class="item">
|
||||
<span class="label">民族</span>
|
||||
<span class="value" v-if="data.resident && data.resident.nation"> {{ $dict.getLabel('nation', data.resident.nation) }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<span class="label">文化程度</span>
|
||||
<span class="value" v-if="data.resident && data.resident.education">{{ $dict.getLabel('education', data.resident.education) }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<span>婚姻状况</span>
|
||||
<span class="value" v-if="data.resident && data.resident.maritalStatus">{{ $dict.getLabel('maritalStatus', data.resident.maritalStatus) }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<span class="label">政治面貌</span>
|
||||
<span class="value" v-if="data.resident && data.resident.politicsStatus">{{ $dict.getLabel('politicsStatus', data.resident.politicsStatus) }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<span class="label">兵役状况</span>
|
||||
<span class="value" v-if="data.resident && data.resident.militaryStatus">{{ $dict.getLabel('militaryStatus', data.resident.militaryStatus) }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<span class="label">宗教信仰</span>
|
||||
<span class="value" v-if="data.resident && data.resident.faithType">{{ $dict.getLabel('faithType', data.resident.faithType) }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<span class="label">职业</span>
|
||||
<span class="value" v-if="data.resident && data.resident.job">{{ $dict.getLabel('job', data.resident.job) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<span class="label">现住址</span>
|
||||
<span class="value" v-if="data.resident && data.resident.currentAreaName">{{ data.resident.currentAreaName }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<span class="label">现住详细地址</span>
|
||||
<span class="value" v-if="data.resident && data.resident.currentAddress">{{ data.resident.currentAddress }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<span class="label">户籍地址</span>
|
||||
<span class="value" v-if="data.resident && data.resident.householdAreaName">{{ data.resident.householdAreaName }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<span class="label">户籍详细地址</span>
|
||||
<span class="value" v-if="data.resident && data.resident.householdAddress">{{ data.resident.householdAddress }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item" v-if="type == 1 && data.resident.auditStatus != 0">
|
||||
<span class="label">处理结果</span>
|
||||
<span class="value">{{ data.resident.auditStatus == 1 ? '通过' : '不通过' }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item" v-if="type == 1 && data.resident.auditStatus != 0">
|
||||
<span class="label">原因</span>
|
||||
</div>
|
||||
<div class="item">{{data.resident.auditOpinion || ''}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 特殊人群 -->
|
||||
<div v-if="tabIndex != 0 && tabList && tabList.length">
|
||||
<div class="spacial" v-for="(item,index) in tabList" :key="index" v-if="tabIndex == index">
|
||||
<div class="specialList" v-for="(t,indexs) in item.tableInfos" :key="indexs" v-if="item.tableInfos && item.tableInfos.length">
|
||||
<div class="spacial-row">
|
||||
<div>{{ t.fieldName }}</div>
|
||||
<div>{{ t.fieldValue }}</div>
|
||||
|
||||
<div class="bottom">
|
||||
<div class="hint">联络信息</div>
|
||||
|
||||
<div class="contents">
|
||||
<div class="item">
|
||||
<span>联系方式</span>
|
||||
<span class="phones" v-if="data.resident && data.resident.phone" @click="callPhone(data.resident.phone)">{{ data.resident.phone }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<span class="label">现住址</span>
|
||||
<span class="value" v-if="data.resident && data.resident.currentAreaName">{{ data.resident.currentAreaName }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<span class="label">现住详细地址</span>
|
||||
<span class="value" v-if="data.resident && data.resident.currentAddress">{{ data.resident.currentAddress }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<span class="label">户籍地址</span>
|
||||
<span class="value" v-if="data.resident && data.resident.householdAreaName">{{ data.resident.householdAreaName }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<span class="label">户籍详细地址</span>
|
||||
<span class="value" v-if="data.resident && data.resident.householdAddress">{{ data.resident.householdAddress }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item" v-if="type == 1 && data.resident.auditStatus != 0">
|
||||
<span class="label">处理结果</span>
|
||||
<span class="value">{{ data.resident.auditStatus == 1 ? '通过' : '不通过' }}</span>
|
||||
</div>
|
||||
|
||||
<div class="item" v-if="type == 1 && data.resident.auditStatus != 0">
|
||||
<span class="label">原因</span>
|
||||
</div>
|
||||
<div class="item">{{data.resident.auditOpinion || ''}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 特殊人群 -->
|
||||
<div v-if="tabIndex != 0 && tabList && tabList.length">
|
||||
<div class="spacial" v-for="(item,index) in tabList" :key="index" v-if="tabIndex == index">
|
||||
<div class="specialList" v-for="(t,indexs) in item.tableInfos" :key="indexs" v-if="item.tableInfos && item.tableInfos.length">
|
||||
<div class="spacial-row">
|
||||
<div>{{ t.fieldName }}</div>
|
||||
<div>{{ t.fieldValue }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="pad-b112" v-if="data.resident.auditStatus == 0 && type == 1"></div>
|
||||
<!-- <div class="pad-b112" v-if="data.resident.auditStatus == 0 && type == 1"></div>
|
||||
<div class="footer" v-if="data.resident.auditStatus == 0 && type == 1">
|
||||
<div @click="toContent">不通过</div>
|
||||
<div class="pass" @click="examine(1)">通过</div>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -175,8 +169,6 @@ export default {
|
||||
},
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
watch: {},
|
||||
onLoad(o) {
|
||||
this.id = o.id
|
||||
this.type = o.type
|
||||
@@ -243,20 +235,23 @@ export default {
|
||||
<style scoped lang="scss">
|
||||
.DetailPeople {
|
||||
height: 100%;
|
||||
background: #fff;
|
||||
.header-content-bg {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
position: fixed;
|
||||
z-index: -1;
|
||||
img {
|
||||
width: 100%;
|
||||
height: 592px;
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
height: 592px;
|
||||
}
|
||||
}
|
||||
.top {
|
||||
display: flex;
|
||||
padding: 48px 32px 32px 32px;
|
||||
box-sizing: border-box;
|
||||
width: calc(100% - 64px);
|
||||
margin: 16px 0 32px 32px;
|
||||
border-radius: 16px;
|
||||
background-color: #fff;
|
||||
.photos {
|
||||
img {
|
||||
width: 112px;
|
||||
@@ -274,75 +269,88 @@ export default {
|
||||
justify-content: space-between;
|
||||
.fileStatuss {
|
||||
display: inline-block;
|
||||
margin-left: 30px;
|
||||
color: #ff4466;
|
||||
background: #ffecef;
|
||||
border-radius: 8px;
|
||||
width: 120px;
|
||||
height: 40px;
|
||||
width: 88px;
|
||||
line-height: 40px;
|
||||
text-align: center;
|
||||
background: #FFECEF;
|
||||
border-radius: 8px;
|
||||
font-family: PingFangSC-Regular;
|
||||
font-weight: 400;
|
||||
font-size: 28px;
|
||||
font-size: 24px;
|
||||
color: #F46;
|
||||
margin-right: 16px;
|
||||
}
|
||||
.names {
|
||||
font-size: 32px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.householdNames {
|
||||
margin-left: 30px;
|
||||
font-size: 26px;
|
||||
line-height: 44px;
|
||||
font-family: PingFangSC-Medium;
|
||||
font-weight: 500;
|
||||
color: #5aad6a;
|
||||
font-size: 32px;
|
||||
color: #5AAD6A;
|
||||
}
|
||||
}
|
||||
.rightBottom {
|
||||
margin-top: 16px;
|
||||
margin-top: 8px;
|
||||
line-height: 40px;
|
||||
font-family: PingFangSC-Regular;
|
||||
font-size: 28px;
|
||||
color: #999;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.user-content {
|
||||
width: calc(100% - 64px);
|
||||
border-radius: 16px;
|
||||
background-color: #fff;
|
||||
padding-bottom: 64px;
|
||||
margin: 0 0 68px 32px;
|
||||
}
|
||||
|
||||
.tab-list{
|
||||
padding-top: 32px;
|
||||
display: flex;
|
||||
word-wrap: nowrap;
|
||||
overflow-x: scroll;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
.tab-item{
|
||||
display: inline-block;
|
||||
width: 148px;
|
||||
height: 136px;
|
||||
background-color: #F8F9FB;
|
||||
border-radius: 8px;
|
||||
text-align: center;
|
||||
margin-left: 32px;
|
||||
img{
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
margin-top: 30px;
|
||||
padding-top: 32px;
|
||||
display: flex;
|
||||
word-wrap: nowrap;
|
||||
overflow-x: scroll;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
.tab-item{
|
||||
display: inline-block;
|
||||
width: 148px;
|
||||
height: 136px;
|
||||
background-color: #F8F9FB;
|
||||
border-radius: 8px;
|
||||
text-align: center;
|
||||
margin-left: 32px;
|
||||
img{
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
margin-top: 30px;
|
||||
}
|
||||
p{
|
||||
font-size: 22px;
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #C5C9CD;
|
||||
line-height: 32px;
|
||||
margin-top: 8px;
|
||||
}
|
||||
}
|
||||
p{
|
||||
font-size: 22px;
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #C5C9CD;
|
||||
line-height: 32px;
|
||||
margin-top: 8px;
|
||||
.type {
|
||||
padding: 0 10px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space:nowrap;
|
||||
}
|
||||
.active{
|
||||
background-color: #357CE3;
|
||||
p{
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
.type {
|
||||
padding: 0 10px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space:nowrap;
|
||||
}
|
||||
.active{
|
||||
background-color: #357CE3;
|
||||
p{
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.line {
|
||||
height: 8px;
|
||||
@@ -354,8 +362,12 @@ export default {
|
||||
padding: 0 32px;
|
||||
|
||||
.hint {
|
||||
font-weight: 600;
|
||||
padding: 32px 0;
|
||||
font-family: PingFangSC-SNaNpxibold;
|
||||
font-weight: 600;
|
||||
font-size: 32px;
|
||||
color: #333;
|
||||
line-height: 44px;
|
||||
}
|
||||
|
||||
.contents {
|
||||
@@ -363,26 +375,27 @@ export default {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 14px 0;
|
||||
line-height: 44px;
|
||||
font-family: PingFangSC-Regular;
|
||||
font-size: 32px;
|
||||
color: #999;
|
||||
.phones {
|
||||
color: #3d94fb;
|
||||
}
|
||||
.label{
|
||||
width: 200px;
|
||||
color: #999;
|
||||
}
|
||||
.value{
|
||||
width: calc(100% - 200px);
|
||||
text-align: right;
|
||||
word-break: break-all;
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.lines {
|
||||
height: 4px;
|
||||
background: #f5f5f5;
|
||||
}
|
||||
|
||||
.spacial {
|
||||
margin-top: 30px;
|
||||
.specialList {
|
||||
|
||||
@@ -48,8 +48,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="dataes">
|
||||
<div class="datass" v-for="(item, index) in datas" :key="index" @click="toDetailCard(item)">
|
||||
<div class="left">
|
||||
@@ -164,7 +162,6 @@ export default {
|
||||
return btn
|
||||
}
|
||||
},
|
||||
watch: {},
|
||||
onLoad() {
|
||||
this.areaId = this.user.areaId
|
||||
this.areaName = this.user.areaName
|
||||
@@ -239,7 +236,7 @@ export default {
|
||||
uni.navigateTo({url: `./Add?id=${id}&type=${residentType}`})
|
||||
},
|
||||
del(id) {
|
||||
this.$confirm('确定删除该数据?').then(() => {
|
||||
this.$dialog.confirm('确定删除该数据?').then(() => {
|
||||
uni.showLoading()
|
||||
this.$instance.post(`/app/appresident/delete?ids=${id}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
@@ -269,12 +266,11 @@ export default {
|
||||
|
||||
.header-content-bg {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
position: fixed;
|
||||
z-index: -1;
|
||||
img {
|
||||
width: 100%;
|
||||
height: 592px;
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -5,15 +5,26 @@
|
||||
<div class="header-content-bg">
|
||||
<img src="https://cdn.sinoecare.com/i/2024/07/12/6690a1303d423.png" alt="">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- <AiEmpty class="emptyWrap" v-else></AiEmpty> -->
|
||||
<div class="footer">
|
||||
<div class="btn">新增标签组</div>
|
||||
<div class="list-content">
|
||||
<div class="item" v-for="(item, index) in list" :key="index">
|
||||
<div class="title">{{item.labelName}}</div>
|
||||
<div class="btn">
|
||||
<img src="https://cdn.sinoecare.com/i/2024/07/16/6696151a1a160.png" alt="" @click="toAdd(item.id)">
|
||||
<img src="https://cdn.sinoecare.com/i/2024/07/16/6696151964a8b.png" alt="" @click="del(item.id)">
|
||||
</div>
|
||||
<!-- <div class="tag-list">
|
||||
<div class="item-tag">122</div>
|
||||
<div class="item-tag">122</div>
|
||||
<div class="item-tag">122</div>
|
||||
</div> -->
|
||||
<div class="info">创建人:{{item.createUserName}}</div>
|
||||
<div class="info">创建时间:{{item.createTime}}</div>
|
||||
</div>
|
||||
<AiEmpty v-if="!list.length"></AiEmpty>
|
||||
</div>
|
||||
<div class="footer" @click="toAdd('')">
|
||||
<div class="btn">新增标签</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -31,14 +42,20 @@ export default {
|
||||
backgroundSize: 'cover',
|
||||
},
|
||||
current: 1,
|
||||
pages: 2
|
||||
pages: 2,
|
||||
list: []
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(['user']),
|
||||
},
|
||||
onLoad() {
|
||||
|
||||
this.getList()
|
||||
uni.$on('updateTag', ()=>{
|
||||
this.current = 1
|
||||
this.pages = 2
|
||||
this.getList()
|
||||
})
|
||||
},
|
||||
onShow() {
|
||||
uni.setNavigationBarColor({
|
||||
@@ -49,7 +66,7 @@ export default {
|
||||
methods: {
|
||||
getList() {
|
||||
if(this.current > this.pages) return
|
||||
this.$instance.post('/app/appresident/list', null, {
|
||||
this.$instance.post('app/appresidentlabelinfo/list', null, {
|
||||
params: {
|
||||
size: 20,
|
||||
current: this.current,
|
||||
@@ -57,16 +74,29 @@ export default {
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
res.data.records.map((item) => {
|
||||
item.isCheck = false
|
||||
})
|
||||
// res.data.records.map((item) => {
|
||||
// item.isCheck = false
|
||||
// })
|
||||
this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records
|
||||
|
||||
this.pages = res.data.pages
|
||||
}
|
||||
})
|
||||
},
|
||||
toAdd(id) {
|
||||
uni.navigateTo({url: `./AddTag?id=${id}`})
|
||||
},
|
||||
del(id) {
|
||||
this.$dialog.confirm({content: "确定删除该数据?"}).then(() => {
|
||||
this.$instance.post(`app/appresidentlabelinfo/delete?ids=${id}`).then(res => {
|
||||
if (res?.code == 0) {
|
||||
this.$u.toast("删除成功!")
|
||||
this.current = 1
|
||||
this.getList()
|
||||
}
|
||||
})
|
||||
}).catch(() => 0)
|
||||
}
|
||||
|
||||
},
|
||||
onReachBottom() {
|
||||
// this.current = this.current + 1
|
||||
@@ -80,12 +110,60 @@ export default {
|
||||
height: 100%;
|
||||
.header-content-bg {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
position: fixed;
|
||||
img {
|
||||
width: 100%;
|
||||
height: 592px;
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
}
|
||||
}
|
||||
.list-content {
|
||||
padding: 16px 0 220px 0;
|
||||
.item {
|
||||
width: calc(100% - 64px);
|
||||
background: #FFF;
|
||||
border-radius: 16px;
|
||||
padding: 32px 32px 30px 32px;
|
||||
margin: 0 0 32px 32px;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
.title {
|
||||
width: calc(100% - 88px);
|
||||
line-height: 44px;
|
||||
font-family: PingFangSC-Medium;
|
||||
font-weight: 500;
|
||||
font-size: 32px;
|
||||
color: #333;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.info {
|
||||
line-height: 44px;
|
||||
color: #999;
|
||||
font-size: 26px;
|
||||
margin-top: 8px;
|
||||
}
|
||||
.tag-list {
|
||||
.item-tag {
|
||||
display: inline-block;
|
||||
padding: 4px 10px;
|
||||
line-height: 34px;
|
||||
font-family: PingFangSC-Regular;
|
||||
font-weight: 400;
|
||||
font-size: 24px;
|
||||
color: #8891A1;
|
||||
margin: 0 16px 16px 0;
|
||||
background-color: #F0F2F5;
|
||||
}
|
||||
}
|
||||
.btn {
|
||||
position: absolute;
|
||||
top: 32px;
|
||||
right: 32px;
|
||||
img {
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
margin-left: 32px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.footer {
|
||||
|
||||
@@ -233,7 +233,7 @@ export default {
|
||||
})
|
||||
},
|
||||
del(row) {
|
||||
this.$confirm('确定删除该数据?').then(() => {
|
||||
this.$dialog.confirm('确定删除该数据?').then(() => {
|
||||
uni.showLoading({})
|
||||
let {id: ids, appId} = row
|
||||
this.$instance.post("/app/appapplicationinfo/delete", null, {
|
||||
|
||||
Reference in New Issue
Block a user