diff --git a/src/assets/js/utils/data-dictionary.js b/src/assets/js/utils/data-dictionary.js index 05e91fa1f..bad3ac7d3 100644 --- a/src/assets/js/utils/data-dictionary.js +++ b/src/assets/js/utils/data-dictionary.js @@ -2017,5 +2017,320 @@ export default { { code: '01', value: '寿险' }, { code: '02', value: '重疾' }, { code: '03', value: '年金' } + ], + // 利益演示单位 + productRateUnit: [ + { + code: 'years', + label: '' + }, + { + code: 'currentAge', + label: '岁' + }, + { + code: 'currentPremium', + label: '元' + }, + { + code: 'totalPremium', + label: '元' + }, + { + code: 'majorDiseaseInsurance', + label: '元' + }, + { + code: 'majorDiseaseInsurance2', + label: '元' + }, + { + code: 'mildillnessInsurance', + label: '元' + }, + { + code: 'deathInsurance', + label: '元' + }, + { + code: 'deathInsurance_L', + label: '元' + }, + { + code: 'deathInsurance_M', + label: '元' + }, + { + code: 'deathInsurance_H', + label: '元' + }, + { + code: 'highDisabilityExemptionPremium', + label: '元' + }, + { + code: 'deathExemptionPremium', + label: '元' + }, + { + code: 'accidentalDeathInsurance', + label: '元' + }, + { + code: 'accidentalDisabilityInsurance', + label: '元' + }, + { + code: 'medicalInsuranceForAccidentalInjury', + label: '元' + }, + { + code: 'incidentalInjuryHospitalizationAllowanceInsurance', + label: '元' + }, + { + code: 'insurancePremiumForBedsInHospital', + label: '元' + }, + { + code: 'inpatientSurgeryInsurance', + label: '元' + }, + { + code: 'inpatientCancerRadiotherapyAndChemotherapyExpensesInsurance', + label: '元' + }, + { + code: 'insuranceForOtherHospitalizationExpenses', + label: '元' + }, + { + code: 'insuranceForSpecificCardiovascularAndCerebrovascularDiseases', + label: '元' + }, + { + code: 'insuranceForCertainCardiovascularAndCerebrovascularMajorDiseases', + label: '元' + }, + { + code: 'cashValue', + label: '元' + }, + { + code: 'survival', + label: '元' + }, + { + code: 'survival_T', + label: '元' + }, + { + code: 'totalSurvival', + label: '元' + }, + { + code: 'expireSurvival', + label: '元' + }, + { + code: 'birthdayGold', + label: '元' + }, + { + code: 'middleDiseaseInsurance', + label: '元' + }, + { + code: 'appntADDCExemptionPremium', + label: '元' + }, + { + code: 'majorMiddleMildDiseaseInsuranceExemptionPremium', + label: '元' + }, + { + code: 'majorTMiddleMildDiseaseInsuranceExemptionPremium', + label: '元' + }, + { + code: 'survival_L', + label: '元' + }, + { + code: 'survival_M', + label: '元' + }, + { + code: 'survival_H', + label: '元' + }, + { + code: 'seneralMedicalInsurance', + label: '元' + }, + { + code: 'malignantTumorMedicalInsurance', + label: '元' + }, + { + code: 'malignantTumorInsurance', + label: '元' + }, + { + code: 'specificMalignantTumorCareFor', + label: '元' + }, + { + code: 'strokeSequelaInsurance', + label: '元' + }, + { + code: 'highSchoolEducationFund', + label: '元' + }, + { + code: 'universityEducationFund', + label: '元' + }, + { + code: 'entrepreneurshipGold', + label: '元' + }, + { + code: 'marriageGold', + label: '元' + }, + { + code: 'theInitialCost', + label: '元' + }, + { + code: 'continueToReward', + label: '元' + }, + { + code: 'policyAccountValue_L', + label: '元' + }, + { + code: 'policyAccountValue_M', + label: '元' + }, + { + code: 'policyAccountValue_H', + label: '元' + }, + { + code: 'enterPolicyAccountValue', + label: '元' + }, + { + code: 'endowmentAnnuity_years', + label: '元' + }, + { + code: 'endowmentAnnuity_month', + label: '元' + }, + { + code: 'endowmentAnnuity_L', + label: '元' + }, + { + code: 'endowmentAnnuity_M', + label: '元' + }, + { + code: 'endowmentAnnuity_H', + label: '元' + }, + { + code: 'pensionPaymentDate', + label: '' + }, + { + code: 'theCumulativeEndowmentAnnuity_L', + label: '元' + }, + { + code: 'theCumulativeEndowmentAnnuity_M', + label: '元' + }, + { + code: 'theCumulativeEndowmentAnnuity_H', + label: '元' + }, + { + code: 'cashValueFormula_L', + label: '元' + }, + { + code: 'cashValueFormula_M', + label: '元' + }, + { + code: 'cashValueFormula_H', + label: '元' + }, + { + code: 'thePremium', + label: '元' + }, + { + code: 'terminalIllnessBenefits', + label: '元' + }, + { + code: 'years', + label: '' + }, + { + code: 'transport_A', + label: '元' + }, + { + code: 'transport_B', + label: '元' + }, + { + code: 'transport_C', + label: '元' + }, + { + code: 'transport_D', + label: '元' + }, + { + code: 'transport_F', + label: '元' + }, + { + code: 'totalSuvInterest_L', + label: '元' + }, + { + code: 'totalSuvInterest_M', + label: '元' + }, + { + code: 'totalSuvInterest_H', + label: '元' + }, + { + code: 'remitPremRate', + label: '' + }, + { + code: 'inpatientCare', + label: '元' + }, + { + code: 'hospitalizationBenefit', + label: '元' + }, + { + code: 'malignantTumor', + label: '元' + } ] } diff --git a/src/views/ebiz/proposal/ProposalInfo.vue b/src/views/ebiz/proposal/ProposalInfo.vue index e75210f15..492a09300 100644 --- a/src/views/ebiz/proposal/ProposalInfo.vue +++ b/src/views/ebiz/proposal/ProposalInfo.vue @@ -5,31 +5,18 @@
家庭保障计划
-
+
- +
-
- 本人
- 张先生 -
-
-
-
-
-
-
-
-
- -
-
- 本人
- 张先生 +
+ {{ relationToAppntType[item.relationToAppnt] }}
+ {{ item.name }}
+
@@ -41,17 +28,19 @@

