From c51d6d7695ec9628d2ba347f39fbb808a3104ef0 Mon Sep 17 00:00:00 2001 From: yuweiqi Date: Thu, 16 Jan 2020 09:24:35 +0800 Subject: [PATCH] =?UTF-8?q?[FIX]NotifyingMessage=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E8=A7=84=E5=88=99=EF=BC=8C=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=91=8A=E7=9F=A5=E9=A1=B9=E7=9B=AE=E7=9A=84=E6=98=BE=E7=A4=BA?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/sale/NotifyingMessage.vue | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/views/ebiz/sale/NotifyingMessage.vue b/src/views/ebiz/sale/NotifyingMessage.vue index 6bf0ad3ab..96f4ed587 100644 --- a/src/views/ebiz/sale/NotifyingMessage.vue +++ b/src/views/ebiz/sale/NotifyingMessage.vue @@ -129,6 +129,8 @@ export default { isDisabled: false, // 默认显示被保人根据后台返回 noRisk: false, + //是否存在附加险 + isExistAdditionalRisk: false, saleInsuredAge: '', saleInsuredSex: '', saleInsuredPersonAge: '', @@ -157,6 +159,8 @@ export default { // getOrderDetail({ orderNo: `8186270000000036` }).then(res => { if (res.result == 0) { //投被保人关系 + this.isExistAdditionalRisk = res.orderDTO.insuredDTOs[0].riskDTOLst.length > 1 ? true : false + console.log('this.is ====',this.isExistAdditionalRisk) this.relationToAppnt = res.orderDTO.insuredDTOs[0].relationToAppnt this.$utils.intLocalStorage(res) this.saleInsuredInfo = JSON.parse(window.localStorage.getItem('saleInsuredInfo')) @@ -226,7 +230,7 @@ export default { } }) } - // 被保人财务告知添加判断 + // 被保人财务告知添加判断 if (item.impartType == 3 || item.impartType == 7 || item.impartType == 11) { item.impartItemDTOS.map((items, index, array) => { if (items.extra3) { @@ -240,7 +244,7 @@ export default { } }) } - }) + }) //去除数组里面的空字符串 that.impartDTOS.map(item => { if (item.impartType == 0 || item.impartType == 4) { @@ -331,7 +335,11 @@ export default { if (res.result == '0') { res.productImpartLstDTO.impartDTOS.map(item => { item.impartItemDTOS.map(im => { - im.isSelect = this.formatDateTime() +Math.random().toString(36).substr(2) + im.isSelect = + this.formatDateTime() + + Math.random() + .toString(36) + .substr(2) im.impartAnswer = '' if (im.questions) { if (im.questions.length == '0') { @@ -341,7 +349,7 @@ export default { im.questions.push(obj) } } - if (im.extra4 == 'noRisk') { + if (im.extra4 == 'noRisk' && this.isExistAdditionalRisk == false) { this.noRisk = true } })