mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-13 18:56:43 +08:00
fix: 修复交费方式异常变动的问题
This commit is contained in:
@@ -575,17 +575,17 @@ export default {
|
|||||||
* @returns {boolean}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
passUserInfoCheck() {
|
passUserInfoCheck() {
|
||||||
const info = this.saleInsuredPersonInfo
|
const hasCompleteInfo = [this.saleInsuredPersonInfo, this.saleInsuredInfo].some(info => {
|
||||||
const keys = Object.keys(info)
|
if (!info || typeof info !== 'object') return false;
|
||||||
const res = keys.filter(key => {
|
const keys = Object.keys(info);
|
||||||
const msg = info[key]
|
|
||||||
return msg != null && msg !== ''
|
return keys.every(key => {
|
||||||
})
|
const value = info[key];
|
||||||
// debugger
|
return value != null && value !== '' && value !== 'null';
|
||||||
console.log(res, info)
|
});
|
||||||
if (res !== -1) {
|
});
|
||||||
return res.length === keys.length
|
|
||||||
} else return false
|
return hasCompleteInfo
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -1255,9 +1255,6 @@ export default {
|
|||||||
},
|
},
|
||||||
//确认选择字段
|
//确认选择字段
|
||||||
async onConfirm(value) {
|
async onConfirm(value) {
|
||||||
const res = [this.productIndex, this.calFactorIndex].find(item => item === '')
|
|
||||||
if (res !== -1) this.toSelect(0, 0, 0)
|
|
||||||
|
|
||||||
this.columns = []
|
this.columns = []
|
||||||
this.popupShow = false
|
this.popupShow = false
|
||||||
// let productCode = this.chooseProducts[this.productIndex].productCode
|
// let productCode = this.chooseProducts[this.productIndex].productCode
|
||||||
@@ -1319,10 +1316,9 @@ export default {
|
|||||||
this.isEnterAddtionRiskListFunc()
|
this.isEnterAddtionRiskListFunc()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// todo: 不知道什么业务详情, 暂时不给显示附加险
|
this.isEnterAddtionRisk = true
|
||||||
// this.isEnterAddtionRisk = true
|
|
||||||
}
|
}
|
||||||
if (currentEle.showContent !== value.text) {
|
if (currentEle.showContent != value.text) {
|
||||||
//通用规则校验
|
//通用规则校验
|
||||||
if (this.payExceedInsured(currentEle, currentFactor, value.value)) {
|
if (this.payExceedInsured(currentEle, currentFactor, value.value)) {
|
||||||
this.popupShow = false
|
this.popupShow = false
|
||||||
@@ -1378,7 +1374,6 @@ export default {
|
|||||||
if (currentEle.hasFlag) {
|
if (currentEle.hasFlag) {
|
||||||
currentEle[name + 'Flag'] = value.flag
|
currentEle[name + 'Flag'] = value.flag
|
||||||
}
|
}
|
||||||
|
|
||||||
// this.hiddenPayEndYear(currentEle)
|
// this.hiddenPayEndYear(currentEle)
|
||||||
//特殊规则:设置豁免险
|
//特殊规则:设置豁免险
|
||||||
this.getTrial()
|
this.getTrial()
|
||||||
@@ -3609,7 +3604,7 @@ export default {
|
|||||||
handler: function(obj) {
|
handler: function(obj) {
|
||||||
const { birthday } = obj
|
const { birthday } = obj
|
||||||
this.saleInsuredPersonInfo.insuredAge = utilsAge.getAge(birthday, new Date())
|
this.saleInsuredPersonInfo.insuredAge = utilsAge.getAge(birthday, new Date())
|
||||||
console.log('投保人当前年龄是 ', this.saleInsuredPersonInfo.insuredAge)
|
if (this.passUserInfoCheck) this.onConfirm()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
saleInsuredInfo: {
|
saleInsuredInfo: {
|
||||||
@@ -3617,7 +3612,7 @@ export default {
|
|||||||
handler: function(obj) {
|
handler: function(obj) {
|
||||||
const { birthday } = obj
|
const { birthday } = obj
|
||||||
this.saleInsuredInfo.insuredAge = utilsAge.getAge(birthday, new Date())
|
this.saleInsuredInfo.insuredAge = utilsAge.getAge(birthday, new Date())
|
||||||
console.log('被保人当前年龄是 ', this.saleInsuredPersonInfo.insuredAge)
|
if (this.passUserInfoCheck) this.onConfirm()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user