[FIX]选择申请人信息带入

This commit is contained in:
yuweiqi
2020-02-04 13:29:24 +08:00
parent e801fd93e0
commit a7cd37d0f5
3 changed files with 41 additions and 8 deletions

View File

@@ -426,6 +426,7 @@ import { idToData } from '@/views/ebiz/customer/js/verification'
import BankCardScan from '@/components/ebiz/sale/BankCardScan'
import { getBankList } from '@/api/ebiz/sale/sale'
import { getIdentityInfo, onDateConfirm, effectiveDataTypeChange } from '../sale/js/methods'
import occupationList from '@/components/ebiz/occipation/data/occupation'
export default {
name: 'applyInfo',
@@ -488,10 +489,10 @@ export default {
applyerCertiStartDate: '', // 证件起始日期
applyerCertiEndDate: '', // 证件截止日期
applyerRevenueType: '01', //个人税收居民身份
applyerOccuCode: '', //职业
applyerOccuName: '',
lifeGrade: '',
healthGrade: '',
applyerOccuCode: '', //职业类型编码
applyerOccuName: '', //职业类别名称
lifeGrade: '', //寿险等级
healthGrade: '', //健康等级
applyerEmail: '', // 电子邮箱
applyerMobile: '', // 联系电话
applyerNationatlity: 'CHN', // 国家/地区
@@ -631,6 +632,25 @@ export default {
this.customerNo = Detail[0][0].customerNo
this.DataIndex = Detail[0][1]
this.customerShowPicker = false
this.userInfo.applyerName = Detail[0][0].customerName
this.userInfo.applyerSex = Detail[0][0].customerSex
this.userInfo.applyerCertiType = Detail[0][0].idType
this.userInfo.applyerCertiCode = Detail[0][0].idNo
this.userInfo.applyerBirthday = Detail[0][0].customerBirthday //出生日期
this.effectiveDateType = Detail[0][0].isEndDate == '9999-01-01' //是否长期
this.userInfo.applyerCertiEndDate = Detail[0][0].isEndDate == '9999-01-01' ? '2010-01-01' : Detail[0][0].isEndDate //截止日期
this.userInfo.applyerNationatlity = Detail[0][0].nationality
this.userInfo.applyerEmail = Detail[0][0].customerEmail
this.userInfo.applyerMobile = Detail[0][0].customerMobile
this.userInfo.applyerAddr = Detail[0][0].homeAddress
this.userInfo.applyerOccuCode = Detail[0][0].occuCode //职业编码
let result = this.showOccuName(Detail[0][0].occuCode)
this.userInfo.applyerOccuName = result.applyerOccuName //职业名称
this.userInfo.lifeGrade = result.lifeGrade //
this.userInfo.healthGrade = result.healthGrade //
console.log('this.userInfo.applyerCertiEndDate == ', this.userInfo.applyerCertiEndDate)
/*
let data = {
customerNo: this.customerNo
// surrenderType: '0'
@@ -652,7 +672,20 @@ export default {
this.$toast(res.resultMessage)
}
})
// 字段取值
*/
},
//根据职业编码显示职业名称
showOccuName(occuCode) {
let firstTier = Number(occuCode.substr(0, 1)) - 1
let result
occupationList[firstTier].subs.forEach(item => {
if (item.subs[0].code == occuCode) {
result = { applyerOccuName: item.subs[0].name, lifeGrade: item.subs[0].lifeGrade, healthGrade: item.subs[0].healthGrade }
return
}
})
return result
},
//失焦验证身份证
getRelatedData(val) {
@@ -859,7 +892,7 @@ export default {
//长期状态改变时
effectiveDataTypeChange(val) {
if (val) {
this.userInfo.applyerCertiEndDate = '9999-09-09'
this.userInfo.applyerCertiEndDate = ''
this.certiexpiredateRequired = false
} else {
this.userInfo.applyerCertiEndDate = ''

View File

@@ -59,6 +59,7 @@
<FieldDatePicter
:v-validate="{ required: certiexpiredateRequired }"
required
label="证件截止日期"
name="证件截止日期"
:defaultDate="new Date()"
@@ -414,7 +415,7 @@ export default {
this.userInfo.insuredProvince = Detail[0][0].province //联系省
this.userInfo.insuredCity = Detail[0][0].city //联系市
this.userInfo.insuredCounty = Detail[0][0].area //联系区
this.effectiveDateType = Detail[0][0].isEndDate == '9999-01-01' ? true : false //是否长期
this.effectiveDateType = Detail[0][0].isEndDate == '9999-01-01' //是否长期
this.userInfo.certiTypeEndDate = Detail[0][0].isEndDate == '9999-01-01' ? '2010-01-01' : Detail[0][0].isEndDate //截止日期
this.userInfo.insuredOccuCode = Detail[0][0].occuCode //职业编码
let result = this.showOccuName(Detail[0][0].occuCode)

View File

@@ -703,7 +703,6 @@ export default {
this.getRelatedData(this.userInfo.idNo)
},
nextStep() {
// console.log(this.userInfo.idType)
console.log(this.userInfo.salarySource)
console.log(this.userInfo.otherSalarySource)