fix bug
This commit is contained in:
		| @ -115,6 +115,8 @@ export class AddPersonalPartnerComponent { | |||||||
|     }; |     }; | ||||||
|     this.service.request(this.service.$api_ocr_recognize_id_card, params).subscribe(res => { |     this.service.request(this.service.$api_ocr_recognize_id_card, params).subscribe(res => { | ||||||
|       if (res) { |       if (res) { | ||||||
|  |         console.log(res); | ||||||
|  |          | ||||||
|         // 法定代表人证件照 |         // 法定代表人证件照 | ||||||
|         if (isFront === 'front') { |         if (isFront === 'front') { | ||||||
|           // 正面 |           // 正面 | ||||||
| @ -169,7 +171,7 @@ export class AddPersonalPartnerComponent { | |||||||
|                 this.loadingIdentityInfoSub = true; |                 this.loadingIdentityInfoSub = true; | ||||||
|                 this.getIdentityInfoSub = this.service.request(this.service.$api_get_identityInfo_by_mobile, { mobile }).subscribe( |                 this.getIdentityInfoSub = this.service.request(this.service.$api_get_identityInfo_by_mobile, { mobile }).subscribe( | ||||||
|                   res => { |                   res => { | ||||||
|                     if (res) { |                     if (res?.name) { | ||||||
|                       this.setInfo(res); |                       this.setInfo(res); | ||||||
|                       this.sf.setValue('/adminUserInfo/id', res.id); |                       this.sf.setValue('/adminUserInfo/id', res.id); | ||||||
|                       this.sf.setValue('/adminUserInfo/userId', res.userId); |                       this.sf.setValue('/adminUserInfo/userId', res.userId); | ||||||
| @ -289,17 +291,17 @@ export class AddPersonalPartnerComponent { | |||||||
|                 grid: { span: 6 }, |                 grid: { span: 6 }, | ||||||
|                 class: 'input-back', |                 class: 'input-back', | ||||||
|                 widget: 'checkbox', |                 widget: 'checkbox', | ||||||
|                 change: i => this.sf?.setValue('/adminUserInfo/validEndTime', null) |                 change: i => this.sf?.setValue('/adminUserInfo/validEndTime', ' ') | ||||||
|               } as SFCheckboxWidgetSchema |               } as SFCheckboxWidgetSchema | ||||||
|             } |             } | ||||||
|           }, |           }, | ||||||
|           required: ['_adminCertificatePhotoTipsA', 'adminMobile', 'name', 'certificateNumber', 'validStartTime'] |           required: ['_adminCertificatePhotoTipsA', 'adminMobile', 'name', 'certificateNumber', 'validStartTime', 'validEndTime'] | ||||||
|         }, |         }, | ||||||
|         // 所属城市 |         // 所属城市 | ||||||
|         _addressTitle: { title: '', type: 'string', ui: { widget: 'custom' } }, |         _addressTitle: { title: '', type: 'string', ui: { widget: 'custom' } }, | ||||||
|         cityCodesList: { |         cityCodesList: { | ||||||
|           type: 'string', |           type: 'string', | ||||||
|           title: '所属城市7', |           title: '所属城市', | ||||||
|           maxMultipleCount: 3, |           maxMultipleCount: 3, | ||||||
|           ui: { |           ui: { | ||||||
|             widget: 'tree-select', |             widget: 'tree-select', | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user