【金融机构客户尽职调查和客户身份资料及交易记录保存管理办法要求需求】添加证件起始日期

This commit is contained in:
liyuetong
2022-02-17 11:11:39 +08:00
committed by li.yuetong
parent 8624169498
commit 9e76070d30
2 changed files with 42 additions and 42 deletions

View File

@@ -40,7 +40,7 @@
>
<van-button v-if="userInfo.idType == 1" slot="button" size="small" type="danger" round @click="selectClick('3')">证件扫描</van-button>
</van-field>
<!-- <FieldDatePicter
<FieldDatePicter
v-validate="'required'"
label="证件起始日期"
name="证件起始日期"
@@ -50,7 +50,7 @@
@confirm="onDateConfirm($event, '0')"
ref="certificateValidate"
:flag="true"
></FieldDatePicter> -->
></FieldDatePicter>
<FieldDatePicter
:v-validate="{ required: certiexpiredateRequired }"
required
@@ -482,7 +482,7 @@ export default {
birthday: '',
idType: '1', //证件类型
idNo: '', //证件号码
// certificateValidate: '', //证件起始日期
certificateValidate: '', //证件起始日期
certiexpiredate: '', //证件到期时间
effectiveDateType: false, //是否长期
occupationCode: '', //职业类别编码
@@ -824,24 +824,24 @@ export default {
//证件起始截止日期
onDateConfirm(val, type) {
switch (type) {
// case '0':
// {
// //证件起始日期
// //如果录入日期早于出生日期或晚于当前日期
// if (Date.parse(val) > Date.parse(new Date()) || Date.parse(val) < Date.parse(this.userInfo.birthday)) {
// this.userInfo.certificateValidate = ''
// this.$refs.certificateValidate.date = ''
// return this.$toast('证件起始日期填写错误')
// }
case '0':
{
//证件起始日期
//如果录入日期早于出生日期或晚于当前日期
if (Date.parse(val) > Date.parse(new Date()) || Date.parse(val) < Date.parse(this.userInfo.birthday)) {
this.userInfo.certificateValidate = ''
this.$refs.certificateValidate.date = ''
return this.$toast('证件起始日期填写错误')
}
// // 计算年龄
// if (this.userInfo.idType == '1') {
// let age = utilsAge.getAge(this.userInfo.birthday, new Date())
// // 长期按钮是否禁用
// this.effectiveDateTypeAble = age <= 45
// }
// }
// break
// 计算年龄
if (this.userInfo.idType == '1') {
let age = utilsAge.getAge(this.userInfo.birthday, new Date())
// 长期按钮是否禁用
this.effectiveDateTypeAble = age <= 45
}
}
break
case '1':
{
console.log('证件截止日期')
@@ -928,7 +928,7 @@ export default {
this.userInfo.birthday = data.birthday //出生日期
this.userInfo.idType = data.customerIdType //证件类型
this.userInfo.idNo = data.customerIdNumber //证件类别
// this.userInfo.certificateValidate = data.idEffectStartDate //证件起始日期
this.userInfo.certificateValidate = data.idEffectStartDate //证件起始日期
if (data.idEffectEndDate == '9999-01-01') {
this.userInfo.effectiveDateType = true //是否长期
} else {

View File

@@ -68,7 +68,7 @@
:readonly="isAppnt"
:maxDate="currentTime"
></FieldDatePicter>
<!-- <FieldDatePicter
<FieldDatePicter
v-validate="'required'"
label="证件起始日期"
name="证件起始日期"
@@ -80,7 +80,7 @@
@confirm="onDateConfirm($event, '0')"
ref="certificateValidate"
:readonly="isAppnt || idLimit"
></FieldDatePicter> -->
></FieldDatePicter>
<FieldDatePicter
v-validate="{ required: certiexpiredateRequired }"
label="证件截止日期"
@@ -546,7 +546,7 @@ export default {
birthday: '',
idType: '1', //证件类型
idNo: '', //证件号码
// certificateValidate: '', //证件起始日期
certificateValidate: '', //证件起始日期
certiexpiredate: '', //证件到期时间
effectiveDateType: false, //是否长期
occupationCode: '',
@@ -1027,24 +1027,24 @@ export default {
//证件起始截止日期
onDateConfirm(val, type) {
switch (type) {
// case '0':
// {
// //证件起始日期
// //如果录入日期早于出生日期或晚于当前日期
// if (Date.parse(val) > Date.parse(new Date()) || Date.parse(val) < Date.parse(this.userInfo.birthday)) {
// this.userInfo.certificateValidate = ''
// this.$refs.certificateValidate.date = ''
// return this.$toast('证件起始日期填写错误')
// }
case '0':
{
//证件起始日期
//如果录入日期早于出生日期或晚于当前日期
if (Date.parse(val) > Date.parse(new Date()) || Date.parse(val) < Date.parse(this.userInfo.birthday)) {
this.userInfo.certificateValidate = ''
this.$refs.certificateValidate.date = ''
return this.$toast('证件起始日期填写错误')
}
// // 计算年龄
// if (this.userInfo.idType == '1') {
// let age = utilsAge.getAge(this.userInfo.birthday, new Date())
// // 长期按钮是否禁用
// this.effectiveDateTypeAble = age <= 45
// }
// }
// break
// 计算年龄
if (this.userInfo.idType == '1') {
let age = utilsAge.getAge(this.userInfo.birthday, new Date())
// 长期按钮是否禁用
this.effectiveDateTypeAble = age <= 45
}
}
break
case '1':
{
//证件截止日期
@@ -1220,7 +1220,7 @@ export default {
}
}
this.userInfo.idNo = data.customerIdNumber //证件号码
// this.userInfo.certificateValidate = data.idEffectStartDate //证件起始日期
this.userInfo.certificateValidate = data.idEffectStartDate //证件起始日期
// this.userInfo.certiexpiredate = data.idEffectEndDate //证件截止日期
// this.userInfo.effectiveDateType = data.idEffectEndDate == '9999-01-01' //是否长期
if (data.idEffectEndDate == '9999-01-01') {