feature/GFRS-2215【待完成】重新投保 -- 投保 险种修改 --提交人庞兴月

This commit is contained in:
pangxingyue
2021-03-29 21:51:29 +08:00
parent 58b9beab5b
commit f3da7d14ea
3 changed files with 257 additions and 251 deletions

View File

@@ -48,7 +48,7 @@
<template #boxTitle>
<span class="title">受益人信息</span>
</template>
<div v-if="bnftype === '1'">
<div v-if="bnftype === '0'">
<InfoCell label="受益类型">法定受益人</InfoCell>
</div>
<div v-else>
@@ -243,16 +243,18 @@ export default {
{ code: this.insuredPersonInfo.homeArea }
])
}
//受益人信息
//bnfFlag 1-法定受益人 0-指定受益人
this.bnfPersonInfo = res.orderDTO.insuredDTOs[0]['bnfDTOs']
if (this.bnfPersonInfo[0]['bnftype'] === '0') {
this.bnftype = '0'
if (this.bnfPersonInfo[0]['bnftype'] === '1') {
this.bnftype = '1'
this.bnfPersonInfo.forEach((item, index) => {
this.bnfHomeName[index] = getAreaName([{ code: item.province }, { code: item.city }, { code: item.area }])
})
} else {
this.bnftype = '1'
this.bnftype = '0'
this.insuredPersonInfo['bnfDTOs'] = []
}
// 账户信息
this.accountPersonInfo = res.orderDTO.orderAccountDTO
@@ -266,6 +268,9 @@ export default {
// this.userInfo.medical = '1'
// this.insuredPersonInfo.medical = '0'
//todo end
this.insuredPersonInfo.homeAddress = '汉字汉字汉字汉字123123'
}
})
},
@@ -508,7 +513,8 @@ export default {
orderNo: '',
oldPolicyContNo: CacheUtils.getLocItem('policyNo'),
isElecCont: this.isElecCont,
supportBank: '0'
supportBank: '0',
bnfFlag: this.bnftype
},
appntDTO: this.userInfo,
insuredDTOs: [this.insuredPersonInfo],

View File

