[FIX]【保全】受益人变更—确认页受益份额显示问题、添加指定受益人客户列表右上角×无效;【保全】影像上传界面title修改;【保全】保全-续期账号变更-搜索客户界面-查询出结果之后点击取消,将数据清空

This commit is contained in:
yuweiqi
2020-07-03 16:05:49 +08:00
parent 89aa699a9b
commit 51c73d6bb9
5 changed files with 50 additions and 12 deletions

View File

@@ -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
}
},

View File

@@ -32,7 +32,7 @@
</p>
<p class="mt10">
<span class="c-gray-dark">受益份额</span>
<span class="ml35">{{ parseInt(item.bnfLot) }}%</span>
<span class="ml35">{{ item.bnfLot | toPercent }}</span>
</p>
</div>
</li>
@@ -218,6 +218,7 @@ export default {
}
},
filters: {
toPercent: filters.toPercent,
idToText: filters.idToText,
mask: filters.mask
}

View File

@@ -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: {

View File

@@ -97,6 +97,7 @@ export default {
this.selected = 0
this.searchVal = ''
this.isSearch = true
this.list = []
},
handleInput(val) {
if (!this.isSearch && val == '') {

View File

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