From 51c73d6bb9f5ad9e17a28a72dd320c7fe0d98f46 Mon Sep 17 00:00:00 2001 From: yuweiqi Date: Fri, 3 Jul 2020 16:05:49 +0800 Subject: [PATCH] =?UTF-8?q?[FIX]=E3=80=90=E4=BF=9D=E5=85=A8=E3=80=91?= =?UTF-8?q?=E5=8F=97=E7=9B=8A=E4=BA=BA=E5=8F=98=E6=9B=B4=E2=80=94=E7=A1=AE?= =?UTF-8?q?=E8=AE=A4=E9=A1=B5=E5=8F=97=E7=9B=8A=E4=BB=BD=E9=A2=9D=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=97=AE=E9=A2=98=E3=80=81=E6=B7=BB=E5=8A=A0=E6=8C=87?= =?UTF-8?q?=E5=AE=9A=E5=8F=97=E7=9B=8A=E4=BA=BA=E5=AE=A2=E6=88=B7=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=8F=B3=E4=B8=8A=E8=A7=92=C3=97=E6=97=A0=E6=95=88?= =?UTF-8?q?=EF=BC=9B=E3=80=90=E4=BF=9D=E5=85=A8=E3=80=91=E5=BD=B1=E5=83=8F?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E7=95=8C=E9=9D=A2title=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=EF=BC=9B=E3=80=90=E4=BF=9D=E5=85=A8=E3=80=91=E4=BF=9D=E5=85=A8?= =?UTF-8?q?-=E7=BB=AD=E6=9C=9F=E8=B4=A6=E5=8F=B7=E5=8F=98=E6=9B=B4-?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E5=AE=A2=E6=88=B7=E7=95=8C=E9=9D=A2-?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E5=87=BA=E7=BB=93=E6=9E=9C=E4=B9=8B=E5=90=8E?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E5=8F=96=E6=B6=88=EF=BC=8C=E5=B0=86=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=B8=85=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/ebiz/preserve.js | 8 ++-- .../preserve/bc/BeneficiaryConfirmation.vue | 3 +- .../ebiz/preserve/bc/BeneficiaryInfoAdd.vue | 41 +++++++++++++++---- src/views/ebiz/preserve/common/Search.vue | 1 + src/views/ebiz/preserve/filters/index.js | 9 ++++ 5 files changed, 50 insertions(+), 12 deletions(-) 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 } }