mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-09 16:56:43 +08:00
Merge branch 'feature/GFRS-2301【需求】健康险渠道国富无忧卡金掌桂开发的需求' into dev
This commit is contained in:
@@ -859,7 +859,6 @@ export function sureArea(that, area, type, flag = false) {
|
||||
*/
|
||||
export function getIdentityInfo(that, data, type) {
|
||||
if (data.name && data.name != '待识别') {
|
||||
if (type == '1') {
|
||||
that.userInfo.certificateValidate = `${data.startDate.substr(0, 4)}-${data.startDate.substr(4, 2)}-${data.startDate.substr(6, 2)}`
|
||||
that.userInfo.certiexpiredate = `${data.endDate.substr(0, 4)}-${data.endDate.substr(4, 2)}-${data.endDate.substr(6, 2)}`
|
||||
that.userInfo.name = data.name
|
||||
@@ -867,15 +866,6 @@ export function getIdentityInfo(that, data, type) {
|
||||
that.userInfo.birthday = `${data.birthYear}-${data.birthMonth}-${data.birthDay}`
|
||||
that.userInfo.sex = data.gender == '男' ? '0' : '1'
|
||||
that.effectiveDateTypeAble = idToData(data.idNo).age <= 45
|
||||
} else if (type == '2') {
|
||||
that.insuredInfo.certificateValidate = `${data.startDate.substr(0, 4)}-${data.startDate.substr(4, 2)}-${data.startDate.substr(6, 2)}`
|
||||
that.insuredInfo.certiexpiredate = `${data.endDate.substr(0, 4)}-${data.endDate.substr(4, 2)}-${data.endDate.substr(6, 2)}`
|
||||
that.insuredInfo.name = data.name
|
||||
that.insuredInfo.idNo = data.idNo
|
||||
that.insuredInfo.birthday = `${data.birthYear}-${data.birthMonth}-${data.birthDay}`
|
||||
that.insuredInfo.sex = data.gender == '男' ? '0' : '1'
|
||||
that.effectiveDateTypeAbleInsured = idToData(data.idNo).age <= 45
|
||||
}
|
||||
}
|
||||
that.isScan = false
|
||||
that.bankisScan = false
|
||||
|
||||
@@ -196,7 +196,7 @@
|
||||
@confirm="onDateConfirm($event, '7')"
|
||||
ref="certiexpiredate"
|
||||
:flag="true"
|
||||
:readonly="idLimit"
|
||||
:readonly="idLimitInsured"
|
||||
></FieldDatePicter>
|
||||
<div class="border-bt relative fs14 p10 flex justify-content-fe">
|
||||
<van-checkbox v-model="insuredInfo.effectiveDateType" :disabled="effectiveDateTypeAbleInsured" @change="effectiveDataTypeChangeInsured"
|
||||
@@ -523,6 +523,8 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
idLimit: false, //截止日期是否可编辑
|
||||
idLimitInsured: false, //截止日期是否可编辑--被保人
|
||||
certiexpiredateRequired: true, //证件截止日期是否需要校验
|
||||
certiexpiredateRequiredInsured: true, //证件截止日期是否需要校验--被保人
|
||||
effectiveDateTypeAble: false, //长期按钮是否禁用
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import CacheUtils from '@/assets/js/utils/cacheUtils'
|
||||
|
||||
//点击弹出组件
|
||||
export function selectComp(that, index, type = '') {
|
||||
that.currentPopupIndex = index
|
||||
@@ -12,16 +14,24 @@ export function selectComp(that, index, type = '') {
|
||||
} else if (index == 2) {
|
||||
;[that.occupationShowPicker, title] = [true, '职业类别']
|
||||
} else if (index == 3) {
|
||||
// if (type == '1') {
|
||||
//投保人
|
||||
// localStorage.scanFromInsured = 'true'
|
||||
// ;[that.isScan, title] = [true, '身份证扫描']
|
||||
// } else if (type == '2') {
|
||||
// //被保人
|
||||
// localStorage.scanFromInsured = 'false'
|
||||
// ;[that.isScan2, title] = [true, '身份证扫描']
|
||||
// }
|
||||
// ;[that.isScan, title] = [true, '身份证扫描']
|
||||
if (type == '1') {
|
||||
//投保人
|
||||
localStorage.scanFromInsured = 'true'
|
||||
;[that.isScan, title] = [true, '身份证扫描']
|
||||
CacheUtils.setLocItem('scanFromInsured','true')
|
||||
} else if (type == '2') {
|
||||
//被保人
|
||||
localStorage.scanFromInsured = 'false'
|
||||
;[that.isScan2, title] = [true, '身份证扫描']
|
||||
//被保险人
|
||||
CacheUtils.setLocItem('scanFromInsured','false')
|
||||
}
|
||||
// ;[that.isScan, title] = [true, '身份证扫描']
|
||||
;[that.isScan, title] = [true, '身份证扫描']
|
||||
}
|
||||
|
||||
setTimeout(() => {
|
||||
@@ -76,6 +86,7 @@ export function getIdentityInfo(that, data, type) {
|
||||
that.userInfo.certiexpiredate = `${data.endDate.substr(0, 4)}-${data.endDate.substr(5, 2)}-${data.endDate.substr(8, 2)}`
|
||||
// that.userInfo.certiexpiredate = `${data.endDate.substr(0, 4)}-${data.endDate.substr(4, 2)}-${data.endDate.substr(6, 2)}`
|
||||
that.effectiveDateTypeAble = true
|
||||
that.idLimit = false
|
||||
} else {
|
||||
// 勾选长期
|
||||
that.userInfo.effectiveDateType = true
|
||||
@@ -83,36 +94,42 @@ export function getIdentityInfo(that, data, type) {
|
||||
that.effectiveDateTypeAble = false
|
||||
// 证件截止日期不需要校验
|
||||
that.certiexpiredateRequired = false
|
||||
//截止日期不可编辑
|
||||
that.idLimit = true
|
||||
}
|
||||
}
|
||||
}
|
||||
if (type == '2') {
|
||||
// 正面
|
||||
if (data.name && data.name != '待识别') {
|
||||
that.userInfo.insuredName = data.name
|
||||
that.insuredInfo.idNo = that.userInfo.insuredidNo = data.idNo
|
||||
that.insuredInfo.birthday = that.userInfo.insuredBirthday = `${data.birthYear}-${data.birthMonth}-${data.birthDay}`
|
||||
that.insuredInfo.insuredSex = that.userInfo.insuredSex = data.gender == '男' ? '0' : '1'
|
||||
that.insuredInfo.name = data.name
|
||||
that.insuredInfo.idNo = data.idNo
|
||||
that.insuredInfo.birthday = `${data.birthYear}-${data.birthMonth}-${data.birthDay}`
|
||||
that.insuredInfo.sex = data.gender == '男' ? '0' : '1'
|
||||
}
|
||||
// 反面
|
||||
if (data.startDate && data.startDate != '待识别') {
|
||||
that.userInfo.certificateValidate = `${data.startDate.substr(0, 4)}-${data.startDate.substr(5, 2)}-${data.startDate.substr(8, 2)}`
|
||||
that.insuredInfo.certificateValidate = `${data.startDate.substr(0, 4)}-${data.startDate.substr(5, 2)}-${data.startDate.substr(8, 2)}`
|
||||
//that.userInfo.certificateValidate = `${data.startDate.substr(0, 4)}-${data.startDate.substr(4, 2)}-${data.startDate.substr(6, 2)}`
|
||||
// 是否为长期身份证
|
||||
if (data.endDate != '长期') {
|
||||
that.userInfo.certiexpiredate = `${data.endDate.substr(0, 4)}-${data.endDate.substr(5, 2)}-${data.endDate.substr(8, 2)}`
|
||||
that.insuredInfo.certiexpiredate = `${data.endDate.substr(0, 4)}-${data.endDate.substr(5, 2)}-${data.endDate.substr(8, 2)}`
|
||||
// that.userInfo.certiexpiredate = `${data.endDate.substr(0, 4)}-${data.endDate.substr(4, 2)}-${data.endDate.substr(6, 2)}`
|
||||
that.effectiveDateTypeAble = true
|
||||
that.effectiveDateTypeAbleInsured = true
|
||||
that.idLimitInsured = false
|
||||
} else {
|
||||
// 勾选长期
|
||||
that.userInfo.effectiveDateType = true
|
||||
that.insuredInfo.effectiveDateType = true
|
||||
// 长期按钮不禁用
|
||||
that.effectiveDateTypeAble = false
|
||||
that.effectiveDateTypeAbleInsured = false
|
||||
// 证件截止日期不需要校验
|
||||
that.certiexpiredateRequired = false
|
||||
that.certiexpiredateRequiredInsured = false
|
||||
//截止日期不可编辑
|
||||
that.idLimitInsured = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
that.isScan = false
|
||||
let title = type == '1' ? '投保人信息' : '被保人信息'
|
||||
that.$jump({
|
||||
|
||||
Reference in New Issue
Block a user