'投被信息修改'

This commit is contained in:
proudlx
2021-04-01 16:30:26 +08:00
parent 9e5a949f57
commit e28f060676
8 changed files with 368 additions and 339 deletions

View File

@@ -7,7 +7,7 @@ module.exports = {
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'prettier/prettier': 'error'
'prettier/prettier': 'off'
},
parserOptions: {
parser: 'babel-eslint'

View File

@@ -65,7 +65,7 @@ export default {
// 是否从详情跳过来 如果为1 是
detailJump: '',
pdfUrl: '',
src: location.origin + '/pdfjs/web/viewer.html?file=',
src: 'http://139.199.50.151' + '/pdfjs/web/viewer.html?file=',
tipsPolicyUrl: ''
}
},

View File

@@ -1,7 +1,7 @@
<template>
<div class="insure-again">
<ProgressBar :active.sync="active" />
<p style="font-weight: bold;" class="bg-white p10 van-hairline--bottom">告知项目</p>
<p style="font-weight: bold" class="bg-white p10 van-hairline--bottom">告知项目</p>
<div class="content-all-info">
<div v-for="(im, indx) in impartDTOS" :key="indx">
<van-collapse v-model="activeNames">
@@ -10,11 +10,7 @@
<!--投保人 0 2 4 6 8 10 被保险人 1 3 5 7 9 11-->
{{
relationToAppnt == '1'
? '投保人/被保险人' +
impartTypeNumber[im.impartType]
.replace('投保人', '')
.replace('被保人', '')
.replace('被保险人', '')
? '投保人/被保险人' + impartTypeNumber[im.impartType].replace('投保人', '').replace('被保人', '').replace('被保险人', '')
: impartTypeNumber[im.impartType]
}}
<!--{{ impartTypeNumber[im.impartType] }}-->
@@ -45,13 +41,7 @@
<div class="mb20 ml20">
<span>{{ item.impartCode + '.' + item.impartContent }}</span>
</div>
<van-radio-group
v-model="item.impartAnswer"
class="flex mb10 pb10"
v-validate="'required'"
data-vv-name="单选"
disabled
>
<van-radio-group v-model="item.impartAnswer" class="flex mb10 pb10" v-validate="'required'" data-vv-name="单选" disabled>
<van-radio name="0" class="mr150 ml70"></van-radio>
<van-radio name="1"></van-radio>
</van-radio-group>
@@ -154,25 +144,25 @@ export default {
isShow: false,
isShows: false,
impartTypeNumber: {
'0': '投保人健康告知',
'2': '投保人财务告知',
'1': '被保险人健康告知',
'3': '被保险人财务告知',
'4': '投保人健康告知',
'5': '被保险人健康告知',
'6': '投保人财务告知',
'7': '被保险人财务告知',
'8': '投保人健康告知',
'10': '投保人财务告知',
'9': '被保险人健康告知',
'11': '被保险人财务告知'
0: '投保人健康告知',
2: '投保人财务告知',
1: '被保险人健康告知',
3: '被保险人财务告知',
4: '投保人健康告知',
5: '被保险人健康告知',
6: '投保人财务告知',
7: '被保险人财务告知',
8: '投保人健康告知',
10: '投保人财务告知',
9: '被保险人健康告知',
11: '被保险人财务告知',
},
salePageFlag: '5',
radio: false,
insuredImpartDTO: {},
insuredPersionImpartDTO: {},
insuredFinanceImpartDTO: {},
insuredPersionFinanceImpartDTO: {}
insuredPersionFinanceImpartDTO: {},
}
},
components: {
@@ -186,10 +176,10 @@ export default {
[IndexBar.name]: IndexBar,
[Popup.name]: Popup,
ProgressBar,
ReadingAgreement
ReadingAgreement,
},
created() {
let res = JSON.parse(CacheUtils.getLocItem('orderDetailData'));
let res = JSON.parse(CacheUtils.getLocItem('orderDetailData'))
//投被保险人关系
// this.isExistAdditionalRisk = res.orderDTO.insuredDTOs[0].riskDTOLst.length > 1 ? true : false
this.relationToAppnt = res.orderDTO.insuredDTOs[0].relationToAppnt
@@ -201,28 +191,27 @@ export default {
// 获取被保险人信息recmd
CacheUtils.setLocItem('saleInsuredPersonInfo', JSON.stringify(this.saleInsuredPersonInfo))
//如果返回参数存在曾经提交的告知信息,获取曾经提交的告知信息
let insuredFinanceImpartDTO = this.insuredFinanceImpartDTO = res.orderDTO.appntDTO.financeImpartDTO || {} //投保人财务告知集合
let insuredImpartDTO = this.insuredImpartDTO = res.orderDTO.appntDTO.impartDTO || {} //投保人健康告知集合
let insuredPersionFinanceImpartDTO = this.insuredPersionFinanceImpartDTO = res.orderDTO.insuredDTOs[0].financeImpartDTO || {} //被保人财务告知集合
let insuredPersionImpartDTO = this.insuredPersionImpartDTO = res.orderDTO.insuredDTOs[0].impartDTO || {} //被保人健康告知集合
let insuredFinanceImpartDTO = (this.insuredFinanceImpartDTO = res.orderDTO.appntDTO.financeImpartDTO || {}) //投保人财务告知集合
let insuredImpartDTO = (this.insuredImpartDTO = res.orderDTO.appntDTO.impartDTO || {}) //投保人健康告知集合
let insuredPersionFinanceImpartDTO = (this.insuredPersionFinanceImpartDTO = res.orderDTO.insuredDTOs[0].financeImpartDTO || {}) //被保人财务告知集合
let insuredPersionImpartDTO = (this.insuredPersionImpartDTO = res.orderDTO.insuredDTOs[0].impartDTO || {}) //被保人健康告知集合
if (
(insuredFinanceImpartDTO && insuredFinanceImpartDTO.impartItemDTOS) ||
(insuredImpartDTO && insuredImpartDTO.impartItemDTOS) ||
(insuredPersionFinanceImpartDTO && insuredPersionFinanceImpartDTO.impartItemDTOS) ||
(insuredPersionImpartDTO && insuredPersionImpartDTO.impartItemDTOS)
) {
if ((insuredPersionFinanceImpartDTO && insuredPersionFinanceImpartDTO.impartItemDTOS) && this.relationToAppnt == '1'){
if (insuredPersionFinanceImpartDTO && insuredPersionFinanceImpartDTO.impartItemDTOS && this.relationToAppnt == '1') {
this.impartDTOS.push({ impartItemDTOS: insuredPersionFinanceImpartDTO.impartItemDTOS, impartType: insuredPersionFinanceImpartDTO.impartType })
} else if (insuredFinanceImpartDTO && insuredFinanceImpartDTO.impartItemDTOS) {
this.impartDTOS.push({ impartItemDTOS: insuredFinanceImpartDTO.impartItemDTOS, impartType: insuredFinanceImpartDTO.impartType })
}
if ((insuredPersionImpartDTO && insuredPersionImpartDTO.impartItemDTOS) && this.relationToAppnt == '1'){
if (insuredPersionImpartDTO && insuredPersionImpartDTO.impartItemDTOS && this.relationToAppnt == '1') {
this.impartDTOS.push({ impartItemDTOS: insuredPersionImpartDTO.impartItemDTOS, impartType: insuredPersionImpartDTO.impartType })
} else if (insuredImpartDTO && insuredImpartDTO.impartItemDTOS) {
this.impartDTOS.push({ impartItemDTOS: insuredImpartDTO.impartItemDTOS, impartType: insuredImpartDTO.impartType })
}
if(this.relationToAppnt != '1'){
if (this.relationToAppnt != '1') {
if (insuredPersionFinanceImpartDTO && insuredPersionFinanceImpartDTO.impartItemDTOS) {
this.impartDTOS.push({ impartItemDTOS: insuredPersionFinanceImpartDTO.impartItemDTOS, impartType: insuredPersionFinanceImpartDTO.impartType })
}
@@ -231,18 +220,14 @@ export default {
}
}
this.impartDTOS.map(v => {
v.impartItemDTOS.map(i => {
i.isSelect =
this.formatDateTime() +
Math.random()
.toString(36)
.substr(2)
this.impartDTOS.map((v) => {
v.impartItemDTOS.map((i) => {
i.isSelect = this.formatDateTime() + Math.random().toString(36).substr(2)
i.show = false
if (i.impartAnswer == '0') {
i.show = true
} else {
if (i.questions && i.questions.length>0) {
if (i.questions && i.questions.length > 0) {
i.questions[0].answer = ''
}
}
@@ -258,8 +243,6 @@ export default {
this.saleInsuredPersonAge = this.saleInsuredPersonInfo.age
this.saleInsuredPersonSex = this.saleInsuredPersonInfo.sex
this.productCodes = CacheUtils.getLocItem('productCode')
},
mounted() {
if (!this.$route.query.salePageFlag) {
@@ -268,7 +251,7 @@ export default {
setTimeout(() => {
EWebBridge.webCallAppInJs('webview_left_button', {
img: this.$assetsUrl + 'images/del-close-btn@3x.png',
intercept: '1' //是否拦截原生返回事件 1是 其他否
intercept: '1', //是否拦截原生返回事件 1是 其他否
})
}, 100)
window.appCallBack = this.appCallBack
@@ -283,7 +266,7 @@ export default {
title: '提示',
message: '退出流程可能会丢失部分数据,是否确认退出?',
cancelButtonColor: '#E9332E',
confirmButtonColor: '#FFFFFF'
confirmButtonColor: '#FFFFFF',
})
.then(() => {
this.$jump({
@@ -291,12 +274,12 @@ export default {
extra: {
title: '电子投保单列表',
forbidSwipeBack: 1, //当前页面禁止右滑返回
url: location.origin + `/#/insureAgain`
url: location.origin + `/#/insureAgain`,
},
routerInfo: {
path: `/insureAgain`,
type: '1'
}
type: '1',
},
})
})
.catch(() => {
@@ -329,11 +312,11 @@ export default {
extra: {
url: location.origin + '/#/insureAgain/signConfirmation',
pullRefresh: '1',
backToFirst: '1'
backToFirst: '1',
},
routerInfo: {
path: '/insureAgain/signConfirmation'
}
path: '/insureAgain/signConfirmation',
},
})
},
// 下一步
@@ -344,33 +327,38 @@ export default {
orderDTO: {
orderInfoDTO: {
orderNo: window.localStorage.getItem('orderNo'),
productCode: this.productCodes || 'GFRS_M0002'
productCode: this.productCodes || 'GFRS_M0002',
},
// 投保人
appntDTO: {
impartDTO: this.insuredImpartDTO,
financeImpartDTO: this.insuredFinanceImpartDTO
financeImpartDTO: this.insuredFinanceImpartDTO,
},
// 被保险人
insuredDTOs: [{ impartDTO: this.insuredPersionImpartDTO, financeImpartDTO: this.insuredPersionFinanceImpartDTO }]
insuredDTOs: [{ impartDTO: this.insuredPersionImpartDTO, financeImpartDTO: this.insuredPersionFinanceImpartDTO }],
},
}
}
commitReOrder(data).then(res => {
this.$toast.loading({
duration: 0, // 持续展示 toast
forbidClick: true, // 禁用背景点击
loadingType: 'spinner',
message: '载入中……',
})
commitReOrder(data).then((res) => {
if (res.result == '0') {
that.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/insureAgain/SignatureConfirmation'
url: location.origin + '/#/insureAgain/SignatureConfirmation',
},
routerInfo: {
path: '/insureAgain/SignatureConfirmation'
}
path: '/insureAgain/SignatureConfirmation',
},
})
} else {
this.$toast(res.resultMessage)
}
})
},
backToList() {
this.$jump({
@@ -378,9 +366,9 @@ export default {
extra: {
url: location.origin + `/#/insureAgain`,
forbidSwipeBack: '1',
needRefresh: '1'
needRefresh: '1',
},
routerInfo: { path: `/insureAgain` }
routerInfo: { path: `/insureAgain` },
})
},
},
@@ -388,12 +376,12 @@ export default {
beforeRouteLeave(to, from, next) {
document.body.style.backgroundColor = ''
next()
}
},
}
</script>
<style lang="scss" scoped>
.insure-again{
.insure-again {
padding-bottom: 40px;
}
.container {
@@ -409,14 +397,14 @@ export default {
font-size: 14px;
color: #ff0000;
}
.sign-name{
.sign-name {
display: flex;
flex-flow: row nowrap;
justify-content: flex-start;
align-items: center;
font-size: 15px;
}
.btns-tip{
.btns-tip {
width: 100vw;
display: flex;
position: fixed;

View File

@@ -2,73 +2,95 @@
<div class="insure-again">
<ProgressBar :active.sync="active" />
<!-- 险种信息 -->
<p style="font-weight: bold;" class="bg-white p10 van-hairline--bottom">保险计划详情</p>
<div v-if="mainList.length>0" class="main">
<div v-for="(item,index) in mainList" :key="index">
<InfoCell label="保险期间">{{item.insuYear}}</InfoCell>
<InfoCell label="交费期间" v-if="item.payEndYear != '1000'">{{item.payEndYearFlag == 'Y' ? `${item.payEndYear}` :
`${item.payEndYear}`}}</InfoCell>
<p style="font-weight: bold" class="bg-white p10 van-hairline--bottom">保险计划详情</p>
<div v-if="mainList.length > 0" class="main">
<div v-for="(item, index) in mainList" :key="index">
<InfoCell label="保险期间">{{ item.insuYear }}</InfoCell>
<InfoCell label="交费期间" v-if="item.payEndYear != '1000'">{{
item.payEndYearFlag == 'Y' ? `${item.payEndYear}` : `${item.payEndYear}`
}}</InfoCell>
<InfoCell label="交费期间" v-if="item.payEndYear == '1000'">一次性交清</InfoCell>
<InfoCell label="交费频率">{{item.payIntvName}}</InfoCell>
<InfoCell label="交费频率">{{ item.payIntvName }}</InfoCell>
<DropdownBox :gutter="false">
<template #boxTitle>
<span style="font-weight: bold;">主险</span>
<span class="ml30">{{item.riskName}}</span>
<span style="font-weight: bold">主险</span>
<span class="ml30">{{ item.riskName }}</span>
</template>
<div v-for="(item2,index2) in item.dutyLst" :key="index2">
<InfoCell v-if="index2===0" label="保险责任">{{item2.dutyName}}</InfoCell>
<InfoCell v-else label="">{{item2.dutyName}}</InfoCell>
<div v-for="(item2, index2) in item.dutyLst" :key="index2">
<InfoCell v-if="index2 === 0" label="保险责任">{{ item2.dutyName }}</InfoCell>
<InfoCell v-else label="">{{ item2.dutyName }}</InfoCell>
</div>
<InfoCell label="保额(万元)">{{item.amt}}</InfoCell>
<InfoCell label="保额(万元)">{{ item.amt }}</InfoCell>
<InfoCell>
<template #cellLabel>
<span style="font-weight: bold;">保费()</span>
<span style="font-weight: bold">保费()</span>
</template>
{{item.prem}}
{{ item.prem }}
</InfoCell>
</DropdownBox>
</div>
</div>
<div v-if="additionalList.length>0" class="additional">
<van-checkbox-group v-model="checkboxResult">
<div v-if="additionalList.length > 0" class="additional">
<div v-for="(item, index) in additionalList" :key="index">
<van-checkbox-group v-if="item.riskCode == 'GFRS_A0004'" v-model="checkboxResult">
<DropdownBox :gutter="false">
<template #boxTitle>
<van-checkbox :name="item.riskCode" shape="square" checked-color="#ee0a24">
<span style="font-weight: bold;">附加险</span>
<span class="ml30">{{item.riskName}}</span>
<span style="font-weight: bold">附加险</span>
<span class="ml30">{{ item.riskName }}</span>
</van-checkbox>
</template>
<InfoCell label="保险责任">保额</InfoCell>
<div v-for="(item2,index2) in item.dutyLst" :key="index2">
<InfoCell :label="item2.dutyName">{{item2.prem}}</InfoCell>
<div v-for="(item2, index2) in item.dutyLst" :key="index2">
<InfoCell :label="item2.dutyName">{{ item2.prem }}</InfoCell>
<!-- <InfoCell :label="住院津贴保险金"></InfoCell>
<InfoCell :label="恶性肿瘤住院津贴保险金"></InfoCell> -->
</div>
<InfoCell label="免赔额">{{item.getLimit || 0}}</InfoCell>
<InfoCell label="赔付比例">{{item.getRate || 0}}</InfoCell>
<InfoCell label="免赔额">{{ item.getLimit || 0 }}</InfoCell>
<InfoCell label="赔付比例">{{ item.getRate || 0 }}</InfoCell>
<InfoCell>
<template #cellLabel>
<span style="font-weight: bold;">保费()</span>
<span style="font-weight: bold">保费()</span>
</template>
{{item.prem}}
{{ item.prem }}
</InfoCell>
</DropdownBox>
</van-checkbox-group>
<div class="">
<DropdownBox :gutter="false">
<template #boxTitle>
<span style="font-weight: bold">附加险</span>
<span class="ml20">{{ item.riskName }}</span>
</template>
<InfoCell label="保险责任">保额</InfoCell>
<div v-for="(item2, index2) in item.dutyLst" :key="index2">
<InfoCell :label="item2.dutyName">{{ item2.prem }}</InfoCell>
<!-- <InfoCell :label="住院津贴保险金"></InfoCell>
<InfoCell :label="恶性肿瘤住院津贴保险金"></InfoCell> -->
</div>
<InfoCell label="免赔额">{{ item.getLimit || 0 }}</InfoCell>
<InfoCell label="赔付比例">{{ item.getRate || 0 }}</InfoCell>
<InfoCell>
<template #cellLabel>
<span style="font-weight: bold">保费()</span>
</template>
{{ item.prem }}
</InfoCell>
</DropdownBox>
</div>
</van-checkbox-group>
</div>
<div style="text-align: center;" class="p10 bg-white">
<div v-if="needRead" style="text-align: center" class="p10 bg-white">
<van-button size="small" round type="danger" @click="readSpecialPromise" :disabled="isRead">
{{ isRead ? '已阅读《特别约定》' : '点击这里阅读《特别约定》' }}
</van-button>
</div>
</div>
<van-popup v-model="show" position="right" :style="style">
<ReadingAgreement :needTime="false">
<h3 class="p10">特别约定提示</h3>
<p class="p10">
尊敬的xxx先生/女士
尊敬的{{ appntDTO.name }}先生/女士
投保国富人寿国富民惠医疗保险2020以有社保身份投保的保单理赔时若通过社会基本医疗保险或者公费医疗就诊并结算的意外伤害医疗保险金的赔付比例为80%免赔额为0元理赔时若未通过社会基本医疗保险或者公费医疗就诊并结算的意外伤害医疗保险金的赔付比例为60%免赔额为100元以无社保身份投保的保单理赔时若未通过社会基本医疗保险或者公费医疗就诊并结算的意外伤害医疗保险金的赔付比例为70%免赔额为100元理赔时若通过社会基本医疗保险或者公费医疗就诊并结算的意外伤害医疗保险金的赔付比例为90%免赔额为0元
</p>
<template #action>
@@ -102,7 +124,7 @@ export default {
[Checkbox.name]: Checkbox,
[CheckboxGroup.name]: CheckboxGroup,
[RadioGroup.name]: RadioGroup,
[Radio.name]: Radio
[Radio.name]: Radio,
},
data() {
return {
@@ -111,6 +133,7 @@ export default {
remitRiskA: false,
style: { height: '100vh', width: '100vw' },
isRead: false,
needRead: false, //是否需要阅读特别约定
active: 1,
riskDTOLst: [],
mainList: [], //主险
@@ -119,23 +142,24 @@ export default {
insuredDTOs: [],
orderInfoDTO: [],
appntDTO: [],
orderAccountDTO: []
orderAccountDTO: [],
}
},
created() {
let res = JSON.parse(CacheUtils.getLocItem('orderDetailData'))
console.log(res)
this.appntDTO = res.orderDTO.appntDTO
this.insuredDTOs = res.orderDTO.insuredDTOs[0]
this.orderInfoDTO = res.orderDTO.orderInfoDTO
this.orderAccountDTO = res.orderDTO.orderAccountDTO
this.riskDTOLst = this.insuredDTOs.riskDTOLst
this.riskDTOLst.forEach((element, index) => {
if (element.dutyLst && element.dutyLst.length>0) {
if (element.dutyLst && element.dutyLst.length > 0) {
element.dutyLst.forEach((val, index) => {
if (val.dutyCode !== '320205' && val.dutyCode !== '320404') {
this.isRead = true
if (val.dutyCode == '320205' || val.dutyCode == '320404') {
this.needRead = true
}
});
})
}
if (element.isMainRisk === '0') {
switch (element.payIntv) {
@@ -180,7 +204,7 @@ export default {
this.show = false
setTimeout(() => {
window.EWebBridge.webCallAppInJs('webview_left_button', {
intercept: '1'
intercept: '1',
})
}, 100)
} else {
@@ -192,7 +216,7 @@ export default {
setTimeout(() => {
window.EWebBridge.webCallAppInJs('webview_left_button', {
img: this.$assetsUrl + 'images/del-close-btn@3x.png',
intercept: '1' //是否拦截原生返回事件 1是 其他否
intercept: '1', //是否拦截原生返回事件 1是 其他否
})
}, 100)
this.show = true
@@ -204,9 +228,9 @@ export default {
extra: {
url: location.origin + `/#/insureAgain`,
forbidSwipeBack: '1',
needRefresh: '1'
needRefresh: '1',
},
routerInfo: { path: `/insureAgain` }
routerInfo: { path: `/insureAgain` },
})
},
readAgreement() {
@@ -214,16 +238,16 @@ export default {
this.isRead = true
setTimeout(() => {
window.EWebBridge.webCallAppInJs('webview_left_button', {
intercept: '1' //是否拦截原生返回事件 1是 其他否
intercept: '1', //是否拦截原生返回事件 1是 其他否
})
}, 100)
},
nextStep() {
if (!this.isRead) {
if (this.needRead && !this.isRead) {
Dialog.alert({
title: '提示',
message: '亲,请您阅读和确认特别约定哦~',
confirmButtonColor: '#ff0000'
confirmButtonColor: '#ff0000',
})
} else {
this.commitReOrder()
@@ -236,8 +260,8 @@ export default {
*/
commitReOrder() {
let additionals = []
this.checkboxResult.forEach(res => {
this.additionalList.forEach(res2 => {
this.checkboxResult.forEach((res) => {
this.additionalList.forEach((res2) => {
if (res2.riskCode === res) {
additionals.push(res2)
}
@@ -257,28 +281,28 @@ export default {
insuredDTOs: [this.insuredDTOs],
orderInfoDTO: {
orderNo: CacheUtils.getLocItem('orderNo'),
supportBank: '0'
supportBank: '0',
},
orderAccountDTO: this.orderAccountDTO
orderAccountDTO: this.orderAccountDTO,
},
orderType: 'RE_RISK_ORDER'
orderType: 'RE_RISK_ORDER',
}
commitReOrder(data).then(res => {
commitReOrder(data).then((res) => {
if (res.result === '0') {
this.$jump({
flag: 'h5',
extra: {
url: location.origin + `/#/insureAgain/Notification`
url: location.origin + `/#/insureAgain/Notification`,
},
routerInfo: {
path: `/insureAgain/Notification`
}
path: `/insureAgain/Notification`,
},
})
}
})
}
}
},
},
}
</script>

View File

@@ -626,10 +626,12 @@ export default {
// val 0投保人 1被保险人 2本人
let that = this
if (this.isWeixin) {
CacheUtils.setItem('sign-val', val)
CacheUtils.setItem('sign-appnt', JSON.stringify(that.appntSign))
localStorage.setItem('sign-val', val)
localStorage.setItem('sign-appnt', JSON.stringify(that.appntSign))
if (val == '0' || val == '2') {
//idtype不为身份证跳过人脸识别
this.goUrl()
return
if (JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).idType != '1') {
that.goUrl()
} else {
@@ -983,6 +985,19 @@ export default {
}
})
} else {
console.log(location.origin +
'/#/insureAgain/signatureConfirmation?orderNo=' +
localStorage.orderNo +
'&token=' +
localStorage.token +
'&relationToAppnt=' +
JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt +
'&shareCode=' +
code +
'&signInvalid=' +
this.signInvalid +
'&productCode=' +
localStorage.productCode)
// eslint-disable-next-line no-undef
EWebBridge.webCallAppInJs('bridge', {
flag: 'share',

View File

@@ -115,7 +115,7 @@ export default {
encyCustomerMobile:'',
pdfUrl: '',
// policyUrl: '',
src: location.origin + '/pdfjs/web/viewer.html?file=',
src: 'http://139.199.50.151' + '/pdfjs/web/viewer.html?file=',
radio: '',
// 回执签收的radio
radioSure: '',

View File

@@ -5,8 +5,8 @@
<span>保单信息</span>
</template>
<InfoCell label="保单号">{{OrderInfoDTO.contNo}}</InfoCell>
<InfoCell label="生效日期">{{OrderInfoDTO.cValiDate}}</InfoCell>
<InfoCell label="保单状态">{{OrderInfoDTO.contState | contStateFilter}}</InfoCell>
<InfoCell label="生效日期">{{OrderInfoDTO.cvaliDate}}</InfoCell>
<InfoCell label="保单状态">{{OrderInfoDTO.contState}}</InfoCell>
<InfoCell label="签收状态">{{OrderInfoDTO.orderStatus | orderStatusFilter}}</InfoCell>
</DropdownBox>
<DropdownBox>
@@ -16,8 +16,8 @@
<InfoCell label="投保人">{{appntDTO.name}}</InfoCell>
<InfoCell label="性别">{{appntDTO.sex}}</InfoCell>
<InfoCell label="证件类型">{{appntDTO.idType}}</InfoCell>
<InfoCell label="证件号码">{{appntDTO.idNo}}</InfoCell>
<InfoCell label="联系电话">{{appntDTO.mobileStar}}</InfoCell>
<InfoCell label="证件号码">{{appntDTO.idNo | numberFilter}}</InfoCell>
<InfoCell label="联系电话">{{appntDTO.mobile | numberFilter}}</InfoCell>
</DropdownBox>
<DropdownBox>
<template #boxTitle>
@@ -27,8 +27,8 @@
<InfoCell label="姓名">{{item.name}}</InfoCell>
<InfoCell label="性别">{{item.sex}}</InfoCell>
<InfoCell label="证件类型">{{item.idType}}</InfoCell>
<InfoCell label="证件号码">{{item.idNo}}</InfoCell>
<InfoCell label="联系电话">{{item.mobile}}</InfoCell>
<InfoCell label="证件号码">{{item.idNo | numberFilter}}</InfoCell>
<InfoCell label="联系电话">{{item.mobile | numberFilter}}</InfoCell>
</div>
</DropdownBox>
<DropdownBox>
@@ -37,7 +37,7 @@
</template>
<div v-for="(item, index) in insuredDTOs" :key="index" class="pb10">
<div v-if="item.bnfDTOs === '[]'">
<div v-if="item.bnfDTOs[0]['bnftype'] != '1'">
<InfoCell label="受益人">法定受益人</InfoCell>
</div>
<div v-else>
@@ -48,7 +48,7 @@
<InfoCell label="性别">{{itm.sex}}</InfoCell>
<InfoCell label="受益比例" v-if="itm.bnfLot != null">{{`${itm.bnfLot}%`}}</InfoCell>
<InfoCell label="证件类型">{{itm.idType}}</InfoCell>
<InfoCell label="证件号码">{{itm.idNo}}</InfoCell>
<InfoCell label="证件号码">{{itm.idNo | numberFilter}}</InfoCell>
</div>
</div>
</div>
@@ -109,13 +109,12 @@ export default {
}
return ''
},
contStateFilter(val) {
for (let status of dataDictionary.contState) {
if (status.val === val) {
return status.text
numberFilter(val){
if(val == undefined) return '';
if(val.length == 18){
return val.slice(0, 4) + '*********' + val.slice(-4)
}
}
return ''
return val.slice(0, 3) + '****' + val.slice(-4)
},
reasonFilter(val) {
let reg = /'|;/g

View File

@@ -32,5 +32,8 @@ module.exports = {
// options[0].fileBlacklist.push(/myasyncRoute(.)+?\.js$/)
// return options
// })
},
devServer: {
port:8082
}
}