fix: 修复交费方式异常变动的问题

This commit is contained in:
hz
2025-10-29 11:54:45 +08:00
parent 82c7a459b1
commit e144c76375

View File

@@ -575,17 +575,17 @@ export default {
* @returns {boolean}
*/
passUserInfoCheck() {
const info = this.saleInsuredPersonInfo
const keys = Object.keys(info)
const res = keys.filter(key => {
const msg = info[key]
return msg != null && msg !== ''
})
// debugger
console.log(res, info)
if (res !== -1) {
return res.length === keys.length
} else return false
const hasCompleteInfo = [this.saleInsuredPersonInfo, this.saleInsuredInfo].some(info => {
if (!info || typeof info !== 'object') return false;
const keys = Object.keys(info);
return keys.every(key => {
const value = info[key];
return value != null && value !== '' && value !== 'null';
});
});
return hasCompleteInfo
}
},
mounted() {
@@ -1255,9 +1255,6 @@ export default {
},
//确认选择字段
async onConfirm(value) {
const res = [this.productIndex, this.calFactorIndex].find(item => item === '')
if (res !== -1) this.toSelect(0, 0, 0)
this.columns = []
this.popupShow = false
// let productCode = this.chooseProducts[this.productIndex].productCode
@@ -1319,10 +1316,9 @@ export default {
this.isEnterAddtionRiskListFunc()
}
} 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)) {
this.popupShow = false
@@ -1378,7 +1374,6 @@ export default {
if (currentEle.hasFlag) {
currentEle[name + 'Flag'] = value.flag
}
// this.hiddenPayEndYear(currentEle)
//特殊规则:设置豁免险
this.getTrial()
@@ -3609,7 +3604,7 @@ export default {
handler: function(obj) {
const { birthday } = obj
this.saleInsuredPersonInfo.insuredAge = utilsAge.getAge(birthday, new Date())
console.log('投保人当前年龄是 ', this.saleInsuredPersonInfo.insuredAge)
if (this.passUserInfoCheck) this.onConfirm()
}
},
saleInsuredInfo: {
@@ -3617,7 +3612,7 @@ export default {
handler: function(obj) {
const { birthday } = obj
this.saleInsuredInfo.insuredAge = utilsAge.getAge(birthday, new Date())
console.log('被保人当前年龄是 ', this.saleInsuredPersonInfo.insuredAge)
if (this.passUserInfoCheck) this.onConfirm()
}
}
}