mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-16 06:26:44 +08:00
feat(ebiz): 调整投保人信息扫描组件逻辑
- 修改 InsuredInfo.vue 中的 uploadComponentInfo 方法,注释掉原有身份 证和户口本扫描组件配置 - 在 InsuredInfo.vue 中固定返回外国护照扫描组件,并新增 showInsuredInfo 属性 - 修改 InsuredPerson.vue 中的 uploadComponentInfo 方法,保留身份证 扫描组件配置 - 在 InsuredPerson.vue 中根据 idType 返回不同扫描组件,并新增 showInsuredPersonInfo 属性
This commit is contained in:
@@ -1879,23 +1879,31 @@ export default {
|
||||
uploadComponentInfo() {
|
||||
const PhotoScanner = () => import('./components/PhotoScanner.vue')
|
||||
const components = new Array()
|
||||
components[1] = {
|
||||
component: 'identityCardScan',
|
||||
props: { options: { showIDInfo: false } },
|
||||
event: { getScanInfo: this.getIdentityInfo }
|
||||
}
|
||||
components[2] = {
|
||||
component: PhotoScanner,
|
||||
props: { type: 'HouseholdRegister' },
|
||||
event: { getScanInfo: this.getIdentityInfo }
|
||||
}
|
||||
// components[1] = {
|
||||
// component: 'identityCardScan',
|
||||
// props: { options: { showIDInfo: false } },
|
||||
// event: { getScanInfo: this.getIdentityInfo }
|
||||
// }
|
||||
// components[2] = {
|
||||
// component: PhotoScanner,
|
||||
// props: { type: 'HouseholdRegister' },
|
||||
// event: { getScanInfo: this.getIdentityInfo }
|
||||
// }
|
||||
components[4] = {
|
||||
component: PhotoScanner,
|
||||
props: { type: 'ForeignPassportScanner' },
|
||||
event: { getScanInfo: this.getIdentityInfo }
|
||||
}
|
||||
|
||||
|
||||
|
||||
// :options="{ showIDInfo: false }" @getScanInfo="getIdentityInfo"
|
||||
return components[typeof this.userInfo.idType === 'object' ? 1 : this.userInfo.idType]
|
||||
return {
|
||||
component: PhotoScanner,
|
||||
props: { type: 'ForeignPassportScanner' ,showInsuredInfo:true },
|
||||
event: { getScanInfo: this.getIdentityInfo }
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
||||
@@ -2046,6 +2046,8 @@ export default {
|
||||
uploadComponentInfo() {
|
||||
const PhotoScanner = ()=> import('./components/PhotoScanner.vue')
|
||||
const components = new Array()
|
||||
|
||||
|
||||
components[1] = {
|
||||
component: 'identityCardScan',
|
||||
props: { options: { showIDInfo: false } },
|
||||
@@ -2062,7 +2064,15 @@ export default {
|
||||
event: { getScanInfo: this.getIdentityInfo }
|
||||
}
|
||||
// :options="{ showIDInfo: false }" @getScanInfo="getIdentityInfo"
|
||||
return components[typeof this.userInfo.idType === 'object' ? 1 : this.userInfo.idType]
|
||||
return this.userInfo.idType == 1 ?{
|
||||
component: 'identityCardScan',
|
||||
props: { options: { showIDInfo: false } },
|
||||
event: { getScanInfo: this.getIdentityInfo }
|
||||
} : {
|
||||
component: PhotoScanner,
|
||||
props: { type: 'HouseholdRegister',showInsuredPersonInfo: true },
|
||||
event: { getScanInfo: this.getIdentityInfo }
|
||||
}
|
||||
}
|
||||
},
|
||||
beforeDestroy() {
|
||||
|
||||
Reference in New Issue
Block a user