@@ -561,7 +561,7 @@ export default {
orderDTO: {
orderInfoDTO: {
orderNo: window.localStorage.getItem('orderNo'),
productCode: JSON.parse(localStorage.mainRiskCodes)[0]
productCode: ''
},
// 投保人
appntDTO: {

View File

@@ -142,251 +142,251 @@ export default {
},
created() {
// this.getReAppntPolicy()
let a = ` {
"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": [
{
"area": "",
"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": [
{
"area": "450103",
"birthday": "1980-01-02",
"bnfLot": 50,
"bnfOrder": 1,
"bnfType": "0",
"certiexpiredate": "2035-03-31",
"city": "450100",
"effectiveDateType": "false",
"healthGrade": "1",
"idNo": "110101198001020219",
"idType": "1",
"lifeGrade": "2",
"marriage": "2",
"mobile": "13707711024",
"name": "爱来",
"nativeplace": "1",
"occupationCode": "2070202",
"occupationName": "保险推销员",
"province": "450000",
"relationToInsured": "3",
"sex": "0",
"village": "百苑小区101号",
"yearSalary": "23"
},
{
"area": "450103",
"birthday": "1983-03-12",
"bnfLot": 50,
"bnfOrder": 1,
"bnfType": "0",
"certiexpiredate": "2035-03-31",
"city": "450100",
"effectiveDateType": "false",
"healthGrade": "1",
"idNo": "452624198303120727",
"idType": "1",
"lifeGrade": "1",
"marriage": "1",
"mobile": "13707711024",
"name": "艾琳马上来",
"nativeplace": "1",
"occupationCode": "4070103",
"occupationName": "经纪人(内勤)",
"province": "450000",
"relationToInsured": "4",
"sex": "1",
"village": "百苑小区101号",
"yearSalary": "32"
}
],
"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": "1113201",
"isMainRisk": "1",
"amt": 22640,
"dutyLst": [
{
"dutyName":"国富民惠医疗保险金",
"dutyCode":"320300",
"amt":1000000,
"prem":536,
"getLimit":"0",
"getRate":"0"
},
{
"dutyName":"",
"dutyCode":"",
"amt":100000,
"prem":536,
"getLimit":"",
"getRate":""
}
]
},
{
"riskName": "国富人寿国富民惠医疗保险B款",
"insuYear": 1,
"insuYearFlag": "Y",
"payIntv": 12,
"payEndYear": 1000,
"payEndYearFlag": "Y",
"prem": 10000,
"riskCode": "1113202",
"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": {
"contNo": "保单号",
"contState": "4",
"cValiDate": "生效日期 String",
"orderStatus": "0"
}
}
}`
let res = JSON.parse(a);
// console.log(CacheUtils.getLocItem('orderDetailData'));
// let res = JSON.parse(CacheUtils.getLocItem('orderDetailData'))
// let a = ` {
// "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": [
// {
// "area": "",
// "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": [
// {
// "area": "450103",
// "birthday": "1980-01-02",
// "bnfLot": 50,
// "bnfOrder": 1,
// "bnfType": "0",
// "certiexpiredate": "2035-03-31",
// "city": "450100",
// "effectiveDateType": "false",
// "healthGrade": "1",
// "idNo": "110101198001020219",
// "idType": "1",
// "lifeGrade": "2",
// "marriage": "2",
// "mobile": "13707711024",
// "name": "爱来",
// "nativeplace": "1",
// "occupationCode": "2070202",
// "occupationName": "保险推销员",
// "province": "450000",
// "relationToInsured": "3",
// "sex": "0",
// "village": "百苑小区101号",
// "yearSalary": "23"
// },
// {
// "area": "450103",
// "birthday": "1983-03-12",
// "bnfLot": 50,
// "bnfOrder": 1,
// "bnfType": "0",
// "certiexpiredate": "2035-03-31",
// "city": "450100",
// "effectiveDateType": "false",
// "healthGrade": "1",
// "idNo": "452624198303120727",
// "idType": "1",
// "lifeGrade": "1",
// "marriage": "1",
// "mobile": "13707711024",
// "name": "艾琳马上来",
// "nativeplace": "1",
// "occupationCode": "4070103",
// "occupationName": "经纪人(内勤)",
// "province": "450000",
// "relationToInsured": "4",
// "sex": "1",
// "village": "百苑小区101号",
// "yearSalary": "32"
// }
// ],
// "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": "1113201",
// "isMainRisk": "1",
// "amt": 22640,
// "dutyLst": [
// {
// "dutyName":"国富民惠医疗保险金",
// "dutyCode":"320300",
// "amt":1000000,
// "prem":536,
// "getLimit":"0",
// "getRate":"0"
// },
// {
// "dutyName":"",
// "dutyCode":"",
// "amt":100000,
// "prem":536,
// "getLimit":"",
// "getRate":""
// }
// ]
// },
// {
// "riskName": "国富人寿国富民惠医疗保险B款",
// "insuYear": 1,
// "insuYearFlag": "Y",
// "payIntv": 12,
// "payEndYear": 1000,
// "payEndYearFlag": "Y",
// "prem": 10000,
// "riskCode": "1113202",
// "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": {
// "contNo": "保单号",
// "contState": "4",
// "cValiDate": "生效日期 String",
// "orderStatus": "0"
// }
// }
// }`
// let res = JSON.parse(a);
console.log(CacheUtils.getLocItem('orderDetailData'));
let res = JSON.parse(CacheUtils.getLocItem('orderDetailData'))
this.insuredDTOs = res.orderDTO.insuredDTOs[0]
this.orderInfoDTO = res.orderDTO.orderInfoDTO
this.riskDTOLst = this.insuredDTOs.riskDTOLst