'重新投保字段修改'

This commit is contained in:
proudlx
2021-04-13 17:54:20 +08:00
parent 748c06b7a6
commit 842407a656
4 changed files with 81 additions and 57 deletions

View File

@@ -25,15 +25,7 @@
<InfoCell label="职业类别">{{ userInfo.occupationName }}</InfoCell> <InfoCell label="职业类别">{{ userInfo.occupationName }}</InfoCell>
<InfoCell label="移动电话">{{ userInfo.mobile }}</InfoCell> <InfoCell label="移动电话">{{ userInfo.mobile }}</InfoCell>
<!-- <InfoCell label="电子邮箱">{{ userInfo.email }}</InfoCell> --> <!-- <InfoCell label="电子邮箱">{{ userInfo.email }}</InfoCell> -->
<van-field <van-field v-model="userInfo.email" label="电子邮箱" name="电子邮箱" placeholder="请输入电子邮箱" v-validate="'required'" required clearable />
v-model="userInfo.email"
label="电子邮箱"
name="电子邮箱"
placeholder="请输入电子邮箱"
v-validate="'required'"
required
clearable
/>
<!-- <InfoCell label="有无社保"> <!-- <InfoCell label="有无社保">
<van-button class="mr10" size="small" type="danger" round></van-button> <van-button class="mr10" size="small" type="danger" round></van-button>
<van-button plain size="small" type="danger" round></van-button> <van-button plain size="small" type="danger" round></van-button>
@@ -122,7 +114,7 @@
@click="toSelect('10', '', 'insuredDTOs')" @click="toSelect('10', '', 'insuredDTOs')"
@focus="noBomBox" @focus="noBomBox"
/> />
<InfoCell label="职业类别">{{ insuredPersonInfo.occupationCode }}</InfoCell> <InfoCell label="职业类别">{{ insuredPersonInfo.occupationName }}</InfoCell>
<select-radio <select-radio
:radios="medicalRadio" :radios="medicalRadio"
label="有无社保" label="有无社保"
@@ -241,7 +233,7 @@
@click="areaChoose('2', 'bnfDTOs', index)" @click="areaChoose('2', 'bnfDTOs', index)"
/> />
<van-field <van-field
v-model="item.homeAddress" v-model="item.village"
label="" label=""
name="详细地址" name="详细地址"
placeholder="具体到街道、门牌号、楼号、单元号、室号" placeholder="具体到街道、门牌号、楼号、单元号、室号"
@@ -252,7 +244,7 @@
style="font-size: 3.5vw" style="font-size: 3.5vw"
/> />
<van-field @click="openOccupation(index)" label="职业类别" name="职业类别" :value="item.occupationName" right-icon="arrow" /> <van-field @click="openOccupation(index)" label="职业类别" name="职业类别" :value="item.occupationName" right-icon="arrow" />
<InfoCell label="受益顺序"></InfoCell> <InfoCell label="受益顺序">{{ item.bnfOrder }}</InfoCell>
<InfoCell label="受益比例">{{ item.bnfLot }}%</InfoCell> <InfoCell label="受益比例">{{ item.bnfLot }}%</InfoCell>
</div> </div>
</div> </div>
@@ -273,36 +265,36 @@
:readonly="false" :readonly="false"
style="font-size: 3.5vw" style="font-size: 3.5vw"
/> />
<van-field <van-field
v-model="accountPersonInfo.bankName" v-model="accountPersonInfo.bankName"
label="开户银行" label="开户银行"
placeholder="请选择" placeholder="请选择"
required required
@click="islistShow = true" @click="islistShow = true"
readonly readonly
v-validate="'required'" v-validate="'required'"
data-vv-name="开户银行" data-vv-name="开户银行"
/> />
<van-field <van-field
v-model="accountPersonInfo.areaStr" v-model="accountPersonInfo.areaStr"
label="开户银行省市" label="开户银行省市"
placeholder="请选择" placeholder="请选择"
required required
@click="areaSelect" @click="areaSelect"
readonly readonly
v-validate="'required'" v-validate="'required'"
data-vv-name="开户银行省市" data-vv-name="开户银行省市"
/> />
<van-field <van-field
v-model="accountPersonInfo.cardBookCode" v-model="accountPersonInfo.cardBookCode"
label="银行账号" label="银行账号"
maxlength="19" maxlength="19"
placeholder="请输入银行账号" placeholder="请输入银行账号"
clearable clearable
required required
v-validate="'required|bankCard'" v-validate="'required|bankCard'"
data-vv-name="银行账号" data-vv-name="银行账号"
/> />
<!-- <InfoCell label="账户名称">{{ accountPersonInfo.accountName }}</InfoCell> <!-- <InfoCell label="账户名称">{{ accountPersonInfo.accountName }}</InfoCell>
<InfoCell label="开户银行">{{ accountPersonInfo.bankName }}</InfoCell> <InfoCell label="开户银行">{{ accountPersonInfo.bankName }}</InfoCell>
<InfoCell label="银行账号">{{ accountPersonInfo.cardBookCode }}</InfoCell> --> <InfoCell label="银行账号">{{ accountPersonInfo.cardBookCode }}</InfoCell> -->
@@ -354,6 +346,7 @@ import OccupationForLoop from '@/components/ebiz/occipation/OccupationForLoop'
import CacheUtils from '@/assets/js/utils/cacheUtils' import CacheUtils from '@/assets/js/utils/cacheUtils'
import SelectBankName from '@/components/ebiz/account/SelectBankName' import SelectBankName from '@/components/ebiz/account/SelectBankName'
import areaList from '@/assets/js/utils/area' import areaList from '@/assets/js/utils/area'
import occupationList from '@/components/ebiz/occipation/data/occupation'
export default { export default {
name: 'InsureInformation', name: 'InsureInformation',
components: { components: {
@@ -370,8 +363,8 @@ export default {
data() { data() {
return { return {
islistShow: false, islistShow: false,
inputShow:true, inputShow: true,
isAreaListShow:false, isAreaListShow: false,
homeName: '', //投保人联系地址 homeName: '', //投保人联系地址
insuredHomeName: '', //被投保人联系地址 insuredHomeName: '', //被投保人联系地址
bnfHomeName: [], //受益人联系地址 bnfHomeName: [], //受益人联系地址
@@ -507,6 +500,15 @@ export default {
} }
//投保人信息返显 //投保人信息返显
this.userInfo = res.orderDTO.appntDTO this.userInfo = res.orderDTO.appntDTO
let firstTierUserInfo = Number(this.userInfo.occupationCode.substr(0, 1)) - 1
occupationList[firstTierUserInfo].subs.forEach((item) => {
item.subs.forEach((item) => {
if (item.code == this.userInfo.occupationCode) {
this.userInfo.occupationName = item.name
return
}
})
})
this.setCustomerMarriage(res.orderDTO.appntDTO.marriage) this.setCustomerMarriage(res.orderDTO.appntDTO.marriage)
//是否长期 //是否长期
this.userInfo.effectiveDateType = res.orderDTO.appntDTO.effectiveDateType == 'false' ? false : true this.userInfo.effectiveDateType = res.orderDTO.appntDTO.effectiveDateType == 'false' ? false : true
@@ -518,6 +520,15 @@ export default {
// 被投保人信息 // 被投保人信息
this.insuredPersonInfo = res.orderDTO.insuredDTOs[0] this.insuredPersonInfo = res.orderDTO.insuredDTOs[0]
let firstTier = Number(this.insuredPersonInfo.occupationCode.substr(0, 1)) - 1
occupationList[firstTier].subs.forEach((item) => {
item.subs.forEach((item) => {
if (item.code == this.insuredPersonInfo.occupationCode) {
this.insuredPersonInfo.occupationName = item.name
return
}
})
})
this.setInsuredCustomerMarriage(this.insuredPersonInfo.marriage) this.setInsuredCustomerMarriage(this.insuredPersonInfo.marriage)
if (this.insuredPersonInfo.homeProvince.length) { if (this.insuredPersonInfo.homeProvince.length) {
this.insuredHomeName = getAreaName([ this.insuredHomeName = getAreaName([
@@ -530,7 +541,7 @@ export default {
//受益人信息 //受益人信息
//bnfFlag 0-法定受益人 1-指定受益人 //bnfFlag 0-法定受益人 1-指定受益人
this.bnfPersonInfo = res.orderDTO.insuredDTOs[0]['bnfDTOs'] this.bnfPersonInfo = res.orderDTO.insuredDTOs[0]['bnfDTOs']
if (this.bnfPersonInfo[0]['bnftype'] === '1') { if (this.bnfPersonInfo[0]['bnfType'] === '1') {
this.bnftype = '1' this.bnftype = '1'
this.bnfPersonInfo.forEach((item, index) => { this.bnfPersonInfo.forEach((item, index) => {
this.bnfHomeName[index] = getAreaName([{ code: item.province }, { code: item.city }, { code: item.area }]) this.bnfHomeName[index] = getAreaName([{ code: item.province }, { code: item.city }, { code: item.area }])
@@ -540,6 +551,15 @@ export default {
item.marriageStatus = status.text item.marriageStatus = status.text
} }
} }
let firstTierBnf = Number(item.occupationCode.substr(0, 1)) - 1
occupationList[firstTierBnf].subs.forEach((key) => {
key.subs.forEach((key) => {
if (key.code == item.occupationCode) {
item.occupationName = key.name
return
}
})
})
}) })
} else { } else {
this.bnftype = '0' this.bnftype = '0'

View File

@@ -180,6 +180,9 @@ export default {
planCode:element.planCode, planCode:element.planCode,
birthday: this.insuredDTOs.birthday, birthday: this.insuredDTOs.birthday,
duty:element.dutyLst, duty:element.dutyLst,
jobLevel:'2',
getLimit:element.dutyLst[0].getLimit,
getRate:element.dutyLst[0].getRate,
isMainRisk:element.isMainRisk, isMainRisk:element.isMainRisk,
isRemit:element.isRemit, isRemit:element.isRemit,
remitType:'', remitType:'',
@@ -197,7 +200,7 @@ export default {
payIntv: element.payIntv, payIntv: element.payIntv,
platformType: 'app', platformType: 'app',
prem: element.prem, // prem: element.prem,
productCode: element.riskCode, productCode: element.riskCode,
sex: this.insuredDTOs.sex, sex: this.insuredDTOs.sex,
amt: element.amt amt: element.amt

View File

@@ -62,7 +62,9 @@
</template> </template>
<div v-for="it in list" :key="it.riskName" class="pb10"> <div v-for="it in list" :key="it.riskName" class="pb10">
<InfoCell label="险种名称">{{it.riskName}}</InfoCell> <InfoCell label="险种名称">{{it.riskName}}</InfoCell>
<InfoCell label="保险期间">{{it.insuYear}}</InfoCell> <InfoCell label="保险期间" v-if="it.insuYear != '106'">{{it.insuYearFlag == 'Y' ? `${it.insuYear}` :
`${it.insuYear}`}}</InfoCell>
<InfoCell label="保险期间" v-if="it.insuYear == '106'">终身</InfoCell>
<InfoCell label="交费期间" v-if="it.payEndYear != '1000'">{{it.payEndYearFlag == 'Y' ? `${it.payEndYear}` : <InfoCell label="交费期间" v-if="it.payEndYear != '1000'">{{it.payEndYearFlag == 'Y' ? `${it.payEndYear}` :
`${it.payEndYear}`}}</InfoCell> `${it.payEndYear}`}}</InfoCell>
<InfoCell label="交费期间" v-if="it.payEndYear == '1000'">一次性交清</InfoCell> <InfoCell label="交费期间" v-if="it.payEndYear == '1000'">一次性交清</InfoCell>

View File

@@ -42,14 +42,12 @@
<van-popup v-model="isAgreementShow" position="right" :style="{ height: '100vh', width: '100vw' }"> <van-popup v-model="isAgreementShow" position="right" :style="{ height: '100vh', width: '100vw' }">
<ReadingAgreement :needTime="false"> <ReadingAgreement :needTime="false">
<h3 class="p10" style="text-align: center">重新投保声明提示</h3> <h3 class="p10" style="text-align: center">重新投保声明提示</h3>
<p style="text-indent: 28px">尊敬的{{ orderInfo.appntName }}{{ orderInfo.appntSex === 0 ? '先生' : '女士' }}</p> <p style="text-indent: 28px">尊敬的{{ orderInfo.appntName }}{{ orderInfo.sex == 0 ? '先生' : '女士' }}</p>
<div class="p10" v-if="orderInfo.riskCode !== 'GFRS_A0008'"> <div class="p10" v-if="orderInfo.riskCode !== 'GFRS_A0008'">
<p style="text-indent: 28px"> <p style="text-indent: 28px">
您好感谢您选择购买国富人寿保险股份有限公司以下简称我们保险产品您于{{ orderInfo.cvaliDate }}投保的旧保单{{ 您好感谢您选择购买国富人寿保险股份有限公司以下简称我们保险产品您于{{ orderInfo.cvaliDate }}投保的旧保单{{
orderInfo.policyNo orderInfo.policyNo
}}产品名称为{{ orderInfo.riskName }}即将到期或已到期到期日期详见保单为保护您的权益即日起至{{ }}产品名称为{{ orderInfo.riskName }}即将到期或已到期到期日期详见保单为保护您的权益您可向我们提交重新投保申请以下是申请重新投保的注意事项和声明请您仔细阅读和确认
orderInfo.expiryDate | expiryDateFilter
}}期间您可向我们提交重新投保申请以下是申请重新投保的注意事项和声明请您仔细阅读和确认
</p> </p>
<p style="text-indent: 28px">1.{{ orderInfo.riskName }}保险期间为一年到期后需要您重新投保</p> <p style="text-indent: 28px">1.{{ orderInfo.riskName }}保险期间为一年到期后需要您重新投保</p>
<p style="text-indent: 28px"> <p style="text-indent: 28px">
@@ -70,9 +68,7 @@
<p style="text-indent: 28px"> <p style="text-indent: 28px">
您好感谢您选择购买国富人寿保险股份有限公司以下简称我们保险产品您于{{ orderInfo.cvaliDate }}投保的旧保单{{ 您好感谢您选择购买国富人寿保险股份有限公司以下简称我们保险产品您于{{ orderInfo.cvaliDate }}投保的旧保单{{
orderInfo.policyNo orderInfo.policyNo
}}产品名称为{{ orderInfo.riskName }}即将到期或已到期到期日期详见保单为保护您的权益即日起至{{ }}产品名称为{{ orderInfo.riskName }}即将到期或已到期到期日期详见保单为保护您的权益您可向我们提交重新投保申请以下是申请重新投保的注意事项和声明请您仔细阅读和确认
orderInfo.expiryDate | expiryDateFilter
}}期间您可向我们提交重新投保申请以下是申请重新投保的注意事项和声明请您仔细阅读和确认
</p> </p>
<p style="text-indent: 28px">1.{{ orderInfo.riskName }}保险期间为一年到期后需要您重新投保</p> <p style="text-indent: 28px">1.{{ orderInfo.riskName }}保险期间为一年到期后需要您重新投保</p>
<p style="text-indent: 28px"> <p style="text-indent: 28px">
@@ -259,6 +255,9 @@ export default {
// }) // })
getReAppntPolicy({ policyNo: order.policyNo }).then(async (res) => { getReAppntPolicy({ policyNo: order.policyNo }).then(async (res) => {
if (res.result == 0) { if (res.result == 0) {
this.orderInfo.sex = res.orderDTO.appntDTO.sex
this.goUrl(res, order)
return
if (res.orderDTO.appntDTO.idType == '1') { if (res.orderDTO.appntDTO.idType == '1') {
// 白名单校验 // 白名单校验
const resData = await getWhitelist({ const resData = await getWhitelist({
@@ -269,7 +268,7 @@ export default {
if (resData.result === '0') { if (resData.result === '0') {
// 在白名单内 // 在白名单内
if (resData.content && resData.content.length) { if (resData.content && resData.content.length) {
this.goUrl(res,order) this.goUrl(res, order)
return return
} else { } else {
window.EWebBridge.webCallAppInJs('face_auth', { window.EWebBridge.webCallAppInJs('face_auth', {
@@ -278,7 +277,7 @@ export default {
name: res.orderDTO.appntDTO.name //姓名 name: res.orderDTO.appntDTO.name //姓名
}).then((data) => { }).then((data) => {
if (JSON.parse(data).state == '1') { if (JSON.parse(data).state == '1') {
this.goUrl(res,order) this.goUrl(res, order)
} else { } else {
return this.$toast('人脸识别,验证失败!') return this.$toast('人脸识别,验证失败!')
} }
@@ -295,7 +294,7 @@ export default {
} }
}) })
}, },
goUrl(res,order) { goUrl(res, order) {
let url let url
//投保人信息返显 //投保人信息返显
CacheUtils.setLocItem('orderDetailData', JSON.stringify(res)) CacheUtils.setLocItem('orderDetailData', JSON.stringify(res))