diff --git a/src/views/ebiz/saleFlowProImprove/InsuredInfo.vue b/src/views/ebiz/saleFlowProImprove/InsuredInfo.vue index 4215992d4..6fb025e44 100644 --- a/src/views/ebiz/saleFlowProImprove/InsuredInfo.vue +++ b/src/views/ebiz/saleFlowProImprove/InsuredInfo.vue @@ -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: { diff --git a/src/views/ebiz/saleFlowProImprove/InsuredPerson.vue b/src/views/ebiz/saleFlowProImprove/InsuredPerson.vue index 7cdc2f7eb..934086ee6 100644 --- a/src/views/ebiz/saleFlowProImprove/InsuredPerson.vue +++ b/src/views/ebiz/saleFlowProImprove/InsuredPerson.vue @@ -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() {