From 8795d49ef487cfc93a94161712a7987c3e9e94e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9A=AE=E4=BC=9F?= Date: Mon, 11 Nov 2019 17:38:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=9B=B4=E6=96=B0=E5=91=8A?= =?UTF-8?q?=E7=9F=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/sale/NotifyingMessage.vue | 50 ++++++++++++++++++------ 1 file changed, 38 insertions(+), 12 deletions(-) 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() //投被同人时候判断