diff --git a/src/views/ebiz/common/CalculatePremium.vue b/src/views/ebiz/common/CalculatePremium.vue index 9da121378..622fd9a63 100644 --- a/src/views/ebiz/common/CalculatePremium.vue +++ b/src/views/ebiz/common/CalculatePremium.vue @@ -766,10 +766,7 @@ export default { } } else if (factor.type == 1) { if (factor.code == 'inputPrem') { - trialInfo['prem'] = factor.moneyUnit == undefined ? Number(item.productTrialYearDTOS[this.payEndYearColumnsIndex].displayAmount) * Number - -(item.productTrialYearDTOS[this.payEndYearColumnsIndex].moneyUnit) : Number(factor.displayAmount) * Number(factor.moneyUnit) - console.log('==== ', Number(item.productTrialYearDTOS[this.payEndYearColumnsIndex].displayAmount)) + trialInfo['prem'] = this.isTrial == '0' ? Number(item.productTrialYearDTOS[this.payEndYearColumnsIndex].displayAmount) * Number(item.productTrialYearDTOS[this.payEndYearColumnsIndex].moneyUnit) : Number(factor.displayAmount) * Number(factor.moneyUnit) } else { if (item.isRemit == 0) { trialInfo['amt'] = Number(factor.displayAmount) * Number(factor.moneyUnit) diff --git a/src/views/ebiz/proposal/InsuredPerson.vue b/src/views/ebiz/proposal/InsuredPerson.vue index d333a1da7..6617593c9 100644 --- a/src/views/ebiz/proposal/InsuredPerson.vue +++ b/src/views/ebiz/proposal/InsuredPerson.vue @@ -51,7 +51,10 @@ placeholder="被保人职业" /> -
+
+ +
+ 下一步 @@ -69,6 +72,7 @@ import { CellGroup, Field, Dialog, Toast } from 'vant' import getAge from '@/assets/js/utils/age.js' import beforeDate from '@/assets/js/utils/getBeforeDate.js' import { checkSex, checkRelation } from './rule' + export default { data() { return { @@ -111,7 +115,8 @@ export default { customerShowPicker: false, occupationShowPicker: false, currentPopupIndex: '', - disabled: false + disabled: false, + ageShow: '' //被保人显示年龄 } }, @@ -136,6 +141,11 @@ export default { this.insured.medical = '0' } }, + //设置被保人年龄显示 如果this.insured.age为 -1时显示为空,不为1时显示为正常输入值 + changeAge(val) { + this.ageShow = val == '-1' ? '0' : val + this.insured.age = val + }, selectClick(index) { this.currentPopupIndex = index let title = '' @@ -304,20 +314,24 @@ export default { hiddenRight: '1' } }) - let { customerName, customerSex, birthday, customerPhone, age, occupationName, occupationCode, lifeGrade, healthGrade, socialSecurity } = data + console.log('data == ', data) + let { customerName, customerSex, birthday, customerPhone, occupationName, occupationCode, lifeGrade, healthGrade, socialSecurity } = data + let age = getAge.getAge(data['birthday'], new Date()) let insured = { mobile: customerPhone, birthday, sex: String(customerSex), name: customerName, occupationName, - age: age ? age : '', + age: age, occupationCode, lifeGrade, healthGrade, medical: socialSecurity ? socialSecurity : '0' } + console.log('insured.age', insured.age) Object.assign(this.insured, insured) + console.log('insured == ', insured) } },