合并鼎诚919

This commit is contained in:
邓晓坤
2019-09-19 18:04:30 +08:00
parent 1c4edae07f
commit d5ca72a7fc
73 changed files with 3805 additions and 2281 deletions

View File

@@ -8,6 +8,7 @@
<van-cell title="生效日期" :value="OrderInfoDTO.cvaliDate" />
<van-cell title="保单状态" :value="OrderInfoDTO.contState" />
<van-cell title="签收状态" :value="OrderInfoDTO.orderStatus" />
<van-cell v-if="OrderInfoDTO.receiptDate != null && OrderInfoDTO.receiptDate != ''" title="签收日期" :value="OrderInfoDTO.receiptDate" />
</van-cell-group>
</van-collapse-item>
@@ -39,32 +40,35 @@
<van-collapse-item title="受益人信息" :name="i + 81">
<van-cell-group>
<van-cell title="受益人" :value="itm.bnfType" />
<van-cell title="姓名" :value="itm.name" />
<van-cell title="性别" :value="itm.sex" />
<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" />
<div v-if="itm.bnfType == '指定受益人'">
<van-cell title="姓名" :value="itm.name" />
<van-cell title="性别" :value="itm.sex" />
<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" />
</div>
</van-cell-group>
</van-collapse-item>
</div>
<div v-for="(it, ind) in item.riskDTOLst" :key="it.riskName" class="pb10">
<div v-for="(it, ind) in list" :key="it.riskName" class="pb10">
<van-collapse-item title="主险信息" :name="ind + 10">
<van-cell-group>
<van-cell title="险种名称" :value="it.riskName" />
<van-cell title="保险期间" :value="it.insuYear" />
<van-cell title="交费方式" :value="it.payIntv" />
<van-cell title="交费期间" :value="it.years" />
<van-cell title="险种保额" :value="it.amt" />
<van-cell title="险种保费" :value="it.prem" />
<van-collapse-item title="附加险信息" :name="ind + 61">
<van-cell title="交费期间" :value="Number(it.years) > 30 ? '至70周岁' : `${it.years}年交`" />
<van-cell title="险种保额(元)" :value="it.amt | moneyFormat" />
<van-cell title="险种保费(元)" :value="it.mainPremDetail | moneyFormat" />
<van-collapse-item title="附加险信息" :name="num + 61" v-for="(i, num) in it.addtion" :key="num">
<van-cell-group>
<van-cell title="险种名称" :value="it.riskName" />
<van-cell title="保险期间" :value="it.insuYear" />
<van-cell title="交费方式" :value="it.payIntv" />
<van-cell title="交费期间" :value="it.years" />
<van-cell title="险种保额" :value="it.amt" />
<van-cell title="险种保费" :value="it.prem" />
<van-cell title="险种名称" :value="i.riskName" />
<van-cell title="保险期间" :value="i.insuYear" />
<van-cell title="交费期间" :value="Number(i.years) > 30 ? '至70周岁' : `${i.years}年交`" />
<van-cell title="险种保额(元)" v-if="i.amt == '1' || i.amt == '2' || i.amt == '3'" :value="`计划${i.amt}`"></van-cell>
<van-cell title="险种保额(元)" :value="i.amt | moneyFormat" v-else />
<van-cell title="险种保费(元)" :value="i.prem | moneyFormat" />
</van-cell-group>
</van-collapse-item>
</van-cell-group>
@@ -73,8 +77,9 @@
</div>
</van-collapse>
<div class="bottom-btn bg-white">
<van-button type="danger" size="large" @click="next" v-no-more-click="1000">回执签收</van-button>
<!-- :disabled="OrderInfoDTO.orderStatus == '已签收' ? true : false" -->
<van-button type="danger" size="large" @click="next" :disabled="OrderInfoDTO.orderStatus == '已签收' ? true : false" v-no-more-click="1000"
>回执签收</van-button
>
</div>
</div>
</template>
@@ -82,6 +87,7 @@
<script>
import { Collapse, CollapseItem, Cell, CellGroup, Button } from 'vant'
import { getPolicyDetail, getReceiptSign } from '@/api/ebiz/serve/serve'
import { formatAllRisk } from '@/assets/js/utils/formatRiskList'
export default {
data() {
return {
@@ -94,7 +100,9 @@ export default {
// 被保人信息
insuredDTOs: [],
// 保单号
contNo: ''
contNo: '',
list: []
}
},
created() {
@@ -115,7 +123,7 @@ export default {
let that = this
let data = {
policyNo: window.localStorage.getItem('policyNo')
// policyNo: '900080000000762'
// policyNo: '900080000000745'
}
getPolicyDetail(data).then(res => {
console.log(res)
@@ -144,33 +152,27 @@ export default {
res.content.appntDTO.sex = '不详'
}
switch (res.content.appntDTO.idType) {
case '0':
res.content.appntDTO.idType = '居民身份证'
break
case '1':
res.content.appntDTO.idType = '户口本'
res.content.appntDTO.idType = '身份证'
break
case '2':
res.content.appntDTO.idType = '出生证'
res.content.appntDTO.idType = '户口本'
break
case '3':
res.content.appntDTO.idType = '外国人永久居留身份证'
res.content.appntDTO.idType = '出生证明'
break
case '4':
res.content.appntDTO.idType = '外国人护照'
res.content.appntDTO.idType = '护照'
break
case '5':
res.content.appntDTO.idType = '港澳居民来往内地通行证'
res.content.appntDTO.idType = '港澳居民通行证'
break
case '6':
res.content.appntDTO.idType = '台湾居民来往内地通行证'
res.content.appntDTO.idType = '台湾居民通行证'
break
case '7':
res.content.appntDTO.idType = '其他'
break
case '9':
res.content.appntDTO.idType = '港澳台居民居住证'
break
}
that.appntDTO = res.content.appntDTO
res.content.insuredDTOs.map(item => {
@@ -196,6 +198,17 @@ export default {
it.payIntv = '年交'
break
}
if (it.insuYear == '70') {
it.insuYear = '至70周岁'
} else if (it.insuYear == '75') {
it.insuYear = '至75周岁'
} else if (it.insuYear == '80') {
it.insuYear = '至80周岁'
} else if (it.insuYear == '106') {
it.insuYear = '终身'
} else {
it.insuYear = `${it.insuYear}`
}
})
})
// 被保人信息
@@ -208,33 +221,27 @@ export default {
item.sex = '不详'
}
switch (item.idType) {
case '0':
item.idType = '居民身份证'
break
case '1':
item.idType = '户口本'
item.idType = '身份证'
break
case '2':
item.idType = '出生证'
item.idType = '户口本'
break
case '3':
item.idType = '外国人永久居留身份证'
item.idType = '出生证明'
break
case '4':
item.idType = '外国人护照'
item.idType = '护照'
break
case '5':
item.idType = '港澳居民来往内地通行证'
item.idType = '港澳居民通行证'
break
case '6':
item.idType = '台湾居民来往内地通行证'
item.idType = '台湾居民通行证'
break
case '7':
item.idType = '其他'
break
case '9':
item.idType = '港澳台居民居住证'
break
}
switch (item.relationToAppnt) {
case '1':
@@ -254,11 +261,9 @@ export default {
break
}
item.bnfDTOs.map(it => {
if (it.bnfType == '0') {
it.bnfType = '生存受益人'
} else if (it.bnfType == '1') {
it.bnfType = '身故受益人'
} else {
if (it.bnfType == '1') {
it.bnfType = '指定受益人'
} else if (it.bnfType == '0') {
it.bnfType = '法定受益人'
}
if (it.sex == '0') {
@@ -269,33 +274,27 @@ export default {
it.sex = '不详'
}
switch (it.idType) {
case '0':
it.idType = '居民身份证'
break
case '1':
it.idType = '户口本'
it.idType = '身份证'
break
case '2':
it.idType = '出生证'
it.idType = '户口本'
break
case '3':
it.idType = '外国人永久居留身份证'
it.idType = '出生证明'
break
case '4':
it.idType = '外国人护照'
it.idType = '护照'
break
case '5':
it.idType = '港澳居民来往内地通行证'
it.idType = '港澳居民通行证'
break
case '6':
it.idType = '台湾居民来往内地通行证'
it.idType = '台湾居民通行证'
break
case '7':
it.idType = '其他'
break
case '9':
it.idType = '港澳台居民居住证'
break
}
switch (it.relationToInsured) {
case '1':
@@ -318,6 +317,9 @@ export default {
})
that.insuredDTOs = res.content.insuredDTOs
// 格式化
// this.insuredDTOs[0].riskDTOLst
this.list = formatAllRisk(this.insuredDTOs[0].riskDTOLst)
} else {
this.$toast(res.resultMessage)
// EWebBridge.webCallAppInJs('bridge', {
@@ -329,6 +331,15 @@ export default {
},
// 回执签收
next() {
this.$toast.loading({
duration: 0, // 持续展示 toast
forbidClick: true, // 禁用背景点击
loadingType: 'spinner',
message: '加载中……'
})
let data = {
contNo: window.localStorage.getItem('policyNo')
// contNo: '900080000000656'
@@ -336,6 +347,7 @@ export default {
getReceiptSign(data).then(res => {
console.log(res)
if (res.result == '0') {
this.$toast.clear()
window.localStorage.setItem('insurance-policyUrl', res.signUrl)
window.localStorage.setItem('detailJump', '1')
console.log(this.OrderInfoDTO)
@@ -352,7 +364,8 @@ export default {
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/sale/signatureOfElectronic'
url: location.origin + '/#/sale/signatureOfElectronic',
forbidSwipeBack: '1'
},
routerInfo: {
path: '/sale/signatureOfElectronic'