|
|
@ -448,6 +448,7 @@ |
|
|
|
let ocr_type = 'BizLicenseOCR' |
|
|
|
console.log("clickUploadImg"); |
|
|
|
let img = await this.getLocalImg(); |
|
|
|
let img_info = await util.checkFileInfo(img) |
|
|
|
console.log("getLocalImg:", img) |
|
|
|
let img_url = await this.getUploadImgURL(img); |
|
|
|
console.log("getUploadImgURL:", img_url) |
|
|
@ -458,11 +459,13 @@ |
|
|
|
this.setOcrResult(ocr_type,ocr_res) |
|
|
|
this.submitData.business_license = img_url |
|
|
|
}, |
|
|
|
|
|
|
|
// IDCardOCR |
|
|
|
async clickUploadIDCardImg() { |
|
|
|
let ocr_type = 'IDCardOCR' |
|
|
|
console.log("clickUploadIDCardImg"); |
|
|
|
let img = await this.getLocalImg(); |
|
|
|
let img_info = await util.checkFileInfo(img) |
|
|
|
console.log("getLocalImg:", img) |
|
|
|
let img_url = await this.getUploadImgURL(img); |
|
|
|
console.log("getUploadImgURL:", img_url) |
|
|
@ -476,6 +479,7 @@ |
|
|
|
async clickUploadIDCardBackImg() { |
|
|
|
console.log("clickUploadIDCardBackImg"); |
|
|
|
let img = await this.getLocalImg(); |
|
|
|
let img_info = await util.checkFileInfo(img) |
|
|
|
console.log("getLocalImg:", img) |
|
|
|
let img_url = await this.getUploadImgURL(img); |
|
|
|
console.log("getUploadImgURL:", img_url) |
|
|
@ -554,7 +558,8 @@ |
|
|
|
this.submitData.extension.legal_person_name = res.Response.Person; |
|
|
|
this.submitData.agency_code = res.Response.RegNum; |
|
|
|
const t = this.company_types.find(item => item.label === res.Response.Type); |
|
|
|
this.submitData.extension.company_type = t.value; |
|
|
|
if(t&&t.value)this.submitData.extension.company_type = t.value; //设置企业类型 |
|
|
|
|
|
|
|
if (res.Response.Capital) { |
|
|
|
const num = res.Response.Capital.split('元')[0] |
|
|
|
this.submitData.extension.registered_capital = this.chineseToNumber(num) |
|
|
@ -574,7 +579,7 @@ |
|
|
|
this.submitData.extension.credit_end_date = `${year}-${month}-${day}` |
|
|
|
} |
|
|
|
} |
|
|
|
if(res.Response.Type){ |
|
|
|
if(res.Response.Type){//当命中微信所需企业类型时, 自动回显并填充 |
|
|
|
let _index = "" |
|
|
|
const t = this.company_types.find((item,index) => { |
|
|
|
if(item.label === res.Response.Type){ |
|
|
@ -583,9 +588,12 @@ |
|
|
|
return item |
|
|
|
} |
|
|
|
}); |
|
|
|
this.submitData.extension.company_type = t.value |
|
|
|
this.company_type_index = _index |
|
|
|
this.company_type_show = this.company_types_arr[_index] |
|
|
|
if(t&&t.value){ |
|
|
|
this.submitData.extension.company_type = t.value |
|
|
|
this.company_type_index = _index |
|
|
|
this.company_type_show = this.company_types_arr[_index] |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} else { |
|
|
|
this.submitData.extension.business_id_card = res.Response.IdNum |
|
|
|