From edc93779b22e4dcc099b43ab63d39de4618a5e8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=98=B1=E8=BE=BE?= Date: Tue, 18 Nov 2025 13:28:16 +0800 Subject: [PATCH] =?UTF-8?q?feat(ebiz):=20=E8=B0=83=E6=95=B4=E6=8A=95?= =?UTF-8?q?=E4=BF=9D=E4=BA=BA=E4=BF=A1=E6=81=AF=E6=89=AB=E6=8F=8F=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改 InsuredInfo.vue 中的 uploadComponentInfo 方法,注释掉原有身份 证和户口本扫描组件配置 - 在 InsuredInfo.vue 中固定返回外国护照扫描组件,并新增 showInsuredInfo 属性 - 修改 InsuredPerson.vue 中的 uploadComponentInfo 方法,保留身份证 扫描组件配置 - 在 InsuredPerson.vue 中根据 idType 返回不同扫描组件,并新增 showInsuredPersonInfo 属性 --- .../ebiz/saleFlowProImprove/InsuredInfo.vue | 30 ++++++++++++------- .../ebiz/saleFlowProImprove/InsuredPerson.vue | 12 +++++++- 2 files changed, 30 insertions(+), 12 deletions(-) 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() {