- +

- +

- +
产品计划
@@ -64,20 +53,24 @@
交费期间
首年保费(元)
-
+
+
{{ riskItem.riskName }}
+
{{ riskItem.amt }}
+
{{ riskItem.insureName }}
+
{{ riskItem.payName }}
+
{{ riskItem.showPrem }}
+
+
@@ -89,8 +82,8 @@
保险责任
-
按责任显示
-
按险种显示
+
按责任显示
+
按险种显示
12
@@ -111,41 +104,61 @@
+
产品条款
-
-
《条框名称绝地逢生地方就是开发及地方就是恐惧看》
-
查看
-
-
-
《条框名称绝地逢生地》
-
查看
+
+
《{{ riskItem.riskName }}条款》
+
查看
+
产品总利益演示
-
- +
+
+ {{ moneyItem.contentLabel }} +
+ {{ moneyItem.value }}{{ moneyItem.content | productRateUnit }} +
+
+
+
+
- +
+
拖动按钮查看不同年龄的保单利益
+
温馨提示
@@ -194,6 +207,7 @@ export default { let isWeixin = this.$utils.device().isWeixin //判断环境 return { isWeixin, + chooseProductCodes: [], // 页面显示配置 pageShowType: { isFixed: false, // 粘性布局状态 @@ -206,6 +220,33 @@ export default { appntDTO: {}, //投保人信息 insuredDTOs: [{}], //被保人信息 showInsuredDTO: {} //页面显示配保人数据 + }, + headPicture: { + '1': require('@/assets/images/proposal/person_br.png'), + '2': require('@/assets/images/proposal/person_ez.png'), + '3': require('@/assets/images/proposal/person_fq.png'), + '4': require('@/assets/images/proposal/person_mq.png'), + '5': require('@/assets/images/proposal/person_nr.png'), + '6': require('@/assets/images/proposal/person_po.png'), + '7': require('@/assets/images/proposal/person_qt.png') + }, + relationToAppntType: { + '1': '本人', + '2': '儿子', + '3': '父亲', + '4': '母亲', + '5': '女儿', + '6': '配偶', + '7': '其他' + } + } + }, + filters: { + productRateUnit(code) { + for (let i = 0; i < dataDictionary.productRateUnit.length; i++) { + if (dataDictionary.productRateUnit[i].code == code) { + return dataDictionary.productRateUnit[i].label + } } } }, @@ -240,6 +281,13 @@ export default { testRiskCheck() { this.pageShowType.riskCheckStatus = !this.pageShowType.riskCheckStatus }, + clickCalueUrl(riskItem) { + location.href = riskItem.url + }, + checkShowDutyType(type) { + console.log(type) + //产品责任显示类型 + }, //页面初始化 async init() { let params = { @@ -247,7 +295,6 @@ export default { proposalNo: '' } } - if (this.isWeixin) { //在微信端 params.proposalInfoDTO.proposalNo = this.$route.query.proposalNo @@ -282,7 +329,6 @@ export default { } else { //在app端 params.proposalInfoDTO.proposalNo = localStorage.orderNo - console.log(params) getDemo(params).then(res => { this.formatLocal(res) }) @@ -310,6 +356,7 @@ export default { }) } }, + //档位更换时 radioChange(risk) { let that = this @@ -329,9 +376,14 @@ export default { //将后端返回的数据格式化为本地 formatLocal(res) { if (res.result == '0') { + console.log('res', res) let orderDTO = res.content.orderDTO + this.pageShowInfo.appntDTO = res.content.orderDTO.appntDTO + this.pageShowInfo.insuredDTOs = res.content.orderDTO.insuredDTOs + this.pageShowInfo.showInsuredDTO = this.pageShowInfo.insuredDTOs[1] + //投保人年龄 + this.pageShowInfo.appntDTO.age = getAge.getAge(this.pageShowInfo.appntDTO.birthdayLabel, new Date()) let { insuredLabelResult, insuredResult, insuredInfoResult } = res.content.calculusResDTO - orderDTO.insuredDTOs.forEach(v => { //根据数据字典 获取当前值 v.age = getAge.getAge(v.birthdayLabel, new Date()) @@ -364,7 +416,7 @@ export default { this.insuredDTOs = insuredDTOs[0].insuredDTOs this.insuredDTOs = relevanceByInsure(this.insuredDTOs, insuredLabelResult, insuredResult, insuredInfoResult) //进行数据关联 this.getWXTitle(this.insuredDTOs) //获取微信标题 - console.log("this.insuredDTOs",this.insuredDTOs) + console.log('this.insuredDTOs', this.insuredDTOs) // 建议书名称 this.insuredDTOs.forEach(item => { if (item.riskDTOLst && item.riskDTOLst.length > 0) { @@ -417,15 +469,17 @@ export default { } }) }, - // 滑动块发生变化时 input(value, demoValue, demoLabel) { this.$forceUpdate() //强制组件更新 解决值更改之后 滑块不滑动的问题 - /*let index = String(value) - demoLabel.forEach(label => { - label.value = demoValue[index][label.content] - })*/ + let index = String(value) + if (demoLabel) { + demoLabel.forEach(label => { + label.value = demoValue[index][label.content] + }) + } }, + // 点击增加 exhibitionAdd(risk) { if (risk.sliderValue == risk.policyYear) { @@ -774,5 +828,12 @@ export default { .table_border { border-left: 1px solid #acc5e6; } + .title_item { + height: 124px; + } + .lh_30 { + height: 30px; + line-height: 30px; + } } diff --git a/src/views/ebiz/proposal/js/exhibitionMethod.js b/src/views/ebiz/proposal/js/exhibitionMethod.js index 1c1b35444..95384f6ac 100644 --- a/src/views/ebiz/proposal/js/exhibitionMethod.js +++ b/src/views/ebiz/proposal/js/exhibitionMethod.js @@ -117,8 +117,14 @@ export function relevance(insured, insuredLabelResult, insuredResult, insuredInf export function relevanceByInsure(insured, insuredLabelResult, insuredResult, insuredInfoResult) { insured.forEach(insure => { insure.radios = [] - insure.demoLabel = insuredLabelResult[insure.insuredId]['GFRS_M0003'] - insure.demoValue = insuredResult[insure.insuredId]['GFRS_M0003'] + insure.demoLabel = insuredLabelResult[insure.insuredId]['GFRS_M0017'] + if (!insure.demoLabel) { + insure.demoLabel = insuredLabelResult[insure.insuredId]['GFRS_M0016'] + } + insure.demoValue = insuredResult[insure.insuredId]['GFRS_M0017'] + if (!insure.demoValue) { + insure.demoValue = insuredResult[insure.insuredId]['GFRS_M0016'] + } insure.demoLabel.forEach(v => { v.value = insure.demoValue['1'][v.content] //设置初始值 })