mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-24 18:23:10 +08:00
【fix】 修复建议书中, 姓名校验添加与电投流程一致,修复在选择数据不完整个的客户时,出现的异常情况。
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
class="border-bottom"
|
||||
@nameChange="nameChange"
|
||||
@on-choose="chooseCustomer"
|
||||
v-validate="'required'"
|
||||
v-validate="'required|name'"
|
||||
:required="true"
|
||||
name="投保人"
|
||||
label="姓名"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
class="border-bottom"
|
||||
@nameChange="nameChange"
|
||||
@on-choose="chooseCustomer"
|
||||
v-validate="'required'"
|
||||
v-validate="'required|name'"
|
||||
name="被保险人"
|
||||
required
|
||||
:readonly="disabled"
|
||||
@@ -338,17 +338,22 @@ export default {
|
||||
})
|
||||
console.log('data == ', data)
|
||||
let { customerName, customerSex, birthday, customerPhone, occupationName, occupationCode, lifeGrade, healthGrade, socialSecurity } = data
|
||||
let age = getAge.getAge(data['birthday'], new Date())
|
||||
let age = ''
|
||||
try {
|
||||
age = getAge.getAge(data['birthday'], new Date())
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
}
|
||||
let insured = {
|
||||
mobile: customerPhone,
|
||||
birthday,
|
||||
sex: String(customerSex),
|
||||
birthday: birthday,
|
||||
sex: customerSex ? customerSex.toString() : '0',
|
||||
name: customerName,
|
||||
occupationName,
|
||||
occupationName: occupationName,
|
||||
age: age,
|
||||
occupationCode,
|
||||
lifeGrade,
|
||||
healthGrade,
|
||||
occupationCode: occupationCode,
|
||||
lifeGrade: lifeGrade,
|
||||
healthGrade: healthGrade,
|
||||
medical: socialSecurity ? socialSecurity : '0'
|
||||
}
|
||||
console.log('insured.age', insured.age)
|
||||
|
||||
Reference in New Issue
Block a user