Commit 984df504 authored by 郑娟's avatar 郑娟

Merge remote-tracking branch 'origin/dev20230131_android' into dev20230131_ios

parents 36b9e6b7 93720f1d
...@@ -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
...@@ -912,6 +915,7 @@ export default { ...@@ -912,6 +915,7 @@ export default {
vm.hauseInfo[index].land_number = result.land_number.word vm.hauseInfo[index].land_number = result.land_number.word
vm.hauseInfo[index].land_get_method = result.land_get_method.word vm.hauseInfo[index].land_get_method = result.land_get_method.word
vm.hauseInfo[index].land_use_limit = result.land_use_limit.word vm.hauseInfo[index].land_use_limit = result.land_use_limit.word
vm.$forceUpdate()
}) })
}, },
carIdentify (fileUrl, index) { carIdentify (fileUrl, index) {
...@@ -920,6 +924,9 @@ export default { ...@@ -920,6 +924,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
...@@ -932,6 +939,7 @@ export default { ...@@ -932,6 +939,7 @@ export default {
vm.carInfo[index].regist_date = result.注册日期.words vm.carInfo[index].regist_date = result.注册日期.words
vm.carInfo[index].plate_number = result.号牌号码.words vm.carInfo[index].plate_number = result.号牌号码.words
vm.carInfo[index].success = res.success vm.carInfo[index].success = res.success
vm.$forceUpdate()
}) })
}, },
estateIdentify (fileUrl, index) { estateIdentify (fileUrl, index) {
...@@ -940,6 +948,9 @@ export default { ...@@ -940,6 +948,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
...@@ -951,6 +962,7 @@ export default { ...@@ -951,6 +962,7 @@ export default {
vm.propertyInfo[index].house_area = result.house_area.word vm.propertyInfo[index].house_area = result.house_area.word
vm.propertyInfo[index].land_use_limit = result.land_use_limit.word vm.propertyInfo[index].land_use_limit = result.land_use_limit.word
vm.propertyInfo[index].right_others = result.right_others.word vm.propertyInfo[index].right_others = result.right_others.word
vm.$forceUpdate()
}) })
}, },
takePicture (ocrType, type, index) { takePicture (ocrType, type, index) {
......
...@@ -15,9 +15,10 @@ ...@@ -15,9 +15,10 @@
</h-header> </h-header>
<h-content> <h-content>
<div v-for="(list, index) in cddItemList" :key="index" class="card2"> <div v-for="(list, index) in cddItemList" :key="index" class="card2">
<div style="display:flex"> <div style="display:flex;position:relative">
<span class="descript-color">{{ list.description }}</span> <span class="descript-color">{{ list.description }}</span>
<span @click="addFile(list.cdd_item)">添加</span> <Icon v-if="['HOUSE_CARD','CAR_CARD','REAL_EST_CERTIFICATE'].indexOf(list.cdd_item) !==-1" style="position: absolute;right: 45px;top: 5px;" name="add-o" size="20px" color="blue" @click="addFile(list.cdd_item)" />
<!-- <Icon name="add-o" size="0.4rem" color="blue" @click="addFile(list.cdd_item)" style="margin-left: 20px;line-height: 0.36rem;padding-top: 0.12rem"/> -->
</div> </div>
<div class="img-content"> <div class="img-content">
<!-- 房产 --> <!-- 房产 -->
...@@ -391,13 +392,14 @@ ...@@ -391,13 +392,14 @@
</h-view> </h-view>
</template> </template>
<script> <script>
import { Collapse, CollapseItem } from 'vant' import { Collapse, CollapseItem, Icon } from 'vant'
import 'vant/lib/collapse/style' import 'vant/lib/collapse/style'
import 'vant/lib/collapse-item/style' import 'vant/lib/collapse-item/style'
import 'vant/lib/icon/style'
export default { export default {
components: { components: {
Collapse, CollapseItem}, Collapse, CollapseItem, Icon},
data () { data () {
return { return {
activeNames_h: [0], activeNames_h: [0],
...@@ -1042,6 +1044,9 @@ export default { ...@@ -1042,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
...@@ -1056,6 +1061,7 @@ export default { ...@@ -1056,6 +1061,7 @@ export default {
vm.hauseInfo[index].land_number = result.land_number.word vm.hauseInfo[index].land_number = result.land_number.word
vm.hauseInfo[index].land_get_method = result.land_get_method.word vm.hauseInfo[index].land_get_method = result.land_get_method.word
vm.hauseInfo[index].land_use_limit = result.land_use_limit.word vm.hauseInfo[index].land_use_limit = result.land_use_limit.word
vm.$forceUpdate()
}) })
}, },
// 行驶证识别 // 行驶证识别
...@@ -1065,6 +1071,9 @@ export default { ...@@ -1065,6 +1071,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
...@@ -1078,6 +1087,7 @@ export default { ...@@ -1078,6 +1087,7 @@ export default {
vm.carInfo[index].regist_date = result.注册日期.words vm.carInfo[index].regist_date = result.注册日期.words
vm.carInfo[index].words_result_num = res.result.words_result_num vm.carInfo[index].words_result_num = res.result.words_result_num
vm.carInfo[index].success = res.success vm.carInfo[index].success = res.success
vm.$forceUpdate()
}) })
}, },
// 不动产证识别 // 不动产证识别
...@@ -1087,6 +1097,9 @@ export default { ...@@ -1087,6 +1097,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
...@@ -1098,6 +1111,7 @@ export default { ...@@ -1098,6 +1111,7 @@ export default {
vm.propertyInfo[index].house_area = result.house_area.word vm.propertyInfo[index].house_area = result.house_area.word
vm.propertyInfo[index].land_use_limit = result.land_use_limit.word vm.propertyInfo[index].land_use_limit = result.land_use_limit.word
vm.propertyInfo[index].right_others = result.right_others.word vm.propertyInfo[index].right_others = result.right_others.word
vm.$forceUpdate()
}) })
}, },
loadItemList (flag) { loadItemList (flag) {
......
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