diff --git a/src/views/ebiz/sale/NotifyingMessage.vue b/src/views/ebiz/sale/NotifyingMessage.vue index 11368ed20..faebb6b0c 100644 --- a/src/views/ebiz/sale/NotifyingMessage.vue +++ b/src/views/ebiz/sale/NotifyingMessage.vue @@ -42,7 +42,7 @@ @@ -69,38 +69,40 @@
- -
- {{ item.impartCode + '.' + item.impartContent }} -
- - - - - -
- + +
+
+ {{ item.impartCode + '.' + item.impartContent }}
- -
+ + + + - +
+ +
+
+ + + +
@@ -238,17 +240,6 @@ export default { } }) } - //投保人财务告知隐藏2b题目 - if (item.impartType == 2 || item.impartType == 6 || item.impartType == 10) { - item.impartItemDTOS.map((items, index, array) => { - if (items.extra3) { - let obj = JSON.parse(items.extra3) - if (obj.age && obj.sex == '2') { - array.splice(index, 1, '') - } - } - }) - } //被保人财务告知添加判断 if (item.impartType == 3 || item.impartType == 7 || item.impartType == 11) { item.impartItemDTOS.map((items, index, array) => { @@ -256,7 +247,7 @@ export default { let obj = JSON.parse(items.extra3) if (obj.age && obj.sex == '2') { //小于18岁显示 - if (that.saleInsuredPersonAge > obj.age) { + if (that.saleInsuredPersonAge < obj.age) { this.isShow = true } } @@ -266,7 +257,7 @@ export default { }) //去除数组里面的空字符串 that.impartDTOS.map(item => { - if (item.impartType == 0 || item.impartType == 4 || item.impartType == 2 || item.impartType == 6 || item.impartType == 10) { + if (item.impartType == 0 || item.impartType == 4) { let array = item.impartItemDTOS for (var i = 0; i < array.length; i++) { if (array[i] == '' || array[i] == null || typeof array[i] == undefined) { @@ -287,7 +278,7 @@ export default { }) }, // 单选改变时候 - change(item, val, impartCode) { + change(item, val, impartCode, impartType) { // console.log(item) // console.log(val) let that = this @@ -311,19 +302,21 @@ export default { }) }) } - if (impartCode == '2a') { - if (val == '0') { - this.showFlag = true - } else { - this.showFlag = false - } - that.impartDTOS.map(it => { - it.impartItemDTOS.map(itm => { - if (itm.impartCode == '2b') { - itm.impartAnswer = '' - } + if (impartType == '3' || impartType == '7' || impartType == '11') { + if (impartCode == '2a') { + if (val == '0') { + this.showFlag = true + } else { + this.showFlag = false + } + that.impartDTOS.map(it => { + it.impartItemDTOS.map(itm => { + if (itm.impartCode == '2b') { + itm.impartAnswer = '' + } + }) }) - }) + } } }, formatDateTime() {