建平需求变更调整完毕

This commit is contained in:
aixianling
2022-08-15 18:39:33 +08:00
parent 25e45267c1
commit 3544a290ab
13 changed files with 599 additions and 389 deletions

View File

@@ -1,5 +1,5 @@
<template>
<div class="detail" v-if="pageShow" :class="[isFrom ? 'active' : '']">
<div class="detail" v-if="pageShow" :class="{active:isFrom}">
<!-- <div class="tab" v-if="!isFrom">
<span @click="changeTab(0)" :class="[currIndex === 0 ? 'active' : '']">基本信息</span>
<span @click="changeTab(1)" :class="[currIndex === 1 ? 'active' : '']">走访日志</span>
@@ -10,35 +10,28 @@
<div class="item-header item-avatar">
<div class="left">
<!-- <img :src="info.photo" alt="" v-if="info.photo" /> -->
<img :src="$cdn + 'avatar.png'" />
<img :src="$cdn + 'avatar.png'"/>
<div class="left-right">
<h2>{{ info.name }}</h2>
<p style="color: #2979ff;" @click="callPhone(info.phone)"><u-icon name="phone" color="#2979ff" size="28"></u-icon>{{ info.phone }}</p>
<p style="color: #2979ff;" @click="callPhone(info.phone)">
<u-icon name="phone" color="#2979ff" size="28"></u-icon>
{{ info.phone }}
</p>
</div>
</div>
<span @click="linkTo(`./residentDetail?id=${info.id}`)">详情</span>
</div>
<AiItem label="现住地址">{{ info.countyName + info.townName + info.villageName }}</AiItem>
<AiItem label="详细地址">{{ info.currentAddress }}</AiItem>
<div class="item-info">
<label>现住地址</label>
<span>{{ info.countyName + info.townName + info.villageName }}</span>
<span></span>
</div>
<div class="item-info">
<label>详细地址</label>
<span>{{ info.currentAddress }}</span>
</div>
</div>
<!-- <div class="item-wrapper">
<div class="item-header">
<div class="left">
<h2>帮扶措施</h2>
</div>
<span @click="toLogList()" v-if="$permissions('app_apppreventionreturntopovertylog_detail')">查看</span>
</div>
<div class="item-info">
<label>采取措施</label>
<span>{{ info.helpLog? $dict.getLabel('fpAssistanceMeasures',info.helpLog.operationDesc): '-' }}</span>
</div>
</div> -->
<div class="item-wrapper">
<div class="item-header">
<div class="left">
@@ -112,7 +105,6 @@
</div>
</div>
<!-- 风险解除 -->
<!-- v-if="info.status == 3" -->
<div class="item-wrapper" v-if="info.status == 3">
<div class="item-header">
<div class="left">
@@ -131,7 +123,11 @@
</div>
</div>
</div>
<div class="item-wrapper" v-if="info.status==4">
<AiItem label="审批人" :border="false">{{ info.auditUserName }}</AiItem>
<AiItem label="驳回日期" :border="false">{{ info.auditTime }}</AiItem>
<AiItem label="驳回理由" :border="false" top-label>{{ info.auditOpinion }}</AiItem>
</div>
<!-- <div class="tab-content__item" v-show="currIndex === 1 && info.status!=5">
<div class="log-item" v-for="(item, index) in list" :key="index">
<div class="log-item__wrapper">
@@ -162,7 +158,7 @@
<AiFixedBtn v-if="currIndex === 1">
<div class="addBtn iconfont iconfont-iconfangda" @tap="toAddLog()"></div>
</AiFixedBtn>
<!-- 0待纳入1监测中2待解除3已解除4已驳回 -->
<!-- 0待纳入1监测中2待解除3已解除4已驳回 -->
<div v-if="checkType == 1 && currIndex != 1"> <!-- 网格员 -->
<div class="footer-btn" v-if="info.status == 1">
<div class="confirm-btn" @click="toAddView('您确认要申请解除此监测对象的风险吗?', '')">申请解除风险</div>
@@ -176,7 +172,6 @@
<div class="confirm-btn" @click="toAddView('您确认要申请纳入此监测对象吗?', '')">申请纳入监测</div>
</div>
</div>
<div v-if="checkType == 2 && currIndex != 1"> <!-- 网格长 -->
<div class="footer-btn" v-if="info.status == 0 && userInfo != ''">
@@ -201,15 +196,18 @@
<div class="confirm-btn" @click="toAddView('您确认要将此居民纳入监测对象吗?', 1)">纳入监测</div>
</div>
</div>
</div>
<AiEmpty v-else/>
</template>
<script>
import { mapState } from 'vuex'
import {mapState} from 'vuex'
import AiGroup from "../../components/AiGroup";
import AiItem from "../../components/AiItem";
export default {
name: 'detail',
components: {AiItem, AiGroup},
data() {
return {
info: {},
@@ -241,7 +239,7 @@ export default {
return false
}
return (this.info.industrialAssistance || this.info.healthAssistance || this.info.employmentAssistance || this.info.educationalAssistance
|| this.info.financialAssistance || this.info.socialAssistance || this.info.publicWelfarePostAssistance);
|| this.info.financialAssistance || this.info.socialAssistance || this.info.publicWelfarePostAssistance);
},
isFamilySituation() {
@@ -262,9 +260,9 @@ export default {
return false
}
return (this.info.income1 || this.info.income2 || this.info.income3 || this.info.income4
|| this.info.income5|| this.info.income6|| this.info.income7|| this.info.income8 || this.info.income9 ||
this.info.income10 || this.info.income11 || this.info.income12 ||
this.info.income13 || this.info.income14 || this.info.income15)
|| this.info.income5 || this.info.income6 || this.info.income7 || this.info.income8 || this.info.income9 ||
this.info.income10 || this.info.income11 || this.info.income12 ||
this.info.income13 || this.info.income14 || this.info.income15)
},
moveRisk() {
@@ -272,7 +270,7 @@ export default {
return false
}
return (this.info.fxxcIncome1 || this.info.fxxcIncome2 || this.info.fxxcIncome3 || this.info.fxxcIncome4
|| this.info.fxxcIncome5 || this.info.fxxcIncome6 || this.info.fxxcIncome7)
|| this.info.fxxcIncome5 || this.info.fxxcIncome6 || this.info.fxxcIncome7)
}
},
@@ -282,7 +280,7 @@ export default {
this.isFrom = true
}
this.$dict.load(['fpType', 'riskEliminationMethod', 'fpRiskType', 'fpYesOrNo', 'fpNation', 'fpEducation', 'fpStudentsInSchool', 'fpHealth',
'fpLaborSkills', 'fpPoliticalOutlook', 'fpIndustrialAssistance', 'fpHealthAssistance','fpAssistanceMeasures']).then(() => {
'fpLaborSkills', 'fpPoliticalOutlook', 'fpIndustrialAssistance', 'fpHealthAssistance', 'fpAssistanceMeasures']).then(() => {
this.isGirdUser()
this.getInfo()
})
@@ -382,12 +380,11 @@ export default {
getInfo() {
this.$http.post(`/app/apppreventionreturntopoverty/queryDetailById?id=${this.id}`).then(res => {
if (res.code === 0) {
if (res?.data) {
this.info = res.data
let ylbxCount = 0
let ylCount = 0
if(res.data.family && res.data.family.length) {
if (res.data.family && res.data.family.length) {
res.data.family.forEach(item => {
if (item.basicMedicalTreatment === '02') {
ylbxCount = ylbxCount + 1
@@ -396,11 +393,11 @@ export default {
ylCount = ylCount + 1
}
})
this.endNum = res.data.family.filter(item =>
(item.jcbxCxyiliao == '02' || '') && (item.jcbxCzyiliao == '02' || '')
this.endNum = res.data.family.filter(item =>
(item.jcbxCxyiliao == '02' || '') && (item.jcbxCzyiliao == '02' || '')
)
this.endNum = res.data.family.filter(v=>
(v.jcbxCxyanglao == '02' || '') && (v.jcbxCzyanglao == '02' || '')
this.endNum = res.data.family.filter(v =>
(v.jcbxCxyanglao == '02' || '') && (v.jcbxCzyanglao == '02' || '')
)
}
@@ -426,7 +423,7 @@ export default {
this.$confirm('', '您确认要要删除此监测对象的信息吗?').then(() => {
this.$http.post(`/app/apppreventionreturntopoverty/delete?ids=${this.id}`).then(res => {
if (res.code === 0) {
this.$u.toast('删除成功')
this.$u.toast('删除成功')
uni.$emit('reload')
setTimeout(() => {
uni.navigateBack()
@@ -436,7 +433,7 @@ export default {
})
},
toRemove(text, pass,type) {
toRemove(text, pass, type) {
this.$confirm('', text).then(() => {
uni.navigateTo({url: `./MonitorRemoveView?pass=${pass}&id=${this.info.id}&status=${this.info.status}&type=${type}`})
})
@@ -674,13 +671,15 @@ export default {
}
}
}
.view-all{
.view-all {
text-align: center;
font-size: 32px;
font-family: PingFangSC-Regular, PingFang SC;
color: #3975C6;
line-height: 44px;
img{
img {
width: 32px;
height: 32px;
margin-left: 8px;
@@ -688,11 +687,13 @@ export default {
transition: all 0.3s ease-in-out;
vertical-align: middle;
}
.img-active{
.img-active {
transform: rotate(0deg);
}
}
.footer-btn{
.footer-btn {
width: 100%;
height: 112px;
line-height: 112px;
@@ -702,7 +703,8 @@ export default {
position: fixed;
bottom: 0;
left: 0;
div{
div {
flex: 1;
text-align: center;
font-size: 32px;
@@ -710,10 +712,21 @@ export default {
font-weight: 400;
color: #333;
}
.confirm-btn{
.confirm-btn {
background-color: #3192F4;
color: #fff;
}
}
::v-deep.AiItem {
.normal {
padding-right: 0;
}
.label {
padding-left: 0;
}
}
}
</style>