mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 00:26:44 +08:00
投保人/被保人增加婚姻状态
This commit is contained in:
@@ -261,7 +261,6 @@ export default {
|
|||||||
degree: '',
|
degree: '',
|
||||||
socialSecurity: '',
|
socialSecurity: '',
|
||||||
taxIdentity: '',
|
taxIdentity: '',
|
||||||
// areaName: '',
|
|
||||||
areaValue: '110101',
|
areaValue: '110101',
|
||||||
certiexpiredateRequired: true, //证件截止日期是否需要校验
|
certiexpiredateRequired: true, //证件截止日期是否需要校验
|
||||||
certiexpiredateShow: true, //证件截止日期是否可以选择
|
certiexpiredateShow: true, //证件截止日期是否可以选择
|
||||||
@@ -274,20 +273,13 @@ export default {
|
|||||||
birthday: '',
|
birthday: '',
|
||||||
idType: '1', //证件类型
|
idType: '1', //证件类型
|
||||||
idNo: '', //证件号码
|
idNo: '', //证件号码
|
||||||
// certificateValidate: '', //证件起始日期
|
|
||||||
certiexpiredate: '', //证件到期时间
|
certiexpiredate: '', //证件到期时间
|
||||||
effectiveDateType: false, //是否长期
|
effectiveDateType: false, //是否长期
|
||||||
asAppntAddress: false, //同投保人
|
asAppntAddress: false, //同投保人
|
||||||
occupationCode: '',
|
occupationCode: '',
|
||||||
occupationName: '',
|
occupationName: '',
|
||||||
// mobile: '',
|
|
||||||
workcompany: '', //工作单位
|
workcompany: '', //工作单位
|
||||||
// village: '',
|
|
||||||
// province: '',
|
|
||||||
// city: '',
|
|
||||||
// area: '',
|
|
||||||
fIncome: '',
|
fIncome: '',
|
||||||
// email: '',
|
|
||||||
bnfOrder: '1', //受益顺序
|
bnfOrder: '1', //受益顺序
|
||||||
bnfLot: '', //受益比例
|
bnfLot: '', //受益比例
|
||||||
bnfFlag: '',
|
bnfFlag: '',
|
||||||
@@ -302,17 +294,10 @@ export default {
|
|||||||
isInsured: false, //是投保人本人,
|
isInsured: false, //是投保人本人,
|
||||||
Insured: false, //投保人本人按钮是否置灰
|
Insured: false, //投保人本人按钮是否置灰
|
||||||
idLimit: false, //证件起止日期是否只读
|
idLimit: false, //证件起止日期是否只读
|
||||||
// 开飞机的小历悦
|
|
||||||
// area: '',
|
|
||||||
// city: '',
|
|
||||||
// province: ''
|
|
||||||
saleInsuredPersonInfo: JSON.parse(localStorage.saleInsuredPersonInfo) //被保人信息
|
saleInsuredPersonInfo: JSON.parse(localStorage.saleInsuredPersonInfo) //被保人信息
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
// EWebBridge.webCallAppInJs('webview_left_button', {
|
|
||||||
// intercept: '1' //是否拦截原生返回事件 1是 其他否
|
|
||||||
// })
|
|
||||||
window.appCallBack = this.appCallBack
|
window.appCallBack = this.appCallBack
|
||||||
if (localStorage.applicant == '1' || this.saleInsuredPersonInfo.relationToAppnt == '1' || this.saleInsuredPersonInfo.relationToAppnt == '5') {
|
if (localStorage.applicant == '1' || this.saleInsuredPersonInfo.relationToAppnt == '1' || this.saleInsuredPersonInfo.relationToAppnt == '5') {
|
||||||
this.Insured = true
|
this.Insured = true
|
||||||
@@ -351,20 +336,6 @@ export default {
|
|||||||
// let that = this
|
// let that = this
|
||||||
selectComp(this, index, '3')
|
selectComp(this, index, '3')
|
||||||
},
|
},
|
||||||
// closeBtn() {
|
|
||||||
// // 筛选按钮的显示
|
|
||||||
// this.$jump({
|
|
||||||
// flag: 'webview_right_button',
|
|
||||||
// extra: {
|
|
||||||
// btns: [
|
|
||||||
// {
|
|
||||||
// img: this.$assetsUrl + 'images/del-close.png',
|
|
||||||
// route: { flag: '', extra: {} }
|
|
||||||
// }
|
|
||||||
// ]
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
// },
|
|
||||||
appCallBack() {
|
appCallBack() {
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'goBack',
|
flag: 'goBack',
|
||||||
@@ -918,7 +889,6 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
beneficiaries.push(this.userInfo)
|
beneficiaries.push(this.userInfo)
|
||||||
// console.log(beneficiaries)
|
|
||||||
// 保存 新增的受益人信息 以及页面跳转字段
|
// 保存 新增的受益人信息 以及页面跳转字段
|
||||||
localStorage.beneficiaryInfo = JSON.stringify(beneficiaries)
|
localStorage.beneficiaryInfo = JSON.stringify(beneficiaries)
|
||||||
localStorage.fromAddBeneficiaryInfo = true
|
localStorage.fromAddBeneficiaryInfo = true
|
||||||
@@ -938,24 +908,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.$toast(this.$validator.errors.all()[0])
|
this.$toast(this.$validator.errors.all()[0])
|
||||||
}
|
}
|
||||||
// })
|
|
||||||
},
|
},
|
||||||
// //区域选择
|
|
||||||
// sureArea(area, type) {
|
|
||||||
// switch (type) {
|
|
||||||
// case '1': //单位地址
|
|
||||||
// this.areaName = getAreaName(area)
|
|
||||||
// ;[this.userInfo.province, this.userInfo.city, this.userInfo.area] = [area[0].code, area[1].code, area[2].code]
|
|
||||||
// this.areaShow = false
|
|
||||||
// break
|
|
||||||
// }
|
|
||||||
// },
|
|
||||||
// chooseArea() {
|
|
||||||
// if (this.isInsured) {
|
|
||||||
// return
|
|
||||||
// }
|
|
||||||
// this.areaShow = true
|
|
||||||
// },
|
|
||||||
// 证件扫描
|
// 证件扫描
|
||||||
goScan() {
|
goScan() {
|
||||||
this.isScan = true
|
this.isScan = true
|
||||||
@@ -1011,7 +964,6 @@ export default {
|
|||||||
this.userInfo.certificateValidate = insuredDetail.certificateValidate //证件起始日期
|
this.userInfo.certificateValidate = insuredDetail.certificateValidate //证件起始日期
|
||||||
this.userInfo.certiexpiredate = insuredDetail.certiexpiredate == '9999-01-01' ? '' : insuredDetail.certiexpiredate //证件截止日期
|
this.userInfo.certiexpiredate = insuredDetail.certiexpiredate == '9999-01-01' ? '' : insuredDetail.certiexpiredate //证件截止日期
|
||||||
this.userInfo.effectiveDateType = insuredDetail.certiexpiredate == '9999-01-01' //是否长期
|
this.userInfo.effectiveDateType = insuredDetail.certiexpiredate == '9999-01-01' //是否长期
|
||||||
// this.userInfo.effectiveDateType = insuredDetail.effectiveDateType == '9999-01-01' //是否长期
|
|
||||||
let age = utilsAge.getAge(insuredDetail.birthday, new Date())
|
let age = utilsAge.getAge(insuredDetail.birthday, new Date())
|
||||||
this.effectiveDateTypeAble = age <= 45
|
this.effectiveDateTypeAble = age <= 45
|
||||||
if (age > 45) {
|
if (age > 45) {
|
||||||
@@ -1020,8 +972,6 @@ export default {
|
|||||||
this.idLimit = true
|
this.idLimit = true
|
||||||
this.userInfo.occupationCode = insuredDetail.occupationCode //职业类别编码
|
this.userInfo.occupationCode = insuredDetail.occupationCode //职业类别编码
|
||||||
this.userInfo.occupationName = insuredDetail.occupationName //职业类别名称
|
this.userInfo.occupationName = insuredDetail.occupationName //职业类别名称
|
||||||
// this.userInfo.mobile = insuredDetail.mobile //联系电话
|
|
||||||
// this.userInfo.email = insuredDetail.email //电子邮箱
|
|
||||||
} else {
|
} else {
|
||||||
this.isInsured = false
|
this.isInsured = false
|
||||||
this.userInfo.relationToInsured = ''
|
this.userInfo.relationToInsured = ''
|
||||||
@@ -1039,8 +989,6 @@ export default {
|
|||||||
this.idLimit = false
|
this.idLimit = false
|
||||||
this.userInfo.occupationCode = '' //职业类别编码
|
this.userInfo.occupationCode = '' //职业类别编码
|
||||||
this.userInfo.occupationName = '' //职业类别名称
|
this.userInfo.occupationName = '' //职业类别名称
|
||||||
// this.userInfo.mobile = '' //联系电话
|
|
||||||
// this.userInfo.email = '' //电子邮箱
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//长期状态改变时
|
//长期状态改变时
|
||||||
@@ -1048,20 +996,15 @@ export default {
|
|||||||
//勾选长期状态时,证件截止日期置空
|
//勾选长期状态时,证件截止日期置空
|
||||||
if (val) {
|
if (val) {
|
||||||
this.userInfo.certiexpiredate = ''
|
this.userInfo.certiexpiredate = ''
|
||||||
// this.isRequired = false
|
|
||||||
// this.idLimit = true
|
|
||||||
this.certiexpiredateRequired = false
|
this.certiexpiredateRequired = false
|
||||||
} else {
|
} else {
|
||||||
this.certiexpiredateRequired = true
|
this.certiexpiredateRequired = true
|
||||||
// this.isRequired = true
|
|
||||||
// this.idLimit = false
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//获取身份证扫描信息
|
//获取身份证扫描信息
|
||||||
getIdentityInfo(data) {
|
getIdentityInfo(data) {
|
||||||
console.log(data)
|
console.log(data)
|
||||||
if (data.name && data.name != '待识别') {
|
if (data.name && data.name != '待识别') {
|
||||||
// this.userInfo.certificateValidate = data.startDate
|
|
||||||
this.userInfo.certiexpiredate = data.endDate
|
this.userInfo.certiexpiredate = data.endDate
|
||||||
this.userInfo.name = data.name
|
this.userInfo.name = data.name
|
||||||
this.userInfo.idNo = data.idNo
|
this.userInfo.idNo = data.idNo
|
||||||
@@ -1082,7 +1025,7 @@ export default {
|
|||||||
if (this.userInfo.idType != '1') {
|
if (this.userInfo.idType != '1') {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// //如果证件校验不通过,恢复默认值
|
//如果证件校验不通过,恢复默认值
|
||||||
// if (idToData(val).text) {
|
// if (idToData(val).text) {
|
||||||
// ;[this.userInfo.idNo, this.userInfo.sex, this.userInfo.birthday, this.effectiveDateTypeAble] = ['', '0', '', false]
|
// ;[this.userInfo.idNo, this.userInfo.sex, this.userInfo.birthday, this.effectiveDateTypeAble] = ['', '0', '', false]
|
||||||
// return this.$toast(idToData(val).text)
|
// return this.$toast(idToData(val).text)
|
||||||
@@ -1093,7 +1036,7 @@ export default {
|
|||||||
// if (!['1', '2', '3', 1, 2, 3].includes(this.userInfo.idType)) {
|
// if (!['1', '2', '3', 1, 2, 3].includes(this.userInfo.idType)) {
|
||||||
// return
|
// return
|
||||||
// }
|
// }
|
||||||
// //如果证件校验不通过,恢复默认值
|
//如果证件校验不通过,恢复默认值
|
||||||
if (idToData(val).text) {
|
if (idToData(val).text) {
|
||||||
;[this.userInfo.idNo, this.userInfo.sex, this.userInfo.birthday, this.effectiveDateTypeAble] = ['', '0', '', false]
|
;[this.userInfo.idNo, this.userInfo.sex, this.userInfo.birthday, this.effectiveDateTypeAble] = ['', '0', '', false]
|
||||||
return this.$toast(idToData(val).text)
|
return this.$toast(idToData(val).text)
|
||||||
@@ -1103,17 +1046,10 @@ export default {
|
|||||||
this.userInfo.birthday = idToData(val).birthday
|
this.userInfo.birthday = idToData(val).birthday
|
||||||
this.userInfo.sex = idToData(val).sex
|
this.userInfo.sex = idToData(val).sex
|
||||||
if (idToData(val).age > 45) {
|
if (idToData(val).age > 45) {
|
||||||
// this.idLimit = true
|
|
||||||
// this.isRequired = false
|
|
||||||
// this.userInfo.effectiveDateType = true
|
|
||||||
if (from) {
|
if (from) {
|
||||||
this.userInfo.effectiveDateType = true
|
this.userInfo.effectiveDateType = true
|
||||||
}
|
}
|
||||||
this.effectiveDateTypeAble = false
|
this.effectiveDateTypeAble = false
|
||||||
} else {
|
|
||||||
// this.idLimit = false
|
|
||||||
// this.isRequired = true
|
|
||||||
// this.userInfo.effectiveDateType = false
|
|
||||||
}
|
}
|
||||||
//如果选择户口本
|
//如果选择户口本
|
||||||
// if (this.userInfo.idType == '2') {
|
// if (this.userInfo.idType == '2') {
|
||||||
|
|||||||
@@ -67,13 +67,7 @@ export default {
|
|||||||
type: '1',
|
type: '1',
|
||||||
insuredPerson: '', //被保险人
|
insuredPerson: '', //被保险人
|
||||||
isAssign: false, // 是否指定受益人
|
isAssign: false, // 是否指定受益人
|
||||||
beneficiaries: [
|
beneficiaries: [], // 指定受益人列表
|
||||||
// {
|
|
||||||
// name: '陈明',
|
|
||||||
// relationToAppnt: '1',
|
|
||||||
// beneRatio: '99'
|
|
||||||
// }
|
|
||||||
], // 指定受益人列表
|
|
||||||
bnfFlag: '0', // 受益人类型
|
bnfFlag: '0', // 受益人类型
|
||||||
bnfType: '0', // 0 身故受益人 1 身前受益人
|
bnfType: '0', // 0 身故受益人 1 身前受益人
|
||||||
salePageFlag: '4'
|
salePageFlag: '4'
|
||||||
@@ -107,6 +101,7 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
// eslint-disable-next-line no-undef
|
||||||
EWebBridge.webCallAppInJs('webview_left_button', {
|
EWebBridge.webCallAppInJs('webview_left_button', {
|
||||||
img: this.$assetsUrl + 'images/del-close-btn@3x.png',
|
img: this.$assetsUrl + 'images/del-close-btn@3x.png',
|
||||||
intercept: '1' //是否拦截原生返回事件 1是 其他否
|
intercept: '1' //是否拦截原生返回事件 1是 其他否
|
||||||
@@ -240,17 +235,13 @@ export default {
|
|||||||
.then(() => {
|
.then(() => {
|
||||||
// on confirm
|
// on confirm
|
||||||
|
|
||||||
// console.log('删除受益人')
|
|
||||||
console.log(this.beneficiaries[index].idNo)
|
console.log(this.beneficiaries[index].idNo)
|
||||||
if (this.beneficiaries[index].asAppntAddress == true) {
|
if (this.beneficiaries[index].asAppntAddress == true) {
|
||||||
localStorage.removeItem('applicant')
|
localStorage.removeItem('applicant')
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除 localStorage 中的对应数据
|
// 删除 localStorage 中的对应数据
|
||||||
// console.log(this.beneficiaries)
|
|
||||||
let beneficiaries = JSON.parse(localStorage.beneficiaryInfo)
|
let beneficiaries = JSON.parse(localStorage.beneficiaryInfo)
|
||||||
// console.log(JSON.parse(localStorage.beneficiaryInfo))
|
|
||||||
console.log(beneficiaries)
|
|
||||||
let delIdx = beneficiaries.findIndex(item => {
|
let delIdx = beneficiaries.findIndex(item => {
|
||||||
return item.idNo == this.beneficiaries[index].idNo
|
return item.idNo == this.beneficiaries[index].idNo
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -67,6 +67,17 @@
|
|||||||
<van-checkbox v-model="userInfo.effectiveDateType" :disabled="effectiveDateTypeAble" @change="effectiveDataTypeChange">长期</van-checkbox>
|
<van-checkbox v-model="userInfo.effectiveDateType" :disabled="effectiveDateTypeAble" @change="effectiveDataTypeChange">长期</van-checkbox>
|
||||||
</div>
|
</div>
|
||||||
<select-radio required :radios="sexRadio" label="性别" name="性别" v-validate="'required'" :value.sync="userInfo.sex"></select-radio>
|
<select-radio required :radios="sexRadio" label="性别" name="性别" v-validate="'required'" :value.sync="userInfo.sex"></select-radio>
|
||||||
|
<van-field
|
||||||
|
:value="userInfo.marriageStatus"
|
||||||
|
readonly
|
||||||
|
required
|
||||||
|
label="婚姻状况"
|
||||||
|
name="婚姻状况"
|
||||||
|
v-validate="'required'"
|
||||||
|
right-icon="arrow"
|
||||||
|
placeholder="请选择"
|
||||||
|
@click="toSelect('10')"
|
||||||
|
/>
|
||||||
<van-field
|
<van-field
|
||||||
:value="userInfo.nativeplace | idToText('nativeplace')"
|
:value="userInfo.nativeplace | idToText('nativeplace')"
|
||||||
readonly
|
readonly
|
||||||
@@ -445,6 +456,7 @@ export default {
|
|||||||
effectiveDateTypeAble: false, //长期按钮是否禁用
|
effectiveDateTypeAble: false, //长期按钮是否禁用
|
||||||
isElecCont: '', // 保单类型 0 为电子 2 为纸质加电子
|
isElecCont: '', // 保单类型 0 为电子 2 为纸质加电子
|
||||||
userInfo: {
|
userInfo: {
|
||||||
|
marriageStatus: '',
|
||||||
name: '', //投保人姓名
|
name: '', //投保人姓名
|
||||||
// sex: '0', //投保人性别
|
// sex: '0', //投保人性别
|
||||||
sex: '', //投保人性别
|
sex: '', //投保人性别
|
||||||
@@ -695,6 +707,12 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
break
|
break
|
||||||
|
case '10':
|
||||||
|
this.columns = [
|
||||||
|
{ id: 0, text: '已婚' },
|
||||||
|
{ id: 1, text: '单身' }
|
||||||
|
]
|
||||||
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (pickerType == '1') {
|
// if (pickerType == '1') {
|
||||||
@@ -774,11 +792,12 @@ export default {
|
|||||||
this.userInfo.salarySource = value.id
|
this.userInfo.salarySource = value.id
|
||||||
} else if (this.pickerType == '9') {
|
} else if (this.pickerType == '9') {
|
||||||
this.userInfo.workcompany = value
|
this.userInfo.workcompany = value
|
||||||
|
} else if (this.pickerType === '10') {
|
||||||
|
this.userInfo.marriageStatus = value.text
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//证件起始截止日期
|
//证件起始截止日期
|
||||||
onDateConfirm(val, type) {
|
onDateConfirm(val, type) {
|
||||||
console.log(type)
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
// case '0':
|
// case '0':
|
||||||
// {
|
// {
|
||||||
@@ -940,9 +959,6 @@ export default {
|
|||||||
this.getRelatedData(this.userInfo.idNo, '1')
|
this.getRelatedData(this.userInfo.idNo, '1')
|
||||||
},
|
},
|
||||||
async nextStep() {
|
async nextStep() {
|
||||||
// console.log(this.userInfo.idType)
|
|
||||||
// console.log(this.userInfo.salarySource)
|
|
||||||
// console.log(this.userInfo.otherSalarySource)
|
|
||||||
//表单校验, 成功跳转
|
//表单校验, 成功跳转
|
||||||
let valid = await this.$validator.validate()
|
let valid = await this.$validator.validate()
|
||||||
// .then(valid => {
|
// .then(valid => {
|
||||||
@@ -1003,7 +1019,6 @@ export default {
|
|||||||
|
|
||||||
// 证件号码规则校验
|
// 证件号码规则校验
|
||||||
if (!idNoCheck.isIdno(this.userInfo.idNo)) {
|
if (!idNoCheck.isIdno(this.userInfo.idNo)) {
|
||||||
console.log('证件号码校验有误')
|
|
||||||
return this.$toast('您填写的证件号码有误')
|
return this.$toast('您填写的证件号码有误')
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1013,7 +1028,6 @@ export default {
|
|||||||
}
|
}
|
||||||
// 年龄在 16-25 周岁之间
|
// 年龄在 16-25 周岁之间
|
||||||
if (age >= 16 && age <= 25) {
|
if (age >= 16 && age <= 25) {
|
||||||
console.log('年龄在16-25周岁之间')
|
|
||||||
if (Date.parse(this.userInfo.certiexpiredate) - Date.parse(new Date()) > Date.parse('1980-01-01')) {
|
if (Date.parse(this.userInfo.certiexpiredate) - Date.parse(new Date()) > Date.parse('1980-01-01')) {
|
||||||
this.userInfo.certiexpiredate = ''
|
this.userInfo.certiexpiredate = ''
|
||||||
this.$refs.certiexpiredate.date = ''
|
this.$refs.certiexpiredate.date = ''
|
||||||
@@ -1022,7 +1036,6 @@ export default {
|
|||||||
}
|
}
|
||||||
//年龄在 26-45 周岁之间
|
//年龄在 26-45 周岁之间
|
||||||
} else if (age >= 26 && age <= 45) {
|
} else if (age >= 26 && age <= 45) {
|
||||||
console.log('年龄在26-45周岁之间')
|
|
||||||
if (Date.parse(this.userInfo.certiexpiredate) - Date.parse(new Date()) > Date.parse('1990-01-01')) {
|
if (Date.parse(this.userInfo.certiexpiredate) - Date.parse(new Date()) > Date.parse('1990-01-01')) {
|
||||||
this.userInfo.certiexpiredate = ''
|
this.userInfo.certiexpiredate = ''
|
||||||
this.$refs.certiexpiredate.date = ''
|
this.$refs.certiexpiredate.date = ''
|
||||||
@@ -1088,23 +1101,8 @@ export default {
|
|||||||
return this.$toast('学生不可以作为投保人,请更换投保人投保')
|
return this.$toast('学生不可以作为投保人,请更换投保人投保')
|
||||||
}
|
}
|
||||||
|
|
||||||
// 职业 学龄前儿童 2099908, 离休人员 8000003,家庭主妇 4071203,无业人员 8000001,
|
if (this.userInfo.workcompany.length < 6 && this.userInfo.workcompany.trim() != '无') {
|
||||||
// 亲,您填写的工作单位过于简短哦~
|
|
||||||
if (
|
|
||||||
this.userInfo.occupationCode == '2099908' ||
|
|
||||||
this.userInfo.occupationCode == '8000003' ||
|
|
||||||
this.userInfo.occupationCode == '4071203' ||
|
|
||||||
this.userInfo.occupationCode == '8000001'
|
|
||||||
) {
|
|
||||||
} else if (this.userInfo.workcompany.length < 6 && this.userInfo.workcompany.trim() != '无') {
|
|
||||||
// await this.asyncToast('亲,您填写的工作单位过于简短哦~')
|
|
||||||
this.userInfo.workcompany = '无'
|
this.userInfo.workcompany = '无'
|
||||||
// await this.$dialog.confirm({
|
|
||||||
// title: '提示',
|
|
||||||
// message: '亲,您填写的工作单位过于简短哦~',
|
|
||||||
// confirmButtonText: '继续填写',
|
|
||||||
// cancelButtonText: '返回修改'
|
|
||||||
// })
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.userInfo.salarySource == '4') {
|
if (this.userInfo.salarySource == '4') {
|
||||||
@@ -1209,10 +1207,7 @@ export default {
|
|||||||
confirmButtonColor: '#FFFFFF'
|
confirmButtonColor: '#FFFFFF'
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
// on confirm
|
|
||||||
|
|
||||||
this.save()
|
this.save()
|
||||||
// this.save('isShow=1')
|
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
return
|
return
|
||||||
@@ -1234,6 +1229,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
let str = ''
|
let str = ''
|
||||||
|
this.userInfo.maritalStatus = this.maritalStatus
|
||||||
params.orderDTO.appntDTO = this.userInfo
|
params.orderDTO.appntDTO = this.userInfo
|
||||||
//------------------------专为桂企写死--begin---------------//
|
//------------------------专为桂企写死--begin---------------//
|
||||||
if (this.specilFlag == '1') {
|
if (this.specilFlag == '1') {
|
||||||
@@ -1356,10 +1352,6 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//证件扫描
|
|
||||||
// goScan() {
|
|
||||||
// this.isScan = true
|
|
||||||
// },
|
|
||||||
//长期状态改变时
|
//长期状态改变时
|
||||||
effectiveDataTypeChange(val) {
|
effectiveDataTypeChange(val) {
|
||||||
//勾选长期状态时,证件截止日期置空
|
//勾选长期状态时,证件截止日期置空
|
||||||
@@ -1435,11 +1427,16 @@ export default {
|
|||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
isShowOthenSalarySource() {
|
isShowOthenSalarySource() {
|
||||||
if (this.userInfo.salarySource == '4') {
|
return this.userInfo.salarySource == '4'
|
||||||
return true
|
},
|
||||||
} else {
|
maritalStatus() {
|
||||||
|
return this.marriageStatus === '已婚' ? '0' : '1'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
isShowOthenSalarySource(nVal) {
|
||||||
|
if (!nVal) {
|
||||||
this.userInfo.otherSalarySource = ''
|
this.userInfo.otherSalarySource = ''
|
||||||
return false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -97,16 +97,18 @@
|
|||||||
<div class="border-bt relative fs14 p10 flex align-center">
|
<div class="border-bt relative fs14 p10 flex align-center">
|
||||||
<van-checkbox v-model="userInfo.effectiveDateType" class="fr" :disabled="effectiveDateTypeAble" @change="effectiveDataTypeChange">长期</van-checkbox>
|
<van-checkbox v-model="userInfo.effectiveDateType" class="fr" :disabled="effectiveDateTypeAble" @change="effectiveDataTypeChange">长期</van-checkbox>
|
||||||
</div>
|
</div>
|
||||||
<select-radio
|
<select-radio :radios="sexRadio" label="性别" name="性别" required v-validate="'required'" :value.sync="userInfo.sex" :disabled="isAppnt"></select-radio>
|
||||||
:radios="sexRadio"
|
<van-field
|
||||||
:required="false"
|
:value="userInfo.marriageStatus"
|
||||||
label="性别"
|
readonly
|
||||||
name="性别"
|
|
||||||
required
|
required
|
||||||
|
label="婚姻状况"
|
||||||
|
name="婚姻状况"
|
||||||
v-validate="'required'"
|
v-validate="'required'"
|
||||||
:value.sync="userInfo.sex"
|
right-icon="arrow"
|
||||||
:disabled="isAppnt"
|
placeholder="请选择"
|
||||||
></select-radio>
|
@click="setMarriageStatus('10')"
|
||||||
|
/>
|
||||||
<van-field
|
<van-field
|
||||||
:value="userInfo.nativeplace | idToText('nativeplace')"
|
:value="userInfo.nativeplace | idToText('nativeplace')"
|
||||||
readonly
|
readonly
|
||||||
@@ -206,7 +208,6 @@
|
|||||||
/> -->
|
/> -->
|
||||||
<select-radio
|
<select-radio
|
||||||
:radios="medicalRadio"
|
:radios="medicalRadio"
|
||||||
:required="false"
|
|
||||||
label="有无社保"
|
label="有无社保"
|
||||||
name="有无社保"
|
name="有无社保"
|
||||||
v-validate="'required'"
|
v-validate="'required'"
|
||||||
@@ -423,11 +424,12 @@
|
|||||||
<van-area :area-list="areaList" value="110101" :columns-num="2" @confirm="sureArea($event, '3')" @cancel="censusShow = false" />
|
<van-area :area-list="areaList" value="110101" :columns-num="2" @confirm="sureArea($event, '3')" @cancel="censusShow = false" />
|
||||||
</van-popup>
|
</van-popup>
|
||||||
<!-- 银行卡扫描 -->
|
<!-- 银行卡扫描 -->
|
||||||
<!-- 银行卡扫描 -->
|
|
||||||
<van-popup v-model="isScan" position="bottom">
|
<van-popup v-model="isScan" position="bottom">
|
||||||
<IdentityCardScan :scanShow="isScan" @getScanInfo="getIdentityInfo"></IdentityCardScan>
|
<IdentityCardScan :scanShow="isScan" @getScanInfo="getIdentityInfo"></IdentityCardScan>
|
||||||
</van-popup>
|
</van-popup>
|
||||||
<!-- <IdentityCardScan @getScanInfo="getIdentityInfo"></IdentityCardScan> -->
|
<van-popup v-model="isMarriageStatusShow" position="bottom">
|
||||||
|
<van-picker show-toolbar :columns="columns" @confirm="onMarriageConfirm" @cancel="isMarriageStatusShow = false" />
|
||||||
|
</van-popup>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -469,6 +471,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
isMarriageStatusShow: false,
|
||||||
withRootUser: {
|
withRootUser: {
|
||||||
load: false, //防止重复请求
|
load: false, //防止重复请求
|
||||||
value: false
|
value: false
|
||||||
@@ -513,6 +516,7 @@ export default {
|
|||||||
homeName: '',
|
homeName: '',
|
||||||
isRequired: '', //长期前是否有*
|
isRequired: '', //长期前是否有*
|
||||||
userInfo: {
|
userInfo: {
|
||||||
|
marriageStatus: '',
|
||||||
name: '',
|
name: '',
|
||||||
// sex: '0',
|
// sex: '0',
|
||||||
sex: '',
|
sex: '',
|
||||||
@@ -702,13 +706,17 @@ export default {
|
|||||||
// // document.body.style.backgroundColor = '#F5F5F5'
|
// // document.body.style.backgroundColor = '#F5F5F5'
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// async asyncToast(value, ms=2000) {
|
onMarriageConfirm(value) {
|
||||||
// return new Promise((resolve) => {
|
this.userInfo.marriageStatus = value.text
|
||||||
// console.log(value);
|
this.isMarriageStatusShow = false
|
||||||
// this.$toast(value)
|
},
|
||||||
// setTimeout(resolve, ms);
|
setMarriageStatus() {
|
||||||
// })
|
this.isMarriageStatusShow = true
|
||||||
// },
|
this.columns = [
|
||||||
|
{ id: 0, text: '已婚' },
|
||||||
|
{ id: 1, text: '单身' }
|
||||||
|
]
|
||||||
|
},
|
||||||
//监听名字变化
|
//监听名字变化
|
||||||
nameChange(name) {
|
nameChange(name) {
|
||||||
this.userInfo.name = name
|
this.userInfo.name = name
|
||||||
@@ -752,20 +760,6 @@ export default {
|
|||||||
})
|
})
|
||||||
this.occupationShowPicker = false
|
this.occupationShowPicker = false
|
||||||
},
|
},
|
||||||
// closeBtn() {
|
|
||||||
// // 筛选按钮的显示
|
|
||||||
// this.$jump({
|
|
||||||
// flag: 'webview_right_button',
|
|
||||||
// extra: {
|
|
||||||
// btns: [
|
|
||||||
// {
|
|
||||||
// img: this.$assetsUrl + 'images/del-close.png',
|
|
||||||
// route: { flag: '', extra: {} }
|
|
||||||
// }
|
|
||||||
// ]
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
// },
|
|
||||||
//弹框选择
|
//弹框选择
|
||||||
toSelect(pickerType, valueKey) {
|
toSelect(pickerType, valueKey) {
|
||||||
// 投被同人不允许编辑
|
// 投被同人不允许编辑
|
||||||
@@ -806,9 +800,7 @@ export default {
|
|||||||
this.userInfo.nativeplace = value.id
|
this.userInfo.nativeplace = value.id
|
||||||
} else if (this.pickerType == '2') {
|
} else if (this.pickerType == '2') {
|
||||||
this.idLimit = false
|
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.idNo = this.userInfo.certiexpiredate = this.userInfo.birthday = ''
|
||||||
// this.userInfo.sex = '0'
|
|
||||||
this.effectiveDateTypeAble = false
|
this.effectiveDateTypeAble = false
|
||||||
console.log(value.id)
|
console.log(value.id)
|
||||||
//身份证以外的证件类型可以使用长期
|
//身份证以外的证件类型可以使用长期
|
||||||
@@ -945,6 +937,8 @@ export default {
|
|||||||
this.userInfo.jobStatus = value.id
|
this.userInfo.jobStatus = value.id
|
||||||
}*/ else if (this.pickerType == '9') {
|
}*/ else if (this.pickerType == '9') {
|
||||||
this.userInfo.salarySource = value.id
|
this.userInfo.salarySource = value.id
|
||||||
|
} else if (this.pickerType === '10') {
|
||||||
|
this.userInfo
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//证件起始截止日期
|
//证件起始截止日期
|
||||||
@@ -1189,13 +1183,14 @@ export default {
|
|||||||
if (true === valid) {
|
if (true === valid) {
|
||||||
// 职业 学龄前儿童 2099908, 离休人员 8000003,家庭主妇 4071203,无业人员 8000001,
|
// 职业 学龄前儿童 2099908, 离休人员 8000003,家庭主妇 4071203,无业人员 8000001,
|
||||||
// 亲,您填写的工作单位过于简短哦~
|
// 亲,您填写的工作单位过于简短哦~
|
||||||
if (
|
// if (
|
||||||
this.userInfo.occupationCode == '2099908' ||
|
// this.userInfo.occupationCode == '2099908' ||
|
||||||
this.userInfo.occupationCode == '8000003' ||
|
// this.userInfo.occupationCode == '8000003' ||
|
||||||
this.userInfo.occupationCode == '4071203' ||
|
// this.userInfo.occupationCode == '4071203' ||
|
||||||
this.userInfo.occupationCode == '8000001'
|
// this.userInfo.occupationCode == '8000001'
|
||||||
) {
|
// ) {
|
||||||
} else if (this.userInfo.workcompany.length < 6 && this.userInfo.workcompany.trim() != '无') {
|
// }
|
||||||
|
if (this.userInfo.workcompany.length < 6 && this.userInfo.workcompany.trim() != '无') {
|
||||||
this.userInfo.workcompany = '无'
|
this.userInfo.workcompany = '无'
|
||||||
// await this.$dialog.confirm({
|
// await this.$dialog.confirm({
|
||||||
// title: '提示',
|
// title: '提示',
|
||||||
@@ -1450,23 +1445,17 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// this.save()
|
|
||||||
this.infoUpdate()
|
this.infoUpdate()
|
||||||
// console.log('success')
|
|
||||||
} else {
|
} else {
|
||||||
return this.$toast(this.$validator.errors.all()[0])
|
return this.$toast(this.$validator.errors.all()[0])
|
||||||
}
|
}
|
||||||
// })
|
|
||||||
},
|
},
|
||||||
//信息变更
|
//信息变更
|
||||||
infoUpdate() {
|
infoUpdate() {
|
||||||
//local 里面是否存有险种信息
|
//local 里面是否存有险种信息
|
||||||
// debugger
|
|
||||||
let chooseProductCodes = localStorage.chooseProductCodesNew && JSON.parse(localStorage.chooseProductCodesNew)
|
let chooseProductCodes = localStorage.chooseProductCodesNew && JSON.parse(localStorage.chooseProductCodesNew)
|
||||||
// if (chooseProductCodes && chooseProductCodes.length) {
|
|
||||||
if (localStorage.saleInsuredPersonInfo) {
|
if (localStorage.saleInsuredPersonInfo) {
|
||||||
//获取险种列表
|
//获取险种列表
|
||||||
// let chooseProductCodes = JSON.parse(localStorage.chooseProductCodes)
|
|
||||||
//取出local中的被保险人信息
|
//取出local中的被保险人信息
|
||||||
let saleInsuredPersonInfo = JSON.parse(localStorage.saleInsuredPersonInfo)
|
let saleInsuredPersonInfo = JSON.parse(localStorage.saleInsuredPersonInfo)
|
||||||
//如果 性别, 出生日期, 有无社保, 职业 发生变化
|
//如果 性别, 出生日期, 有无社保, 职业 发生变化
|
||||||
@@ -1508,20 +1497,19 @@ export default {
|
|||||||
orderInfoDTO: {
|
orderInfoDTO: {
|
||||||
orderNo: localStorage.orderNo
|
orderNo: localStorage.orderNo
|
||||||
},
|
},
|
||||||
// smsCodeDTO: { smsId: this.sessionId, code: this.userInfo.authCode },
|
|
||||||
appntDTO: {}
|
appntDTO: {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.userInfo.mediaDTOS == '') {
|
if (this.userInfo.mediaDTOS == '') {
|
||||||
delete this.userInfo.mediaDTOS
|
delete this.userInfo.mediaDTOS
|
||||||
}
|
}
|
||||||
|
this.userInfo.maritalStatus = this.maritalStatus
|
||||||
|
console.dir(this.userInfo)
|
||||||
params.orderDTO.insuredDTOs = [this.userInfo]
|
params.orderDTO.insuredDTOs = [this.userInfo]
|
||||||
let str = ''
|
let str = ''
|
||||||
let resultData = await saveOrUpdateOrderInfo(params)
|
let resultData = await saveOrUpdateOrderInfo(params)
|
||||||
if (resultData.result == 0) {
|
if (resultData.result == 0) {
|
||||||
localStorage.salePageFlag = '3'
|
localStorage.salePageFlag = '3'
|
||||||
// localStorage.relationToAppnt = this.userInfo.relationToAppnt
|
|
||||||
|
|
||||||
//deleteFlag 0-该页面修改了信息且修改的信息影响到后面流程,后台进行了删除数据的操作
|
//deleteFlag 0-该页面修改了信息且修改的信息影响到后面流程,后台进行了删除数据的操作
|
||||||
if (resultData.deleteFlag == '0') {
|
if (resultData.deleteFlag == '0') {
|
||||||
localStorage.salePageFlag = '3'
|
localStorage.salePageFlag = '3'
|
||||||
@@ -1748,6 +1736,9 @@ export default {
|
|||||||
this.userInfo.otherSalarySource = ''
|
this.userInfo.otherSalarySource = ''
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
maritalStatus() {
|
||||||
|
return this.marriageStatus === '已婚' ? '0' : '1'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
|
|||||||
Reference in New Issue
Block a user