From 784c1ad0105f91f56294f67111baef1f6f1ab078 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=B3=E5=8D=8E=E7=A5=A5?= Date: Tue, 7 Apr 2020 16:14:23 +0800 Subject: [PATCH] =?UTF-8?q?GFRS-454=E3=80=900326=E3=80=91=20=E5=BB=BA?= =?UTF-8?q?=E8=AE=AE=E4=B9=A6=E4=BC=98=E5=8C=962.0=20=20--=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E8=B0=83=E6=95=B41=E3=80=81=E8=BD=AC=E6=8A=95?= =?UTF-8?q?=E4=BF=9D=E5=A4=84=E7=90=86=20--=E6=8F=90=E4=BA=A4=E4=BA=BA?= =?UTF-8?q?=EF=BC=9A=E9=98=B3=E5=8D=8E=E7=A5=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/proposal/ProposalInfo.vue | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/views/ebiz/proposal/ProposalInfo.vue b/src/views/ebiz/proposal/ProposalInfo.vue index 8f69fca0b..6f94f33b1 100644 --- a/src/views/ebiz/proposal/ProposalInfo.vue +++ b/src/views/ebiz/proposal/ProposalInfo.vue @@ -213,7 +213,7 @@
-
转投保
+
转投保
分享给客户
@@ -333,7 +333,8 @@ export default { '2_0': '配偶', '5_0': '其他' }, - agent: {} + agent: {}, + mainRiskCodes: [] } }, filters: { @@ -490,6 +491,7 @@ export default { //将后端返回的数据格式化为本地 formatLocal(res) { if (res.result == '0') { + let that = this let orderDTO = res.content.orderDTO this.pageShowInfo.appntDTO = res.content.orderDTO.appntDTO this.pageShowInfo.insuredDTOs = res.content.orderDTO.insuredDTOs @@ -501,6 +503,9 @@ export default { //根据数据字典 获取当前值 v.age = getAge.getAge(v.birthdayLabel, new Date()) v.riskDTOLst.forEach(risk => { + if (risk.isMainRisk == '0') { + that.mainRiskCodes.push(risk.riskCode) + } if (risk.insuYear == 106 && risk.insuYearFlag == 'A') { risk.insureName = '终身' } else { @@ -550,8 +555,8 @@ export default { }, //转投保 insure() { - if (localStorage.mainRiskCodes) { - if (JSON.parse(localStorage.mainRiskCodes).length == '2') { + if (this.mainRiskCodes) { + if (this.mainRiskCodes.length != 1) { return Toast.fail('暂不支持组合产品转投保') } }