diff --git a/src/views/ebiz/sale/NotifyingMessage.vue b/src/views/ebiz/sale/NotifyingMessage.vue index 0c88eb04e..bd2b9fdae 100644 --- a/src/views/ebiz/sale/NotifyingMessage.vue +++ b/src/views/ebiz/sale/NotifyingMessage.vue @@ -91,7 +91,9 @@ export default { saleInsuredPersonInfo: {}, // 投被保人是否同人 1为同一个人 relationToAppnt: '', - // 是否可以点击 + // 产品编码 + productCodes: '', + // 是否可以点击, isDisabled: false, saleInsuredAge: '', saleInsuredSex: '', @@ -127,7 +129,7 @@ export default { } }) // this.relationToAppnt = `1` - + this.productCodes = JSON.parse(localStorage.chooseProductCodes) this.information() }, methods: { @@ -255,17 +257,41 @@ export default { } }) }) + // 如果是国富民心展示被保人 + if (this.productCodes == 'GFRS_M0002' || this.productCodes == 'GFRS_M0003' || this.productCodes == 'GFRS_M0004') { + res.productImpartLstDTO.impartDTOS.map((item, index, array) => { + if (item.impartType == '0') { + array.splice(index, 1) + } + if (item.impartType == '2') { + array.splice(index, 1) + } + }) + } if (this.relationToAppnt == '1') { - res.productImpartLstDTO.impartDTOS.map((item, index, array) => { - if (item.impartType == '1') { - array.splice(index, 1) - } - }) - res.productImpartLstDTO.impartDTOS.map((item, index, array) => { - if (item.impartType == '3') { - array.splice(index, 1) - } - }) + // 如果是国富民心展示被保人 + if (this.productCodes == 'GFRS_M0002' || this.productCodes == 'GFRS_M0003' || this.productCodes == 'GFRS_M0004') { + res.productImpartLstDTO.impartDTOS.map((item, index, array) => { + if (item.impartType == '0') { + array.splice(index, 1) + } + if (item.impartType == '2') { + array.splice(index, 1) + } + }) + } else { + res.productImpartLstDTO.impartDTOS.map((item, index, array) => { + if (item.impartType == '1') { + array.splice(index, 1) + } + }) + res.productImpartLstDTO.impartDTOS.map((item, index, array) => { + if (item.impartType == '3') { + array.splice(index, 1) + } + }) + } + that.impartDTOS = res.productImpartLstDTO.impartDTOS that.isShowList() //投被同人时候判断