From cb7c385874b825d67941be83b0e2b3440b488b1a Mon Sep 17 00:00:00 2001 From: "liu.xiaofeng@ebiz-digits.com" Date: Mon, 15 May 2023 11:17:17 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=9B=BD=E5=AF=8C=E4=BA=BA=E5=AF=BF?= =?UTF-8?q?=E3=80=91=E5=8D=A1=E5=8D=95=E9=A1=B5=E9=9D=A2=E5=A1=AB=E5=86=99?= =?UTF-8?q?=E6=8A=95=E8=A2=AB=E4=BF=9D=E4=BA=BA=E4=BF=A1=E6=81=AF=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E8=AF=95=E7=AE=97=E6=8E=A5=E5=8F=A3=20=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=8E=A5=E5=8F=A3=E5=85=A5=E5=8F=82=E6=95=B0=E6=8D=AE?= =?UTF-8?q?joblevel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/cardList/information.vue | 28 ++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/src/views/ebiz/cardList/information.vue b/src/views/ebiz/cardList/information.vue index 954b24b71..543940b60 100644 --- a/src/views/ebiz/cardList/information.vue +++ b/src/views/ebiz/cardList/information.vue @@ -594,6 +594,7 @@ import dateUtils from '@/assets/js/utils/date-utils' import Vue from 'vue' import { GoodsAction, GoodsActionIcon, GoodsActionButton } from 'vant' import riskRules from '../common/risk-rules' +import occupationList from '@/components/ebiz/occipation/data/occupation' DataDictionary.relationToAppnt = DataDictionary.relationToAppnt.slice(0, 4) Vue.use(Checkbox).use(CheckboxGroup) @@ -940,13 +941,34 @@ export default { methods: { //试算逻辑国富万福卡GFRS_M0071 insureTrial() { - let that = this // if(this.insuredInfo.birthday || that.$route.query.relationToAppnt == '1'){ + if (this.userInfo.relationToInsured == 1) { + Object.assign(this.insuredInfo, this.userInfo) + } if(this.insuredInfo.birthday){ // 获取卡单列表 let birthday = this.insuredInfo.birthday + let jobLevel = '' + let collect = (data,code) => { + data.forEach(item => { + if (item.code == code) { + if (this.trialDTOS.productInsuredDTO.healthGrade && this.trialDTOS.productInsuredDTO.healthGrade != '0') { + jobLevel = item.healthGrade + } + if (this.trialDTOS.productInsuredDTO.lifeGrade && this.trialDTOS.productInsuredDTO.lifeGrade != '0') { + jobLevel = item.lifeGrade + } + } else { + if (item.subs && item.subs.length != 0) { + collect(item.subs,code) + } + } + }) + } + collect(occupationList,this.insuredInfo.occupationCode) + let data = { - trialInfos: [{ productCode: that.itemProductDTOS.productCode,birthday:birthday}], + trialInfos: [{ productCode: this.itemProductDTOS.productCode,birthday:birthday,jobLevel:jobLevel}], } insureTrial(data) @@ -954,7 +976,7 @@ export default { if (res.result == 0) { //选择保障方案 this.trialList = res.trialList - this.allPrice = res.trialList[0].prem + this.allPrice = res.trialList[0].prem } else { this.$toast(res.resultMessage) }