[FIX]NotifyingMessage修改校验规则,修复告知项目的显示bug

This commit is contained in:
yuweiqi
2020-01-16 09:24:35 +08:00
parent 56864cc91f
commit c51d6d7695

View File

@@ -129,6 +129,8 @@ export default {
isDisabled: false, isDisabled: false,
// 默认显示被保人根据后台返回 // 默认显示被保人根据后台返回
noRisk: false, noRisk: false,
//是否存在附加险
isExistAdditionalRisk: false,
saleInsuredAge: '', saleInsuredAge: '',
saleInsuredSex: '', saleInsuredSex: '',
saleInsuredPersonAge: '', saleInsuredPersonAge: '',
@@ -157,6 +159,8 @@ export default {
// getOrderDetail({ orderNo: `8186270000000036` }).then(res => { // getOrderDetail({ orderNo: `8186270000000036` }).then(res => {
if (res.result == 0) { 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.relationToAppnt = res.orderDTO.insuredDTOs[0].relationToAppnt
this.$utils.intLocalStorage(res) this.$utils.intLocalStorage(res)
this.saleInsuredInfo = JSON.parse(window.localStorage.getItem('saleInsuredInfo')) this.saleInsuredInfo = JSON.parse(window.localStorage.getItem('saleInsuredInfo'))
@@ -226,7 +230,7 @@ export default {
} }
}) })
} }
// 被保人财务告知添加判断 // 被保人财务告知添加判断
if (item.impartType == 3 || item.impartType == 7 || item.impartType == 11) { if (item.impartType == 3 || item.impartType == 7 || item.impartType == 11) {
item.impartItemDTOS.map((items, index, array) => { item.impartItemDTOS.map((items, index, array) => {
if (items.extra3) { if (items.extra3) {
@@ -240,7 +244,7 @@ export default {
} }
}) })
} }
}) })
//去除数组里面的空字符串 //去除数组里面的空字符串
that.impartDTOS.map(item => { that.impartDTOS.map(item => {
if (item.impartType == 0 || item.impartType == 4) { if (item.impartType == 0 || item.impartType == 4) {
@@ -331,7 +335,11 @@ export default {
if (res.result == '0') { if (res.result == '0') {
res.productImpartLstDTO.impartDTOS.map(item => { res.productImpartLstDTO.impartDTOS.map(item => {
item.impartItemDTOS.map(im => { 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 = '' im.impartAnswer = ''
if (im.questions) { if (im.questions) {
if (im.questions.length == '0') { if (im.questions.length == '0') {
@@ -341,7 +349,7 @@ export default {
im.questions.push(obj) im.questions.push(obj)
} }
} }
if (im.extra4 == 'noRisk') { if (im.extra4 == 'noRisk' && this.isExistAdditionalRisk == false) {
this.noRisk = true this.noRisk = true
} }
}) })