diff --git a/src/views/ebiz/sale/AccountInformation.vue b/src/views/ebiz/sale/AccountInformation.vue index 8056ace5c..fc1944816 100644 --- a/src/views/ebiz/sale/AccountInformation.vue +++ b/src/views/ebiz/sale/AccountInformation.vue @@ -198,7 +198,7 @@ export default { this.accBankProvince = province.code this.accBankCity = city.code this.isAreaListShow = false - this.areaStr = province.name + city.name + county.name + this.areaStr = `${province.name}-${city.name}-${county.name}` }, closePop() { //关闭选择银行弹窗 diff --git a/src/views/ebiz/sale/AddBeneficiaryInfo.vue b/src/views/ebiz/sale/AddBeneficiaryInfo.vue index 9d4f1f53e..2d8b3e520 100644 --- a/src/views/ebiz/sale/AddBeneficiaryInfo.vue +++ b/src/views/ebiz/sale/AddBeneficiaryInfo.vue @@ -93,8 +93,18 @@
长期
- + + + + - - + /> - + + + + + + @@ -204,16 +230,13 @@ import FieldDatePicter from '@/components/ebiz/FieldDatePicter' import OccupationPicker from '@/components/ebiz/occipation/OccupationPicker' import DataDictionary from '@/assets/js/utils/data-dictionary' import areaList from '@/assets/js/utils/area' -import { getOrderDetail } from '@/api/ebiz/sale/sale' import filter from '@/filters/index' -import getAreaName from '@/assets/js/utils/get-area-name' import utilsAge from '@/assets/js/utils/age' import IdentityCardScan from '@/components/ebiz/sale/IdentityCardScan' import CustomerPicker from '@/components/ebiz/customer/CustomerPicker' import idNoCheck from '@/assets/js/utils/idNoCheck' import { idToData } from './js/verification' import { selectComp } from './js/methods' -// let relationToInsured = [{ id: 2, text: '配偶' }, { id: 3, text: '父母' }, { id: 4, text: '子女' }, { id: 5, text: '其他' }] let relationToInsured = [ { id: 2, text: '配偶' }, { id: 3, text: '父母' }, @@ -237,6 +260,12 @@ export default { }, data() { return { + isAreaListShow: false, + province: '', + city: '', + county: '', + areaStr: '', + isMarriageStatusShow: false, effectiveDateTypeAble: true, //长期按钮是否禁用 isScan: false, //是否显示证件扫描组件 sexRadio: [ @@ -267,6 +296,15 @@ export default { marriage: '', isRequired: '', //长期前是否有* userInfo: { + yearSalary: '', + maritalStatus: '', + averageAnnualIncome: '', + marriageStatus: '', + provinceCode: '', + cityCode: '', + countyCode: '', + jobCode: '', + street: '', name: '', sex: '0', nativeplace: '1', //国家地区 @@ -288,7 +326,7 @@ export default { healthGrade: '', bnfType: '0' //身故受益人 }, - areaList: areaList, + areaList, occupationShowPicker: false, customerShowPicker: false, //客户列表展示 isInsured: false, //是投保人本人, @@ -306,6 +344,32 @@ export default { } }, methods: { + setBankArea(areaInfo) { + let province = areaInfo[0] + let city = areaInfo[1] + let county = areaInfo[2] + this.userInfo.provinceCode = province.code + this.userInfo.cityCode = city.code + this.userInfo.countyCode = county.code + this.isAreaListShow = false + this.areaStr = `${province.name}-${city.name}-${county.name}` + }, + onMarriageConfirm(value) { + this.userInfo.marriageStatus = value.text + if (value.text === '已婚') { + this.userInfo.maritalStatus = '0' + } else { + this.userInfo.maritalStatus = '1' + } + this.isMarriageStatusShow = false + }, + setMarriageStatus() { + this.isMarriageStatusShow = true + this.columns = [ + { id: 0, text: '已婚' }, + { id: 1, text: '单身' } + ] + }, //监听名字变化 nameChange(name) { this.userInfo.name = name @@ -397,13 +461,11 @@ export default { }, //确认选择字段 onConfirm(value) { - // console.log(value,this.pickerType) this.popupShow = false if (this.pickerType == '1') { ;[this.userInfo.nativeplace, this.nativeplace] = [value.id, value.text] } else if (this.pickerType == '2') { this.idLimit = false - // this.userInfo.idNo = this.userInfo.certificateValidate = this.userInfo.certiexpiredate = this.userInfo.birthday = '' this.userInfo.idNo = this.userInfo.certiexpiredate = this.userInfo.birthday = '' this.userInfo.sex = '0' this.effectiveDateTypeAble = false @@ -574,9 +636,7 @@ export default { hiddenRight: '1' } }) - // let { customerName, customerSex } = data this.userInfo.name = data.customerName //用户名 - //this.userInfo.sex = String(data.customerSex) //性别 if (data.dacustomerSex == null) { this.userInfo.sex = '' } else { @@ -586,9 +646,6 @@ export default { this.userInfo.birthday = data.birthday //出生日期 this.userInfo.idType = data.customerIdType //证件类型 this.userInfo.idNo = data.customerIdNumber //证件号码 - // this.userInfo.certificateValidate = data.idEffectStartDate //证件起始日期 - // this.userInfo.certiexpiredate = data.idEffectEndDate //证件截止日期 - // this.userInfo.effectiveDateType = data.idEffectEndDate == '9999-01-01' //是否长期 if (data.idEffectEndDate == '9999-01-01') { this.userInfo.effectiveDateType = true //是否长期 } else {