Commit 3027f09a by yuzhenWang

允许受保人年龄小于18岁

parent 769c83d5
...@@ -755,7 +755,9 @@ const handleDateChange = child => { ...@@ -755,7 +755,9 @@ const handleDateChange = child => {
let age = null let age = null
if (child.key == 'birthday') { if (child.key == 'birthday') {
age = calculateExactAge(proxy.formatToDate(form.value.birthday)) age = calculateExactAge(proxy.formatToDate(form.value.birthday))
if (age >= 18) { if (age >= 18 && props.activeName !== 'insurantInfo') {
form.value.age = age
} else if (props.activeName == 'insurantInfo') {
form.value.age = age form.value.age = age
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment