mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-13 14:16:44 +08:00
Merge branch 'devHuizhi' into dev_product
This commit is contained in:
@@ -684,12 +684,52 @@ export default {
|
||||
{
|
||||
shortName: '重疾险',
|
||||
name: '国富人寿八桂无忧重大疾病保险(B款)',
|
||||
code: 'GFRSPRO_M0001'
|
||||
code: 'GFRS_M0001'
|
||||
},
|
||||
{
|
||||
shortName: '年金险',
|
||||
name: '国富人寿国富民鑫年金保险',
|
||||
code: 'GFRSPRO_M0002'
|
||||
code: 'GFRS_M0002'
|
||||
},
|
||||
{
|
||||
shortName: '年金险',
|
||||
name: '国富人寿金管家养老年金保险产品(万能型)',
|
||||
code: 'GFRS_M0003'
|
||||
},
|
||||
{
|
||||
shortName: '年金险',
|
||||
name: '国富人寿瑞利年金保险',
|
||||
code: 'GFRS_M0004'
|
||||
},
|
||||
{
|
||||
shortName: '医疗险',
|
||||
name: '国富人寿国富民惠医疗保险',
|
||||
code: 'GFRS_M0005'
|
||||
},
|
||||
{
|
||||
shortName: '年金险',
|
||||
name: '国富人寿福宝宝教育年金保险',
|
||||
code: 'GFRS_M0006'
|
||||
},
|
||||
{
|
||||
shortName: '重疾险',
|
||||
name: '国富人寿国富民安重大疾病保险',
|
||||
code: 'GFRS_M0007'
|
||||
},
|
||||
{
|
||||
shortName: '意外险',
|
||||
name: '国富人寿综合意外伤害保险',
|
||||
code: 'GFRS_M0008'
|
||||
},
|
||||
{
|
||||
shortName: '重疾险',
|
||||
name: '国富人寿国富民康重大疾病保险',
|
||||
code: 'GFRS_M0009'
|
||||
},
|
||||
{
|
||||
shortName: '重疾险',
|
||||
name: '国富人寿八桂无忧重大疾病保险',
|
||||
code: 'GFRS_M0010'
|
||||
}
|
||||
],
|
||||
// 收入来源
|
||||
@@ -745,79 +785,289 @@ export default {
|
||||
],
|
||||
// 民族
|
||||
nationType: [
|
||||
{ id: '01', text: '汉族' },
|
||||
{ id: '02', text: '蒙古族' },
|
||||
{ id: '03', text: '回族' },
|
||||
{ id: '04', text: '藏族' },
|
||||
{ id: '05', text: '维吾尔族' },
|
||||
{ id: '06', text: '苗族' },
|
||||
{ id: '07', text: '彝族' },
|
||||
{ id: '08', text: '壮族' },
|
||||
{ id: '09', text: '布依族' },
|
||||
{ id: '10', text: '朝鲜族' },
|
||||
{ id: '11', text: '满族' },
|
||||
{ id: '12', text: '侗族' },
|
||||
{ id: '13', text: '瑶族' },
|
||||
{ id: '14', text: '白族' },
|
||||
{ id: '15', text: '土家族' },
|
||||
{ id: '16', text: '哈尼族' },
|
||||
{ id: '17', text: '哈萨克族' },
|
||||
{ id: '18', text: '傣族' },
|
||||
{ id: '19', text: '黎族' },
|
||||
{ id: '20', text: '傈僳族' },
|
||||
{ id: '21', text: '佤族' },
|
||||
{ id: '22', text: '畲族' },
|
||||
{ id: '23', text: '高山族' },
|
||||
{ id: '24', text: '拉祜族' },
|
||||
{ id: '25', text: '水族' },
|
||||
{ id: '26', text: '东乡族' },
|
||||
{ id: '27', text: '纳西族' },
|
||||
{ id: '28', text: '景颇族' },
|
||||
{ id: '代码', text: '民族' },
|
||||
{ id: '29', text: '柯尔克孜族' },
|
||||
{ id: '30', text: '土族' },
|
||||
{ id: '31', text: '达斡尔族' },
|
||||
{ id: '32', text: '仫佬族' },
|
||||
{ id: '33', text: '羌族' },
|
||||
{ id: '34', text: '布朗族' },
|
||||
{ id: '35', text: '撒拉族' },
|
||||
{ id: '36', text: '毛难族' },
|
||||
{ id: '37', text: '仡佬族' },
|
||||
{ id: '38', text: '锡伯族' },
|
||||
{ id: '39', text: '阿昌族' },
|
||||
{ id: '40', text: '普米族' },
|
||||
{ id: '41', text: '塔吉克族' },
|
||||
{ id: '42', text: '怒族' },
|
||||
{ id: '43', text: '乌孜别克族' },
|
||||
{ id: '44', text: '俄罗斯族' },
|
||||
{ id: '45', text: '鄂温克族' },
|
||||
{ id: '46', text: '崩龙族' },
|
||||
{ id: '47', text: '保安族' },
|
||||
{ id: '48', text: '裕固族' },
|
||||
{ id: '49', text: '京族' },
|
||||
{ id: '50', text: '塔塔尔族' },
|
||||
{ id: '51', text: '独龙族' },
|
||||
{ id: '52', text: '鄂伦春族' },
|
||||
{ id: '53', text: '赫哲族' },
|
||||
{ id: '54', text: '门巴族' },
|
||||
{ id: '55', text: '珞巴族' },
|
||||
{ id: '56', text: '基诺族' },
|
||||
{ id: '97', text: '其他' },
|
||||
{ id: '98', text: '外国血统' }
|
||||
{
|
||||
id: '01',
|
||||
text: '汉族'
|
||||
},
|
||||
{
|
||||
id: '02',
|
||||
text: '蒙古族'
|
||||
},
|
||||
{
|
||||
id: '03',
|
||||
text: '回族'
|
||||
},
|
||||
{
|
||||
id: '04',
|
||||
text: '藏族'
|
||||
},
|
||||
{
|
||||
id: '05',
|
||||
text: '维吾尔族'
|
||||
},
|
||||
{
|
||||
id: '06',
|
||||
text: '苗族'
|
||||
},
|
||||
{
|
||||
id: '07',
|
||||
text: '彝族'
|
||||
},
|
||||
{
|
||||
id: '08',
|
||||
text: '壮族'
|
||||
},
|
||||
{
|
||||
id: '09',
|
||||
text: '布依族'
|
||||
},
|
||||
{
|
||||
id: '10',
|
||||
text: '朝鲜族'
|
||||
},
|
||||
{
|
||||
id: '11',
|
||||
text: '满族'
|
||||
},
|
||||
{
|
||||
id: '12',
|
||||
text: '侗族'
|
||||
},
|
||||
{
|
||||
id: '13',
|
||||
text: '瑶族'
|
||||
},
|
||||
{
|
||||
id: '14',
|
||||
text: '白族'
|
||||
},
|
||||
{
|
||||
id: '15',
|
||||
text: '土家族'
|
||||
},
|
||||
{
|
||||
id: '16',
|
||||
text: '哈尼族'
|
||||
},
|
||||
{
|
||||
id: '17',
|
||||
text: '哈萨克族'
|
||||
},
|
||||
{
|
||||
id: '18',
|
||||
text: '傣族'
|
||||
},
|
||||
{
|
||||
id: '19',
|
||||
text: '黎族'
|
||||
},
|
||||
{
|
||||
id: '20',
|
||||
text: '傈僳族'
|
||||
},
|
||||
{
|
||||
id: '21',
|
||||
text: '佤族'
|
||||
},
|
||||
{
|
||||
id: '22',
|
||||
text: '畲族'
|
||||
},
|
||||
{
|
||||
id: '23',
|
||||
text: '高山族'
|
||||
},
|
||||
{
|
||||
id: '24',
|
||||
text: '拉祜族'
|
||||
},
|
||||
{
|
||||
id: '25',
|
||||
text: '水族'
|
||||
},
|
||||
{
|
||||
id: '26',
|
||||
text: '东乡族'
|
||||
},
|
||||
{
|
||||
id: '27',
|
||||
text: '纳西族'
|
||||
},
|
||||
{
|
||||
id: '28',
|
||||
text: '景颇族'
|
||||
},
|
||||
{
|
||||
id: '代码',
|
||||
text: '民族'
|
||||
},
|
||||
{
|
||||
id: '29',
|
||||
text: '柯尔克孜族'
|
||||
},
|
||||
{
|
||||
id: '30',
|
||||
text: '土族'
|
||||
},
|
||||
{
|
||||
id: '31',
|
||||
text: '达斡尔族'
|
||||
},
|
||||
{
|
||||
id: '32',
|
||||
text: '仫佬族'
|
||||
},
|
||||
{
|
||||
id: '33',
|
||||
text: '羌族'
|
||||
},
|
||||
{
|
||||
id: '34',
|
||||
text: '布朗族'
|
||||
},
|
||||
{
|
||||
id: '35',
|
||||
text: '撒拉族'
|
||||
},
|
||||
{
|
||||
id: '36',
|
||||
text: '毛难族'
|
||||
},
|
||||
{
|
||||
id: '37',
|
||||
text: '仡佬族'
|
||||
},
|
||||
{
|
||||
id: '38',
|
||||
text: '锡伯族'
|
||||
},
|
||||
{
|
||||
id: '39',
|
||||
text: '阿昌族'
|
||||
},
|
||||
{
|
||||
id: '40',
|
||||
text: '普米族'
|
||||
},
|
||||
{
|
||||
id: '41',
|
||||
text: '塔吉克族'
|
||||
},
|
||||
{
|
||||
id: '42',
|
||||
text: '怒族'
|
||||
},
|
||||
{
|
||||
id: '43',
|
||||
text: '乌孜别克族'
|
||||
},
|
||||
{
|
||||
id: '44',
|
||||
text: '俄罗斯族'
|
||||
},
|
||||
{
|
||||
id: '45',
|
||||
text: '鄂温克族'
|
||||
},
|
||||
{
|
||||
id: '46',
|
||||
text: '崩龙族'
|
||||
},
|
||||
{
|
||||
id: '47',
|
||||
text: '保安族'
|
||||
},
|
||||
{
|
||||
id: '48',
|
||||
text: '裕固族'
|
||||
},
|
||||
{
|
||||
id: '49',
|
||||
text: '京族'
|
||||
},
|
||||
{
|
||||
id: '50',
|
||||
text: '塔塔尔族'
|
||||
},
|
||||
{
|
||||
id: '51',
|
||||
text: '独龙族'
|
||||
},
|
||||
{
|
||||
id: '52',
|
||||
text: '鄂伦春族'
|
||||
},
|
||||
{
|
||||
id: '53',
|
||||
text: '赫哲族'
|
||||
},
|
||||
{
|
||||
id: '54',
|
||||
text: '门巴族'
|
||||
},
|
||||
{
|
||||
id: '55',
|
||||
text: '珞巴族'
|
||||
},
|
||||
{
|
||||
id: '56',
|
||||
text: '基诺族'
|
||||
},
|
||||
{
|
||||
id: '97',
|
||||
text: '其他'
|
||||
},
|
||||
{
|
||||
id: '98',
|
||||
text: '外国血统'
|
||||
}
|
||||
],
|
||||
//政治面貌
|
||||
politicsStatus: [
|
||||
{ id: '01', text: '中共党员' },
|
||||
{ id: '02', text: '中共预备党员' },
|
||||
{ id: '04', text: '民革党员' },
|
||||
{ id: '05', text: '民盟盟员' },
|
||||
{ id: '06', text: '民建会员' },
|
||||
{ id: '07', text: '民进会员' },
|
||||
{ id: '08', text: '农工党党员' },
|
||||
{ id: '09', text: '致公党党员' },
|
||||
{ id: '10', text: '九三学社社员' },
|
||||
{ id: '11', text: '台盟盟员' },
|
||||
{ id: '12', text: '无党派人士' }
|
||||
{
|
||||
id: '01',
|
||||
text: '中共党员'
|
||||
},
|
||||
{
|
||||
id: '02',
|
||||
text: '中共预备党员'
|
||||
},
|
||||
{
|
||||
id: '04',
|
||||
text: '民革党员'
|
||||
},
|
||||
{
|
||||
id: '05',
|
||||
text: '民盟盟员'
|
||||
},
|
||||
{
|
||||
id: '06',
|
||||
text: '民建会员'
|
||||
},
|
||||
{
|
||||
id: '07',
|
||||
text: '民进会员'
|
||||
},
|
||||
{
|
||||
id: '08',
|
||||
text: '农工党党员'
|
||||
},
|
||||
{
|
||||
id: '09',
|
||||
text: '致公党党员'
|
||||
},
|
||||
{
|
||||
id: '10',
|
||||
text: '九三学社社员'
|
||||
},
|
||||
{
|
||||
id: '11',
|
||||
text: '台盟盟员'
|
||||
},
|
||||
{
|
||||
id: '12',
|
||||
text: '无党派人士'
|
||||
}
|
||||
],
|
||||
rsIdType: [
|
||||
{
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import Vue from 'vue'
|
||||
import VeeValidate, { Validator } from 'vee-validate'
|
||||
import VeeValidate, {
|
||||
Validator
|
||||
} from 'vee-validate'
|
||||
import zh_CN from 'vee-validate/dist/locale/zh_CN'
|
||||
import idNoCheck from './idNoCheck'
|
||||
|
||||
@@ -58,11 +60,11 @@ Validator.extend('age', {
|
||||
return value > 17 && /^\d{1,3}$/.test(value)
|
||||
}
|
||||
})
|
||||
//被保人年龄(不得小于16周岁)
|
||||
//被保人年龄(不得小于18周岁)
|
||||
Validator.extend('appntAge', {
|
||||
getMessage: () => '年龄不得小于16周岁',
|
||||
getMessage: () => '年龄不得小于18周岁',
|
||||
validate: value => {
|
||||
return value > 15 && /^\d{1,3}$/.test(value)
|
||||
return value > 17 && /^\d{1,3}$/.test(value)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -85,7 +87,7 @@ Validator.extend('bankCard', {
|
||||
return field + '格式不正确,请您填写正确的格式'
|
||||
},
|
||||
validate: value => {
|
||||
return /^(\d{16}|\d{19})$/.test(value)
|
||||
return /^(\d{16}|\d{18}|\d{19})$/.test(value)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -596,7 +596,7 @@ export default {
|
||||
this.chooseProducts.forEach(item => {
|
||||
let trialInfo = {}
|
||||
item.calFactorLst.forEach(factor => {
|
||||
//type 类型 0为picker 1计步器 2
|
||||
//type 类型 0为picker 1计步器 2职业等级
|
||||
if (factor.type == 0) {
|
||||
if (factor.hasFlag == '1') {
|
||||
trialInfo[factor.code] = factor[factor.code]
|
||||
|
||||
@@ -114,6 +114,11 @@ export default {
|
||||
if (riskRules.lifeGradeLimit(resultData, this)) {
|
||||
return
|
||||
}
|
||||
if (resultData.productCode == 'GFRS_M0006') {
|
||||
if (riskRules.lifeGradeLimitForBaby(resultData, this)) {
|
||||
return
|
||||
}
|
||||
}
|
||||
/********end 主险选择限制 end******/
|
||||
|
||||
//保存附加险
|
||||
|
||||
@@ -10,8 +10,8 @@ export default {
|
||||
tips = '被保人年龄不适合此款险种,请选择其他险种!'
|
||||
}
|
||||
let minAge = resultData.productTrialInfoDTO.ageRange && resultData.productTrialInfoDTO.ageRange.minAge
|
||||
let maxAge = resultData.productTrialInfoDTO.ageRange && resultData.productTrialInfoDTO.ageRange.maxAge
|
||||
;[age, minAge, maxAge] = [Number(age), Number(minAge), Number(maxAge)]
|
||||
let maxAge = resultData.productTrialInfoDTO.ageRange && resultData.productTrialInfoDTO.ageRange.maxAge;
|
||||
[age, minAge, maxAge] = [Number(age), Number(minAge), Number(maxAge)]
|
||||
if (age > maxAge || age < minAge) {
|
||||
vm.$toast(tips)
|
||||
return true
|
||||
@@ -35,7 +35,7 @@ export default {
|
||||
let healthGrade = resultData.productInsuredDTO.healthGrade
|
||||
if (healthGrade == 0) return false
|
||||
if (Number(cuttentHealthGrade) > Number(healthGrade)) {
|
||||
vm.$toast('健康等级不适合此款险种,请选择其他险种!')
|
||||
vm.$toast('健康职业等级不适合此款险种,请选择其他险种!')
|
||||
return true
|
||||
}
|
||||
return false
|
||||
@@ -46,7 +46,18 @@ export default {
|
||||
let lifeGrade = resultData.productInsuredDTO.lifeGrade
|
||||
if (lifeGrade == 0) return false
|
||||
if (Number(cuttentLifeGrade) > Number(lifeGrade)) {
|
||||
vm.$toast('寿险等级不适合此款险种,请选择其他险种!')
|
||||
vm.$toast('寿险职业等级不适合此款险种,请选择其他险种!')
|
||||
return true
|
||||
}
|
||||
return false
|
||||
},
|
||||
// 福宝宝产品寿险等级对主险影响
|
||||
lifeGradeLimitForBaby(resultData, vm) {
|
||||
let cuttentLifeGrade = this.getSaleInsuredInfo().lifeGrade
|
||||
let lifeGrade = resultData.productInsuredDTO.lifeGrade
|
||||
if (lifeGrade == 0) return false
|
||||
if (Number(cuttentLifeGrade) > Number(lifeGrade)) {
|
||||
vm.$toast('投保人寿险职业等级不适合此款险种,请选择其他险种!')
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
||||
@@ -202,7 +202,7 @@ export default {
|
||||
this.appntDTO.age = String(this.appntDTO.age)
|
||||
this.$validator.validate().then(valid => {
|
||||
if (true === valid) {
|
||||
//进行投保人年龄校验(大于16周岁)
|
||||
//进行投保人年龄校验(大于18周岁)
|
||||
let params = {
|
||||
orderDTO: {
|
||||
appntDTO: this.appntDTO,
|
||||
|
||||
@@ -253,6 +253,7 @@ export default {
|
||||
//在app端
|
||||
params.proposalInfoDTO.proposalNo = localStorage.orderNo
|
||||
getDemo(params).then(res => {
|
||||
|
||||
this.formatLocal(res)
|
||||
})
|
||||
}
|
||||
@@ -332,9 +333,16 @@ export default {
|
||||
},
|
||||
//获取微信分享的标题
|
||||
getWXTitle(insuredDTOs) {
|
||||
|
||||
dataDictionary.riskType.forEach(dataRisk => {
|
||||
//根据数字字典来找到 险种简称
|
||||
// console.log(insuredDTOs)
|
||||
// console.log(insuredDTOs[0].mainRisk[0].riskCode)
|
||||
// console.log(dataRisk.code)
|
||||
|
||||
if (insuredDTOs[0].mainRisk[0].riskCode == dataRisk.code) {
|
||||
|
||||
|
||||
this.wxTitle = dataRisk.shortName + '计划书'
|
||||
}
|
||||
})
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
<van-field
|
||||
v-model="relationToAppnt"
|
||||
readonly
|
||||
required
|
||||
label="是被保人的"
|
||||
name="是被保人的"
|
||||
right-icon="arrow"
|
||||
@@ -17,6 +18,7 @@
|
||||
v-validate="'required|name'"
|
||||
name="姓名"
|
||||
label="姓名"
|
||||
required
|
||||
:value.sync="userInfo.name"
|
||||
:parentShowPicker.sync="customerShowPicker"
|
||||
@nameChange="nameChange"
|
||||
@@ -27,6 +29,7 @@
|
||||
:value="userInfo.idType | idToText('idType')"
|
||||
v-validate="'required'"
|
||||
readonly
|
||||
required
|
||||
label="证件类型"
|
||||
name="证件类型"
|
||||
right-icon="arrow"
|
||||
@@ -38,6 +41,7 @@
|
||||
v-model="userInfo.idNo"
|
||||
label="证件号码"
|
||||
name="证件号码"
|
||||
required
|
||||
placeholder="请输入"
|
||||
maxlength="18"
|
||||
clearable
|
||||
@@ -50,6 +54,7 @@
|
||||
v-validate="'required'"
|
||||
label="出生日期"
|
||||
name="出生日期"
|
||||
required
|
||||
:value.sync="userInfo.birthday"
|
||||
type="date"
|
||||
:flag="true"
|
||||
@@ -61,6 +66,7 @@
|
||||
v-validate="'required'"
|
||||
label="证件起始日期"
|
||||
name="证件起始日期"
|
||||
required
|
||||
:value.sync="userInfo.certificateValidate"
|
||||
type="date"
|
||||
:defaultDate="new Date()"
|
||||
@@ -73,6 +79,7 @@
|
||||
:v-validate="{ required: certiexpiredateRequired }"
|
||||
label="证件截止日期"
|
||||
name="证件截止日期"
|
||||
required
|
||||
:defaultDate="new Date()"
|
||||
:value.sync="userInfo.certiexpiredate"
|
||||
type="date"
|
||||
@@ -85,12 +92,13 @@
|
||||
<van-checkbox v-model="userInfo.effectiveDateType" class="fr" :disabled="effectiveDateTypeAble" @change="effectiveDataTypeChange">长期</van-checkbox>
|
||||
</div>
|
||||
<!-- <van-field v-model="userInfo.name" label="姓名" name="姓名" placeholder="请输入" v-validate="'required|name'" :readonly="isInsured" /> -->
|
||||
<select-radio :radios="sexRadio" :required="false" label="性别" :value.sync="userInfo.sex" :disabled="isInsured"></select-radio>
|
||||
<select-radio :radios="sexRadio" required label="性别" :value.sync="userInfo.sex" :disabled="isInsured"></select-radio>
|
||||
<van-field
|
||||
:value="userInfo.nativeplace | idToText('nativeplace')"
|
||||
readonly
|
||||
label="国家/地区"
|
||||
name="国家/地区"
|
||||
required
|
||||
v-validate="'required'"
|
||||
right-icon="arrow"
|
||||
placeholder="请选择"
|
||||
@@ -101,6 +109,7 @@
|
||||
clearable
|
||||
label="联系电话"
|
||||
name="联系电话"
|
||||
required
|
||||
placeholder="请输入"
|
||||
v-validate="'required|mobile'"
|
||||
maxlength="11"
|
||||
@@ -111,6 +120,7 @@
|
||||
readonly
|
||||
label="联系地址"
|
||||
name="联系地址"
|
||||
required
|
||||
right-icon="arrow"
|
||||
placeholder="请选择"
|
||||
v-validate="'required'"
|
||||
@@ -129,7 +139,7 @@
|
||||
<div class="relative border-bt fs14 p10 flex align-center">
|
||||
<van-checkbox v-model="userInfo.asAppntAddress" @change="asAppntAddress" :disabled="isInsured">同投保人</van-checkbox>
|
||||
</div>
|
||||
<van-field v-model="userInfo.email" label="电子邮箱" name="电子邮箱" placeholder="请输入" v-validate="'required|email'" clearable :readonly="isInsured" />
|
||||
<van-field v-model="userInfo.email" required label="电子邮箱" name="电子邮箱" placeholder="请输入" v-validate="'required|email'" clearable :readonly="isInsured" />
|
||||
<occupation-picker
|
||||
:value.sync="userInfo.occupationCode"
|
||||
:chooseName.sync="userInfo.occupationName"
|
||||
@@ -138,18 +148,20 @@
|
||||
clearable
|
||||
label="职业类别"
|
||||
name="职业类别"
|
||||
required
|
||||
v-validate="'required'"
|
||||
placeholder="请选择"
|
||||
:parentShowPicker.sync="occupationShowPicker"
|
||||
@on-click="selectClick('2')"
|
||||
@on-choose="chooseOccupation"
|
||||
/>
|
||||
<van-field v-model="userInfo.bnfOrder" readonly label="受益顺序" name="受益顺序" placeholder="请输入" v-validate="'required|onlyNumber'" maxlength="1" />
|
||||
<van-field v-model="userInfo.bnfOrder" required readonly label="受益顺序" name="受益顺序" placeholder="请输入" v-validate="'required|onlyNumber'" maxlength="1" />
|
||||
<van-field
|
||||
v-model="userInfo.bnfLot"
|
||||
label="受益比例(%)"
|
||||
name="受益比例"
|
||||
placeholder="请输入"
|
||||
required
|
||||
v-validate="'required|onlyNumber'"
|
||||
maxlength="3"
|
||||
clearable
|
||||
|
||||
@@ -747,27 +747,6 @@ export default {
|
||||
|
||||
let imageInfoType = ''
|
||||
|
||||
// if (that.type == 'fileListIdFrontInsured' && that.id == '1') {
|
||||
// imageInfoType = '1'
|
||||
// } else if (that.type == 'fileListIdBackInsured' && that.id == '1') {
|
||||
// imageInfoType = '2'
|
||||
// } else if (that.type == 'fileListBankInsured') {
|
||||
// imageInfoType = '3'
|
||||
// } else if (that.type == 'fileListIdFrontInsured' && that.id == '2') {
|
||||
// imageInfoType = '5'
|
||||
// } else if (that.type == 'fileListIdBackInsured' && that.id == '2') {
|
||||
// imageInfoType = '6'
|
||||
// } else if (that.type == 'fileLIstImgInsured' && that.id == '3') {
|
||||
// imageInfoType = '7'
|
||||
// } else if (that.type == 'fileLIstImgInsured' && that.id == '4') {
|
||||
// imageInfoType = '8'
|
||||
// } else if (that.type == 'fileLIstImgInsured' && that.id == '5') {
|
||||
// imageInfoType = '9'
|
||||
// } else if (that.type == 'fileLIstImgInsured' && that.id == '6') {
|
||||
// imageInfoType = '10'
|
||||
// } else if (that.type == 'saleInsuredPersonInfoOther' && that.id == '7') {
|
||||
// imageInfoType = '11'
|
||||
// }
|
||||
if (that.type == 'fileListIdFrontInsured' && that.id == '1') {
|
||||
imageInfoType = '1'
|
||||
} else if (that.type == 'fileListIdBackInsured' && that.id == '1') {
|
||||
@@ -810,8 +789,6 @@ export default {
|
||||
fileName: that.imgName
|
||||
}
|
||||
|
||||
// window.localStorage.setItem('obj', JSON.stringify(obj))
|
||||
// that.list.push(JSON.parse(window.localStorage.getItem('obj')))
|
||||
that.list.push(obj)
|
||||
} else if (that.type == 'fileListOther') {
|
||||
// 是其他
|
||||
@@ -825,8 +802,7 @@ export default {
|
||||
subBusinessNo: '',
|
||||
fileName: that.imgName
|
||||
}
|
||||
// window.localStorage.setItem('obj', JSON.stringify(obj))
|
||||
// that.list.push(JSON.parse(window.localStorage.getItem('obj')))
|
||||
|
||||
that.list.push(obj)
|
||||
} else if (that.type == 'fileListtypebeneficiary') {
|
||||
// 是受益人
|
||||
@@ -842,7 +818,7 @@ export default {
|
||||
}
|
||||
that.list.push(obj)
|
||||
}
|
||||
// })
|
||||
|
||||
} else {
|
||||
switch (that.type) {
|
||||
case 'fileListIdFront':
|
||||
@@ -933,7 +909,7 @@ export default {
|
||||
},
|
||||
orderType: 'MEDIA_ORDER'
|
||||
}
|
||||
// console.log(that.list)
|
||||
|
||||
|
||||
saveInformation(data).then(res => {
|
||||
if (res.result == '0') {
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
:value="userInfo.idType | idToText('insuredIdType')"
|
||||
v-validate="'required'"
|
||||
readonly
|
||||
required
|
||||
label="证件类型"
|
||||
name="证件类型"
|
||||
right-icon="arrow"
|
||||
@@ -25,13 +26,14 @@
|
||||
@click="toSelect('2')"
|
||||
/>
|
||||
<!-- <van-field v-model="userInfo.idNo" v-validate="'required|idNo'" maxlength="18" label="证件号码" name="证件号码" placeholder="请输入" clearable> -->
|
||||
<van-field v-model="userInfo.idNo" maxlength="18" label="证件号码" name="证件号码" placeholder="请输入" clearable @blur="getRelatedData(userInfo.idNo)">
|
||||
<van-field v-model="userInfo.idNo" maxlength="18" required label="证件号码" v-validate="'required'" name="证件号码" placeholder="请输入" clearable @blur="getRelatedData(userInfo.idNo)">
|
||||
<van-button v-if="userInfo.idType == 1" slot="button" size="small" type="danger" round @click="selectClick('3')">证件扫描</van-button>
|
||||
</van-field>
|
||||
<FieldDatePicter
|
||||
v-validate="'required'"
|
||||
label="证件起始日期"
|
||||
name="证件起始日期"
|
||||
required
|
||||
:value.sync="userInfo.certificateValidate"
|
||||
type="date"
|
||||
@confirm="onDateConfirm($event, '0')"
|
||||
@@ -42,6 +44,7 @@
|
||||
:v-validate="{ required: certiexpiredateRequired }"
|
||||
label="证件截止日期"
|
||||
name="证件截止日期"
|
||||
required
|
||||
:value.sync="userInfo.certiexpiredate"
|
||||
type="date"
|
||||
@confirm="onDateConfirm($event, '1')"
|
||||
@@ -51,10 +54,11 @@
|
||||
<div class="border-bt relative fs14 p10 flex align-center">
|
||||
<van-checkbox v-model="userInfo.effectiveDateType" :disabled="effectiveDateTypeAble" @change="effectiveDataTypeChange">长期</van-checkbox>
|
||||
</div>
|
||||
<select-radio :radios="sexRadio" label="性别" name="性别" v-validate="'required'" :required="false" :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.nativeplace | idToText('nativeplace')"
|
||||
readonly
|
||||
required
|
||||
label="国家/地区"
|
||||
name="国家/地区"
|
||||
v-validate="'required'"
|
||||
@@ -62,11 +66,12 @@
|
||||
placeholder="请选择"
|
||||
@click="toSelect('1')"
|
||||
/>
|
||||
<van-field :value="census" readonly label="户籍" name="户籍" v-validate="'required'" right-icon="arrow" placeholder="请选择" @click="censusShow = true" />
|
||||
<van-field :value="census" required readonly label="户籍" name="户籍" v-validate="'required'" right-icon="arrow" placeholder="请选择" @click="censusShow = true" />
|
||||
<FieldDatePicter
|
||||
v-validate="'required'"
|
||||
label="出生日期"
|
||||
name="出生日期"
|
||||
required
|
||||
:value.sync="userInfo.birthday"
|
||||
type="date"
|
||||
:flag="true"
|
||||
@@ -75,17 +80,18 @@
|
||||
:maxDate="maxDate"
|
||||
></FieldDatePicter>
|
||||
|
||||
<van-field v-model="userInfo.mobile" clearable label="移动电话" name="移动电话" placeholder="请输入" v-validate="'required|mobile'" maxlength="11" />
|
||||
<van-field required v-model="userInfo.mobile" clearable label="移动电话" name="移动电话" placeholder="请输入" v-validate="'required|mobile'" maxlength="11" />
|
||||
<van-field v-model="userInfo.authCode" center clearable label name="短信验证码" placeholder="请输入短信验证码" v-validate="'required'" maxlength="6">
|
||||
<van-button slot="button" size="small" type="danger" @click="getCode" :disabled="codeDisabled" v-no-more-click="1000">
|
||||
{{ codeDisabled ? `${countDown}s后重新获取` : '发送验证码' }}
|
||||
</van-button>
|
||||
</van-field>
|
||||
<van-field v-model="userInfo.email" label="电子邮箱" name="电子邮箱" placeholder="请输入" v-validate="'required|email'" clearable />
|
||||
<van-field v-model="userInfo.email" required label="电子邮箱" name="电子邮箱" placeholder="请输入" v-validate="'required|email'" clearable />
|
||||
<van-field
|
||||
v-model="userInfo.stature"
|
||||
label="身高(cm)"
|
||||
name="身高"
|
||||
required
|
||||
placeholder="请输入"
|
||||
v-validate="'required|onlyNumber|stature'"
|
||||
clearable
|
||||
@@ -96,6 +102,7 @@
|
||||
v-model="userInfo.avoirdupois"
|
||||
label="体重(kg)"
|
||||
name="体重"
|
||||
required
|
||||
placeholder="请输入"
|
||||
v-validate="'required|onlyNumber|avoirdupois'"
|
||||
clearable
|
||||
@@ -118,6 +125,7 @@
|
||||
readonly
|
||||
label="文化程度"
|
||||
name="文化程度"
|
||||
required
|
||||
right-icon="arrow"
|
||||
placeholder="请选择"
|
||||
v-validate="'required'"
|
||||
@@ -129,6 +137,7 @@
|
||||
:required="false"
|
||||
label="有无社保"
|
||||
name="有无社保"
|
||||
required
|
||||
:value.sync="userInfo.medical"
|
||||
></select-radio>
|
||||
<van-field
|
||||
@@ -136,6 +145,7 @@
|
||||
readonly
|
||||
label="税收居民身份"
|
||||
name="税收居民身份"
|
||||
required
|
||||
right-icon="arrow"
|
||||
placeholder="请选择"
|
||||
v-validate="'required'"
|
||||
@@ -150,6 +160,7 @@
|
||||
clearable
|
||||
label="职业类别"
|
||||
name="职业类别"
|
||||
required
|
||||
v-validate="'required'"
|
||||
placeholder="请选择"
|
||||
:parentShowPicker.sync="occupationShowPicker"
|
||||
@@ -161,6 +172,7 @@
|
||||
readonly
|
||||
label="收入来源"
|
||||
name="收入来源"
|
||||
required
|
||||
right-icon="arrow"
|
||||
placeholder="请选择"
|
||||
v-validate="'required'"
|
||||
@@ -170,6 +182,7 @@
|
||||
v-show="isShowOthenSalarySource"
|
||||
v-model="userInfo.otherSalarySource"
|
||||
label
|
||||
required
|
||||
name="其他来源"
|
||||
placeholder="请输入其它收入来源"
|
||||
clearable
|
||||
@@ -179,12 +192,13 @@
|
||||
v-model="userInfo.averageAnnualIncome"
|
||||
label="平均年收入(万元)"
|
||||
name="平均年收入"
|
||||
required
|
||||
placeholder="请输入"
|
||||
v-validate="'required|onlyNumber'"
|
||||
clearable
|
||||
maxlength="5"
|
||||
/>
|
||||
<van-field v-model="userInfo.liabilitiesMoney" name="负债金额" placeholder="请输入" v-validate="'required|onlyNumber'" clearable maxlength="5">
|
||||
<van-field v-model="userInfo.liabilitiesMoney" required name="负债金额" placeholder="请输入" v-validate="'required|onlyNumber'" clearable maxlength="5">
|
||||
<div slot="label" class="flex flex-wrap">
|
||||
<span>负债金额</span>
|
||||
<span>(万元)</span>
|
||||
@@ -193,6 +207,7 @@
|
||||
<van-field
|
||||
:value="userInfo.jobStatus | idToText('workCondition')"
|
||||
readonly
|
||||
required
|
||||
label="在职情况"
|
||||
name="在职情况"
|
||||
placeholder="请选择"
|
||||
@@ -200,12 +215,13 @@
|
||||
right-icon="arrow"
|
||||
@click="toSelect('7')"
|
||||
/>
|
||||
<van-field v-model="userInfo.workcompany" label="工作单位" name="工作单位" placeholder="请输入" v-validate="'required'" maxlength="50" clearable />
|
||||
<van-field v-model="userInfo.workcompany" required label="工作单位" name="工作单位" placeholder="请输入" v-validate="'required'" maxlength="50" clearable />
|
||||
<van-field
|
||||
v-model="areaName"
|
||||
readonly
|
||||
label="单位地址"
|
||||
name="单位地址"
|
||||
required
|
||||
right-icon="arrow"
|
||||
placeholder="请选择"
|
||||
v-validate="'required'"
|
||||
@@ -216,7 +232,7 @@
|
||||
<!-- <van-checkbox v-model="companyDefault" :disabled="homeDefault" class="fr" @change="setAddress">设为联系地址</van-checkbox> -->
|
||||
<van-radio name="0">设为联系地址</van-radio>
|
||||
</div>
|
||||
<van-field v-model="userInfo.companyZip" label="邮编" name="邮编" placeholder="请输入" v-validate="'required|zipCode'" maxlength="6" clearable />
|
||||
<van-field v-model="userInfo.companyZip" required label="邮编" name="邮编" placeholder="请输入" v-validate="'required|zipCode'" maxlength="6" clearable />
|
||||
<van-field v-model="userInfo.companyPhone" label="单位电话" name="单位电话" placeholder="非必填" maxlength="13" clearable />
|
||||
</van-cell-group>
|
||||
<!-- 家庭信息 -->
|
||||
@@ -225,6 +241,7 @@
|
||||
<van-field
|
||||
:value="userInfo.marriage | idToText('marriage')"
|
||||
readonly
|
||||
required
|
||||
label="婚姻状况"
|
||||
name="婚姻状况"
|
||||
right-icon="arrow"
|
||||
@@ -236,6 +253,7 @@
|
||||
v-model="userInfo.familyAnnualIncome"
|
||||
label="家庭年收入(万元)"
|
||||
name="家庭年收入"
|
||||
required
|
||||
placeholder="请输入"
|
||||
v-validate="'required|onlyNumber'"
|
||||
clearable
|
||||
@@ -246,6 +264,7 @@
|
||||
readonly
|
||||
label="家庭地址"
|
||||
name="家庭地址"
|
||||
required
|
||||
right-icon="arrow"
|
||||
placeholder="请选择"
|
||||
v-validate="'required'"
|
||||
@@ -256,7 +275,7 @@
|
||||
<!-- <van-checkbox v-model="homeDefault" :disabled="companyDefault" class="fr" @change="setAddress">设为联系地址</van-checkbox> -->
|
||||
<van-radio name="1">设为联系地址</van-radio>
|
||||
</div>
|
||||
<van-field v-model="userInfo.homeZip" label="邮编" name="邮编" placeholder="请输入" v-validate="'required|zipCode'" maxlength="6" clearable />
|
||||
<van-field v-model="userInfo.homeZip" required label="邮编" name="邮编" placeholder="请输入" v-validate="'required|zipCode'" maxlength="6" clearable />
|
||||
<van-field v-model="userInfo.homePhone" label="家庭电话" name="家庭电话" placeholder="非必填" maxlength="13" clearable />
|
||||
</van-cell-group>
|
||||
</van-radio-group>
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
<van-field
|
||||
:value="userInfo.relationToAppnt | idToText('relationToAppnt')"
|
||||
readonly
|
||||
required
|
||||
label="是投保人的"
|
||||
name="是投保人的"
|
||||
right-icon="arrow"
|
||||
@@ -18,6 +19,7 @@
|
||||
v-validate="'required|name'"
|
||||
name="姓名"
|
||||
label="姓名"
|
||||
required
|
||||
:value.sync="userInfo.name"
|
||||
:parentShowPicker.sync="customerShowPicker"
|
||||
@nameChange="nameChange"
|
||||
@@ -28,6 +30,7 @@
|
||||
:value="userInfo.idType | idToText('idType')"
|
||||
v-validate="'required'"
|
||||
readonly
|
||||
required
|
||||
label="证件类型"
|
||||
name="证件类型"
|
||||
right-icon="arrow"
|
||||
@@ -40,6 +43,7 @@
|
||||
maxlength="18"
|
||||
label="证件号码"
|
||||
name="证件号码"
|
||||
required
|
||||
placeholder="请输入"
|
||||
clearable
|
||||
:readonly="isAppnt"
|
||||
@@ -55,6 +59,7 @@
|
||||
name="出生日期"
|
||||
:value.sync="userInfo.birthday"
|
||||
type="date"
|
||||
required
|
||||
:flag="true"
|
||||
@confirm="onDateConfirm($event, '2')"
|
||||
ref="birthday"
|
||||
@@ -65,6 +70,7 @@
|
||||
v-validate="'required'"
|
||||
label="证件起始日期"
|
||||
name="证件起始日期"
|
||||
required
|
||||
:defaultDate="new Date()"
|
||||
:value.sync="userInfo.certificateValidate"
|
||||
type="date"
|
||||
@@ -77,6 +83,7 @@
|
||||
:v-validate="{ required: certiexpiredateRequired }"
|
||||
label="证件截止日期"
|
||||
name="证件截止日期"
|
||||
required
|
||||
:defaultDate="new Date()"
|
||||
:value.sync="userInfo.certiexpiredate"
|
||||
type="date"
|
||||
@@ -93,6 +100,7 @@
|
||||
:required="false"
|
||||
label="性别"
|
||||
name="性别"
|
||||
required
|
||||
v-validate="'required'"
|
||||
:value.sync="userInfo.sex"
|
||||
:disabled="isAppnt"
|
||||
@@ -102,18 +110,20 @@
|
||||
readonly
|
||||
label="国家/地区"
|
||||
name="国家/地区"
|
||||
required
|
||||
v-validate="'required'"
|
||||
right-icon="arrow"
|
||||
placeholder="请选择"
|
||||
@click="toSelect('1')"
|
||||
/>
|
||||
<van-field :value="census" readonly label="户籍" name="户籍" v-validate="'required'" right-icon="arrow" placeholder="请选择" @click="areaChoose('1')" />
|
||||
<van-field :value="census" required readonly label="户籍" name="户籍" v-validate="'required'" right-icon="arrow" placeholder="请选择" @click="areaChoose('1')" />
|
||||
|
||||
<van-field
|
||||
v-model="userInfo.mobile"
|
||||
clearable
|
||||
label="移动电话"
|
||||
name="移动电话"
|
||||
required
|
||||
placeholder="请输入"
|
||||
v-validate="'required|mobile'"
|
||||
maxlength="11"
|
||||
@@ -134,11 +144,12 @@
|
||||
codeDisabled ? `${countDown}s后重新获取` : '发送验证码'
|
||||
}}</van-button>
|
||||
</van-field>
|
||||
<van-field v-model="userInfo.email" label="电子邮箱" name="电子邮箱" placeholder="请输入" v-validate="'required|email'" clearable :readonly="isAppnt" />
|
||||
<van-field v-model="userInfo.email" required label="电子邮箱" name="电子邮箱" placeholder="请输入" v-validate="'required|email'" clearable :readonly="isAppnt" />
|
||||
<van-field
|
||||
v-model="userInfo.stature"
|
||||
label="身高(cm)"
|
||||
name="身高"
|
||||
required
|
||||
placeholder="请输入"
|
||||
v-validate="'required|onlyNumber|stature'"
|
||||
clearable
|
||||
@@ -150,6 +161,7 @@
|
||||
v-model="userInfo.avoirdupois"
|
||||
label="体重(kg)"
|
||||
name="体重"
|
||||
required
|
||||
placeholder="请输入"
|
||||
v-validate="'required|onlyNumber'"
|
||||
clearable
|
||||
@@ -165,6 +177,7 @@
|
||||
readonly
|
||||
label="文化程度"
|
||||
name="文化程度"
|
||||
required
|
||||
right-icon="arrow"
|
||||
placeholder="请选择"
|
||||
v-validate="'required'"
|
||||
@@ -176,6 +189,7 @@
|
||||
label="有无社保"
|
||||
name="有无社保"
|
||||
v-validate="'required'"
|
||||
required
|
||||
:value.sync="userInfo.medical"
|
||||
:disabled="isAppnt"
|
||||
></select-radio>
|
||||
@@ -184,6 +198,7 @@
|
||||
readonly
|
||||
label="税收居民身份"
|
||||
name="税收居民身份"
|
||||
required
|
||||
right-icon="arrow"
|
||||
placeholder="请选择"
|
||||
v-validate="'required'"
|
||||
@@ -198,6 +213,7 @@
|
||||
clearable
|
||||
label="职业类别"
|
||||
name="职业类别"
|
||||
required
|
||||
v-validate="'required'"
|
||||
placeholder="请选择"
|
||||
:parentShowPicker.sync="occupationShowPicker"
|
||||
@@ -209,6 +225,7 @@
|
||||
readonly
|
||||
label="收入来源"
|
||||
name="收入来源"
|
||||
required
|
||||
right-icon="arrow"
|
||||
placeholder="请选择"
|
||||
v-validate="'required'"
|
||||
@@ -219,6 +236,7 @@
|
||||
v-model="userInfo.otherSalarySource"
|
||||
label
|
||||
name="其他来源"
|
||||
required
|
||||
placeholder="请输入其它收入来源"
|
||||
clearable
|
||||
maxlength="30"
|
||||
@@ -228,6 +246,7 @@
|
||||
label="平均年收入(万元)"
|
||||
name="平均年收入"
|
||||
placeholder="请输入"
|
||||
required
|
||||
v-validate="'required|onlyNumber'"
|
||||
clearable
|
||||
maxlength="5"
|
||||
@@ -237,6 +256,7 @@
|
||||
v-model="userInfo.liabilitiesMoney"
|
||||
name="负债金额"
|
||||
placeholder="请输入"
|
||||
required
|
||||
v-validate="'required|onlyNumber'"
|
||||
clearable
|
||||
maxlength="5"
|
||||
@@ -249,6 +269,7 @@
|
||||
readonly
|
||||
label="在职情况"
|
||||
name="在职情况"
|
||||
required
|
||||
placeholder="请选择"
|
||||
v-validate="'required'"
|
||||
right-icon="arrow"
|
||||
@@ -258,6 +279,7 @@
|
||||
v-model="userInfo.workcompany"
|
||||
label="工作单位"
|
||||
name="工作单位"
|
||||
required
|
||||
placeholder="请输入"
|
||||
v-validate="'required'"
|
||||
maxlength="50"
|
||||
@@ -269,6 +291,7 @@
|
||||
readonly
|
||||
label="单位地址"
|
||||
name="单位地址"
|
||||
required
|
||||
right-icon="arrow"
|
||||
placeholder="请选择"
|
||||
v-validate="'required'"
|
||||
@@ -289,6 +312,7 @@
|
||||
label="邮编"
|
||||
name="邮编"
|
||||
placeholder="请输入"
|
||||
required
|
||||
v-validate="'required|zipCode'"
|
||||
maxlength="6"
|
||||
clearable
|
||||
@@ -302,6 +326,7 @@
|
||||
<van-field
|
||||
:value="userInfo.marriage | idToText('marriage')"
|
||||
readonly
|
||||
required
|
||||
label="婚姻状况"
|
||||
name="婚姻状况"
|
||||
right-icon="arrow"
|
||||
@@ -313,6 +338,7 @@
|
||||
v-model="userInfo.familyAnnualIncome"
|
||||
label="家庭年收入(万元)"
|
||||
name="家庭年收入"
|
||||
required
|
||||
placeholder="请输入"
|
||||
v-validate="'required|onlyNumber'"
|
||||
clearable
|
||||
@@ -324,6 +350,7 @@
|
||||
readonly
|
||||
label="家庭地址"
|
||||
name="家庭地址"
|
||||
required
|
||||
right-icon="arrow"
|
||||
placeholder="请选择"
|
||||
v-validate="'required'"
|
||||
@@ -343,6 +370,7 @@
|
||||
v-model="userInfo.homeZip"
|
||||
label="邮编"
|
||||
name="邮编"
|
||||
required
|
||||
placeholder="请输入"
|
||||
v-validate="'required|zipCode'"
|
||||
maxlength="6"
|
||||
@@ -619,10 +647,10 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
// mounted() {
|
||||
// window.appCallBack = this.appCallBack
|
||||
mounted() {
|
||||
window.appCallBack = this.appCallBack
|
||||
// // document.body.style.backgroundColor = '#F5F5F5'
|
||||
// },
|
||||
},
|
||||
methods: {
|
||||
//监听名字变化
|
||||
nameChange(name) {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<div v-if="isWeixin" class="bg-white mt10 p20 fs14 tips">
|
||||
<p>
|
||||
尊敬的
|
||||
<span class="red">{{ tipsName }}</span
|
||||
<span>{{ tipsName }}</span
|
||||
>先生/女士,您好!
|
||||
</p>
|
||||
<p>该保单由国富人寿保险股份有限公司进行承保,具体确认信息如下:</p>
|
||||
@@ -18,6 +18,7 @@
|
||||
</van-cell-group>
|
||||
<div v-if="!isWeixin">
|
||||
<!-- 不再微信 -->
|
||||
|
||||
<van-collapse v-model="activeNames" class="mt10">
|
||||
<van-collapse-item name="1">
|
||||
<div slot="title">
|
||||
@@ -25,6 +26,7 @@
|
||||
<span class="ml20">{{ appnt.name }}</span>
|
||||
</div>
|
||||
<p class="mb20">以下内容需要您按照顺序阅读并签字确认:</p>
|
||||
|
||||
<div v-for="(item, index) in appntSign" :key="index">
|
||||
<p>{{ item.documentCode == '1' ? '需阅读' : '需签署' }}</p>
|
||||
<p class="mb20">
|
||||
@@ -60,6 +62,7 @@
|
||||
<div class="text" v-else>操作时间已失效,请联系销售人员!</div>
|
||||
</van-collapse-item>
|
||||
</van-collapse>
|
||||
|
||||
<div v-if="relationToAppnt != '1'" class="mt10">
|
||||
<van-collapse v-model="activeNames" v-for="(item, index) in insured" :key="index">
|
||||
<van-collapse-item :name="index + 2">
|
||||
@@ -208,7 +211,7 @@
|
||||
<script>
|
||||
import UploadImageFile from '@/components/ebiz/sale/UploadImageFile'
|
||||
import { Cell, CellGroup, Collapse, CollapseItem, Dialog } from 'vant'
|
||||
import { underWrite, getOrderDetail, getToken, getSignInvalid, checkSignInvalid } from '@/api/ebiz/sale/sale'
|
||||
import { underWrite, getOrderDetail, getSignInvalid, checkSignInvalid } from '@/api/ebiz/sale/sale'
|
||||
import { weixinShare } from '@/assets/js/utils/wxShare.js'
|
||||
// import axios from 'axios'
|
||||
// import device from '@/assets/js/commons.js'
|
||||
@@ -295,21 +298,28 @@ export default {
|
||||
this.isInvalid = true
|
||||
}
|
||||
this.airSign = sessionStorage.getItem('airSign')
|
||||
this.shareCode = sessionStorage.getItem('shareCode')
|
||||
// this.shareCode = sessionStorage.getItem('shareCode')
|
||||
this.relationToAppnt = this.$route.query.relationToAppnt
|
||||
this.isShow = false
|
||||
this.getOrderDetail().then(() => {
|
||||
console.log('this.appntSignStatus', this.appntSignStatus)
|
||||
console.log('this.appntSignStatus', this.appntSignStatus)
|
||||
if (this.appntSignStatus == '3' || this.insuredSignStatus == '3') {
|
||||
// console.log('this.appntSignStatus', this.appntSignStatus)
|
||||
// console.log('this.appntSignStatus', this.appntSignStatus)
|
||||
if (this.appntSignStatus == '3' && this.shareCode == '0') {
|
||||
// this.$toast('签名成功,请联系业务员进行后续流程!')
|
||||
Dialog.alert({ title: '提示', message: '签名成功,请联系业务员进行后续流程!' })
|
||||
} else if (this.insuredSignStatus == '3' && this.shareCode == '1') {
|
||||
Dialog.alert({ title: '提示', message: '签名成功,请联系业务员进行后续流程!' })
|
||||
}
|
||||
})
|
||||
if (this.shareCode == '1') {
|
||||
this.tipsName = this.saleInsuredPersonInfo.name
|
||||
if (sessionStorage.shareCode == '1') {
|
||||
console.log('进来被保人')
|
||||
this.tipsName = JSON.parse(localStorage.saleInsuredPersonInfo).name
|
||||
} else {
|
||||
this.tipsName = this.saleInsuredInfo.name
|
||||
console.log('进来投保人')
|
||||
this.tipsName = JSON.parse(localStorage.saleInsuredInfo).name
|
||||
// console.log('localStorage.saleInsuredInfo', localStorage.saleInsuredInfo)
|
||||
// console.log('localStorage.saleInsuredInfo.name', localStorage.saleInsuredInfo.name)
|
||||
// console.log('this.tipName', this.tipsName)
|
||||
}
|
||||
weixinShare({
|
||||
title: '国富人寿计划书',
|
||||
|
||||
@@ -4,15 +4,19 @@
|
||||
<!-- config.imgDomain + `/returnDirectStream?imgPath=${window.localStorage.getItem('insurance-policyUrl')}` -->
|
||||
|
||||
<iframe :src="src + pdfUrl" class="iframe"></iframe>
|
||||
|
||||
<van-radio-group v-model="radioSure" class="pb10 pt20 pl5 fs14">
|
||||
<van-radio name="1">
|
||||
我已充分了解上述提示内容,并同意通过电子方式签收
|
||||
</van-radio>
|
||||
</van-radio-group>
|
||||
<!-- <div id="pdf"></div>-->
|
||||
<!-- <img :src="'data:image/jpeg;base64,' + url" /> -->
|
||||
|
||||
<!-- 我已充分了解上述提示内容,并同意通过电子方式签收 -->
|
||||
<div class="pt30 pl30 flex align-items-c">
|
||||
<span class="mr10">投保人签名 :</span>
|
||||
<div>
|
||||
<!-- <van-button type="danger" size="small" @click="chaolu('0')" v-no-more-click="1000">超录</van-button> -->
|
||||
<van-button type="danger" size="small" @click="sign('0')" v-no-more-click="1000">{{ isSign ? '签名' : '已签名' }}</van-button>
|
||||
<van-button type="danger" size="small" @click="sign('0')" :disabled="isSure" v-no-more-click="1000">{{ isSign ? '签名' : '已签名' }}</van-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -93,6 +97,8 @@ export default {
|
||||
// policyUrl: '',
|
||||
src: location.origin + '/pdfjs/web/viewer.html?file=',
|
||||
radio: '',
|
||||
// 回执签收的radio
|
||||
radioSure: '',
|
||||
// 倒计时时间
|
||||
number: '',
|
||||
// // 定时器时间
|
||||
@@ -135,7 +141,9 @@ export default {
|
||||
// 是否从详情跳过来 如果为1 是
|
||||
detailJump: '',
|
||||
// 是否是万能险
|
||||
isComment: false
|
||||
isComment: false,
|
||||
// 判断回执里面签名是否可以点击
|
||||
isSure: true
|
||||
}
|
||||
},
|
||||
components: {
|
||||
@@ -172,7 +180,11 @@ export default {
|
||||
if (res.result == '0') {
|
||||
res.orderDTO.ebizSignDTOS.map(item => {
|
||||
if (item.documentCode == '2') {
|
||||
if (this.detailJump != '1') {
|
||||
this.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${item.policyUrl}`)
|
||||
} else {
|
||||
this.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${localStorage.getItem('insurance-policyUrl')}`)
|
||||
}
|
||||
if (item.signType == '0') {
|
||||
that.appntSign = item
|
||||
// this.policyUrl = item.policyUrl
|
||||
@@ -417,12 +429,17 @@ export default {
|
||||
loadingType: 'spinner',
|
||||
message: '加载中……'
|
||||
})
|
||||
// 投保人
|
||||
if (val == '0') {
|
||||
// 投保人且不是回执签收
|
||||
if (this.detailJump != '1') {
|
||||
// 投保人不是回执签收且投被同人
|
||||
if (this.relationToAppnt == '1') {
|
||||
// 投保人不是回执签收且投被同人且在微信
|
||||
if (this.isWeixin) {
|
||||
this.toAirSign('1', '申请日期', this.caOffset, '4')
|
||||
this.toAirSign('0', '申请日期', this.caOffset, '4')
|
||||
} else {
|
||||
// 投保人不是回执签收且投被同人且不在微信
|
||||
EWebBridge.webCallAppInJs('ca_sign', {
|
||||
//身份证号码
|
||||
number: this.saleInsuredInfo.idNo,
|
||||
@@ -447,9 +464,11 @@ export default {
|
||||
})
|
||||
}
|
||||
} else {
|
||||
// 微信投保人不是回执签收且投被不同人
|
||||
if (this.isWeixin) {
|
||||
this.toAirSign('0', '法定监护人', this.caOffset, '4')
|
||||
} else {
|
||||
// 不在微信投保人不是回执签收且投被不同人
|
||||
console.log('投保人签名')
|
||||
EWebBridge.webCallAppInJs('ca_sign', {
|
||||
//身份证号码
|
||||
@@ -505,9 +524,11 @@ export default {
|
||||
that.saleInsuredInfo.idType = '9'
|
||||
break
|
||||
}
|
||||
// 微信投保人且是回执签收
|
||||
if (this.isWeixin) {
|
||||
this.toAirSign('1', '投保人签字', '-150', '4')
|
||||
this.toAirSign('0', '投保人签字', '0', '4')
|
||||
} else {
|
||||
// 不是微信投保人且是回执签收
|
||||
EWebBridge.webCallAppInJs('ca_sign', {
|
||||
//身份证号码
|
||||
number: that.saleInsuredInfo.idNo,
|
||||
@@ -533,9 +554,11 @@ export default {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// 在微信被保人
|
||||
if (this.isWeixin) {
|
||||
this.toAirSign('1', '法定监护人', '10', '4')
|
||||
} else {
|
||||
// 不在微信被保人
|
||||
console.log('被保人签名')
|
||||
EWebBridge.webCallAppInJs('ca_sign', {
|
||||
//身份证号码
|
||||
@@ -578,29 +601,9 @@ export default {
|
||||
},
|
||||
// 超录
|
||||
chaolu() {
|
||||
// localStorage.setItem(
|
||||
// 'signInfo',
|
||||
// JSON.stringify({
|
||||
// idNo: this.saleInsuredInfo.idNo,
|
||||
// name: this.saleInsuredInfo.name,
|
||||
// type: this.saleInsuredInfo.idType,
|
||||
// originStatus: '2',
|
||||
// keyword: '申请日期',
|
||||
// status: '2',
|
||||
// offset: '0',
|
||||
// originUrl: location.href,
|
||||
// commentKeyword: '认真', // 批注关键字
|
||||
// commentText: '本人已阅读保险条款、产品说明书和投保提示书,了解本产品的特点和保单利益的不确定性', // 批注文字
|
||||
// commentOffset: '28', // 批注偏移量
|
||||
// commentPos: '2', // 签字图片和关键字位置关系:等于1时,签字图片和关键字矩形重心重合
|
||||
// // * 等于2时,签字图片位于关键字正下方,中心线对齐;等于3时,签字图片位于关键字正右方,中心线对齐;
|
||||
// // * 等于4时,签字图片左上角和关键字右下角重合,可能额外附加偏移量,详见构造函数的offset参数
|
||||
// caType: '1', // 是否是批注
|
||||
// pageNo: '1', // PDF起始页
|
||||
// KWIndex: '1' // 第几个关键字
|
||||
// })
|
||||
// )
|
||||
// 再微信
|
||||
if (this.isWeixin) {
|
||||
// 在微信且投被不同人
|
||||
if (this.relationToAppnt != '1') {
|
||||
localStorage.setItem(
|
||||
'signInfo',
|
||||
@@ -626,6 +629,7 @@ export default {
|
||||
)
|
||||
window.location.href = this.$mainUrl + '/chaolu/index.html'
|
||||
} else {
|
||||
// 在微信且投被同人
|
||||
localStorage.setItem(
|
||||
'signInfo',
|
||||
JSON.stringify({
|
||||
@@ -651,6 +655,7 @@ export default {
|
||||
window.location.href = this.$mainUrl + '/chaolu/index.html'
|
||||
}
|
||||
} else {
|
||||
// 不在微信且投被不同人
|
||||
if (this.relationToAppnt != '1') {
|
||||
EWebBridge.webCallAppInJs('ca_sign', {
|
||||
//身份证号码
|
||||
@@ -680,6 +685,7 @@ export default {
|
||||
}
|
||||
})
|
||||
} else {
|
||||
// 不在微信且投被同人
|
||||
EWebBridge.webCallAppInJs('ca_sign', {
|
||||
//身份证号码
|
||||
number: this.saleInsuredInfo.idNo,
|
||||
@@ -718,33 +724,18 @@ export default {
|
||||
that.signVal = window.localStorage.getItem('sign-val')
|
||||
// 判断是不是万能险
|
||||
let comment = window.localStorage.getItem('productCode')
|
||||
// comment.map(item => {
|
||||
// if (item.productCode == 'GFRS_M0003') {
|
||||
// this.isComment = true
|
||||
// }
|
||||
// })
|
||||
|
||||
if (comment == 'GFRS_M0003') {
|
||||
this.isComment = true
|
||||
}
|
||||
|
||||
// 获取投保人信息
|
||||
that.saleInsuredInfo = JSON.parse(window.localStorage.getItem('saleInsuredInfo'))
|
||||
// 在微信
|
||||
if (this.isWeixin) {
|
||||
that.relationToAppnt = JSON.parse(window.localStorage.getItem('saleInsuredPersonInfo')).relationToAppnt
|
||||
}
|
||||
|
||||
// 在微信且不是回执签收
|
||||
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') {
|
||||
// this.getOrderDetail()
|
||||
// }
|
||||
// let imgBase64Data = sessionStorage.getItem('twoimgBase64Data')
|
||||
// console.log('imgBase64Data:twoimgBase64Data ' + imgBase64Data)
|
||||
if (this.isWeixin) {
|
||||
let imgBase64Data = sessionStorage.getItem('imgBase64Data')
|
||||
let wxSigned = sessionStorage.getItem('wxSigned')
|
||||
let signInfo = JSON.parse(localStorage.getItem('signInfo'))
|
||||
@@ -783,17 +774,68 @@ export default {
|
||||
this.getOrderDetail()
|
||||
}
|
||||
} else {
|
||||
// 在微信而且是回执签收
|
||||
document.title = '保险合同签收回执电子确认书签名'
|
||||
let imgBase64Data = sessionStorage.getItem('imgBase64Data')
|
||||
let wxSigned = sessionStorage.getItem('wxSigned')
|
||||
let signInfo = JSON.parse(localStorage.getItem('signInfo'))
|
||||
console.log('`````````````````````````````````')
|
||||
console.log('imgBase64Data:twoimgBase64Data ' + imgBase64Data)
|
||||
console.log('wxSigned: ' + wxSigned)
|
||||
if (wxSigned) {
|
||||
console.log('第二次进入电子保单!')
|
||||
console.log('that222222222222', that)
|
||||
this.getOrderDetail().then(() => {
|
||||
this.Time = true
|
||||
this.isOver = true
|
||||
this.radio = '1'
|
||||
this.base64 = imgBase64Data
|
||||
this.isDisabledComplite = false
|
||||
console.log('signInfo.status:' + signInfo.status)
|
||||
if (signInfo.status == '0') {
|
||||
// this.appntSign.documentStatus = '3'
|
||||
console.log('``````````````````')
|
||||
this.$set(this.appntSign, 'documentStatus', '3')
|
||||
console.log('appntSign.documentStatus: ' + this.appntSign.documentStatus)
|
||||
this.isSign = false
|
||||
this.isDisabledComplite = false
|
||||
this.isSubmit = false
|
||||
} else {
|
||||
this.$set(this.insuredSign, 'documentStatus', '3')
|
||||
// this.insuredSign.documentStatus = '3'
|
||||
this.isDisabledComplite = false
|
||||
this.isSign = false
|
||||
}
|
||||
})
|
||||
} else {
|
||||
console.log('````````````````````````')
|
||||
console.log('第一次进入电子保单')
|
||||
this.timeOut()
|
||||
this.getOrderDetail()
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// 不在微信且不是回执签收
|
||||
|
||||
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()
|
||||
} else {
|
||||
// 不在微信但是在回执签收
|
||||
document.title = '保险合同签收回执电子确认书签名'
|
||||
this.timeOut()
|
||||
this.getOrderDetail()
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
listenChange() {
|
||||
const { isOver, radio, appntSign, insuredSign } = this
|
||||
return { isOver, radio, appntSign, insuredSign }
|
||||
const { isOver, radio, appntSign, insuredSign, radioSure } = this
|
||||
return { isOver, radio, appntSign, insuredSign, radioSure }
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@@ -824,6 +866,9 @@ export default {
|
||||
if (val.insuredSign.documentStatus == '3') {
|
||||
that.isDisableInsured = true
|
||||
}
|
||||
if (val.radioSure != '') {
|
||||
this.isSure = false
|
||||
}
|
||||
} else {
|
||||
if (that.signVal == '0' || that.signVal == '2') {
|
||||
if (val.isOver == true && val.radio != '') {
|
||||
|
||||
@@ -30,6 +30,7 @@ import { formatAllRisk } from '@/assets/js/utils/formatRiskList'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
let isWeixin = this.$utils.device().isWeixin //判断环境
|
||||
return {
|
||||
appntImg: '',
|
||||
idcardData: {
|
||||
@@ -46,14 +47,23 @@ export default {
|
||||
insuredDTOs: [],
|
||||
// 保单号
|
||||
contNo: '',
|
||||
// 是否在微信
|
||||
isWeixin,
|
||||
|
||||
list: []
|
||||
}
|
||||
},
|
||||
created() {
|
||||
// 获取保单详情
|
||||
if (this.isWeixin) {
|
||||
window.localStorage.setItem('saleInsuredInfo', this.$route.query.saleInsuredInfo)
|
||||
window.localStorage.setItem('token', this.$route.query.token)
|
||||
window.localStorage.setItem('policyNo', this.$route.query.policyNo)
|
||||
this.idcardData.idcardName = JSON.parse(this.$route.query.saleInsuredInfo).name
|
||||
this.idcardData.idcardNumber = JSON.parse(this.$route.query.saleInsuredInfo).idNo
|
||||
this.getPolicyDetail()
|
||||
this.disabled = false
|
||||
} else {
|
||||
// 获取保单详情
|
||||
}
|
||||
},
|
||||
components: {
|
||||
[Button.name]: Button,
|
||||
@@ -180,7 +190,8 @@ export default {
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#/sale/signatureOfElectronic',
|
||||
forbidSwipeBack: '1'
|
||||
forbidSwipeBack: '1',
|
||||
title: '保险合同签收回执电子确认书签名'
|
||||
},
|
||||
routerInfo: {
|
||||
path: '/sale/signatureOfElectronic'
|
||||
|
||||
@@ -134,6 +134,7 @@ export default {
|
||||
let data = {
|
||||
policyNo: window.localStorage.getItem('policyNo')
|
||||
}
|
||||
|
||||
getPolicyDetail(data).then(res => {
|
||||
if (res.result == '0') {
|
||||
let appntDTO = res.content.appntDTO
|
||||
@@ -146,11 +147,14 @@ export default {
|
||||
} else {
|
||||
orderInfoDTO.orderStatusText = ''
|
||||
}
|
||||
// 测试用
|
||||
// orderInfoDTO.orderStatus = '0'
|
||||
that.OrderInfoDTO = orderInfoDTO
|
||||
// 投保人信息
|
||||
this.filterData(dataDictionary.sex, 'sex', appntDTO)
|
||||
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 => {
|
||||
@@ -207,13 +211,20 @@ export default {
|
||||
},
|
||||
appCallBack(data) {
|
||||
if (data.trigger == 'right_button_click') {
|
||||
console.log(localStorage.saleInsuredInfo)
|
||||
EWebBridge.webCallAppInJs('bridge', {
|
||||
flag: 'share',
|
||||
extra: {
|
||||
title: this.wxTitle,
|
||||
content: '国富人寿保单回执签收',
|
||||
url: location.origin + '/#/serve/airSign?policyNo=' + localStorage.policyNo + '&token=' + localStorage.token+
|
||||
'&saleInsuredInfo=' + JSON.stringify(this.appntDTO),
|
||||
url:
|
||||
location.origin +
|
||||
'/#/serve/airSign?policyNo=' +
|
||||
localStorage.policyNo +
|
||||
'&token=' +
|
||||
localStorage.token +
|
||||
'&saleInsuredInfo=' +
|
||||
encodeURI(localStorage.saleInsuredInfo),
|
||||
// url: 'http://47.96.143.111/#/proposal/exhibition?proposalNo=' + localStorage.orderNo + '&token=' + localStorage.token,
|
||||
img: this.$assetsUrl + 'images/logo.png'
|
||||
}
|
||||
@@ -257,7 +268,8 @@ export default {
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#/sale/signatureOfElectronic',
|
||||
forbidSwipeBack: '1'
|
||||
forbidSwipeBack: '1',
|
||||
title: '保险合同签收回执电子确认书签名'
|
||||
},
|
||||
routerInfo: {
|
||||
path: '/sale/signatureOfElectronic'
|
||||
|
||||
Reference in New Issue
Block a user