mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 08:36:44 +08:00
修改生产问题--输入完身份证,默认就带出来 16周岁日的截止日期
This commit is contained in:
@@ -622,7 +622,7 @@ export default {
|
||||
}
|
||||
})
|
||||
})
|
||||
//受益人证件类型如果是身份证时,证件截止日期证件截止日期应为第16周岁的生日日期。
|
||||
//受益人证件类型如果是户口本时,证件截止日期证件截止日期应为第16周岁的生日日期。
|
||||
if(item.idType == '2' && idToData(item.idNo).age <16){
|
||||
// 获取出生日期年份+16
|
||||
let year = Number(item.birthday.substr(0,4)) + 16
|
||||
|
||||
@@ -667,7 +667,8 @@ export default {
|
||||
this.effectiveDateTypeAble = false
|
||||
this.userInfo.effectiveDateType = false
|
||||
}
|
||||
if(this.userInfo.idType == '1' ||this.userInfo.idType == '2'){
|
||||
//受益人证件类型如果是户口本时,证件截止日期证件截止日期应为第16周岁的生日日期。
|
||||
if(this.userInfo.idType == '2' && idToData(this.userInfo.idNo).age <16){
|
||||
// 获取出生日期年份+16
|
||||
let year = Number(this.userInfo.birthday.substr(0,4)) + 16
|
||||
if(this.userInfo.birthday.substr(5,5) == '02-29'){
|
||||
@@ -1143,6 +1144,8 @@ export default {
|
||||
this.userInfo.effectiveDateType = false
|
||||
this.effectiveDateTypeAble = idToData(val).age <= 45
|
||||
this.userInfo.birthday = idToData(val).birthday
|
||||
//受益人证件类型如果是户口本时,证件截止日期证件截止日期应为第16周岁的生日日期。
|
||||
if(this.userInfo.idType == '2' && idToData(this.userInfo.idNo).age <16){
|
||||
// 获取出生日期年份+16
|
||||
let year = Number(this.userInfo.birthday.substr(0,4)) + 16
|
||||
if(this.userInfo.birthday.substr(5,5) == '02-29'){
|
||||
@@ -1153,6 +1156,7 @@ export default {
|
||||
}else{
|
||||
this.userInfo.certiexpiredate = year +'-'+ this.userInfo.birthday.substr(5,5)
|
||||
}
|
||||
}
|
||||
this.userInfo.sex = idToData(val).sex
|
||||
if (idToData(val).age > 45) {
|
||||
if (from) {
|
||||
|
||||
@@ -711,7 +711,8 @@ export default {
|
||||
this.effectiveDateTypeAble = false
|
||||
this.userInfo.effectiveDateType = false
|
||||
}
|
||||
if(this.userInfo.idType == '1' ||this.userInfo.idType == '2'){
|
||||
//被保人证件类型如果是户口本时,证件截止日期证件截止日期应为第16周岁的生日日期。
|
||||
if(this.userInfo.idType == '2' && idToData(this.userInfo.idNo).age <16){
|
||||
// 获取出生日期年份+16
|
||||
let year = Number(this.userInfo.birthday.substr(0,4)) + 16
|
||||
if(this.userInfo.birthday.substr(5,5) == '02-29'){
|
||||
@@ -1206,7 +1207,7 @@ export default {
|
||||
this.effectiveDateTypeAble = false
|
||||
this.userInfo.effectiveDateType = false
|
||||
}
|
||||
if(this.userInfo.idType == '1' ||this.userInfo.idType == '2'){
|
||||
if(this.userInfo.idType == '2' && idToData(this.userInfo.idNo).age <16){
|
||||
// 获取出生日期年份+16
|
||||
let year = Number(this.userInfo.birthday.substr(0,4)) + 16
|
||||
if(this.userInfo.birthday.substr(5,5) == '02-29'){
|
||||
@@ -1850,6 +1851,7 @@ export default {
|
||||
this.effectiveDateTypeAble = idToData(val).age <= 45
|
||||
this.userInfo.birthday = idToData(val).birthday
|
||||
// 获取出生日期年份+16
|
||||
if(this.userInfo.idType == '2' && idToData(this.userInfo.idNo).age <16){
|
||||
let year = Number(this.userInfo.birthday.substr(0,4)) + 16
|
||||
if(this.userInfo.birthday.substr(5,5) == '02-29'){
|
||||
// 获取某年某月一共多少天
|
||||
@@ -1859,6 +1861,7 @@ export default {
|
||||
}else{
|
||||
this.userInfo.certiexpiredate = year+'-'+ this.userInfo.birthday.substr(5,5)
|
||||
}
|
||||
}
|
||||
this.userInfo.sex = idToData(val).sex
|
||||
//年龄小于18周岁,工作单位默认值为‘无’
|
||||
if (idToData(val).age < 18) {
|
||||
|
||||
Reference in New Issue
Block a user