Commit 0b0f088b authored by 郑娟's avatar 郑娟

附件清单OCR识别错误增加提示

parent 4b76ae84
...@@ -11,5 +11,5 @@ module.exports = { ...@@ -11,5 +11,5 @@ module.exports = {
ocrPath:'"http://180.104.121.66:8088/r/api"', ocrPath:'"http://180.104.121.66:8088/r/api"',
fileUploadSvcPath:'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="', fileUploadSvcPath:'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="',
appId: '"com.xcmg.app.dev"', appId: '"com.xcmg.app.dev"',
currentVersion: '"4.1.7"' currentVersion: '"4.1.9"'
} }
...@@ -898,6 +898,9 @@ export default { ...@@ -898,6 +898,9 @@ export default {
let url = process.env.ocrPath + '/baidu/ocr/house' let url = process.env.ocrPath + '/baidu/ocr/house'
hlsUtil.baiduOcr(fileUrl, url, function (res) { hlsUtil.baiduOcr(fileUrl, url, function (res) {
hlsPopup.hideLoading() hlsPopup.hideLoading()
if (res.result.error_msg) {
hlsPopup.showLongCenter(res.result.error_msg)
}
let result = res.result.data let result = res.result.data
vm.hauseInfo[index].house_owner = result.house_owner.word vm.hauseInfo[index].house_owner = result.house_owner.word
vm.hauseInfo[index].public_situation = result.public_situation.word vm.hauseInfo[index].public_situation = result.public_situation.word
...@@ -920,6 +923,9 @@ export default { ...@@ -920,6 +923,9 @@ export default {
let url = process.env.ocrPath + '/baidu/ocr/vehicleLicense' let url = process.env.ocrPath + '/baidu/ocr/vehicleLicense'
hlsUtil.baiduOcr(fileUrl, url, function (res) { hlsUtil.baiduOcr(fileUrl, url, function (res) {
hlsPopup.hideLoading() hlsPopup.hideLoading()
if (res.result.error_msg) {
hlsPopup.showLongCenter(res.result.error_msg)
}
let result = res.result.words_result let result = res.result.words_result
vm.carInfo[index].vehicle_identify_num = result.车辆识别代号.words vm.carInfo[index].vehicle_identify_num = result.车辆识别代号.words
vm.carInfo[index].address = result.住址.words vm.carInfo[index].address = result.住址.words
...@@ -940,6 +946,9 @@ export default { ...@@ -940,6 +946,9 @@ export default {
let url = process.env.ocrPath + '/baidu/ocr/houseRight' let url = process.env.ocrPath + '/baidu/ocr/houseRight'
hlsUtil.baiduOcr(fileUrl, url, function (res) { hlsUtil.baiduOcr(fileUrl, url, function (res) {
hlsPopup.hideLoading() hlsPopup.hideLoading()
if (res.result.error_msg) {
hlsPopup.showLongCenter(res.result.error_msg)
}
let result = res.result.data let result = res.result.data
vm.propertyInfo[index].right_person = result.right_person.word vm.propertyInfo[index].right_person = result.right_person.word
vm.propertyInfo[index].public_situation = result.public_situation.word vm.propertyInfo[index].public_situation = result.public_situation.word
......
...@@ -1044,6 +1044,9 @@ export default { ...@@ -1044,6 +1044,9 @@ export default {
let url = process.env.ocrPath + '/baidu/ocr/house' let url = process.env.ocrPath + '/baidu/ocr/house'
hlsUtil.baiduOcr(fileUrl, url, function (res) { hlsUtil.baiduOcr(fileUrl, url, function (res) {
hlsPopup.hideLoading() hlsPopup.hideLoading()
if (res.result.error_msg) {
hlsPopup.showLongCenter(res.result.error_msg)
}
let result = res.result.data let result = res.result.data
vm.hauseInfo[index].house_owner = result.house_owner.word vm.hauseInfo[index].house_owner = result.house_owner.word
vm.hauseInfo[index].public_situation = result.public_situation.word vm.hauseInfo[index].public_situation = result.public_situation.word
...@@ -1067,6 +1070,9 @@ export default { ...@@ -1067,6 +1070,9 @@ export default {
let url = process.env.ocrPath + '/baidu/ocr/vehicleLicense' let url = process.env.ocrPath + '/baidu/ocr/vehicleLicense'
hlsUtil.baiduOcr(fileUrl, url, function (res) { hlsUtil.baiduOcr(fileUrl, url, function (res) {
hlsPopup.hideLoading() hlsPopup.hideLoading()
if (res.result.error_msg) {
hlsPopup.showLongCenter(res.result.error_msg)
}
let result = res.result.words_result let result = res.result.words_result
vm.carInfo[index].vehicle_identify_num = result.车辆识别代号.words vm.carInfo[index].vehicle_identify_num = result.车辆识别代号.words
vm.carInfo[index].address = result.住址.words vm.carInfo[index].address = result.住址.words
...@@ -1089,6 +1095,9 @@ export default { ...@@ -1089,6 +1095,9 @@ export default {
let url = process.env.ocrPath + '/baidu/ocr/houseRight' let url = process.env.ocrPath + '/baidu/ocr/houseRight'
hlsUtil.baiduOcr(fileUrl, url, function (res) { hlsUtil.baiduOcr(fileUrl, url, function (res) {
hlsPopup.hideLoading() hlsPopup.hideLoading()
if (res.result.error_msg) {
hlsPopup.showLongCenter(res.result.error_msg)
}
let result = res.result.data let result = res.result.data
vm.propertyInfo[index].right_person = result.right_person.word vm.propertyInfo[index].right_person = result.right_person.word
vm.propertyInfo[index].public_situation = result.public_situation.word vm.propertyInfo[index].public_situation = result.public_situation.word
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment