BUG 29463
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="add">
|
<div class="add">
|
||||||
<div class="form">
|
<div class="form">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<!-- <div class="form-item" v-if="!id">
|
<!-- <div class="form-item" v-if="!id">
|
||||||
@@ -69,7 +69,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<input placeholder="请输入" type="idcard" v-model="form.idNumber" :maxlength="20"
|
<input placeholder="请输入" type="idcard" v-model="form.idNumber" :maxlength="20"
|
||||||
placeholder-style="color: #999; font-size: 30rpx;" @input="changeIdNumber" :disabled ="userList.length? true : false" />
|
placeholder-style="color: #999; font-size: 30rpx;" @input="changeIdNumber" :disabled="userList.length? true : false"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -80,7 +80,7 @@
|
|||||||
<span>性别</span>
|
<span>性别</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<span :style="form.sex === '' ? 'color:#999;' : 'color:#333;' ">{{$dict.getLabel('sex', form.sex) || '自动识别'}}</span>
|
<span :style="form.sex === '' ? 'color:#999;' : 'color:#333;' ">{{ $dict.getLabel('sex', form.sex) || '自动识别' }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -106,7 +106,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<!-- :areaId="user.areaId" v-model="form.currentAreaId"-->
|
<!-- :areaId="user.areaId" v-model="form.currentAreaId"-->
|
||||||
<AiAreaPicker ref="address" class="aiArea" :fullName.sync="form.currentAreaName" v-model="form.currentAreaId" :root="user.areaId" @select="onAreaChange">
|
<AiAreaPicker ref="address" class="aiArea" :fullName.sync="form.currentAreaName" v-model="form.currentAreaId" :root="user.areaId"
|
||||||
|
@select="onAreaChange">
|
||||||
<div class="aiArea">
|
<div class="aiArea">
|
||||||
<span class="label" style="color: #333;" v-if="form.currentAreaName">{{ form.currentAreaName }}</span>
|
<span class="label" style="color: #333;" v-if="form.currentAreaName">{{ form.currentAreaName }}</span>
|
||||||
<i v-else>请选择</i>
|
<i v-else>请选择</i>
|
||||||
@@ -177,7 +178,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group" >
|
<div class="form-group">
|
||||||
<div class="form-item">
|
<div class="form-item">
|
||||||
<div class="form-item__wrapper">
|
<div class="form-item__wrapper">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
@@ -200,7 +201,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="bottoms">
|
<div class="bottoms">
|
||||||
<div class="cards" v-for="(e, index) in helthList" :key="index">
|
<div class="cards" v-for="(e, index) in helthList" :key="index">
|
||||||
<div :style="{color:e.checked == true ? '#1174FE' : '#333'}" @click="userClick(e, index)" >{{ e.dictName }}</div>
|
<div :style="{color:e.checked == true ? '#1174FE' : '#333'}" @click="userClick(e, index)">{{ e.dictName }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -243,7 +244,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="bottoms">
|
<div class="bottoms">
|
||||||
<div class="cards" v-for="(e, index) in basicsCheckList" :key="index">
|
<div class="cards" v-for="(e, index) in basicsCheckList" :key="index">
|
||||||
<div :style="{color:e.checked == true ? '#1174FE' : '#333'}" @click="basicsCheck(e, index)" >{{ e.dictName }}</div>
|
<div :style="{color:e.checked == true ? '#1174FE' : '#333'}" @click="basicsCheck(e, index)">{{ e.dictName }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -260,7 +261,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="bottoms">
|
<div class="bottoms">
|
||||||
<div class="cards" v-for="(e, index) in guaranteeCheckList" :key="index">
|
<div class="cards" v-for="(e, index) in guaranteeCheckList" :key="index">
|
||||||
<div :style="{color:e.checked == true ? '#1174FE' : '#333'}" @click="guaranteeCheck(e, index)" >{{ e.dictName }}</div>
|
<div :style="{color:e.checked == true ? '#1174FE' : '#333'}" @click="guaranteeCheck(e, index)">{{ e.dictName }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -287,8 +288,10 @@
|
|||||||
<span>是否会讲普通话</span>
|
<span>是否会讲普通话</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<div class="check-item" :class="form.mandarin == '01' ? 'check-active' : '' " @click="form.mandarin='01'">是<img src="./components/img/check-icon.png" alt=""></div>
|
<div class="check-item" :class="form.mandarin == '01' ? 'check-active' : '' " @click="form.mandarin='01'">是<img
|
||||||
<div class="check-item" :class="form.mandarin != '01' ? 'check-active' : '' " @click="form.mandarin='02'">否<img src="./components/img/check-icon.png" alt=""></div>
|
src="./components/img/check-icon.png" alt=""></div>
|
||||||
|
<div class="check-item" :class="form.mandarin != '01' ? 'check-active' : '' " @click="form.mandarin='02'">否<img
|
||||||
|
src="./components/img/check-icon.png" alt=""></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -362,8 +365,10 @@
|
|||||||
<span>是否国外务工</span>
|
<span>是否国外务工</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<div class="check-item" :class="form.foreignWorkers == '01' ? 'check-active' : '' " @click="form.foreignWorkers='01'">是<img src="./components/img/check-icon.png" alt=""></div>
|
<div class="check-item" :class="form.foreignWorkers == '01' ? 'check-active' : '' " @click="form.foreignWorkers='01'">是<img
|
||||||
<div class="check-item" :class="form.foreignWorkers != '01' ? 'check-active' : '' " @click="form.foreignWorkers='02'">否<img src="./components/img/check-icon.png" alt=""></div>
|
src="./components/img/check-icon.png" alt=""></div>
|
||||||
|
<div class="check-item" :class="form.foreignWorkers != '01' ? 'check-active' : '' " @click="form.foreignWorkers='02'">否<img
|
||||||
|
src="./components/img/check-icon.png" alt=""></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -386,6 +391,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {mapState} from 'vuex'
|
import {mapState} from 'vuex'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -443,15 +449,15 @@ export default {
|
|||||||
photo: [],
|
photo: [],
|
||||||
flag: false,
|
flag: false,
|
||||||
helthList: [],
|
helthList: [],
|
||||||
namelist:[],
|
namelist: [],
|
||||||
basicsCheckList: [
|
basicsCheckList: [
|
||||||
{dictName: '城乡居民基本医疗保险', checked: false},
|
{dictName: '城乡居民基本医疗保险', checked: false},
|
||||||
{dictName: '城镇职工基本医疗保险',checked: false},
|
{dictName: '城镇职工基本医疗保险', checked: false},
|
||||||
{dictName: '大病保险',checked: false},
|
{dictName: '大病保险', checked: false},
|
||||||
{dictName: '商业补充医疗保险',checked: false},
|
{dictName: '商业补充医疗保险', checked: false},
|
||||||
{dictName: '城乡居民基本养老保险',checked: false},
|
{dictName: '城乡居民基本养老保险', checked: false},
|
||||||
{dictName: '城镇职工基本养老保险',checked: false},
|
{dictName: '城镇职工基本养老保险', checked: false},
|
||||||
{dictName: '享受人身意外保险补贴',checked: false},
|
{dictName: '享受人身意外保险补贴', checked: false},
|
||||||
],
|
],
|
||||||
basicsList: [],
|
basicsList: [],
|
||||||
guaranteeCheckList: [
|
guaranteeCheckList: [
|
||||||
@@ -473,16 +479,17 @@ export default {
|
|||||||
onLoad(query) {
|
onLoad(query) {
|
||||||
this.householdIdNumber = query.houseIdNumber
|
this.householdIdNumber = query.houseIdNumber
|
||||||
this.objectType = query.objectType
|
this.objectType = query.objectType
|
||||||
this.form.currentAreaId = this.user.areaId
|
this.$dict.load(['fpRelationship', 'riskEliminationMethod', 'fpRiskType', 'fpYesOrNo', 'fpNation', 'fpEducation', 'fpStudentsInSchool', 'fpHealth',
|
||||||
this.$dict.load(['fpRelationship','riskEliminationMethod', 'fpRiskType', 'fpYesOrNo', 'fpNation', 'fpEducation', 'fpStudentsInSchool', 'fpHealth',
|
|
||||||
'fpLaborSkills', 'fpPoliticalOutlook', 'sex', 'fpHealth']).then(() => {
|
'fpLaborSkills', 'fpPoliticalOutlook', 'sex', 'fpHealth']).then(() => {
|
||||||
if(query.id) {
|
if (query.id) {
|
||||||
this.id = query.id
|
this.id = query.id
|
||||||
this.getInfo(query.id)
|
this.getInfo(query.id)
|
||||||
this.isEdit = true
|
this.isEdit = true
|
||||||
|
} else {
|
||||||
|
this.form.currentAreaId = this.user.areaId
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.$dict.getDict('fpHealth').map((item) =>{
|
this.$dict.getDict('fpHealth').map((item) => {
|
||||||
this.helthList.push({
|
this.helthList.push({
|
||||||
dictName: item.dictName,
|
dictName: item.dictName,
|
||||||
dictValue: item.dictValue,
|
dictValue: item.dictValue,
|
||||||
@@ -512,7 +519,7 @@ export default {
|
|||||||
userClick(row, i) {
|
userClick(row, i) {
|
||||||
if (!this.helthList[i].checked) {
|
if (!this.helthList[i].checked) {
|
||||||
this.helthList[i].checked = true // 确定
|
this.helthList[i].checked = true // 确定
|
||||||
this.namelist.push({ dictValue: row.dictValue, dictName: row.dictName }) // 赋值
|
this.namelist.push({dictValue: row.dictValue, dictName: row.dictName}) // 赋值
|
||||||
} else {
|
} else {
|
||||||
this.helthList[i].checked = false // 取消
|
this.helthList[i].checked = false // 取消
|
||||||
this.namelist.map((item, index) => {
|
this.namelist.map((item, index) => {
|
||||||
@@ -522,7 +529,7 @@ export default {
|
|||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
this.form.healthyStatus = this.namelist.map(v=>v.dictValue).join(',')
|
this.form.healthyStatus = this.namelist.map(v => v.dictValue).join(',')
|
||||||
},
|
},
|
||||||
|
|
||||||
// 医疗保险
|
// 医疗保险
|
||||||
@@ -536,10 +543,10 @@ export default {
|
|||||||
getInfo(id) {
|
getInfo(id) {
|
||||||
this.$http.post(`/app/apppreventionreturntopoverty/queryDetailById?id=${id}`).then(res => {
|
this.$http.post(`/app/apppreventionreturntopoverty/queryDetailById?id=${id}`).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
this.form = { ...res.data }
|
this.form = {...res.data}
|
||||||
if(this.form.photo) {
|
if (this.form.photo) {
|
||||||
this.form.files = [{url: this.form.photo}]
|
this.form.files = [{url: this.form.photo}]
|
||||||
}else {
|
} else {
|
||||||
this.form.files = []
|
this.form.files = []
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -557,9 +564,9 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
checkInit(formName, list, index) {
|
checkInit(formName, list, index) {
|
||||||
if(list[index].checked) {
|
if (list[index].checked) {
|
||||||
this.form[formName] = '01'
|
this.form[formName] = '01'
|
||||||
}else {
|
} else {
|
||||||
this.form[formName] = '02'
|
this.form[formName] = '02'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -577,14 +584,14 @@ export default {
|
|||||||
if (this.form.phone.length == 11 && !regTel.test(this.form.phone)) {
|
if (this.form.phone.length == 11 && !regTel.test(this.form.phone)) {
|
||||||
return this.$u.toast('请输入正确的手机号')
|
return this.$u.toast('请输入正确的手机号')
|
||||||
}
|
}
|
||||||
if(!/[^0]0{0,2}$/.test(this.form.currentAreaId)) {
|
if (!/[^0]0{0,2}$/.test(this.form.currentAreaId)) {
|
||||||
return this.$u.toast('现住址必须选到村级')
|
return this.$u.toast('现住址必须选到村级')
|
||||||
}
|
}
|
||||||
|
|
||||||
if(this.form.files.length) {
|
if (this.form.files.length) {
|
||||||
this.form.photo = this.form.files[0].url
|
this.form.photo = this.form.files[0].url
|
||||||
}
|
}
|
||||||
if(this.photo.length) {
|
if (this.photo.length) {
|
||||||
this.form.photo = this.photo[0].accessUrl
|
this.form.photo = this.photo[0].accessUrl
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -615,24 +622,24 @@ export default {
|
|||||||
|
|
||||||
this.form.guaranteeCheck = this.guaranteeList.join(',')
|
this.form.guaranteeCheck = this.guaranteeList.join(',')
|
||||||
|
|
||||||
this.checkInit('jcbxCxyiliao',this.basicsCheckList, 0)
|
this.checkInit('jcbxCxyiliao', this.basicsCheckList, 0)
|
||||||
this.checkInit('jcbxCzyiliao',this.basicsCheckList, 1)
|
this.checkInit('jcbxCzyiliao', this.basicsCheckList, 1)
|
||||||
this.checkInit('jcbxDabing',this.basicsCheckList, 2)
|
this.checkInit('jcbxDabing', this.basicsCheckList, 2)
|
||||||
this.checkInit('jcbxShangye',this.basicsCheckList, 3)
|
this.checkInit('jcbxShangye', this.basicsCheckList, 3)
|
||||||
this.checkInit('jcbxCxyanglao',this.basicsCheckList, 4)
|
this.checkInit('jcbxCxyanglao', this.basicsCheckList, 4)
|
||||||
this.checkInit('jcbxCzyanglao',this.basicsCheckList, 5)
|
this.checkInit('jcbxCzyanglao', this.basicsCheckList, 5)
|
||||||
this.checkInit('jcbxRenshenyiwai',this.basicsCheckList, 6)
|
this.checkInit('jcbxRenshenyiwai', this.basicsCheckList, 6)
|
||||||
|
|
||||||
this.checkInit('bzcsNongcundibao',this.guaranteeCheckList, 0)
|
this.checkInit('bzcsNongcundibao', this.guaranteeCheckList, 0)
|
||||||
this.checkInit('bzcsTekungongyang',this.guaranteeCheckList, 1)
|
this.checkInit('bzcsTekungongyang', this.guaranteeCheckList, 1)
|
||||||
this.checkInit('bzcsWubaohu',this.guaranteeCheckList, 2)
|
this.checkInit('bzcsWubaohu', this.guaranteeCheckList, 2)
|
||||||
this.checkInit('bzcsYiliaojiuzhu',this.guaranteeCheckList, 3)
|
this.checkInit('bzcsYiliaojiuzhu', this.guaranteeCheckList, 3)
|
||||||
this.checkInit('bzcsQita',this.guaranteeCheckList, 4)
|
this.checkInit('bzcsQita', this.guaranteeCheckList, 4)
|
||||||
|
|
||||||
this.$http.post('/app/apppreventionreturntopoverty/addByEwechat', {
|
this.$http.post('/app/apppreventionreturntopoverty/addByEwechat', {
|
||||||
...this.form,
|
...this.form,
|
||||||
id: this.id || '',
|
id: this.id || '',
|
||||||
girdId: this.user.girdCheckType == 1? this.user.girdId:'',
|
girdId: this.user.girdCheckType == 1 ? this.user.girdId : '',
|
||||||
householdIdNumber: this.householdIdNumber
|
householdIdNumber: this.householdIdNumber
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
@@ -718,20 +725,24 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.form-item__wrappers {
|
.form-item__wrappers {
|
||||||
padding-right:30px;
|
padding-right: 30px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
.top {
|
.top {
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
padding: 32px 0;
|
padding: 32px 0;
|
||||||
}
|
}
|
||||||
.bottoms{
|
|
||||||
|
.bottoms {
|
||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
|
|
||||||
.cards {
|
.cards {
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
border: 1px solid #CCCCCC;
|
border: 1px solid #CCCCCC;
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
|
|
||||||
.changeActive {
|
.changeActive {
|
||||||
color: #1174FE;
|
color: #1174FE;
|
||||||
border: 1px solid #1174FE;
|
border: 1px solid #1174FE;
|
||||||
@@ -750,7 +761,8 @@ export default {
|
|||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
color: #999999;
|
color: #999999;
|
||||||
}
|
}
|
||||||
.check-item{
|
|
||||||
|
.check-item {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 140px;
|
width: 140px;
|
||||||
height: 64px;
|
height: 64px;
|
||||||
@@ -763,17 +775,21 @@ export default {
|
|||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: #333;
|
color: #333;
|
||||||
position: relative;
|
position: relative;
|
||||||
img{
|
|
||||||
|
img {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.check-item:nth-of-type(1) {
|
.check-item:nth-of-type(1) {
|
||||||
margin-right: 36px;
|
margin-right: 36px;
|
||||||
}
|
}
|
||||||
.check-active{
|
|
||||||
|
.check-active {
|
||||||
background: #E7F1FE;
|
background: #E7F1FE;
|
||||||
color: #1174FE;
|
color: #1174FE;
|
||||||
img{
|
|
||||||
|
img {
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
@@ -867,13 +883,15 @@ export default {
|
|||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
background: #3192F4;
|
background: #3192F4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.upload {
|
.upload {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 10px 32px 32px 32px;
|
padding: 10px 32px 32px 32px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
.border-b0{
|
|
||||||
border-bottom: 0!important;
|
.border-b0 {
|
||||||
|
border-bottom: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .familyMember .item {
|
::v-deep .familyMember .item {
|
||||||
|
|||||||
Reference in New Issue
Block a user