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 } })