diff --git a/src/router/ebiz/preserve.js b/src/router/ebiz/preserve.js index 73bc26f05..2de66fc75 100644 --- a/src/router/ebiz/preserve.js +++ b/src/router/ebiz/preserve.js @@ -99,7 +99,7 @@ export default [ name: 'PcImageUpload', component: PcImageUpload, meta: { - title: '续期账号图片上传', + title: '影像资料上传', index: 1 } }, @@ -173,7 +173,7 @@ export default [ name: 'BcImageUpload', component: BcImageUpload, meta: { - title: '上传影像资料', + title: '影像资料上传', index: 1 } }, @@ -210,7 +210,7 @@ export default [ name: 'CtImageUpload', component: CtImageUpload, meta: { - title: '影像上传', + title: '影像资料上传', index: 1 } }, @@ -247,7 +247,7 @@ export default [ name: 'CtImageUpload', component: WtImageUpload, meta: { - title: '影像上传', + title: '影像资料上传', index: 1 } }, diff --git a/src/views/ebiz/preserve/bc/BeneficiaryConfirmation.vue b/src/views/ebiz/preserve/bc/BeneficiaryConfirmation.vue index fe5ccbe62..c3314ca9c 100644 --- a/src/views/ebiz/preserve/bc/BeneficiaryConfirmation.vue +++ b/src/views/ebiz/preserve/bc/BeneficiaryConfirmation.vue @@ -32,7 +32,7 @@
受益份额 - {{ parseInt(item.bnfLot) }}% + {{ item.bnfLot | toPercent }}
@@ -218,6 +218,7 @@ export default { } }, filters: { + toPercent: filters.toPercent, idToText: filters.idToText, mask: filters.mask } diff --git a/src/views/ebiz/preserve/bc/BeneficiaryInfoAdd.vue b/src/views/ebiz/preserve/bc/BeneficiaryInfoAdd.vue index 68b5095a0..f86d3ea45 100644 --- a/src/views/ebiz/preserve/bc/BeneficiaryInfoAdd.vue +++ b/src/views/ebiz/preserve/bc/BeneficiaryInfoAdd.vue @@ -277,6 +277,7 @@ export default { } }, created() { + window.appCallBack = this.appCallBack this.policy = JSON.parse(localStorage['preserve-policy']) this.bnfDTOs = this.policy.bnfDTOs.beneficiariesNew this.isDetailFlag = this.policy.isDetailFlag @@ -295,6 +296,19 @@ export default { }, mounted() {}, methods: { + appCallBack(data) { + if (data.trigger == 'right_button_click') { + // 筛选按钮的点击事件 + this.$jump({ + flag: 'navigation', + extra: { + title: '投保人信息', + hiddenRight: '1' + } + }) + this.customerShowPicker = false + } + }, //监听名字变化 nameChange(name) { this.userInfo.name = name @@ -338,6 +352,7 @@ export default { this.effectiveDateTypeAble = false //身份证以外的证件类型可以使用长期 if (value.id == '1') { + console.log('确认选择字段') let age = utilsAge.getAge(this.userInfo.birthday, new Date()) this.effectiveDateTypeAble = age <= 45 } else { @@ -405,6 +420,7 @@ export default { this.userInfo.birthday = data.birthday //出生日期 this.userInfo.idType = data.customerIdType //证件类型 this.userInfo.idNo = data.customerIdNumber //证件号码 + console.log('999999', data.idEffectEndDate) if (data.idEffectEndDate == '9999-01-01') { this.userInfo.effectiveDateType = true //是否长期 } else { @@ -432,6 +448,12 @@ export default { if (!this.userInfo.idExpDate && !this.userInfo.effectiveDateType) { return this.$toast('证件截止日期不能为空') } + if (Date.parse(this.userInfo.idExpDate) < Date.parse(new Date()) && !this.userInfo.effectiveDateType) { + this.userInfo.idExpDate = '' + this.$refs.effectiveDate.date = '' + this.effectiveDateTypeAble = false + return this.$toast('您的证件已过期') + } // 受益人是被保险人的配偶 if (this.userInfo.relationToInsured == '01') { //如果性别男小于22岁 或者 性别女小于20岁 @@ -619,21 +641,26 @@ export default { if (this.userInfo.idType != '1') { return } + console.log('张三丰', idToData(val).age) // //如果证件校验不通过,恢复默认值 if (idToData(val).text) { ;[this.userInfo.idNo, this.userInfo.sex, this.userInfo.birthday, this.effectiveDateTypeAble] = ['', '0', '', false] return this.$toast(idToData(val).text) } this.userInfo.effectiveDateType = false - this.effectiveDateTypeAble = idToData(val).age <= 45 - this.userInfo.birthday = idToData(val).birthday - this.userInfo.sex = idToData(val).sex - if (idToData(val).age > 45) { - if (from) { - this.userInfo.effectiveDateType = true - } + if (from) { this.effectiveDateTypeAble = false } + this.userInfo.birthday = idToData(val).birthday + this.userInfo.sex = idToData(val).sex + // if (idToData(val).age > 45) { + // console.log('') + // if (from) { + // this.userInfo.effectiveDateType = true + // console.log('默认选长期') + // } + // this.effectiveDateTypeAble = false + // } } }, filters: { diff --git a/src/views/ebiz/preserve/common/Search.vue b/src/views/ebiz/preserve/common/Search.vue index 8467cb64d..8750c4c9c 100644 --- a/src/views/ebiz/preserve/common/Search.vue +++ b/src/views/ebiz/preserve/common/Search.vue @@ -97,6 +97,7 @@ export default { this.selected = 0 this.searchVal = '' this.isSearch = true + this.list = [] }, handleInput(val) { if (!this.isSearch && val == '') { diff --git a/src/views/ebiz/preserve/filters/index.js b/src/views/ebiz/preserve/filters/index.js index 4309e2f90..b0ad36f8e 100644 --- a/src/views/ebiz/preserve/filters/index.js +++ b/src/views/ebiz/preserve/filters/index.js @@ -161,5 +161,14 @@ export default { } else { return '' } + }, + //小数转化为百分数 + toPercent(point) { + if (Number(point) == 0) { + return 0 + } + let str = Number(point * 100).toFixed() + str += '%' + return str } }