GFRS-729【0326】国富人寿国富民安重大疾病保险(2020版)_1 被保人修改为被保险人 --提交人:阳华祥

This commit is contained in:
阳华祥
2020-03-13 10:09:48 +08:00
parent bfebbfb1fa
commit d8b24dffb8
42 changed files with 236 additions and 236 deletions

View File

@@ -253,7 +253,7 @@ export default {
text: '其他'
}
],
//投保人/被保人关系
//投保人/被保人关系
relationToAppnt: [
{
id: 1,
@@ -276,7 +276,7 @@ export default {
text: '其他'
}
],
//理赔报案投保人/被保人关系
//理赔报案投保人/被保人关系
relationToAppnts: [
{
id: '00',
@@ -751,7 +751,7 @@ export default {
},
{
id: '36',
text: '被保人保存成功'
text: '被保人保存成功'
},
{
id: '37',

View File

@@ -60,7 +60,7 @@ Validator.extend('age', {
return value > 17 && /^\d{1,3}$/.test(value)
}
})
//被保人年龄不得小于18周岁
//被保人年龄不得小于18周岁
Validator.extend('appntAge', {
getMessage: () => '年龄不得小于18周岁',
validate: value => {

View File

@@ -46,7 +46,7 @@ export default {
// imgfront: this.$assetsUrl + 'images/u6071.png',
// 是否可以点击完成
isDisabled: true,
// 是投保人还是被保人扫描 0是投保人 1是被保人
// 是投保人还是被保人扫描 0是投保人 1是被保
// cardScanningType: '',
// 是否成功扫描
state: ''

View File

@@ -74,7 +74,7 @@ export default {
imgBack: this.$assetsUrl + 'images/idCardBack.png',
// 相机图片
srcCamera: this.$assetsUrl + 'images/camera_copy.png',
// 是否是投保人还是被保人扫描
// 是否是投保人还是被保人扫描
scanFromInsured: '',
state: '',
stateBack: '',

View File

@@ -31,7 +31,7 @@ export default [
name: 'ChooseInsuredPerson',
component: chooseInsuredPerson,
meta: {
title: '选择被保人'
title: '选择被保人'
}
},
{
@@ -49,7 +49,7 @@ export default [
name: 'InsuredPerson',
component: insuredPerson,
meta: {
title: '被保人信息',
title: '被保人信息',
index: 1
}
},

View File

@@ -59,7 +59,7 @@ export default [
name: 'insuredPerson',
component: insuredPerson,
meta: {
title: '被保人信息',
title: '被保人信息',
index: 1
}
},

View File

@@ -10,13 +10,13 @@ export default new Vuex.Store({
app
},
state: {
pageFlag: '', //理赔申请-区分被保人/申请人页面flag
pageFlag: '', //理赔申请-区分被保人/申请人页面flag
agentEnterApplyMobil: '', //自助入司-新的被增员人填好的基础信息里的电话号码
agentEnterApplyIdNo: '', //自助入司-新的被增员人填好的基础信息里的证件号码
refusalCause: '' //自助入司-查看审批流程-审批拒绝的原因
},
mutations: {
//更新 理赔申请-区分被保人/申请人页面flag
//更新 理赔申请-区分被保人/申请人页面flag
updatePageFlag(state, val) {
state.pageFlag = val
},

View File

@@ -42,7 +42,7 @@ export function selectComp(that, index, type = '') {
//投保人
localStorage.scanFromInsured = 'true'
} else if (type == '2') {
//被保人
//被保
localStorage.scanFromInsured = 'false'
};
[that.isScan, title] = [true, '身份证扫描']
@@ -83,7 +83,7 @@ function closeBtn(that) {
/**
*
* @param {*} that 上下文
* @param {String} type 1 投保人; 2 被保人; 3 受益人
* @param {String} type 1 投保人; 2 被保人; 3 受益人
*/
export function appCallBack(that, type) {
return function () {
@@ -93,7 +93,7 @@ export function appCallBack(that, type) {
title = '投保人信息'
break
case '2':
title = '被保人信息'
title = '被保人信息'
break
case '3':
title = '指定受益人信息'
@@ -129,7 +129,7 @@ export function chooseOccupation(that, type) {
title = '投保人信息'
break
case '2':
title = '被保人信息'
title = '被保人信息'
break
case '3':
title = '指定受益人信息'
@@ -151,7 +151,7 @@ export function chooseOccupation(that, type) {
* @param {*} that 上下文
* @param {*} pickerType 弹框类型
* @param {*} valueKey 弹框编号
* @param {*} type 1 投保人; 2 被保人; 3 受益人
* @param {*} type 1 投保人; 2 被保人; 3 受益人
*/
export function toSelect(that, pickerType, valueKey, type) {
//pickerType 1、民族 2、证件类型 3、文化程度 4、有无社保(弃用) 5、税收居民身份 6、婚姻状况 7、在职情况
@@ -204,7 +204,7 @@ export function toSelect(that, pickerType, valueKey, type) {
*
* @param {*} that 上下文
* @param {*} value 值
* @param {*} type 1 投保人 2 被保人 3 受益人
* @param {*} type 1 投保人 2 被保人 3 受益人
*/
export function onConfirm(that, value, type) {
that.popupShow = false
@@ -324,7 +324,7 @@ export function onConfirm(that, value, type) {
}
break
case '3': {
//如果受益人是被保人本人
//如果受益人是被保人本人
if (value.id == 1) {
//获取投保人数据
getOrderDetail({
@@ -332,7 +332,7 @@ export function onConfirm(that, value, type) {
}).then(res => {
if (res.result == 0) {
that.isInsured = true
//获取被保人信息
//获取被保人信息
let insuredInfo = res.orderDTO.insuredDTOs[0]
for (let key in that.userInfo) {
that.userInfo[key] = insuredInfo[key]
@@ -505,7 +505,7 @@ export function onDateConfirm(that, val, type) {
*
* @param {*} that 上下文
* @param {*} data 客户列表数据
* @param {*} type 1 投保人; 2 被保人; 3 受益人
* @param {*} type 1 投保人; 2 被保人; 3 受益人
*/
export function chooseCustomer(that, data, type) {
let title
@@ -514,7 +514,7 @@ export function chooseCustomer(that, data, type) {
title = '投保人信息'
break
case '2':
title = '被保人信息'
title = '被保人信息'
break
case '3':
title = '指定受益人信息'
@@ -615,7 +615,7 @@ export function chooseCustomer(that, data, type) {
/**
*
* @param {*} that 上下文
* @param {*} type 1 投保人; 2 被保人; 3 受益人
* @param {*} type 1 投保人; 2 被保人; 3 受益人
*/
export function nextStep(that, type) {
//表单校验, 成功跳转
@@ -657,7 +657,7 @@ export function infoUpdate(that, type) {
let flag
switch (type) {
case '1': {
//取出local中的投被保人信息
//取出local中的投被保人信息
let saleInsuredInfo = JSON.parse(localStorage.saleInsuredInfo)
//如果 性别, 出生日期, 有无社保, 职业 发生变化
if (that.userInfo.sex != saleInsuredInfo.sex || that.userInfo.birthday != saleInsuredInfo.birthday) {
@@ -666,7 +666,7 @@ export function infoUpdate(that, type) {
}
break
case '2': {
//取出local中的被保人信息
//取出local中的被保人信息
let saleInsuredPersonInfo = JSON.parse(localStorage.saleInsuredPersonInfo)
//如果 性别, 出生日期, 有无社保, 职业 发生变化
if (
@@ -707,11 +707,11 @@ export function infoUpdate(that, type) {
/**
*
* @param {*} that 上下文
* @param {*} type 1 投保人 2 被保人
* @param {*} type 1 投保人 2 被保
*/
export function save(that, type, str) {
let params = {
// 投被保人入参不同
// 投被保人入参不同
orderType: type == '1' ? 'APPNT_ORDER' : 'INSURED_ORDER',
orderDTO: {
orderInfoDTO: {
@@ -727,7 +727,7 @@ export function save(that, type, str) {
if (type == '2' && that.userInfo.mediaDTOS == '') {
delete that.userInfo.mediaDTOS
}
// 投被保人入参不同
// 投被保人入参不同
type == '1' ? (params.orderDTO.appntDTO = that.userInfo) : (params.orderDTO.insuredDTOs = [that.userInfo])
saveOrUpdateOrderInfo(params).then(res => {
if (res.result == 0) {
@@ -738,7 +738,7 @@ export function save(that, type, str) {
that.countDown = 60
that.codeDisabled = false
// let url
// 投被保人跳转路径不同
// 投被保人跳转路径不同
if (type == '1') {
that.$jump({
flag: 'h5',
@@ -815,7 +815,7 @@ export function sureArea(that, area, type, flag = false) {
*
* @param {*} that 上下文
* @param {*} data 扫描数据
* @param {*} type 1 投保人 2 被保人
* @param {*} type 1 投保人 2 被保
*/
export function getIdentityInfo(that, data, type) {
if (data.name && data.name != '待识别') {
@@ -829,7 +829,7 @@ export function getIdentityInfo(that, data, type) {
}
that.isScan = false
that.bankisScan = false
let title = type == '1' ? '投保人信息' : '被保人信息'
let title = type == '1' ? '投保人信息' : '被保人信息'
that.$jump({
flag: 'navigation',
extra: {
@@ -882,7 +882,7 @@ export function getRelatedData(that, val) {
/**
*
* @param {*} that 上下文
* @param {*} type 1 投保人 2 被保人
* @param {*} type 1 投保人 2 被保
*/
export function getCode(that, type) {
if (that.userInfo.mobile == '') {

View File

@@ -110,7 +110,7 @@ export default {
return
}
} else {
//校验主合同的被保人寿险职业等级
//校验主合同的被保人寿险职业等级
if (riskRules.lifeGradeLimit(resultData, this)) {
return
}
@@ -187,7 +187,7 @@ export default {
},
//豁免险影响
remitLimit(resultData) {
//isRemit 0是豁免险 1非豁免险 remitType 0投保人 1被保人 relationToAppnt 投被关系
//isRemit 0是豁免险 1非豁免险 remitType 0投保人 1被保人 relationToAppnt 投被关系
let isRemit = resultData.productTrialInfoDTO.isRemit
if (isRemit == 1) return false
let remitType = resultData.productTrialInfoDTO.remitType

View File

@@ -377,7 +377,7 @@ export default {
if (localStorage.saleInsuredInfo) {
this.saleInsuredInfo = JSON.parse(localStorage.saleInsuredInfo)
}
//获取被保人信息
//获取被保人信息
if (localStorage.saleInsuredPersonInfo) {
this.saleInsuredPersonInfo = JSON.parse(localStorage.saleInsuredPersonInfo)
}
@@ -676,7 +676,7 @@ export default {
let age = Number(this.saleInsuredPersonInfo.age)
for (let i = 0; i < currentEle.rules.length; i++) {
if (currentEle.rules[i].payEndYear == value && age > currentEle.rules[i].maxAge) {
this.$toast('被保人年龄不适合该交费期间!')
this.$toast('被保人年龄不适合该交费期间!')
return true
}
}
@@ -687,7 +687,7 @@ export default {
let age = Number(this.saleInsuredPersonInfo.age)
for (let i = 0; i < currentEle.rules.length; i++) {
if (currentEle.rules[i].insuYear == value && age > currentEle.rules[i].maxAge) {
this.$toast('被保人年龄不适合该保险期间!')
this.$toast('被保人年龄不适合该保险期间!')
return true
}
}
@@ -1073,7 +1073,7 @@ export default {
//添加判断,是否是孝心保产品
let productCode = localStorage.trialList == '' ? '' : JSON.parse(localStorage.trialList)[0].productCode
if (productCode == 'GFRS_M0014') {
//被保人年龄如果在50-65区间
//被保人年龄如果在50-65区间
if (this.saleInsuredPersonInfo.age >= 50 && this.saleInsuredPersonInfo.age <= 65) {
//使用rules规则里的第二条控制保额份数
if (Number(defalutValue) < Number(riskFactor.rules[1].minPrem) || Number(defalutValue) > Number(riskFactor.rules[1].maxPrem)) {
@@ -1090,7 +1090,7 @@ export default {
this.getTrial()
}
}
//被保人年龄如果在66-75之间
//被保人年龄如果在66-75之间
} else if (this.saleInsuredPersonInfo.age >= 66 && this.saleInsuredPersonInfo.age <= 75) {
//使用rules规则里的第一条控制保额份数
if (Number(defalutValue) < Number(riskFactor.rules[0].minPrem) || Number(defalutValue) > Number(riskFactor.rules[0].maxPrem)) {

View File

@@ -134,7 +134,7 @@ export default {
return
}
} else {
//校验主合同被保人寿险职业等级
//校验主合同被保人寿险职业等级
if (riskRules.lifeGradeLimit(resultData, this)) {
return
}

View File

@@ -1,5 +1,5 @@
export default {
//投、被保人年龄对险种的限制
//投、被保人年龄对险种的限制
ageLimit(resultData, vm, isApplicant) {
let age, tips
if (isApplicant) {
@@ -7,7 +7,7 @@ export default {
tips = '投保人年龄不适合此款险种,请选择其他险种!'
} else {
age = this.getSaleInsuredPersonInfo().age
tips = '被保人年龄不适合此款险种,请选择其他险种!'
tips = '被保人年龄不适合此款险种,请选择其他险种!'
}
let minAge = resultData.productTrialInfoDTO.ageRange && resultData.productTrialInfoDTO.ageRange.minAge
let maxAge = resultData.productTrialInfoDTO.ageRange && resultData.productTrialInfoDTO.ageRange.maxAge;
@@ -24,7 +24,7 @@ export default {
let socialInsurance = resultData.productInsuredDTO.socialInsurance
if (socialInsurance == 0) return false
if (currentMedical != socialInsurance) {
vm.$toast('被保人社保情况不适合此款险种,请选择其他险种!')
vm.$toast('被保人社保情况不适合此款险种,请选择其他险种!')
return true
}
return false
@@ -62,7 +62,7 @@ export default {
}
return false
},
//获取被保人信息
//获取被保人信息
getSaleInsuredPersonInfo() {
return localStorage.saleInsuredPersonInfo && JSON.parse(localStorage.saleInsuredPersonInfo)
},

View File

@@ -133,7 +133,7 @@ export default {
}
})
if (v.insuredId) {
//判断是否已经添加被保人及险种
//判断是否已经添加被保人及险种
v.hasRisk = true
}
this.persons.forEach(p => {
@@ -183,7 +183,7 @@ export default {
}
})
if (result) {
return Toast.fail('请填写被保人信息')
return Toast.fail('请填写被保人信息')
}
if (!hasRisk) {
return Toast.fail('请选择保险产品信息')
@@ -215,7 +215,7 @@ export default {
})
},
//从页头选择被保人
//从页头选择被保
handleChoose(item) {
console.log(item)
if (!item.check) {
@@ -229,7 +229,7 @@ export default {
Dialog.confirm({
className: 'dialog-delete',
title: '提示',
message: '确认删除该被保人?',
message: '确认删除该被保人?',
cancelButtonColor: '#E9332E',
confirmButtonColor: '#FFFFFF'
})
@@ -276,7 +276,7 @@ export default {
Dialog.confirm({
className: 'dialog-delete',
title: '提示',
message: '确认删除该被保人?',
message: '确认删除该被保人?',
cancelButtonColor: '#E9332E',
confirmButtonColor: '#FFFFFF'
})
@@ -324,7 +324,7 @@ export default {
relationToAppnt: person.relation,
relationName: person.relationName
}
localStorage.saleInsuredPersonInfo = JSON.stringify(saleInsuredPersonInfo) //存储被保人信息
localStorage.saleInsuredPersonInfo = JSON.stringify(saleInsuredPersonInfo) //存储被保人信息
localStorage.chooseProductCodes = '' //置空所选险种
this.$jump({
@@ -341,7 +341,7 @@ export default {
edit(item) {
item.birthday = item.birthdayLabel
item.age = item.insuredAge
localStorage.saleInsuredPersonInfo = JSON.stringify(item) //存储被保人信息
localStorage.saleInsuredPersonInfo = JSON.stringify(item) //存储被保人信息
localStorage.isFrom = 'proposal'
this.$jump({
flag: 'h5',
@@ -353,7 +353,7 @@ export default {
}
})
},
//添加被保险人 添加一个没有险种的被保人
//添加被保险人 添加一个没有险种的被保
addPerson(item) {
let code = item.code
let persons = this.persons

View File

@@ -204,7 +204,7 @@ export default {
// 折叠面板
activeNames: [],
appntDTO: {}, //投保人信息
insuredDTOs: [{}], //被保人信息
insuredDTOs: [{}], //被保人信息
isWeixin,
agent: {
//代理人信息

View File

@@ -9,7 +9,7 @@
@nameChange="nameChange"
@on-choose="chooseCustomer"
v-validate="'required'"
name="被保人"
name="被保人"
required
:readonly="disabled"
label="姓名"
@@ -48,15 +48,15 @@
label="职业"
name="职业"
v-validate="'required'"
placeholder="被保人职业"
placeholder="被保人职业"
/>
<select-radio class="border-bottom" :radios="medicalRadio" label="有无社保" :value.sync="insured.medical"></select-radio>
<div class="border-bottom">
<van-field :readonly="disabled" :value="ageShow" @input="changeAgeInput($event)" clearable label="年龄" placeholder="被保人年龄" />
<van-field :readonly="disabled" :value="ageShow" @input="changeAgeInput($event)" clearable label="年龄" placeholder="被保人年龄" />
</div>
<!-- <div class="border-bottom"><van-field :readonly="disabled" v-model="insured.age" clearable label="年龄" placeholder="被保人年龄" /></div> -->
<!-- <div class="border-bottom"><van-field :readonly="disabled" v-model="insured.age" clearable label="年龄" placeholder="被保人年龄" /></div> -->
<van-field v-model="insured.mobile" :readonly="disabled" clearable label="手机号码" name="手机号码" placeholder="被保人手机号码" v-validate="'mobile'" />
<van-field v-model="insured.mobile" :readonly="disabled" clearable label="手机号码" name="手机号码" placeholder="被保人手机号码" v-validate="'mobile'" />
<van-button type="danger" @click="nextStep" class="bottom-btn fs16">下一步</van-button>
</van-cell-group>
</div>
@@ -116,7 +116,7 @@ export default {
occupationShowPicker: false,
currentPopupIndex: '',
disabled: false,
ageShow: '' //被保人显示年龄
ageShow: '' //被保人显示年龄
}
},
@@ -143,7 +143,7 @@ export default {
this.insured.relationToAppnt = relationToAppnt
this.insured.relationLabel = relationName
if (this.insured.relationToAppnt == '1') {
//如果是投被同人 就将投保人信息存入被保人信息
//如果是投被同人 就将投保人信息存入被保人信息
this.disabled = true
this.insured = Object.assign(this.insured, JSON.parse(localStorage.proposalAppnt))
this.insured.age = getAge.getAge(this.insured.birthday, new Date())
@@ -151,7 +151,7 @@ export default {
}
this.ageShow = this.insured.age == '-1' ? '0' : this.insured.age
},
//设置被保人年龄显示 如果this.insured.age为 -1时显示为空不为1时显示为正常输入值
//设置被保人年龄显示 如果this.insured.age为 -1时显示为空不为1时显示为正常输入值
changeAgeInput(val) {
// this.ageShow = val == '-1' ? '0' : val
this.insured.age = val
@@ -195,7 +195,7 @@ export default {
this.$jump({
flag: 'navigation',
extra: {
title: '被保人信息',
title: '被保人信息',
hiddenRight: '1'
}
})
@@ -209,7 +209,7 @@ export default {
this.$jump({
flag: 'navigation',
extra: {
title: '被保人信息',
title: '被保人信息',
hiddenRight: '1'
}
})
@@ -234,7 +234,7 @@ export default {
let resultSex = checkSex(cacheSex, localSex, relation)
let resultRelation = checkRelation(relation, this.insured.age)
if (!resultSex) {
return Toast.fail('被保人性别有误')
return Toast.fail('被保人性别有误')
}
if (!resultRelation) {
return Toast.fail('0-7岁未成年人须由其父母投保')
@@ -323,7 +323,7 @@ export default {
this.$jump({
flag: 'navigation',
extra: {
title: '被保人信息',
title: '被保人信息',
hiddenRight: '1'
}
})

View File

@@ -215,7 +215,7 @@ export default {
},
//编辑
edit(item) {
//建议书列表 编辑=》制作中的建议书跳转到选择被保人页面;
//建议书列表 编辑=》制作中的建议书跳转到选择被保人页面;
localStorage.orderNo = item.orderInfoDTO.orderNo
this.$jump({
flag: 'h5',

View File

@@ -43,7 +43,7 @@ export function formLabel(label, key) {
return result
}
//将被保人与利益演示相关联
//将被保人与利益演示相关联
export function relevance(insured, insuredLabelResult, insuredResult, insuredInfoResult, amtFormat, dutyLst) {
insured.forEach(insure => {
insure.productFeatures = ''

View File

@@ -1,5 +1,5 @@
export function checkSex(cacheSex, localSex, relation) {
//当关系为配偶时 被保人性别必须与投保人性别不一致
//当关系为配偶时 被保人性别必须与投保人性别不一致
if (relation == '2' && localSex == cacheSex) {
return false
} else {
@@ -7,7 +7,7 @@ export function checkSex(cacheSex, localSex, relation) {
}
}
export function checkRelation(relation, age) {
//当被保人年龄小于8岁 被保人与投保人关系必须为父母
//当被保人年龄小于8岁 被保人与投保人关系必须为父母
if (age < 8 && relation != '4') {
return false
} else {

View File

@@ -4,7 +4,7 @@
<van-radio-group v-model="radio" class="flex pl30 pr30 pt15 pb15 justify-content-s bg-white mt10">
<van-radio name="0" class="fs14" @click="clickRadio(saleInsuredInfo.name)" v-if="!changeCard">{{ `投保人${saleInsuredInfo.name}` }}</van-radio>
<!-- <van-radio name="1" class="fs14" v-if="relationToAppnt != '1'" @click="clickRadio(saleInsuredPersonInfo.name)">{{
`被保人${saleInsuredPersonInfo.name}`
`被保${saleInsuredPersonInfo.name}`
}}</van-radio> -->
</van-radio-group>
<div v-if="radio == '0'">
@@ -110,7 +110,7 @@ import BankCardScan from '@/components/ebiz/sale/BankCardScan'
export default {
data() {
return {
// 选中后传给后端的投保人或者被保人名字
// 选中后传给后端的投保人或者被保人名字
name: '',
// 开户银行
bank: '',
@@ -118,7 +118,7 @@ export default {
checked: false,
// 自动续保
isChecked: false,
// 投被保人是否同一个
// 投被保人是否同一个
relationToAppnt: '',
// 银行卡号
bankId: '',
@@ -126,7 +126,7 @@ export default {
radio: '0',
// 银行列表弹框
show: false,
// 被保人信息
// 被保人信息
saleInsuredPersonInfo: {},
// 投保人信息
saleInsuredInfo: {},
@@ -398,7 +398,7 @@ export default {
if (res.result == 0) {
//如果是从编辑进来的
if (this.$route.query.edit) {
//投被保人关系
//投被保人关系
this.relationToAppnt = res.orderDTO.insuredDTOs[0].relationToAppnt
this.$utils.intLocalStorage(res)
@@ -417,10 +417,10 @@ export default {
let that = this
// 获取投被保人是否同一个人
// 获取投被保人是否同一个人
if (localStorage.saleInsuredPersonInfo) {
that.relationToAppnt = JSON.parse(window.localStorage.getItem('saleInsuredPersonInfo')).relationToAppnt
// 获取被保人信息
// 获取被保人信息
that.saleInsuredPersonInfo = JSON.parse(window.localStorage.getItem('saleInsuredPersonInfo'))
}
if (localStorage.saleInsuredInfo) {

View File

@@ -6,8 +6,8 @@
v-model="relationToAppnt"
required
readonly
label="是被保人的"
name="是被保人的"
label="是被保人的"
name="是被保人的"
right-icon="arrow"
placeholder="请选择"
v-validate="'required'"
@@ -302,7 +302,7 @@ export default {
bnfOrder: '1', //受益顺序
bnfLot: '', //受益比例
bnfFlag: '',
relationToInsured: '', //和被保人的关系
relationToInsured: '', //和被保人的关系
lifeGrade: '',
healthGrade: '',
bnfType: '0' //身故受益人
@@ -336,7 +336,7 @@ export default {
this.userInfo.name = name
},
selectClick(index) {
// 同被保人不允许编辑
// 同被保人不允许编辑
if (this.isInsured) {
return
}
@@ -408,7 +408,7 @@ export default {
},
//弹框选择
toSelect(pickerType, valueKey) {
//同被保人不允许编辑
//同被保人不允许编辑
if (this.isInsured) {
return
}
@@ -466,13 +466,13 @@ export default {
} else if (this.pickerType == '6') {
;[this.userInfo.marriage, this.marriage] = [value.id, value.text]
} else if (this.pickerType == '7') {
// //如果受益人是被保人本人
// //如果受益人是被保人本人
// if (value.id == 1) {
// //获取投保人数据
// getOrderDetail({ orderNo: localStorage.orderNo }).then(res => {
// if (res.result == 0) {
// this.isInsured = true
// //获取被保人信息
// //获取被保人信息
// let insuredInfo = res.orderDTO.insuredDTOs[0]
// for (let key in this.userInfo) {
// this.userInfo[key] = insuredInfo[key]
@@ -657,13 +657,13 @@ export default {
let age = utilsAge.getAge(this.userInfo.birthday, new Date())
let relationToAppnt = localStorage.relationToAppnt
let insuredDetail = JSON.parse(localStorage.insuredDetail)
// //被保人不是已婚
// //被保人不是已婚
// if (this.insuredMarriage != '1') {
// return this.$toast('与投保人关系不正确')
// }
// let insuredSex = JSON.parse(localStorage.saleInsuredPersonInfo).sex
// let appntSex = JSON.parse(localStorage.saleInsuredInfo).sex
// //投被保人性别相同
// //投被保人性别相同
// if (insuredSex == appntSex) {
// return this.$toast('性别输入有误')
// }
@@ -671,21 +671,21 @@ export default {
// 页面跳转
this.$validator.validate().then(valid => {
if (true === valid) {
// 受益人是被保人的配偶
// 受益人是被保人的配偶
if (this.userInfo.relationToInsured == '2') {
// 受益人与投保人都是被保人的配偶时
// 受益人与投保人都是被保人的配偶时
if (this.userInfo.relationToInsured == '2' && relationToAppnt == '2') {
if (this.userInfo.name != insuredDetail.name || this.userInfo.sex != insuredDetail.sex || this.userInfo.idNo != insuredDetail.idNo) {
return this.$toast('受益人数据不合法,请重新输入')
}
}
//与被保人关系是配偶
//与被保人关系是配偶
let insuredInfo = JSON.parse(localStorage.saleInsuredPersonInfo)
//如果投保人不是已婚
if (insuredInfo.marriage != '1') {
return this.$toast('与被保人关系有误')
return this.$toast('与被保人关系有误')
}
//如果被保人与投保人性别相同
//如果被保人与投保人性别相同
if (insuredInfo.sex == this.userInfo.sex) {
return this.$toast('性别录入与婚姻状况不符')
}
@@ -696,7 +696,7 @@ export default {
}
}
// 受益人是被保人的父母,被保人是投保人的子女时
// 受益人是被保人的父母,被保人是投保人的子女时
if (this.userInfo.relationToInsured == '3' && relationToAppnt == '4') {
if (this.userInfo.sex == insuredDetail.sex) {
if (this.userInfo.name != insuredDetail.name || this.userInfo.idNo != insuredDetail.idNo) {

View File

@@ -158,7 +158,7 @@
</div>
<div v-if="relationToAppnt != '1'">
<div class="flex bg-white p10 align-items-c">
<span>被保人附件</span>
<span>被保人附件</span>
</div>
<div class=" m20 bg-white">
<div>
@@ -310,19 +310,19 @@ export default {
fileLIstImg: [],
// 投保人选择的必选其他
saleInsuredInfoOther: [],
// 被保人选择的必选其他
// 被保人选择的必选其他
saleInsuredPersonInfoOther: [],
// 银行卡正面
fileListBank: [],
//银行卡反面
// fileListBankBack: [],
// 被保人身份证正面
// 被保人身份证正面
fileListIdFrontInsured: [],
// 被保人身份证反面
// 被保人身份证反面
fileListIdBackInsured: [],
// 被保人银行账户
// 被保人银行账户
fileListBankInsured: [],
// 被保人其他类型页面
// 被保人其他类型页面
fileLIstImgInsured: [],
// 受益人
// fileListtypebeneficiary: [],
@@ -337,7 +337,7 @@ export default {
isDisabled: true,
// 数据字典证件类型
idType: [],
// 被保人信息
// 被保人信息
saleInsuredPersonInfo: {},
// 投保人信息
saleInsuredInfo: {},
@@ -348,13 +348,13 @@ export default {
// 图片返回数组
imgList: [],
type: '',
// 是投保人还是被保人
// 是投保人还是被保
isAppant: '',
// 传给后端的list
list: [],
// 是哪个证件类型
id: '',
// 投保人被保人是否是一个人 1为同一个人
// 投保人被保人是否是一个人 1为同一个人
relationToAppnt: '',
changeCard: localStorage.changeCard
}
@@ -365,14 +365,14 @@ export default {
getOrderDetail({ orderNo: localStorage.orderNo }).then(res => {
// console.log(res)
if (res.result == 0) {
//是投保人还是被保人
//是投保人还是被保
localStorage.accountInformationRadio = res.orderDTO.orderAccountDTO.accountType
//投被保人关系
//投被保人关系
this.relationToAppnt = res.orderDTO.insuredDTOs[0].relationToAppnt
this.$utils.intLocalStorage(res)
//投保人信息
// localStorage.saleInsuredInfo = JSON.stringify(res.orderDTO.appntDTO)
//被保人信息
//被保人信息
// localStorage.saleInsuredPersonInfo = JSON.stringify(res.orderDTO.insuredDTOs[0])
} else {
this.$toast(res.resultMessage)
@@ -385,15 +385,15 @@ export default {
document.body.style.backgroundColor = '#fff'
}
let that = this
// 投被保人是否同人
// 投被保人是否同人
if (localStorage.saleInsuredPersonInfo) {
that.relationToAppnt = JSON.parse(window.localStorage.getItem('saleInsuredPersonInfo')).relationToAppnt
// 获取被保人信息
// 获取被保人信息
that.saleInsuredPersonInfo = JSON.parse(window.localStorage.getItem('saleInsuredPersonInfo'))
}
// 获取订单号
that.orderNo = window.localStorage.getItem('orderNo')
// 获取是投保人还是被保人
// 获取是投保人还是被保
that.isAppant = window.localStorage.getItem('accountInformationRadio')
// 数据字典获取
that.idType = DataDictionary.idType
@@ -421,7 +421,7 @@ export default {
} else {
that.fileListIdFront = []
}
// 被保人身份证正面
// 被保人身份证正面
if (window.localStorage.getItem('imgfrontInsuredPath') != null) {
let imgfront = {
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${window.localStorage.getItem('imgfrontInsuredPath')}`
@@ -457,7 +457,7 @@ export default {
} else {
that.fileListIdBack = []
}
// 被保人身份证背面
// 被保人身份证背面
if (window.localStorage.getItem('imgBackInsuredPath') != null) {
let imgback = {
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${window.localStorage.getItem('imgBackInsuredPath')}`
@@ -493,7 +493,7 @@ export default {
} else {
that.fileListBank = []
}
// 被保人银行卡
// 被保人银行卡
// if (window.localStorage.getItem('bankCardUrlInsuredPath') != null) {
// let bankCardUrlInsured = {
// url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${window.localStorage.getItem('bankCardUrlInsuredPath')}`
@@ -769,7 +769,7 @@ export default {
that.type == 'fileLIstImgInsured' ||
that.type == 'saleInsuredPersonInfoOther'
) {
// 是被保人
// 是被保
// 证件类型
let imageInfoType = ''
@@ -978,7 +978,7 @@ export default {
typebeneficiary() {
// 1.趸交保费≥20万元或期交保费*总期数≥20万元时
// 2.指定受益人
// 3.受益人与被保人关系为其他
// 3.受益人与被保人关系为其他
if (!window.localStorage.getItem('trialList') == true || !window.localStorage.getItem('beneficiaryInfo') == true) {
return false
} else {

View File

@@ -31,9 +31,9 @@ export default {
data() {
let isWeixin = this.$utils.device().isWeixin //判断环境
return {
// 投保人还是被保人信息
// 投保人还是被保人信息
signVal: '',
// 被保人签名信息
// 被保人签名信息
insuredSign: {},
// 投保人签名信息
appntSign: {},
@@ -57,7 +57,7 @@ export default {
base64: '',
// 是否可以点击
isDisabledComplite: true,
// local带来的被保人信息
// local带来的被保人信息
saleInsuredPersonInfo: {},
// local带来的投保人信息
saleInsuredInfo: {},
@@ -90,9 +90,9 @@ export default {
}
if (this.detailJump != '1') {
// 投被保人是否同人
// 投被保人是否同人
that.relationToAppnt = JSON.parse(window.localStorage.getItem('saleInsuredPersonInfo')).relationToAppnt
// 获取被保人信息
// 获取被保人信息
// that.saleInsuredPersonInfo = JSON.parse(window.localStorage.getItem('saleInsuredPersonInfo'))
}
// if (this.detailJump != '1') {

View File

@@ -33,7 +33,7 @@
<van-icon name="delete" size="20" @click="deleteBeneficiary(index)" />
</div>
<p class="mt20">
<span class="c-gray-dark">是被保人的</span>
<span class="c-gray-dark">是被保人的</span>
<span class="ml20">{{ item.relationToInsured | idToText('relationToAppnt') }}</span>
</p>
<p class="mt10">

View File

@@ -25,7 +25,7 @@ export default {
src: require('@/assets/images/u6071.png'),
// 是否可以点击完成
isDisabled: true,
// 是投保人还是被保人扫描 0是投保人 1是被保人
// 是投保人还是被保人扫描 0是投保人 1是被保
cardScanningType: ''
}
},

View File

@@ -20,9 +20,9 @@
</van-cell-group>
</van-collapse-item>
<!-- 多被保人信息 -->
<!-- 多被保人信息 -->
<div v-for="(item, index) in insuredDTOs" :key="index" class="pb10">
<van-collapse-item title="被保人信息" :name="index + 40" class="pb10">
<van-collapse-item title="被保人信息" :name="index + 40" class="pb10">
<van-cell-group>
<van-cell title="是投保人的" :value="item.relationToAppnt" />
<van-cell title="姓名" :value="item.name" />
@@ -45,7 +45,7 @@
<div v-if="OrderInfoDTO.bnfFlag == '指定受益人'">
<van-cell title="姓名" :value="itm.name" />
<van-cell title="性别" :value="itm.sex" />
<van-cell title="是被保人的" :value="itm.relationToInsured" />
<van-cell title="是被保人的" :value="itm.relationToInsured" />
<van-cell title="受益比例" :value="`${itm.bnfLot}%`" v-if="itm.bnfLot != null" />
<van-cell title="证件类型" :value="itm.idType" />
<van-cell title="证件号码" :value="itm.idNo" />
@@ -103,7 +103,7 @@ export default {
OrderInfoDTO: {},
// 投保人信息
appntDTO: {},
// 被保人信息
// 被保人信息
insuredDTOs: [],
// 保单号
contNo: '',
@@ -204,7 +204,7 @@ export default {
}
})
})
// 被保人信息
// 被保人信息
res.orderDTO.insuredDTOs.map(item => {
if (item.sex == '0') {
item.sex = '男'

View File

@@ -31,9 +31,9 @@ export default {
data() {
let isWeixin = this.$utils.device().isWeixin //判断环境
return {
// 投保人还是被保人信息
// 投保人还是被保人信息
signVal: '',
// 被保人签名信息
// 被保人签名信息
insuredSign: {},
// 投保人签名信息
appntSign: {},
@@ -57,7 +57,7 @@ export default {
base64: '',
// 是否可以点击
isDisabledComplite: true,
// local带来的被保人信息
// local带来的被保人信息
saleInsuredPersonInfo: {},
// local带来的投保人信息
saleInsuredInfo: {},
@@ -90,9 +90,9 @@ export default {
}
if (this.detailJump != '1') {
// 投被保人是否同人
// 投被保人是否同人
that.relationToAppnt = JSON.parse(window.localStorage.getItem('saleInsuredPersonInfo')).relationToAppnt
// 获取被保人信息
// 获取被保人信息
// that.saleInsuredPersonInfo = JSON.parse(window.localStorage.getItem('saleInsuredPersonInfo'))
}
// if (this.detailJump != '1') {

View File

@@ -99,9 +99,9 @@ export default {
data() {
let isWeixin = this.$utils.device().isWeixin //判断环境
return {
// 投保人还是被保人信息
// 投保人还是被保人信息
signVal: '',
// 被保人签名信息
// 被保人签名信息
insuredSign: {},
// 投保人签名信息
appntSign: {},

View File

@@ -31,9 +31,9 @@ export default {
data() {
let isWeixin = this.$utils.device().isWeixin //判断环境
return {
// 投保人还是被保人信息
// 投保人还是被保人信息
signVal: '',
// 被保人签名信息
// 被保人签名信息
insuredSign: {},
// 投保人签名信息
appntSign: {},
@@ -57,7 +57,7 @@ export default {
base64: '',
// 是否可以点击
isDisabledComplite: true,
// local带来的被保人信息
// local带来的被保人信息
saleInsuredPersonInfo: {},
// local带来的投保人信息
saleInsuredInfo: {},
@@ -90,9 +90,9 @@ export default {
}
if (this.detailJump != '1') {
// 投被保人是否同人
// 投被保人是否同人
that.relationToAppnt = JSON.parse(window.localStorage.getItem('saleInsuredPersonInfo')).relationToAppnt
// 获取被保人信息
// 获取被保人信息
// that.saleInsuredPersonInfo = JSON.parse(window.localStorage.getItem('saleInsuredPersonInfo'))
}
// if (this.detailJump != '1') {

View File

@@ -948,7 +948,7 @@ export default {
params.orderDTO.appntDTO = this.userInfo
let resultData = await saveOrUpdateOrderInfo(params)
if (resultData.result == 0) {
//存储被保人信息
//存储被保人信息
// let age = utilsAge.getAge(this.userInfo.birthday, new Date())
// localStorage.saleInsuredInfo = JSON.stringify({
// birthday: this.userInfo.birthday,

View File

@@ -682,7 +682,7 @@ export default {
this.userInfo.name = name
},
selectClick(index) {
// 投被保人不允许编辑
// 投被保人不允许编辑
if (this.isAppnt) {
return
}
@@ -714,7 +714,7 @@ export default {
this.$jump({
flag: 'navigation',
extra: {
title: '被保人信息',
title: '被保人信息',
hiddenRight: '1'
}
})
@@ -740,7 +740,7 @@ export default {
if (this.isAppnt && pickerType != '7') {
return
}
//pickerType 1、国家地区 2、证件类型 3、文化程度 4、有无社保(弃用) 5、税收居民身份 6、婚姻状况 7、被保人关系
//pickerType 1、国家地区 2、证件类型 3、文化程度 4、有无社保(弃用) 5、税收居民身份 6、婚姻状况 7、被保人关系
;[this.popupShow, this.pickerType] = [true, pickerType]
if (valueKey) this.valueKey = valueKey
if (pickerType == '1') {
@@ -1002,7 +1002,7 @@ export default {
this.$jump({
flag: 'navigation',
extra: {
title: '被保人信息',
title: '被保人信息',
hiddenRight: '1'
}
})
@@ -1022,7 +1022,7 @@ export default {
this.$jump({
flag: 'navigation',
extra: {
title: '被保人信息',
title: '被保人信息',
hiddenRight: '1'
}
})
@@ -1102,17 +1102,17 @@ export default {
// 计算年龄
let age = utilsAge.getAge(this.userInfo.birthday, new Date())
//投被保人关系是配偶
//投被保人关系是配偶
if (this.userInfo.relationToAppnt == '2') {
//投保人或者被保人不是已婚
//投保人或者被保人不是已婚
if (this.appntMarriage != '1' || this.userInfo.marriage != '1') {
return this.$toast('投被保人婚姻状况有误')
return this.$toast('投被保人婚姻状况有误')
}
let insuredSex = this.userInfo.sex
let appntSex = JSON.parse(localStorage.saleInsuredInfo).sex
//投被保人性别相同
//投被保人性别相同
if (insuredSex == appntSex) {
return this.$toast('被保人性别有误')
return this.$toast('被保人性别有误')
}
}
@@ -1194,7 +1194,7 @@ export default {
}
//如果是身份证,且未成年,则与投保人关系必须是子女关系
// if(age < 18 && this.userInfo.relationToAppnt != '4'){
// return this.$toast('被保人小于18周岁选择身份证时与投保人关系必须为子女')
// return this.$toast('被保人小于18周岁选择身份证时与投保人关系必须为子女')
// }
//证件类型是户口本
@@ -1243,7 +1243,7 @@ export default {
//如果是已婚
if ((this.userInfo.sex == '0' && age < 22) || (this.userInfo.sex == '1' && age < 20)) {
if (this.userInfo.marriage != '2') {
return this.$toast('被保人不符合国家婚姻法定年龄')
return this.$toast('被保人不符合国家婚姻法定年龄')
}
}
// this.save()
@@ -1262,7 +1262,7 @@ export default {
if (chooseProductCodes && chooseProductCodes.length) {
//获取险种列表
// let chooseProductCodes = JSON.parse(localStorage.chooseProductCodes)
//取出local中的被保人信息
//取出local中的被保人信息
let saleInsuredPersonInfo = JSON.parse(localStorage.saleInsuredPersonInfo)
//如果 性别, 出生日期, 有无社保, 职业 发生变化
console.log(this.userInfo, '这是userInfo')
@@ -1312,8 +1312,8 @@ export default {
params.orderDTO.insuredDTOs = [this.userInfo]
let resultData = await saveOrUpdateOrderInfo(params)
if (resultData.result == 0) {
//存储被保人信息
//如果投被保人是同一个人, 更新投保人信息
//存储被保人信息
//如果投被保人是同一个人, 更新投保人信息
// if (this.userInfo.relationToAppnt == '1') {
// localStorage.saleInsuredInfo = JSON.stringify(this.userInfo)
// }

View File

@@ -368,10 +368,10 @@ export default {
case '43': //未签名待客户确认, 跳到签名确认页面
url = '/sale/SignatureConfirmation?edit=1'
break
case '35': //投保人保存成功, 跳到被保人页面--
case '35': //投保人保存成功, 跳到被保人页面--
url = '/sale/insuredPerson?edit=1'
break
case '36': //被保人保存成功, 跳到已选产品列表
case '36': //被保人保存成功, 跳到已选产品列表
url = '/common/selectedProduct?edit=1'
break
case '37': //受益人保存成功, 跳到告知信息--

View File

@@ -12,7 +12,7 @@
<van-collapse v-model="activeNames">
<van-collapse-item :name="indx + 1">
<div slot="title" class="flex align-items-c justify-content-s">
<!--投保人 0 2 4 6 8 10 被保人 1 3 5 7 9 11-->
<!--投保人 0 2 4 6 8 10 被保 1 3 5 7 9 11-->
{{
relationToAppnt == '1'
? '投保人/被保险人' +
@@ -80,7 +80,7 @@
</div>
</div>
<div class="mt10 pb2" :class="{ special: !showFlag || !isShow }" v-else>
<!-- 被保人题目为2b -->
<!-- 被保人题目为2b -->
<div v-if="im.impartType == 3 || im.impartType == 7 || im.impartType == 11">
<div class="mb20 ml20" v-if="item.impartCode == '2b' && showFlag && isShow">
<span>{{ item.impartCode + '.' + item.impartContent }}</span>
@@ -130,15 +130,15 @@ export default {
activeNames: [],
// 投保人信息
saleInsuredInfo: {},
// 被保人信息
// 被保人信息
saleInsuredPersonInfo: {},
// 投被保人是否同人 1为同一个人
// 投被保人是否同人 1为同一个人
relationToAppnt: '',
// 产品编码
productCodes: '',
// 是否可以点击
isDisabled: false,
// 默认显示被保人根据后台返回
// 默认显示被保人根据后台返回
noRisk: false,
//是否存在附加险
isExistAdditionalRisk: false,
@@ -152,16 +152,16 @@ export default {
impartTypeNumber: {
'0': '投保人健康告知',
'2': '投保人财务告知',
'1': '被保人健康告知',
'3': '被保人财务告知',
'1': '被保人健康告知',
'3': '被保人财务告知',
'4': '投保人健康告知',
'5': '被保人健康告知',
'5': '被保人健康告知',
'6': '投保人财务告知',
'7': '被保人财务告知',
'7': '被保人财务告知',
'8': '投保人健康告知',
'10': '投保人财务告知',
'9': '被保人健康告知',
'11': '被保人财务告知'
'9': '被保人健康告知',
'11': '被保人财务告知'
}
}
},
@@ -169,7 +169,7 @@ export default {
getOrderDetail({ orderNo: localStorage.orderNo }).then(res => {
// getOrderDetail({ orderNo: `8186270000000036` }).then(res => {
if (res.result == 0) {
//投被保人关系
//投被保人关系
this.isExistAdditionalRisk = res.orderDTO.insuredDTOs[0].riskDTOLst.length > 1 ? true : false
console.log('this.is ====',this.isExistAdditionalRisk)
this.relationToAppnt = res.orderDTO.insuredDTOs[0].relationToAppnt
@@ -228,7 +228,7 @@ export default {
if (items.extra3) {
let obj = JSON.parse(items.extra3)
if (obj.age && obj.sex == '') {
//被保人年纪大于2岁不显示该题
//被保人年纪大于2岁不显示该题
if (that.saleInsuredPersonAge > obj.age) {
array.splice(index, 1, '')
}
@@ -241,7 +241,7 @@ export default {
}
})
}
// 被保人财务告知添加判断
// 被保人财务告知添加判断
if (item.impartType == 3 || item.impartType == 7 || item.impartType == 11) {
item.impartItemDTOS.map((items, index, array) => {
if (items.extra3) {
@@ -365,7 +365,7 @@ export default {
}
})
})
// 展示被保人项产品 noRis为true
// 展示被保人项产品 noRis为true
if (this.noRisk) {
res.productImpartLstDTO.impartDTOS.map((item, index, array) => {
if (item.impartType == '0') {
@@ -377,7 +377,7 @@ export default {
})
}
if (this.relationToAppnt == '1') {
// 展示被保人项产品 noRis为true
// 展示被保人项产品 noRis为true
if (this.noRisk) {
res.productImpartLstDTO.impartDTOS.map((item, index, array) => {
if (item.impartType == '0') {
@@ -442,7 +442,7 @@ export default {
financeImpartDTO = item
return financeImpartDTO
} else if (item.impartType == '1' || item.impartType == '5' || item.impartType == '9') {
// 被保人健康
// 被保人健康
item.impartItemDTOS.map(i => {
delete i.isSelect
delete i.show
@@ -455,7 +455,7 @@ export default {
objInsured = item
return objInsured
} else if (item.impartType == '3' || item.impartType == '7' || item.impartType == '11') {
// 被保人财富
// 被保人财富
item.impartItemDTOS.map(i => {
delete i.isSelect
delete i.show
@@ -478,7 +478,7 @@ export default {
appntDTO: {
impartDTO: obj
},
// 被保人
// 被保
insuredDTOs: [{ impartDTO: objInsured, financeImpartDTO: financeImpart }]
}
}
@@ -512,7 +512,7 @@ export default {
impartDTO: obj,
financeImpartDTO: financeImpartDTO
},
// 被保人
// 被保
insuredDTOs: [{ impartDTO: objInsured }]
}
}
@@ -546,7 +546,7 @@ export default {
impartDTO: obj,
financeImpartDTO: financeImpartDTO
},
// 被保人
// 被保
insuredDTOs: [{ impartDTO: objInsured, financeImpartDTO: financeImpart }]
}
}

View File

@@ -75,7 +75,7 @@
<van-collapse v-model="activeNames" v-for="(item, index) in insured" :key="index">
<van-collapse-item :name="index + 2">
<div slot="title">
被保人
被保
<span class="ml20">{{ item.name }}</span>
</div>
<p class="mb20">以下内容需要您按照顺序阅读并签字确认:</p>
@@ -157,7 +157,7 @@
<van-collapse v-model="activeNames" v-for="(item, index) in insured" :key="index">
<van-collapse-item :name="index + 2">
<div slot="title">
被保人
被保
<span class="ml20">{{ item.name }}</span>
</div>
<p class="mb20">以下内容需要您按照顺序阅读并签字确认:</p>
@@ -240,17 +240,17 @@ export default {
orderInfo: {},
// 投保人信息
appnt: {},
// 被保人信息
// 被保人信息
insured: [],
// 投保人签名阅读信息
appntSign: [],
// 被保人签名阅读信息
// 被保人签名阅读信息
insuredSign: [],
// 折叠面板
activeNames: ['1', '2'],
// 图片路径
src: this.$assetsUrl + 'images/u6490.png',
// 被保人信息
// 被保人信息
saleInsuredPersonInfo: {},
// 投保人信息
saleInsuredInfo: {},
@@ -260,13 +260,13 @@ export default {
isShow: true,
// 调微信人脸的token
tokenInweixin: '',
// 投保人被保人是否同一个人
// 投保人被保人是否同一个人
relationToAppnt: '',
// 微信分享校验值
signInvalid: '',
// 微信分享链接是否失效 false 为未失效 true为已失效
isInvalid: false,
// 是谁分享的微信链接 1为被保人 0或2为投保人
// 是谁分享的微信链接 1为被保人 0或2为投保人
shareCode: '',
// 是否从空签成功跳转过来 1为是 其他为不是
airSign: '',
@@ -278,7 +278,7 @@ export default {
idcardNumber: ''
},
appntSignStatus: '', //投保人电子签名状态
insuredSignStatus: '', //被保人电子签名状态
insuredSignStatus: '', //被保人电子签名状态
changeCard: localStorage.changeCard
}
},
@@ -336,7 +336,7 @@ export default {
}
})
if (sessionStorage.shareCode == '1') {
console.log('进来被保人')
console.log('进来被保人')
this.tipsName = JSON.parse(localStorage.saleInsuredPersonInfo).name
} else {
console.log('进来投保人')
@@ -363,7 +363,7 @@ export default {
},
// 人脸识别
start_ocr(val) {
// val 0投保人 1被保人 2本人
// val 0投保人 1被保人 2本人
let that = this
if (this.isWeixin) {
window.localStorage.setItem('sign-val', val)
@@ -503,7 +503,7 @@ export default {
share(code) {
let shareName = ''
if (code == '1') {
shareName = '被保人'
shareName = '被保人'
} else {
shareName = '投保人'
}
@@ -734,11 +734,11 @@ export default {
this.$toast.clear()
this.$utils.intLocalStorage(res)
// 获取被保人信息recmd
// 获取被保人信息recmd
this.saleInsuredPersonInfo = JSON.parse(window.localStorage.getItem('saleInsuredPersonInfo'))
// 获取投保人信息
this.saleInsuredInfo = JSON.parse(window.localStorage.getItem('saleInsuredInfo'))
this.relationToAppnt = this.saleInsuredPersonInfo.relationToAppnt //将缓存中的与被保人关系赋值给页面
this.relationToAppnt = this.saleInsuredPersonInfo.relationToAppnt //将缓存中的与被保人关系赋值给页面
this.riskName = res.orderDTO.insuredDTOs[0].riskDTOLst[0].riskName
localStorage.riskName = this.riskName
that.recmd = res.orderDTO.recmdDTO
@@ -776,7 +776,7 @@ export default {
that.appntSign.sort(function(a, b) {
return a.key - b.key
})
//获取投保和被保人电子投保单签字状态
//获取投保和被保人电子投保单签字状态
that.appntSign.map(item => {
// 判断是否双录
if (item.documentCode == '6') {
@@ -869,7 +869,7 @@ export default {
if (e) {
// this.$toast.clear()
// this.$toast('人脸检测成功')
// 1 为被保人
// 1 为被保
if (window.sessionStorage.shareCode == '1') {
this.insuredUrl()
} else {
@@ -895,11 +895,11 @@ export default {
message: '当前投保单件需进行双录,请手动切换至双录系统,进行双录操作,完成后进行后续操作',
showCancelButton: false
}).then(() => {
// 获取投被保人是否同一个人
// 获取投被保人是否同一个人
that.relationToAppnt = JSON.parse(window.localStorage.getItem('saleInsuredPersonInfo')).relationToAppnt
})
} else if (window.localStorage.getItem('jumpFromSign') == '1' || window.localStorage.getItem('attachmentShow') == '1') {
// 获取投被保人是否同一个人
// 获取投被保人是否同一个人
that.relationToAppnt = JSON.parse(window.localStorage.getItem('saleInsuredPersonInfo')).relationToAppnt
}
},

View File

@@ -71,7 +71,7 @@
<van-collapse v-model="activeNames" v-for="(item, index) in insured" :key="index">
<van-collapse-item :name="index + 2">
<div slot="title">
被保人
被保
<span class="ml20">{{ item.name }}</span>
</div>
<p class="mb20">以下内容需要您按照顺序阅读并签字确认:</p>
@@ -174,7 +174,7 @@
<van-collapse v-model="activeNames" v-for="(item, index) in insured" :key="index">
<van-collapse-item :name="index + 2">
<div slot="title">
被保人
被保
<span class="ml20">{{ item.name }}</span>
</div>
<p class="mb20">以下内容需要您按照顺序阅读并签字确认:</p>
@@ -264,17 +264,17 @@ export default {
orderInfo: {},
// 投保人信息
appnt: {},
// 被保人信息
// 被保人信息
insured: [],
// 投保人签名阅读信息
appntSign: {},
// 被保人签名阅读信息
// 被保人签名阅读信息
insuredSign: {},
// 折叠面板
activeNames: ['1', '2'],
// 图片路径
src: this.$assetsUrl + 'images/u6490.png',
// 被保人信息
// 被保人信息
saleInsuredPersonInfo: {},
// 投保人信息
saleInsuredInfo: {},
@@ -284,13 +284,13 @@ export default {
isShow: true,
// 调微信人脸的token
tokenInweixin: '',
// 投保人被保人是否同一个人
// 投保人被保人是否同一个人
relationToAppnt: '',
// 微信分享校验值
signInvalid: '',
// 微信分享链接是否失效 false 为未失效 true为已失效
isInvalid: false,
// 是谁分享的微信链接 1为被保人 0或2为投保人
// 是谁分享的微信链接 1为被保人 0或2为投保人
shareCode: '',
// 是否从空签成功跳转过来 1为是 其他为不是
airSign: '',
@@ -588,7 +588,7 @@ export default {
share(code) {
let shareName = ''
if (code == '1') {
shareName = '被保人'
shareName = '被保人'
} else {
shareName = '投保人'
}
@@ -751,11 +751,11 @@ export default {
if (res.result == '0') {
this.$toast.clear()
this.$utils.intLocalStorage(res)
// 获取被保人信息recmd
// 获取被保人信息recmd
this.saleInsuredPersonInfo = JSON.parse(window.localStorage.getItem('saleInsuredPersonInfo'))
// 获取投保人信息
this.saleInsuredInfo = JSON.parse(window.localStorage.getItem('saleInsuredInfo'))
this.relationToAppnt = this.saleInsuredPersonInfo.relationToAppnt //将缓存中的与被保人关系赋值给页面
this.relationToAppnt = this.saleInsuredPersonInfo.relationToAppnt //将缓存中的与被保人关系赋值给页面
that.recmd = res.orderDTO.recmdDTO
that.orderInfo = res.orderDTO.orderInfoDTO
that.insured = res.orderDTO.insuredDTOs
@@ -874,11 +874,11 @@ export default {
message: '当前投保单件需进行双录,请手动切换至双录系统,进行双录操作,完成后进行后续操作',
showCancelButton: false
}).then(() => {
// 获取投被保人是否同一个人
// 获取投被保人是否同一个人
that.relationToAppnt = JSON.parse(window.localStorage.getItem('saleInsuredPersonInfo')).relationToAppnt
})
} else if (window.localStorage.getItem('jumpFromSign') == '1' || window.localStorage.getItem('attachmentShow') == '1') {
// 获取投被保人是否同一个人
// 获取投被保人是否同一个人
that.relationToAppnt = JSON.parse(window.localStorage.getItem('saleInsuredPersonInfo')).relationToAppnt
}
},

View File

@@ -65,7 +65,7 @@
</div>
</div>
<div class="pt25 pl30 flex align-items-c" v-if="relationToAppnt != '1'">
<span class="mr10">被保人/监护人签名</span>
<span class="mr10">被保/监护人签名</span>
<div v-if="signVal == '0' || signVal == '2'">
<van-button type="danger" size="small" :disabled="signVal == '1' ? isDisableInsured : true" @click="sign('1')" v-no-more-click="1000">{{
insuredSign.documentStatus == '2' ? '未签名' : '已签名'
@@ -115,13 +115,13 @@ export default {
Time: true,
// 按钮是否可以点击
isDisable: true,
// 被保人是否可以点击
// 被保人是否可以点击
isDisableInsured: true,
// 投保人签名阅读信息
appntSign: {},
// 被保人签名阅读信息
// 被保人签名阅读信息
insuredSign: {},
// 是投保人还是被保人 0 投保人 1被保人 2 投被同人
// 是投保人还是被保人 0 投保人 1被保人 2 投被同人
signVal: '',
// CA签字位置
caOffset: '-150', // 投保人签名位置
@@ -131,11 +131,11 @@ export default {
base64: '',
// 是否可以点击
isDisabledComplite: true,
// local带来的被保人信息
// local带来的被保人信息
saleInsuredPersonInfo: {},
// local带来的投保人信息
saleInsuredInfo: {},
// 投被保人是否同人 1为投被同人其他为不是
// 投被保人是否同人 1为投被同人其他为不是
relationToAppnt: '',
// 是否在微信
isWeixin,
@@ -565,12 +565,12 @@ export default {
}
}
} else {
// 在微信被保人
// 在微信被保
if (this.isWeixin) {
this.toAirSign('1', '法定监护人', '10', '4')
} else {
// 不在微信被保人
console.log('被保人签名')
// 不在微信被保
console.log('被保人签名')
EWebBridge.webCallAppInJs('ca_sign', {
//身份证号码
number: that.saleInsuredPersonInfo.idNo,
@@ -838,9 +838,9 @@ export default {
// 不在微信且不是回执签收
if (this.detailJump != '1') {
// 投被保人是否同人
// 投被保人是否同人
that.relationToAppnt = JSON.parse(window.localStorage.getItem('saleInsuredPersonInfo')).relationToAppnt
// 获取被保人信息
// 获取被保人信息
that.saleInsuredPersonInfo = JSON.parse(window.localStorage.getItem('saleInsuredPersonInfo'))
this.timeOut()
this.getOrderDetail()

View File

@@ -70,13 +70,13 @@ export default {
Time: true,
// 按钮是否可以点击
isDisable: true,
// 被保人是否可以点击
// 被保人是否可以点击
isDisableInsured: true,
// 投保人签名阅读信息
appntSign: {},
// 被保人签名阅读信息
// 被保人签名阅读信息
insuredSign: {},
// 是投保人还是被保人 0 投保人 1被保人 2 投被同人
// 是投保人还是被保人 0 投保人 1被保人 2 投被同人
signVal: '',
// 图片路径
url: '',
@@ -84,11 +84,11 @@ export default {
base64: '',
// 是否可以点击
isDisabledComplite: true,
// local带来的被保人信息
// local带来的被保人信息
saleInsuredPersonInfo: {},
// local带来的投保人信息
saleInsuredInfo: {},
// 投被保人是否同人 1为投被同人其他为不是
// 投被保人是否同人 1为投被同人其他为不是
relationToAppnt: '',
// 是否在微信
isWeixin,
@@ -531,9 +531,9 @@ export default {
}
if (this.detailJump != '1') {
// 投被保人是否同人
// 投被保人是否同人
that.relationToAppnt = JSON.parse(window.localStorage.getItem('saleInsuredPersonInfo')).relationToAppnt
// 获取被保人信息
// 获取被保人信息
that.saleInsuredPersonInfo = JSON.parse(window.localStorage.getItem('saleInsuredPersonInfo'))
}
},

View File

@@ -59,7 +59,7 @@ export default {
imgFront: this.$assetsUrl + 'images/idCardFront.png',
// 身份证背面
imgBack: this.$assetsUrl + 'images/idCardBack.png',
// 是否是投保人还是被保人扫描
// 是否是投保人还是被保人扫描
scanFromInsured: '',
// 上传结果
state: '',

View File

@@ -11,7 +11,7 @@ export function selectComp(that, index, type = '') {
//投保人
localStorage.scanFromInsured = 'true'
} else if (type == '2') {
//被保人
//被保
localStorage.scanFromInsured = 'false'
}
;[that.isScan, title] = [true, '身份证扫描']
@@ -49,7 +49,7 @@ function closeBtn(that) {
*
* @param {*} that 上下文
* @param {*} data 扫描数据
* @param {*} type 1 投保人 2 被保人
* @param {*} type 1 投保人 2 被保
*/
export function getIdentityInfo(that, data, type) {
console.log(data)
@@ -84,7 +84,7 @@ export function getIdentityInfo(that, data, type) {
}
}
that.isScan = false
let title = type == '1' ? '投保人信息' : '被保人信息'
let title = type == '1' ? '投保人信息' : '被保人信息'
that.$jump({
flag: 'navigation',
extra: {

View File

@@ -30,7 +30,7 @@ export default {
data() {
let isWeixin = this.$utils.device().isWeixin //判断环境
return {
// 投保人还是被保人信息
// 投保人还是被保人信息
signVal: '',
// 投保人签名信息
appntSign: {},
@@ -54,7 +54,7 @@ export default {
base64: '',
// 是否可以点击
isDisabledComplite: true,
// local带来的被保人信息
// local带来的被保人信息
saleInsuredPersonInfo: {},
// local带来的投保人信息
saleInsuredInfo: {},
@@ -89,9 +89,9 @@ export default {
}
if (this.detailJump != '1') {
// 投被保人是否同人
// 投被保人是否同人
that.relationToAppnt = JSON.parse(window.localStorage.getItem('saleInsuredPersonInfo')).relationToAppnt
// 获取被保人信息
// 获取被保人信息
that.saleInsuredPersonInfo = JSON.parse(window.localStorage.getItem('saleInsuredPersonInfo'))
}
// if (this.detailJump != '1') {

View File

@@ -43,7 +43,7 @@ export default {
OrderInfoDTO: {},
// 投保人信息
appntDTO: {},
// 被保人信息
// 被保人信息
insuredDTOs: [],
// 保单号
contNo: '',
@@ -123,7 +123,7 @@ export default {
this.filterData(dataDictionary.sex, 'sex', appntDTO)
this.filterData(dataDictionary.idType, 'idType', appntDTO)
that.appntDTO = appntDTO
// 被保人信息
// 被保人信息
res.content.insuredDTOs.map(insured => {
insured.riskDTOLst.map(risk => {
Number(risk.payIntv)

View File

@@ -23,9 +23,9 @@
</van-cell-group>
</van-collapse-item>
<!-- 多被保人信息 -->
<!-- 多被保人信息 -->
<div v-for="(item, index) in insuredDTOs" :key="index" class="pb10">
<van-collapse-item title="被保人信息" :name="index + 40" class="pb10">
<van-collapse-item title="被保人信息" :name="index + 40" class="pb10">
<van-cell-group>
<!-- <van-cell title="是投保人的" :value="item.relationToAppnt" /> -->
<van-cell title="姓名" :value="item.name" />
@@ -43,7 +43,7 @@
<div v-if="itm.bnfType == '1'">
<van-cell title="姓名" :value="itm.name" />
<van-cell title="性别" :value="itm.sexText" />
<!-- <van-cell title="是被保人的" :value="itm.relationText" /> -->
<!-- <van-cell title="是被保人的" :value="itm.relationText" /> -->
<van-cell title="受益比例" :value="`${itm.bnfLot * 100}%`" v-if="itm.bnfLot != null" />
<van-cell title="证件类型" :value="itm.idTypeText" />
<van-cell title="证件号码" :value="itm.idNo" />
@@ -99,7 +99,7 @@ export default {
OrderInfoDTO: {},
// 投保人信息
appntDTO: {},
// 被保人信息
// 被保人信息
insuredDTOs: [],
// 保单号
contNo: '',
@@ -157,7 +157,7 @@ export default {
this.filterData(dataDictionary.idType, 'idType', appntDTO)
that.appntDTO = appntDTO
window.localStorage.setItem('saleInsuredInfo', JSON.stringify(appntDTO))
// 被保人信息
// 被保人信息
res.content.insuredDTOs.map(insured => {
insured.riskDTOLst.map(risk => {
Number(risk.payIntv)

View File

@@ -2,7 +2,7 @@
<div class="list-container">
<div class="list-content" v-if="!isShow">
<div class="list-header">
<van-search placeholder="请输入保单号/投保人姓名/被保人姓名" v-model="search" />
<van-search placeholder="请输入保单号/投保人姓名/被保人姓名" v-model="search" />
</div>
<div class="fs12" v-for="(item, index) in NewItems" :key="index">
<div class="flex align-items-c justify-content-c h40">