From e3e895e017a244c1125a26d9aa9926d2ca6be203 Mon Sep 17 00:00:00 2001 From: "yang.huaxiang" Date: Tue, 16 Mar 2021 13:07:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=83=A0=E4=BC=81=E4=BF=9D=E4=BA=A7=E5=93=81?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E8=B0=83=E6=95=B4:=20=E6=83=A0=E6=A1=82?= =?UTF-8?q?=E4=BF=9D=E8=A1=A5=E5=85=85=E5=A4=84=E7=90=86=20--=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E4=BA=BA=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/assets/js/utils/data-dictionary.js | 15 +++++++++++++++ src/views/ebiz/common/MainRiskList.vue | 6 +++--- src/views/ebiz/sale/InsuredPerson.vue | 20 +++++++++++++++++++- 3 files changed, 37 insertions(+), 4 deletions(-) diff --git a/src/assets/js/utils/data-dictionary.js b/src/assets/js/utils/data-dictionary.js index ac2842605..4d8fcd8cf 100644 --- a/src/assets/js/utils/data-dictionary.js +++ b/src/assets/js/utils/data-dictionary.js @@ -1096,6 +1096,21 @@ export default { text: '其他' } ], + //投保人/被保险人关系 惠企保 + hqbRelationToAppnt: [ + { + id: 1, + text: '本人' + }, + { + id: 2, + text: '配偶' + }, + { + id: 4, + text: '子女' + } + ], //理赔报案投保人/被保险人关系 relationToAppnts: [ { diff --git a/src/views/ebiz/common/MainRiskList.vue b/src/views/ebiz/common/MainRiskList.vue index 4e929d977..786a2b815 100644 --- a/src/views/ebiz/common/MainRiskList.vue +++ b/src/views/ebiz/common/MainRiskList.vue @@ -120,13 +120,13 @@ export default { } } this.list = resultData.mainRiskDTOS - //------------------------专为桂企写死--begin---------------// + //------------------------专为惠企写死--begin---------------// if (this.list.length > 0 && this.specilFlag == '1' && localStorage.isFrom == 'sale') { this.result = this.list.find(v => { - return v.riskProductCode == 'GFRS_M0024' || v.riskProductCode == 'GFRS_M0040' + return v.riskProductCode == 'GFRS_M0040' }) } - // ------------------------专为桂企写死--end---------------// + // ------------------------专为惠企写死--end---------------// if (this.list.length == 0) { this.$dialog({ message: '暂无可选产品!' }).then(() => { diff --git a/src/views/ebiz/sale/InsuredPerson.vue b/src/views/ebiz/sale/InsuredPerson.vue index 2c64526d2..20f8f504a 100644 --- a/src/views/ebiz/sale/InsuredPerson.vue +++ b/src/views/ebiz/sale/InsuredPerson.vue @@ -683,6 +683,19 @@ export default { // ]) //联系地址 // } } + //------------------------专为惠企写死--begin---------------// + if (res.orderDTO.insuredDTOs[0] && res.orderDTO.insuredDTOs[0].riskDTOLst) { + this.specilFlag = res.orderDTO.insuredDTOs[0].riskDTOLst.some(v => { + return v.riskCode == 'GFRS_M0024' || v.riskCode == 'GFRS_M0040' + }) + ? '1' + : '0' + } else if (res.orderDTO.orderInfoDTO.productCode == 'GFRS_M0024') { + this.specilFlag = '1' + } else if (res.orderDTO.orderInfoDTO.productCode == 'GFRS_M0040') { + this.specilFlag = '1' + } + // ------------------------专为惠企写死--end---------------// } else { return this.$toast(res.resultMessage) } @@ -792,7 +805,12 @@ export default { } /* else if (pickerType == '6') { this.columns = DataDictionary.marriage }*/ else if (pickerType == '7') { - this.columns = DataDictionary.relationToAppnt + if(this.specilFlag == '1') { + // 惠企保 投被关系限制 + this.columns = DataDictionary.hqbRelationToAppnt + }else { + this.columns = DataDictionary.relationToAppnt + } } else if (pickerType == '8') { this.columns = DataDictionary.workCondition } else if (pickerType == '9') {