feat(ebiz): 调整投保人信息扫描组件逻辑

- 修改 InsuredInfo.vue 中的 uploadComponentInfo 方法,注释掉原有身份 证和户口本扫描组件配置
- 在 InsuredInfo.vue 中固定返回外国护照扫描组件,并新增
  showInsuredInfo 属性
- 修改 InsuredPerson.vue 中的 uploadComponentInfo 方法,保留身份证 扫描组件配置
- 在 InsuredPerson.vue 中根据 idType 返回不同扫描组件,并新增
  showInsuredPersonInfo 属性
This commit is contained in:
陈昱达
2025-11-18 13:28:16 +08:00
parent db14ff90b6
commit edc93779b2
2 changed files with 30 additions and 12 deletions

View File

@@ -1879,23 +1879,31 @@ export default {
uploadComponentInfo() { uploadComponentInfo() {
const PhotoScanner = () => import('./components/PhotoScanner.vue') const PhotoScanner = () => import('./components/PhotoScanner.vue')
const components = new Array() const components = new Array()
components[1] = { // components[1] = {
component: 'identityCardScan', // component: 'identityCardScan',
props: { options: { showIDInfo: false } }, // props: { options: { showIDInfo: false } },
event: { getScanInfo: this.getIdentityInfo } // event: { getScanInfo: this.getIdentityInfo }
} // }
components[2] = { // components[2] = {
component: PhotoScanner, // component: PhotoScanner,
props: { type: 'HouseholdRegister' }, // props: { type: 'HouseholdRegister' },
event: { getScanInfo: this.getIdentityInfo } // event: { getScanInfo: this.getIdentityInfo }
} // }
components[4] = { components[4] = {
component: PhotoScanner, component: PhotoScanner,
props: { type: 'ForeignPassportScanner' }, props: { type: 'ForeignPassportScanner' },
event: { getScanInfo: this.getIdentityInfo } event: { getScanInfo: this.getIdentityInfo }
} }
// :options="{ showIDInfo: false }" @getScanInfo="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: { watch: {

View File

@@ -2046,6 +2046,8 @@ export default {
uploadComponentInfo() { uploadComponentInfo() {
const PhotoScanner = ()=> import('./components/PhotoScanner.vue') const PhotoScanner = ()=> import('./components/PhotoScanner.vue')
const components = new Array() const components = new Array()
components[1] = { components[1] = {
component: 'identityCardScan', component: 'identityCardScan',
props: { options: { showIDInfo: false } }, props: { options: { showIDInfo: false } },
@@ -2062,7 +2064,15 @@ export default {
event: { getScanInfo: this.getIdentityInfo } event: { getScanInfo: this.getIdentityInfo }
} }
// :options="{ showIDInfo: false }" @getScanInfo="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() { beforeDestroy() {