mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 12:06:43 +08:00
重新投保产品信息接口返回编写,提交编写
This commit is contained in:
@@ -688,7 +688,7 @@ export default {
|
|||||||
let str = ''
|
let str = ''
|
||||||
let resultData = await commitReOrder(params)
|
let resultData = await commitReOrder(params)
|
||||||
if (resultData.result == 0) {
|
if (resultData.result == 0) {
|
||||||
localStorage.setItem('orderNo', resultData.orderNo)
|
localStorage.setItem('newOrderNo', resultData.orderNo)
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
|
|||||||
@@ -3,42 +3,69 @@
|
|||||||
<ProgressBar :active.sync="active" />
|
<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>
|
||||||
<InfoCell label="保险期间" value="asd" />
|
<div v-if="mainList.length>0" class="main">
|
||||||
<InfoCell label="交费期间" />
|
<div v-for="(item,index) in mainList" :key="index">
|
||||||
<InfoCell label="交费频率" />
|
<InfoCell label="保险期间">{{item.insuYear}}年</InfoCell>
|
||||||
<DropdownBox :gutter="false">
|
<InfoCell label="交费期间" v-if="item.payEndYear != '1000'">{{item.payEndYearFlag == 'Y' ? `${item.payEndYear}年` :
|
||||||
<template #boxTitle>
|
`至${item.payEndYear}岁`}}</InfoCell>
|
||||||
<span style="font-weight: bold;">主险</span>
|
<InfoCell label="交费期间" v-if="item.payEndYear == '1000'">一次性交清</InfoCell>
|
||||||
<span class="ml30">国富人寿附加住院医疗保险(B款)</span>
|
<InfoCell label="交费频率">{{item.payIntvName}}</InfoCell>
|
||||||
</template>
|
<DropdownBox :gutter="false">
|
||||||
<InfoCell label="保险责任" />
|
<template #boxTitle>
|
||||||
<InfoCell label="保额(万元)" />
|
<span style="font-weight: bold;">主险</span>
|
||||||
<InfoCell>
|
<span class="ml30">国富人寿附加住院医疗保险(B款)</span>
|
||||||
<template #cellLabel>
|
</template>
|
||||||
<span style="font-weight: bold;">保费(元)</span>
|
<div v-for="(item2,index2) in item.dutyLst" :key="index2">
|
||||||
</template>
|
<InfoCell v-if="index2===0" label="保险责任">{{item2.dutyName}}</InfoCell>
|
||||||
</InfoCell>
|
<InfoCell v-else label="">{{item2.dutyName}}</InfoCell>
|
||||||
</DropdownBox>
|
</div>
|
||||||
<DropdownBox :gutter="false">
|
<InfoCell label="保额(万元)">{{item.amt}}</InfoCell>
|
||||||
<template #boxTitle>
|
<InfoCell>
|
||||||
<van-checkbox v-model="remitRiskA" shape="square" checked-color="#ee0a24">
|
<template #cellLabel>
|
||||||
<span style="font-weight: bold;">附加险</span>
|
<span style="font-weight: bold;">保费(元)</span>
|
||||||
<span class="ml30">国富人寿附加住院医疗保险(B款)</span>
|
</template>
|
||||||
</van-checkbox>
|
{{item.prem}}元
|
||||||
</template>
|
</InfoCell>
|
||||||
<InfoCell label="保险责任" />
|
</DropdownBox>
|
||||||
<InfoCell label="住院医疗保险金" />
|
</div>
|
||||||
<InfoCell label="住院津贴保险金" />
|
</div>
|
||||||
<InfoCell label="恶性肿瘤住院津贴保险金" />
|
<div v-if="additionalList.length>0" class="additional">
|
||||||
<InfoCell label="免赔额" />
|
<van-checkbox-group v-model="checkboxResult">
|
||||||
<InfoCell label="赔付比例" />
|
<div v-for="(item, index) in additionalList" :key="index">
|
||||||
<InfoCell>
|
<DropdownBox :gutter="false">
|
||||||
<template #cellLabel>
|
<template #boxTitle>
|
||||||
<span style="font-weight: bold;">保费(元)</span>
|
<van-checkbox :name="item.riskCode" shape="square" checked-color="#ee0a24">
|
||||||
</template>
|
<span style="font-weight: bold;">附加险</span>
|
||||||
</InfoCell>
|
<span class="ml30">{{item.riskName}}</span>
|
||||||
</DropdownBox>
|
</van-checkbox>
|
||||||
<DropdownBox>
|
</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}}</InfoCell>
|
||||||
|
<InfoCell label="赔付比例">{{item.getRate}}</InfoCell>
|
||||||
|
<InfoCell>
|
||||||
|
<template #cellLabel>
|
||||||
|
<span style="font-weight: bold;">保费(元)</span>
|
||||||
|
</template>
|
||||||
|
{{item.prem}}元
|
||||||
|
</InfoCell>
|
||||||
|
</DropdownBox>
|
||||||
|
</div>
|
||||||
|
</van-checkbox-group>
|
||||||
|
|
||||||
|
<div style="text-align: center;" class="p10 bg-white">
|
||||||
|
<van-button size="small" round type="danger" @click="readSpecialPromise" :disabled="isRead">
|
||||||
|
{{ isRead ? '已阅读《特别约定》' : '点击这里阅读《特别约定》' }}
|
||||||
|
</van-button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- <DropdownBox>
|
||||||
<template #boxTitle>
|
<template #boxTitle>
|
||||||
<span style="font-weight: bold;">附加险</span>
|
<span style="font-weight: bold;">附加险</span>
|
||||||
<span class="ml30">国富人寿附加综合意外伤害保险</span>
|
<span class="ml30">国富人寿附加综合意外伤害保险</span>
|
||||||
@@ -54,14 +81,8 @@
|
|||||||
<span style="font-weight: bold;">保费(元)</span>
|
<span style="font-weight: bold;">保费(元)</span>
|
||||||
</template>
|
</template>
|
||||||
</InfoCell>
|
</InfoCell>
|
||||||
<template #footer>
|
|
||||||
<div style="text-align: center;" class="p10 bg-white">
|
</DropdownBox> -->
|
||||||
<van-button size="small" round type="danger" @click="readSpecialPromise" :disabled="isRead">
|
|
||||||
{{ isRead ? '已阅读《特别约定》' : '点击这里阅读《特别约定》' }}
|
|
||||||
</van-button>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
</DropdownBox>
|
|
||||||
|
|
||||||
<van-popup v-model="show" position="right" :style="style">
|
<van-popup v-model="show" position="right" :style="style">
|
||||||
<ReadingAgreement :needTime="false">
|
<ReadingAgreement :needTime="false">
|
||||||
@@ -88,8 +109,9 @@ import ProgressBar from '@/components/ebiz/insureAgain/ProgressBar'
|
|||||||
import DropdownBox from '@/components/ebiz/insureAgain/DropdownBox'
|
import DropdownBox from '@/components/ebiz/insureAgain/DropdownBox'
|
||||||
import InfoCell from '@/components/ebiz/insureAgain/InfoCell'
|
import InfoCell from '@/components/ebiz/insureAgain/InfoCell'
|
||||||
import ReadingAgreement from '@/components/ebiz/insureAgain/ReadingAgreement'
|
import ReadingAgreement from '@/components/ebiz/insureAgain/ReadingAgreement'
|
||||||
import commitReOrder from '@/api/ebiz/insureAgain/insureAgain'
|
import { commitReOrder, getReAppntPolicy } from '@/api/ebiz/insureAgain/insureAgain'
|
||||||
import { Checkbox, RadioGroup, Radio, Dialog } from 'vant'
|
import { Checkbox, RadioGroup, Radio, Dialog, CheckboxGroup } from 'vant'
|
||||||
|
import CacheUtils from '@/assets/js/utils/cacheUtils'
|
||||||
export default {
|
export default {
|
||||||
name: 'ProductInformation',
|
name: 'ProductInformation',
|
||||||
components: {
|
components: {
|
||||||
@@ -98,6 +120,7 @@ export default {
|
|||||||
InfoCell,
|
InfoCell,
|
||||||
ReadingAgreement,
|
ReadingAgreement,
|
||||||
[Checkbox.name]: Checkbox,
|
[Checkbox.name]: Checkbox,
|
||||||
|
[CheckboxGroup.name]: CheckboxGroup,
|
||||||
[RadioGroup.name]: RadioGroup,
|
[RadioGroup.name]: RadioGroup,
|
||||||
[Radio.name]: Radio
|
[Radio.name]: Radio
|
||||||
},
|
},
|
||||||
@@ -108,76 +131,308 @@ export default {
|
|||||||
remitRiskA: false,
|
remitRiskA: false,
|
||||||
style: { height: '100vh', width: '100vw' },
|
style: { height: '100vh', width: '100vw' },
|
||||||
isRead: false,
|
isRead: false,
|
||||||
active: 1
|
active: 1,
|
||||||
|
riskDTOLst: [],
|
||||||
|
mainList: [], //主险
|
||||||
|
additionalList: [], //附加险
|
||||||
|
checkboxResult: [],
|
||||||
|
insuredDTOs: [],
|
||||||
|
orderInfoDTO: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getProductInfo()
|
this.getReAppntPolicy()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getProductInfo() {
|
getReAppntPolicy() {
|
||||||
let a = `{
|
getReAppntPolicy({ policyNo: CacheUtils.getLocItem('policyNo') }).then(res => {
|
||||||
|
if (res.result == 0) {
|
||||||
|
let a = `{
|
||||||
"orderDTO": {
|
"orderDTO": {
|
||||||
|
"appntDTO": {
|
||||||
|
"area": "",
|
||||||
|
"averageAnnualIncome": 10,
|
||||||
|
"avoirdupois": 60,
|
||||||
|
"birthday": "1983-03-12",
|
||||||
|
"certiexpiredate": "2035-03-31",
|
||||||
|
"effectiveDateType": "false",
|
||||||
|
"email": "310598205@qq.com",
|
||||||
|
"healthGrade": "1",
|
||||||
|
"homeAddress": "百苑小区101号",
|
||||||
|
"homeArea": "450103",
|
||||||
|
"homeCity": "450100",
|
||||||
|
"homeProvince": "450000",
|
||||||
|
"idNo": "452624198303120727",
|
||||||
|
"idType": "1",
|
||||||
|
"liabilitiesMoney": "0",
|
||||||
|
"lifeGrade": "1",
|
||||||
|
"marriage": "1",
|
||||||
|
"medical": "0",
|
||||||
|
"mobile": "13707711024",
|
||||||
|
"name": "艾琳马上",
|
||||||
|
"nativeplace": "1",
|
||||||
|
"occupationCode": "4070103",
|
||||||
|
"occupationName": "经纪人(内勤)",
|
||||||
|
"otherSalarySource": "",
|
||||||
|
"salarySource": "1",
|
||||||
|
"sex": "1",
|
||||||
|
"stature": 167,
|
||||||
|
"taxResidentId": "1",
|
||||||
|
"workcompany": "国富人寿保险股份有限公司"
|
||||||
|
},
|
||||||
"insuredDTOs": [
|
"insuredDTOs": [
|
||||||
{
|
{
|
||||||
"insuredId": 18425,
|
"area": "",
|
||||||
"riskDTOLst": [
|
"averageAnnualIncome": 1000,
|
||||||
|
"avoirdupois": 60,
|
||||||
|
"birthday": "1983-03-12",
|
||||||
|
"certiexpiredate": "2035-03-31",
|
||||||
|
"companyArea": "",
|
||||||
|
"companyCity": "",
|
||||||
|
"effectiveDateType": "false",
|
||||||
|
"healthGrade": "1",
|
||||||
|
"homeAddress": "百苑小区101号",
|
||||||
|
"homeArea": "450103",
|
||||||
|
"homeCity": "450100",
|
||||||
|
"homeProvince": "450000",
|
||||||
|
"idNo": "452624198303120727",
|
||||||
|
"idType": "1",
|
||||||
|
"liabilitiesMoney": "0",
|
||||||
|
"lifeGrade": "1",
|
||||||
|
"marriage": "1",
|
||||||
|
"medical": "0",
|
||||||
|
"mobile": "13707711024",
|
||||||
|
"name": "艾琳咳咳",
|
||||||
|
"nativeplace": "1",
|
||||||
|
"occupationCode": "4070103",
|
||||||
|
"occupationName": "经纪人(内勤)",
|
||||||
|
"otherSalarySource": "",
|
||||||
|
"province": "",
|
||||||
|
"relationToMainInsured": "5",
|
||||||
|
"salarySource": "1",
|
||||||
|
"sex": "1",
|
||||||
|
"stature": 167,
|
||||||
|
"taxResidentId": "1",
|
||||||
|
"workcompany": "国富人寿保险股份有限公司",
|
||||||
|
"bnfDTOs": [
|
||||||
{
|
{
|
||||||
"amt": 1042,
|
"area": "450103",
|
||||||
"insuYear": 85,
|
"birthday": "1980-01-02",
|
||||||
"insuYearFlag": "A",
|
"bnfLot": 50,
|
||||||
"intMult": 0,
|
"bnfOrder": 1,
|
||||||
"isMainRisk": "0",
|
"bnfType": "0 1-是法定;0-不是法定",
|
||||||
"mainRiskCode": "GFRS_M0002",
|
"certiexpiredate": "2035-03-31",
|
||||||
"payEndYear": 3,
|
"city": "450100",
|
||||||
"payEndYearFlag": "Y",
|
"effectiveDateType": "false",
|
||||||
"payIntv": 12,
|
"healthGrade": "1",
|
||||||
"prem": 2000,
|
"idNo": "110101198001020219",
|
||||||
"riskCode": "GFRS_M0002",
|
"idType": "1",
|
||||||
"riskName": "国富人寿国富民鑫年金保险",
|
"lifeGrade": "2",
|
||||||
"riskType": "5",
|
"marriage": "2",
|
||||||
"standPrem": 2000,
|
"mobile": "13707711024",
|
||||||
"thirdInsuraceNo": ""
|
"name": "爱来",
|
||||||
|
"nativeplace": "1",
|
||||||
|
"occupationCode": "2070202",
|
||||||
|
"occupationName": "保险推销员",
|
||||||
|
"province": "450000",
|
||||||
|
"relationToInsured": "3",
|
||||||
|
"sex": "0",
|
||||||
|
"village": "百苑小区101号",
|
||||||
|
"yearSalary": "23"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"amt": 50000,
|
"area": "450103",
|
||||||
"dutyLst": [
|
"birthday": "1983-03-12",
|
||||||
{
|
"bnfLot": 50,
|
||||||
"amt": 50000,
|
"bnfOrder": 1,
|
||||||
"dutyCode": "410100",
|
"bnfType": "0 1-是法定;0-不是法定",
|
||||||
"dutyName": "意外身故/伤残保险金",
|
"certiexpiredate": "2035-03-31",
|
||||||
"prem": 80
|
"city": "450100",
|
||||||
}
|
"effectiveDateType": "false",
|
||||||
],
|
"healthGrade": "1",
|
||||||
"getLimit": "0",
|
"idNo": "452624198303120727",
|
||||||
"getRate": "1",
|
"idType": "1",
|
||||||
"insuYear": 1,
|
"lifeGrade": "1",
|
||||||
"insuYearFlag": "Y",
|
"marriage": "1",
|
||||||
"intMult": 0,
|
"mobile": "13707711024",
|
||||||
"isMainRisk": "1",
|
"name": "艾琳马上来",
|
||||||
"mainRiskCode": "GFRS_M0002",
|
"nativeplace": "1",
|
||||||
"payEndYear": 1000,
|
"occupationCode": "4070103",
|
||||||
"payEndYearFlag": "Y",
|
"occupationName": "经纪人(内勤)",
|
||||||
"payIntv": 0,
|
"province": "450000",
|
||||||
"prem": 80,
|
"relationToInsured": "4",
|
||||||
"riskCode": "GFRS_A0005",
|
"sex": "1",
|
||||||
"riskName": "国富人寿附加综合意外伤害保险",
|
"village": "百苑小区101号",
|
||||||
"riskType": "2",
|
"yearSalary": "32"
|
||||||
"standPrem": 80,
|
|
||||||
"thirdInsuraceNo": ""
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"sex": "1"
|
"impartDTO": {
|
||||||
|
"impartItemDTOS": [
|
||||||
|
{
|
||||||
|
"impartAnswer": "1",
|
||||||
|
"impartCode": "9",
|
||||||
|
"impartContent": "最近六个月内是否有下列身体不适症状?①长期咳嗽咳痰、声音嘶哑、痰中带血、咯血;②胸闷、胸痛、心慌、气喘、气短、呼吸困难;③吐血、大便带血、黑便、反复腹痛、恶心、反酸、呕吐、腹泻;④反复尿频、尿痛、血尿、腰痛、外生殖器溃疡;⑤反复皮下出血、鼻腔出血、牙龈出血、发热、持续疲倦;⑥晕倒、意识不清、视力下降、抽搐、反复头痛、头晕;⑦半年内体重增加或减少5公斤以上;⑧关节红肿、疼痛、活动受限。",
|
||||||
|
"IntroDuctions": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"impartAnswer": "1",
|
||||||
|
"impartCode": "12a",
|
||||||
|
"impartContent": "是否曾患有失明、视网膜出血或剥离、视神经炎、青光眼、白内障、眼底病变、视野缺失、屈光度1000度以上、聋哑、中耳炎、梅尼尔氏病或其他眼、耳、鼻、喉或口腔疾病?",
|
||||||
|
"IntroDuctions": ""
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"riskDTOLst": [
|
||||||
|
{
|
||||||
|
"riskName": "国富人寿国富民惠医疗保险(2020版)",
|
||||||
|
"insuYear": 1,
|
||||||
|
"insuYearFlag": "Y",
|
||||||
|
"payIntv": 12,
|
||||||
|
"payEndYear": 1000,
|
||||||
|
"payEndYearFlag": "Y",
|
||||||
|
"prem": 10000,
|
||||||
|
"riskCode": "1113202",
|
||||||
|
"isMainRisk": "0",
|
||||||
|
"amt": 22640,
|
||||||
|
"dutyLst": [
|
||||||
|
{
|
||||||
|
"dutyName":"国富民惠医疗保险金",
|
||||||
|
"dutyCode":"320300",
|
||||||
|
"amt":1000000,
|
||||||
|
"prem":536,
|
||||||
|
"getLimit":"0",
|
||||||
|
"getRate":"0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"dutyName":"一般医疗保险金",
|
||||||
|
"dutyCode":"",
|
||||||
|
"amt":100000,
|
||||||
|
"prem":536,
|
||||||
|
"getLimit":"",
|
||||||
|
"getRate":""
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"riskName": "国富人寿国富民惠医疗保险(2020版)",
|
||||||
|
"insuYear": 1,
|
||||||
|
"insuYearFlag": "Y",
|
||||||
|
"payIntv": 12,
|
||||||
|
"payEndYear": 1000,
|
||||||
|
"payEndYearFlag": "Y",
|
||||||
|
"prem": 10000,
|
||||||
|
"riskCode": "11132021",
|
||||||
|
"isMainRisk": "1",
|
||||||
|
"amt": 22640,
|
||||||
|
"dutyLst": [
|
||||||
|
{
|
||||||
|
"dutyName":"住院医疗保险金",
|
||||||
|
"dutyCode":"320300",
|
||||||
|
"amt":1000000,
|
||||||
|
"prem":536,
|
||||||
|
"getLimit":"0",
|
||||||
|
"getRate":"0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"dutyName":"住院津贴保险金",
|
||||||
|
"dutyCode":"",
|
||||||
|
"amt":100000,
|
||||||
|
"prem":536,
|
||||||
|
"getLimit":"",
|
||||||
|
"getRate":""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"dutyName":"恶性肿瘤住院津贴保险金",
|
||||||
|
"dutyCode":"",
|
||||||
|
"amt":100000,
|
||||||
|
"prem":536,
|
||||||
|
"getLimit":"",
|
||||||
|
"getRate":""
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"riskName": "国富人寿国富民惠医疗保险(2020版)",
|
||||||
|
"insuYear": 1,
|
||||||
|
"insuYearFlag": "Y",
|
||||||
|
"payIntv": 12,
|
||||||
|
"payEndYear": 1000,
|
||||||
|
"payEndYearFlag": "Y",
|
||||||
|
"prem": 10000,
|
||||||
|
"riskCode": "11132022",
|
||||||
|
"isMainRisk": "1",
|
||||||
|
"amt": 22640,
|
||||||
|
"dutyLst": [
|
||||||
|
{
|
||||||
|
"dutyName":"国富民惠医疗保险金",
|
||||||
|
"dutyCode":"320300",
|
||||||
|
"amt":1000000,
|
||||||
|
"prem":536,
|
||||||
|
"getLimit":"0",
|
||||||
|
"getRate":"0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"dutyName":"",
|
||||||
|
"dutyCode":"",
|
||||||
|
"amt":100000,
|
||||||
|
"prem":536,
|
||||||
|
"getLimit":"",
|
||||||
|
"getRate":""
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"orderAccountDTO": {
|
||||||
|
"accountName": "艾琳马上",
|
||||||
|
"bankName": "BOCOM",
|
||||||
|
"cardBookCode": "4354256325325678790"
|
||||||
|
},
|
||||||
"orderInfoDTO": {
|
"orderInfoDTO": {
|
||||||
"orderNo": "8186270000012119",
|
"contNo": "保单号",
|
||||||
"supportBank": "0"
|
"contState": "保单状态 1-承保;4-终止;0-投保中",
|
||||||
|
"cValiDate": "生效日期 String",
|
||||||
|
"orderStatus": "签收状态 0-未签收 1-已签收"
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"orderType": "RE_RISK_ORDER"
|
}`
|
||||||
}`;
|
let res = JSON.parse(a)
|
||||||
console.log(JSON.parse(a))
|
this.insuredDTOs = res.orderDTO.insuredDTOs[0]
|
||||||
|
this.orderInfoDTO = res.orderDTO.orderInfoDTO
|
||||||
|
this.riskDTOLst = this.insuredDTOs.riskDTOLst
|
||||||
|
this.riskDTOLst.forEach((element, index) => {
|
||||||
|
if (element.isMainRisk === '0') {
|
||||||
|
switch (element.payIntv) {
|
||||||
|
case -1:
|
||||||
|
element.payIntvName = '不定期交'
|
||||||
|
break
|
||||||
|
case 0:
|
||||||
|
element.payIntvName = '一次交清'
|
||||||
|
break
|
||||||
|
case 1:
|
||||||
|
element.payIntvName = '月交'
|
||||||
|
break
|
||||||
|
case 3:
|
||||||
|
element.payIntvName = '季交'
|
||||||
|
break
|
||||||
|
case 6:
|
||||||
|
element.payIntvName = '半年交'
|
||||||
|
break
|
||||||
|
case 12:
|
||||||
|
element.payIntvName = '年交'
|
||||||
|
break
|
||||||
|
}
|
||||||
|
this.mainList.push(element)
|
||||||
|
} else {
|
||||||
|
this.additionalList.push(element)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
// console.log(res, '=============this.riskDTOLst================')
|
||||||
|
// console.log(this.mainList, '=============this.mainList================')
|
||||||
|
console.log(this.additionalList, '=============this.additionalList================')
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
appCallBack(data) {
|
appCallBack(data) {
|
||||||
if (data.trigger == 'left_button_click') {
|
if (data.trigger == 'left_button_click') {
|
||||||
@@ -240,16 +495,44 @@ console.log(JSON.parse(a))
|
|||||||
* @return {*}
|
* @return {*}
|
||||||
*/
|
*/
|
||||||
commitReOrder() {
|
commitReOrder() {
|
||||||
|
let additionals = []
|
||||||
|
this.checkboxResult.forEach(res => {
|
||||||
|
this.additionalList.forEach(res2 => {
|
||||||
|
if (res2.riskCode === res) {
|
||||||
|
additionals.push(res2)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
let riskDTOLst = [...this.mainList, ...additionals]
|
||||||
let data = {
|
let data = {
|
||||||
'orderDTO': {
|
orderDTO: {
|
||||||
'insuredDTOs': '',
|
insuredDTOs: [
|
||||||
'orderInfoDTO': '',
|
{
|
||||||
},
|
insuredId: this.insuredDTOs.idNo,
|
||||||
'orderType': 'RE_RISK_ORDER'
|
sex: this.insuredDTOs.sex,
|
||||||
|
riskDTOLst: riskDTOLst
|
||||||
|
}
|
||||||
|
],
|
||||||
|
orderInfoDTO: {
|
||||||
|
orderNo: this.orderInfoDTO.contNo,
|
||||||
|
supportBank: '0'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
orderType: 'RE_RISK_ORDER'
|
||||||
}
|
}
|
||||||
commitReOrder(data).then(res=>{
|
commitReOrder(data).then(res => {
|
||||||
if (res.result === '0') {
|
if (res.result === '0') {
|
||||||
|
// localStorage.setItem('newOrderNo', resultData.orderNo)
|
||||||
|
console.log('/insureAgain/Notification')
|
||||||
|
this.$jump({
|
||||||
|
flag: 'h5',
|
||||||
|
extra: {
|
||||||
|
url: location.origin + `/#/insureAgain/Notification`
|
||||||
|
},
|
||||||
|
routerInfo: {
|
||||||
|
path: `/insureAgain/Notification`
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -258,7 +541,7 @@ console.log(JSON.parse(a))
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.insure-again{
|
.insure-again {
|
||||||
padding-bottom: 11vw;
|
padding-bottom: 11vw;
|
||||||
}
|
}
|
||||||
.btns {
|
.btns {
|
||||||
@@ -267,4 +550,14 @@ console.log(JSON.parse(a))
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.additional {
|
||||||
|
/deep/ .van-field__control {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.main {
|
||||||
|
/deep/ .van-field__control {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user