mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-24 17:12:53 +08:00
投被受模块涉及,统一规范证件有效期长期由9999-01-01调整为9999-12-31
This commit is contained in:
@@ -294,7 +294,7 @@ export default {
|
||||
if (this.userInfo.homeProvince) {
|
||||
this.homeNameInfo()
|
||||
}
|
||||
if (this.userInfo.certiexpiredate == '9999-01-01') {
|
||||
if (this.userInfo.certiexpiredate == '9999-12-31') {
|
||||
this.userInfo.effectiveDateType = true
|
||||
}
|
||||
},
|
||||
@@ -645,7 +645,7 @@ export default {
|
||||
if (val) {
|
||||
this.userInfo.certiexpiredate = ''
|
||||
this.certiexpiredateRequired = false
|
||||
sessionStorage.setItem('isEnd', '9999-01-01')
|
||||
sessionStorage.setItem('isEnd', '9999-12-31')
|
||||
} else {
|
||||
this.certiexpiredateRequired = true
|
||||
sessionStorage.setItem('isEnd', '')
|
||||
|
||||
@@ -697,7 +697,7 @@ export default {
|
||||
//长期状态改变时
|
||||
effectiveDataTypeChange(val) {
|
||||
if (val) {
|
||||
this.userInfo.dateEnd = '9999-01-01';
|
||||
this.userInfo.dateEnd = '9999-12-31';
|
||||
} else {
|
||||
this.userInfo.dateEnd = '';
|
||||
}
|
||||
|
||||
@@ -565,7 +565,7 @@ export function chooseCustomer(that, data, type) {
|
||||
that.userInfo.idNo = data.customerIdNumber //证件类别
|
||||
that.userInfo.certificateValidate = data.idEffectStartDate //证件起始日期
|
||||
that.userInfo.certiexpiredate = data.idEffectEndDate //证件截止日期
|
||||
that.userInfo.effectiveDateType = data.idEffectEndDate == '9999-01-01' //是否长期
|
||||
that.userInfo.effectiveDateType = data.idEffectEndDate == '9999-12-31' //是否长期
|
||||
that.userInfo.occupationCode = data.occupationCode //职业类别编码
|
||||
that.userInfo.occupationName = data.occupationName //职业类别名称
|
||||
that.userInfo.lifeGrade = data.lifeGrade //寿险等级
|
||||
|
||||
@@ -1292,7 +1292,7 @@ export default {
|
||||
this.effectiveDateTypeAbleInsured = true //长期按钮是否禁用--被保人
|
||||
this.insuredInfo.effectiveDateType = false //是否长期
|
||||
// this.insuredInfo.effectiveDateType = true
|
||||
// this.insuredInfo.certiexpiredate = '9999-01-01'
|
||||
// this.insuredInfo.certiexpiredate = '9999-12-31'
|
||||
// this.effectiveDateTypeAbleInsured = true
|
||||
// this.isInsuredCertiexpiredate = false
|
||||
this.isInsuredCertiexpiredate = true
|
||||
@@ -1485,7 +1485,7 @@ export default {
|
||||
this.userInfo.birthday = data.birthday //出生日期
|
||||
this.userInfo.idType = data.customerIdType //证件类型
|
||||
this.userInfo.idNo = data.customerIdNumber //证件类别
|
||||
if (data.idEffectEndDate == '9999-01-01') {
|
||||
if (data.idEffectEndDate == '9999-12-31') {
|
||||
this.userInfo.effectiveDateType = true //是否长期
|
||||
} else {
|
||||
this.userInfo.certiexpiredate = data.idEffectEndDate //证件截止日期
|
||||
@@ -1540,7 +1540,7 @@ export default {
|
||||
}
|
||||
if (data.customerIdType == 2) {
|
||||
this.insuredInfo.effectiveDateType = true
|
||||
this.insuredInfo.certiexpiredate = '9999-01-01'
|
||||
this.insuredInfo.certiexpiredate = '9999-12-31'
|
||||
this.effectiveDateTypeAbleInsured = true
|
||||
this.isInsuredCertiexpiredate = false
|
||||
}else{
|
||||
@@ -1554,7 +1554,7 @@ export default {
|
||||
this.insuredInfo.effectiveDateType = false;
|
||||
this.effectiveDateTypeAbleInsured = false
|
||||
}else{
|
||||
if (data.idEffectEndDate == '9999-01-01') {
|
||||
if (data.idEffectEndDate == '9999-12-31') {
|
||||
this.insuredInfo.certiexpiredate = ''
|
||||
this.insuredInfo.effectiveDateType = true //是否长期
|
||||
this.effectiveDateTypeAbleInsured = true
|
||||
@@ -1907,10 +1907,10 @@ export default {
|
||||
}
|
||||
// 是否长期选项 赋值
|
||||
if (this.userInfo.effectiveDateType){
|
||||
this.userInfo.certiexpiredate = '9999-01-01'
|
||||
this.userInfo.certiexpiredate = '9999-12-31'
|
||||
}
|
||||
if (this.insuredInfo.effectiveDateType) {
|
||||
this.insuredInfo.certiexpiredate = '9999-01-01'
|
||||
this.insuredInfo.certiexpiredate = '9999-12-31'
|
||||
}
|
||||
if ((this.userInfo.relationToInsured != '1' && this.userInfo.relationToInsured != '3')
|
||||
|| (this.userInfo.relationToInsured == '3' && insuredAge >= 18)){
|
||||
@@ -2268,7 +2268,7 @@ export default {
|
||||
this.insuredInfo.email = this.userInfo.email
|
||||
this.insuredInfo.idType = '2'
|
||||
// this.insuredInfo.effectiveDateType = true
|
||||
// this.insuredInfo.certiexpiredate = '9999-01-01'
|
||||
// this.insuredInfo.certiexpiredate = '9999-12-31'
|
||||
// 去掉--选择户口本时,是否长期默认为是,不可点击,有效止期隐藏(证件类型为户口本时,被保人年龄小于16周岁时,户口本有效止期长期变更为第16周岁日期)
|
||||
// this.effectiveDateTypeAbleInsured = true
|
||||
// this.isInsuredCertiexpiredate = false
|
||||
@@ -2279,7 +2279,7 @@ export default {
|
||||
this.insuredInfo.marriage = '2'
|
||||
this.insuredInfo.idType = '2'
|
||||
// this.insuredInfo.effectiveDateType = true
|
||||
// this.insuredInfo.certiexpiredate = '9999-01-01'
|
||||
// this.insuredInfo.certiexpiredate = '9999-12-31'
|
||||
// 去掉--选择户口本时,是否长期默认为是,不可点击,有效止期隐藏(证件类型为户口本时,被保人年龄小于16周岁时,户口本有效止期长期变更为第16周岁日期)
|
||||
// this.effectiveDateTypeAbleInsured = true
|
||||
// this.isInsuredCertiexpiredate = false
|
||||
@@ -2288,7 +2288,7 @@ export default {
|
||||
// GFRS-2641--少儿安康,默认户口本,且户口本证件截止日期默认长期
|
||||
if (this.itemProductDTOS.productCode == 'GFRS_M0052') {
|
||||
this.insuredInfo.idType = '2'
|
||||
// this.insuredInfo.certiexpiredate = '9999-01-01'
|
||||
// this.insuredInfo.certiexpiredate = '9999-12-31'
|
||||
// this.insuredInfo.effectiveDateType = true
|
||||
this.insuredInfo.occupationCode = '2099907'
|
||||
this.insuredInfo.occupationName = '一般学生'
|
||||
|
||||
@@ -793,9 +793,9 @@ export default {
|
||||
this.userInfo.applyerCertiType = Detail[0][0].idType
|
||||
this.userInfo.applyerCertiCode = Detail[0][0].idNo
|
||||
this.userInfo.applyerBirthday = Detail[0][0].customerBirthday //出生日期
|
||||
this.effectiveDateType = Detail[0][0].isEndDate == '9999-01-01' //是否长期
|
||||
this.userInfo.applyerCertiEndDate = Detail[0][0].isEndDate == '9999-01-01' ? '2010-01-01' : Detail[0][0].isEndDate //截止日期
|
||||
this.userInfo.certiIsLong = Detail[0][0].isEndDate == '9999-01-01' ? '1' : '0' //是否长期 0-否,1-是
|
||||
this.effectiveDateType = Detail[0][0].isEndDate == '9999-12-31' //是否长期
|
||||
this.userInfo.applyerCertiEndDate = Detail[0][0].isEndDate == '9999-12-31' ? '2010-01-01' : Detail[0][0].isEndDate //截止日期
|
||||
this.userInfo.certiIsLong = Detail[0][0].isEndDate == '9999-12-31' ? '1' : '0' //是否长期 0-否,1-是
|
||||
this.userInfo.applyerNationatlity = Detail[0][0].nationality
|
||||
this.userInfo.applyerEmail = Detail[0][0].customerEmail
|
||||
this.userInfo.applyerMobile = Detail[0][0].customerMobile
|
||||
|
||||
@@ -489,9 +489,9 @@ export default {
|
||||
this.userInfo.insuredProvince = Detail[0][0].province //联系省
|
||||
this.userInfo.insuredCity = Detail[0][0].city //联系市
|
||||
this.userInfo.insuredCounty = Detail[0][0].area //联系区
|
||||
this.effectiveDateType = Detail[0][0].isEndDate == '9999-01-01' //是否长期
|
||||
this.userInfo.certiIsLong = Detail[0][0].isEndDate == '9999-01-01' ? '1' : '0' //是否长期 0-否,1-是
|
||||
this.userInfo.certiTypeEndDate = Detail[0][0].isEndDate == '9999-01-01' ? '2010-01-01' : Detail[0][0].isEndDate //截止日期
|
||||
this.effectiveDateType = Detail[0][0].isEndDate == '9999-12-31' //是否长期
|
||||
this.userInfo.certiIsLong = Detail[0][0].isEndDate == '9999-12-31' ? '1' : '0' //是否长期 0-否,1-是
|
||||
this.userInfo.certiTypeEndDate = Detail[0][0].isEndDate == '9999-12-31' ? '2010-01-01' : Detail[0][0].isEndDate //截止日期
|
||||
this.userInfo.insuredOccuCode = Detail[0][0].occuCode //职业编码
|
||||
let result = this.showOccuName(Detail[0][0].occuCode)
|
||||
if (result) {
|
||||
|
||||
@@ -1430,7 +1430,7 @@ export default {
|
||||
sex: this.appnt.sex,
|
||||
idType: this.appnt.idType,
|
||||
idNo: this.appnt.idNo,
|
||||
certificateValidate: this.appnt.effectiveDateType == true ? '9999-01-01' : this.appnt.certiexpiredate,
|
||||
certificateValidate: this.appnt.effectiveDateType == true ? '9999-12-31' : this.appnt.certiexpiredate,
|
||||
ridType: ridType,
|
||||
ridDate: Formatter.formatDate(new Date(), 'yyyy-MM-dd'),
|
||||
ridPhone: this.appnt.mobile,
|
||||
@@ -1442,7 +1442,7 @@ export default {
|
||||
sex: this.insured[0].sex,
|
||||
idType: this.insured[0].idType,
|
||||
idNo: this.insured[0].idNo,
|
||||
certificateValidate: this.insured[0].effectiveDateType == true ? '9999-01-01' : this.insured[0].certiexpiredate,
|
||||
certificateValidate: this.insured[0].effectiveDateType == true ? '9999-12-31' : this.insured[0].certiexpiredate,
|
||||
ridType: ridType,
|
||||
ridDate: Formatter.formatDate(new Date(), 'yyyy-MM-dd'),
|
||||
ridPhone: this.insured[0].mobile,
|
||||
|
||||
@@ -161,7 +161,7 @@ export default {
|
||||
if (Date.parse(i.idExpDate) < Date.parse(new Date())) {
|
||||
return this.$toast(`受益人${i.name}的身份证件已过期`)
|
||||
}
|
||||
if (age < 46 && i.idExpDate == '9999-01-01') {
|
||||
if (age < 46 && i.idExpDate == '9999-12-31') {
|
||||
return this.$toast(`受益人${i.name}证件有效期错误,年龄小于46周岁,证件有效期不能为长期`)
|
||||
}
|
||||
if (age < 16) {
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
name="证件截止日期"
|
||||
:required="isRequired"
|
||||
:defaultDate="new Date()"
|
||||
:value.sync="userInfo.idExpDate == '9999-01-01' ? '' : userInfo.idExpDate"
|
||||
:value.sync="userInfo.idExpDate == '9999-12-31' ? '' : userInfo.idExpDate"
|
||||
type="date"
|
||||
@confirm="onDateConfirm($event, '1')"
|
||||
ref="effectiveDate"
|
||||
@@ -311,7 +311,7 @@ export default {
|
||||
this.isDetailFlag = this.policy.isDetailFlag
|
||||
if (this.bnfDTOs.length > 0) {
|
||||
this.bnfDTOs.map(i => {
|
||||
if (i.idExpDate == '9999-01-01') {
|
||||
if (i.idExpDate == '9999-12-31') {
|
||||
i.effectiveDateType = true
|
||||
}
|
||||
})
|
||||
@@ -465,7 +465,7 @@ export default {
|
||||
this.userInfo.idType = data.customerIdType //证件类型
|
||||
this.userInfo.idNo = data.customerIdNumber //证件号码
|
||||
console.log('999999', data.idEffectEndDate)
|
||||
if (data.idEffectEndDate == '9999-01-01') {
|
||||
if (data.idEffectEndDate == '9999-12-31') {
|
||||
this.userInfo.effectiveDateType = true //是否长期
|
||||
} else {
|
||||
this.userInfo.idExpDate = data.idEffectEndDate //证件截止日期
|
||||
@@ -620,7 +620,7 @@ export default {
|
||||
this.policy.bnfDTOs.beneficiariesNew = this.bnfDTOs
|
||||
this.policy.bnfDTOs.beneficiariesNew.map(i => {
|
||||
if (i.effectiveDateType) {
|
||||
i.idExpDate = '9999-01-01'
|
||||
i.idExpDate = '9999-12-31'
|
||||
}
|
||||
delete i.effectiveDateType
|
||||
})
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
label="证件截止日期"
|
||||
name="证件截止日期"
|
||||
required
|
||||
:value.sync="userInfo.idExpDate == '9999-01-01' ? '' : userInfo.idExpDate"
|
||||
:value.sync="userInfo.idExpDate == '9999-12-31' ? '' : userInfo.idExpDate"
|
||||
readonly
|
||||
right-icon="arrow"
|
||||
></van-field>
|
||||
@@ -180,7 +180,7 @@ export default {
|
||||
if (this.$route.query.edit) {
|
||||
this.editIndex = this.$route.query.edit
|
||||
this.userInfo = this.policy.bnfDTOs.beneficiariesNew[this.$route.query.edit]
|
||||
this.userInfo.effectiveDateType = this.userInfo.idExpDate == '9999-01-01' ? true : false
|
||||
this.userInfo.effectiveDateType = this.userInfo.idExpDate == '9999-12-31' ? true : false
|
||||
}
|
||||
this.areaName = getAreaName([{ code: this.userInfo.province }, { code: this.userInfo.city }, { code: this.userInfo.area }])
|
||||
},
|
||||
|
||||
@@ -749,7 +749,7 @@ export default {
|
||||
if (data.homeProvince && data.homeCity && data.homeArea) {
|
||||
this.areaStr = getAreaName([{ code: data.homeProvince }, { code: data.homeCity }, { code: data.homeArea }])
|
||||
}
|
||||
if (data.idEffectEndDate == '9999-01-01') {
|
||||
if (data.idEffectEndDate == '9999-12-31') {
|
||||
this.userInfo.effectiveDateType = true //是否长期
|
||||
} else {
|
||||
this.userInfo.certiexpiredate = data.idEffectEndDate //证件截止日期
|
||||
@@ -1134,8 +1134,8 @@ export default {
|
||||
this.userInfo.idNo = insuredDetail.idNo //证件号码
|
||||
this.idNoLimit = Boolean(insuredDetail.idNo)
|
||||
this.userInfo.certificateValidate = insuredDetail.certificateValidate //证件起始日期
|
||||
this.userInfo.certiexpiredate = insuredDetail.certiexpiredate == '9999-01-01' ? '' : insuredDetail.certiexpiredate //证件截止日期
|
||||
this.userInfo.effectiveDateType = insuredDetail.certiexpiredate == '9999-01-01' //是否长期
|
||||
this.userInfo.certiexpiredate = insuredDetail.certiexpiredate == '9999-12-31' ? '' : insuredDetail.certiexpiredate //证件截止日期
|
||||
this.userInfo.effectiveDateType = insuredDetail.certiexpiredate == '9999-12-31' //是否长期
|
||||
this.userInfo.mobile = insuredDetail.mobile
|
||||
this.mobileLimit = Boolean(insuredDetail.mobile)
|
||||
let age = utilsAge.getAge(insuredDetail.birthday, new Date())
|
||||
|
||||
@@ -1479,7 +1479,7 @@ export default {
|
||||
//"ValidDate": "2010.07.21-长期"
|
||||
let certiexpireDate = res.content.validDate.split('-')[1]
|
||||
if('长期' == certiexpireDate){
|
||||
res.content.validDate = '9999-01-01'
|
||||
res.content.validDate = '9999-12-31'
|
||||
if(this.saleInsuredInfo.certiexpiredate != res.content.validDate){
|
||||
isFlag = false;
|
||||
}
|
||||
@@ -1508,7 +1508,7 @@ export default {
|
||||
let certiexpireDate = res.content.validDate.split('-')[1]
|
||||
console.log("res.content.validDate", res.content.validDate)
|
||||
if('长期' == certiexpireDate){
|
||||
res.content.validDate = '9999-01-01'
|
||||
res.content.validDate = '9999-12-31'
|
||||
if(this.saleInsuredPersonInfo.certiexpiredate != res.content.validDate){
|
||||
isFlag = false;
|
||||
}
|
||||
@@ -1536,7 +1536,7 @@ export default {
|
||||
let certiexpireDate = res.content.validDate.split('-')[1]
|
||||
console.log("res.content.validDate", res.content.validDate)
|
||||
if('长期' == certiexpireDate){
|
||||
res.content.validDate = '9999-01-01'
|
||||
res.content.validDate = '9999-12-31'
|
||||
if(this.saleBtnfPersonInfo.certiexpiredate != res.content.validDate){
|
||||
isFlag = false;
|
||||
}
|
||||
|
||||
@@ -982,7 +982,7 @@ export default {
|
||||
this.userInfo.idType = data.customerIdType //证件类型
|
||||
this.userInfo.idNo = data.customerIdNumber //证件类别
|
||||
this.userInfo.certificateValidate = data.idEffectStartDate //证件起始日期
|
||||
if (data.idEffectEndDate == '9999-01-01') {
|
||||
if (data.idEffectEndDate == '9999-12-31') {
|
||||
this.userInfo.effectiveDateType = true //是否长期
|
||||
} else {
|
||||
this.userInfo.certiexpiredate = data.idEffectEndDate //证件截止日期
|
||||
|
||||
@@ -1279,8 +1279,8 @@ export default {
|
||||
this.userInfo.idNo = data.customerIdNumber //证件号码
|
||||
this.userInfo.certificateValidate = data.idEffectStartDate //证件起始日期
|
||||
// this.userInfo.certiexpiredate = data.idEffectEndDate //证件截止日期
|
||||
// this.userInfo.effectiveDateType = data.idEffectEndDate == '9999-01-01' //是否长期
|
||||
if (data.idEffectEndDate == '9999-01-01') {
|
||||
// this.userInfo.effectiveDateType = data.idEffectEndDate == '9999-12-31' //是否长期
|
||||
if (data.idEffectEndDate == '9999-12-31') {
|
||||
this.userInfo.effectiveDateType = true //是否长期
|
||||
} else {
|
||||
this.userInfo.certiexpiredate = data.idEffectEndDate //证件截止日期
|
||||
|
||||
@@ -1748,7 +1748,7 @@ export default {
|
||||
sex: this.appnt.sex,
|
||||
idType: this.appnt.idType,
|
||||
idNo: this.appnt.idNo,
|
||||
certificateValidate: this.appnt.effectiveDateType == true ? '9999-01-01' : this.appnt.certiexpiredate,
|
||||
certificateValidate: this.appnt.effectiveDateType == true ? '9999-12-31' : this.appnt.certiexpiredate,
|
||||
ridType: ridType,
|
||||
ridDate: Formatter.formatDate(new Date(), 'yyyy-MM-dd'),
|
||||
ridPhone: this.appnt.mobile,
|
||||
@@ -1760,7 +1760,7 @@ export default {
|
||||
sex: this.insured[0].sex,
|
||||
idType: this.insured[0].idType,
|
||||
idNo: this.insured[0].idNo,
|
||||
certificateValidate: this.insured[0].effectiveDateType == true ? '9999-01-01' : this.insured[0].certiexpiredate,
|
||||
certificateValidate: this.insured[0].effectiveDateType == true ? '9999-12-31' : this.insured[0].certiexpiredate,
|
||||
ridType: ridType,
|
||||
ridDate: Formatter.formatDate(new Date(), 'yyyy-MM-dd'),
|
||||
ridPhone: this.insured[0].mobile,
|
||||
|
||||
Reference in New Issue
Block a user