diff --git a/src/assets/js/utils/data-dictionary.js b/src/assets/js/utils/data-dictionary.js index a94a5e91f..38857f0a5 100644 --- a/src/assets/js/utils/data-dictionary.js +++ b/src/assets/js/utils/data-dictionary.js @@ -1107,6 +1107,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 44e8cfaa1..68118ccbc 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 2bbbacfc4..1917ff386 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') {