From e451a0a79e7241f66ddfe9654b3b32cfdd3d135a Mon Sep 17 00:00:00 2001 From: lihaoda Date: Fri, 14 Feb 2020 23:54:21 +0800 Subject: [PATCH] fix --- src/views/ebiz/sale/AccountInformation.vue | 42 +++++++++++++--------- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/src/views/ebiz/sale/AccountInformation.vue b/src/views/ebiz/sale/AccountInformation.vue index b16eb5e72..fb22b2a02 100644 --- a/src/views/ebiz/sale/AccountInformation.vue +++ b/src/views/ebiz/sale/AccountInformation.vue @@ -42,7 +42,7 @@ /> - +
温馨提示:该账户将用于首期、续期保费缴费 @@ -143,6 +143,8 @@ export default { isAutoPay: '', // 是否显示自动续保 isRenew: '', + //自动续保按钮是否不允许更改 + isForceRenew: false, changeCard: localStorage.changeCard, isBigger65: false, productNo: null @@ -381,27 +383,30 @@ export default { } }, created() { - //如果是从编辑进来的 - if (this.$route.query.edit) { - getOrderDetail({ orderNo: localStorage.orderNo }).then(res => { - console.log(res) - if (res.result == 0) { + getOrderDetail({ orderNo: localStorage.orderNo }).then(res => { + console.log(res) + if (res.result == 0) { + //如果是从编辑进来的 + if (this.$route.query.edit) { //投被保人关系 this.relationToAppnt = res.orderDTO.insuredDTOs[0].relationToAppnt - - this.productNo = res.orderDTO.insuredDTOs[0].riskDTOLst[0].mainRiskCode - //计算是否大于等于65岁 - const birthday = res.orderDTO.insuredDTOs[0].birthday - const ageDiff = new Date().getTime() - new Date(birthday).getTime() - const age = ageDiff/1000/60/60/24/365 - this.isBigger65 = age >= 65 this.$utils.intLocalStorage(res) - } else { - this.$toast(res.resultMessage) } - }) - } + + this.productNo = res.orderDTO.insuredDTOs[0].riskDTOLst[0].mainRiskCode + //计算是否大于等于65岁 + const birthday = res.orderDTO.insuredDTOs[0].birthday + const ageDiff = new Date().getTime() - new Date(birthday).getTime() + const age = ageDiff/1000/60/60/24/365 + this.isBigger65 = age >= 65 + + + } else { + this.$toast(res.resultMessage) + } + }) + let that = this // 获取投被保人是否同一个人 @@ -422,6 +427,9 @@ export default { this.isAutoPay = localStorage.isAutoPay // 是否显示自动续保 this.isRenew = localStorage.isRenew + //自动续保按钮是否禁用 + this.isForceRenew = localStorage.isForceRenew == '0' ? true : false + this.isChecked = localStorage.isForceRenew == '0' ? true : false }, mounted() { document.body.style.backgroundColor = '#F5F5F5'