Commit c2395584 authored by 786817560's avatar 786817560

Merge branch 'ren' into develop

parents 2405eddc f7776573
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2019-11-07 17:48:53 * @Date: 2019-11-07 17:48:53
* @LastEditTime: 2019-12-11 15:25:51 * @LastEditTime: 2019-12-16 17:31:46
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
--> -->
...@@ -650,6 +650,7 @@ export default { ...@@ -650,6 +650,7 @@ export default {
params: { params: {
bp_id: this.bp_id, bp_id: this.bp_id,
user_bp_name: this.user_bp_name, user_bp_name: this.user_bp_name,
bp_class: vm.user_bp_class,
}, },
}) })
} }
...@@ -675,6 +676,7 @@ export default { ...@@ -675,6 +676,7 @@ export default {
isAGENT: this.isAGENT, isAGENT: this.isAGENT,
status: 'APPROVED', status: 'APPROVED',
isMultiRole: this.isMultiRole, isMultiRole: this.isMultiRole,
bp_class: vm.user_bp_class,
}, },
}) })
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @Author: your name * @Author: your name
* @Date: 2019-09-24 21:29:35 * @Date: 2019-09-24 21:29:35
* @LastEditTime: 2019-12-11 19:26:10 * @LastEditTime: 2019-12-16 17:53:17
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
--> -->
<template> <template>
...@@ -180,8 +180,8 @@ export default { ...@@ -180,8 +180,8 @@ export default {
this.showModalValue = true this.showModalValue = true
}, },
sendList (a) { sendList (a) {
this.$emit('getList', a) this.sendFlag()
this.sendFlag(false) this.bank_lists = a
}, },
changeBgImg (item) { changeBgImg (item) {
if (item.bank_full_name.indexOf('农业银行') !== -1) { if (item.bank_full_name.indexOf('农业银行') !== -1) {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @Author: your name * @Author: your name
* @Date: 2019-09-19 09:31:19 * @Date: 2019-09-19 09:31:19
* @LastEditTime: 2019-12-16 16:22:55 * @LastEditTime: 2019-12-16 17:42:13
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
--> -->
<template> <template>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Description: 附件信息 * @Description: 附件信息
* @Author: your name * @Author: your name
* @Date: 2019-09-20 09:35:11 * @Date: 2019-09-20 09:35:11
* @LastEditTime: 2019-12-16 16:32:08 * @LastEditTime: 2019-12-16 17:55:43
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
--> -->
<template> <template>
...@@ -135,7 +135,7 @@ ...@@ -135,7 +135,7 @@
</item> </item>
</list-item> </list-item>
</div> </div>
<!-- 不动产 -->
<!-- <div v-if="list.cdd_item==='REAL_EST_CERTIFICATE'"> <!-- <div v-if="list.cdd_item==='REAL_EST_CERTIFICATE'">
<div v-if="!propertyImg" class="card-upload plus" @click="ocrShow(list.cdd_item, '')"> <div v-if="!propertyImg" class="card-upload plus" @click="ocrShow(list.cdd_item, '')">
<img src="@/assets/userBind/camera.png" class="upload-btn" > <img src="@/assets/userBind/camera.png" class="upload-btn" >
...@@ -250,50 +250,46 @@ ...@@ -250,50 +250,46 @@
<input <input
slot="content" slot="content"
v-model="carInfo.vehicle_identify_num" v-model="carInfo.vehicle_identify_num"
readonly
placeholder="识别行驶证自动填充" placeholder="识别行驶证自动填充"
> >
</item> </item>
<item> <item>
<div slot="name">住址</div> <div slot="name">住址</div>
<input slot="content" v-model="carInfo.address" readonly placeholder="识别行驶证自动填充" > <input slot="content" v-model="carInfo.address" placeholder="识别行驶证自动填充" >
</item> </item>
<item> <item>
<div slot="name">品牌型号</div> <div slot="name">品牌型号</div>
<input <input
slot="content" slot="content"
v-model="carInfo.brand_model_number" v-model="carInfo.brand_model_number"
readonly
placeholder="识别行驶证自动填充" placeholder="识别行驶证自动填充"
> >
</item> </item>
<item> <item>
<div slot="name">发证日期"</div> <div slot="name">发证日期"</div>
<input slot="content" v-model="carInfo.start_date" readonly placeholder="识别行驶证自动填充" > <input slot="content" v-model="carInfo.start_date" placeholder="识别行驶证自动填充" >
</item> </item>
<item> <item>
<div slot="name">车辆类型</div> <div slot="name">车辆类型</div>
<input <input
slot="content" slot="content"
v-model="carInfo.vehicle_type" v-model="carInfo.vehicle_type"
readonly
placeholder="识别行驶证自动填充" placeholder="识别行驶证自动填充"
> >
</item> </item>
<item> <item>
<div slot="name">所有人</div> <div slot="name">所有人</div>
<input slot="content" v-model="carInfo.owner" readonly placeholder="识别行驶证自动填充" > <input slot="content" v-model="carInfo.owner" placeholder="识别行驶证自动填充" >
</item> </item>
<item> <item>
<div slot="name">使用性质</div> <div slot="name">使用性质</div>
<input slot="content" v-model="carInfo.use_nature" readonly placeholder="识别行驶证自动填充" > <input slot="content" v-model="carInfo.use_nature" placeholder="识别行驶证自动填充" >
</item> </item>
<item> <item>
<div slot="name">发动机号码</div> <div slot="name">发动机号码</div>
<input <input
slot="content" slot="content"
v-model="carInfo.engine_number" v-model="carInfo.engine_number"
readonly
placeholder="识别行驶证自动填充" placeholder="识别行驶证自动填充"
> >
</item> </item>
...@@ -302,7 +298,6 @@ ...@@ -302,7 +298,6 @@
<input <input
slot="content" slot="content"
v-model="carInfo.plate_number" v-model="carInfo.plate_number"
readonly
placeholder="识别行驶证自动填充" placeholder="识别行驶证自动填充"
> >
</item> </item>
...@@ -311,7 +306,6 @@ ...@@ -311,7 +306,6 @@
<input <input
slot="content" slot="content"
v-model="carInfo.regist_date" v-model="carInfo.regist_date"
readonly
placeholder="识别行驶证自动填充" placeholder="识别行驶证自动填充"
> >
</item> </item>
...@@ -370,6 +364,7 @@ export default { ...@@ -370,6 +364,7 @@ export default {
isApproved: false, isApproved: false,
isUploadCar: false, isUploadCar: false,
isUploadHouse: false, isUploadHouse: false,
isProperty: false,
carAttachmentId: '', // 车辆证id carAttachmentId: '', // 车辆证id
houseAttachmentId: '', // 房产证id houseAttachmentId: '', // 房产证id
cddItemList: [], // 资料清单列表 cddItemList: [], // 资料清单列表
...@@ -627,6 +622,10 @@ export default { ...@@ -627,6 +622,10 @@ export default {
vm.isUploadCar = true vm.isUploadCar = true
vm.carImg = imgdata vm.carImg = imgdata
vm.carCardIdentify(imgdata) vm.carCardIdentify(imgdata)
} else if (ocrType === 'REAL_EST_CERTIFICATE') {
vm.isProperty = true
vm.propertyImg = imgdata
vm.propertyIdentify(imgdata)
} }
} }
} }
...@@ -655,6 +654,10 @@ export default { ...@@ -655,6 +654,10 @@ export default {
vm.carImg = imgUrl[0] vm.carImg = imgUrl[0]
vm.isUploadCar = true vm.isUploadCar = true
vm.carCardIdentify(imgUrl[0]) vm.carCardIdentify(imgUrl[0])
} else if (ocrType === 'REAL_EST_CERTIFICATE') {
vm.isProperty = true
vm.propertyImg = imgUrl[0]
vm.propertyIdentify(imgUrl[0])
} }
} }
} }
...@@ -708,6 +711,26 @@ export default { ...@@ -708,6 +711,26 @@ export default {
vm.carInfo.success = res.success vm.carInfo.success = res.success
}) })
}, },
// 不动产证识别
propertyIdentify (fileUrl) {
let vm = this
hlsPopup.showLoading('正在识别')
let url = process.env.ocrPath + '/baidu/ocr/houseRight'
hlsUtil.baiduOcr(fileUrl, url, function (res) {
hlsPopup.hideLoading()
let result = res.result.data
vm.propertyInfo.right_person = result.right_person.word
vm.propertyInfo.public_situation = result.public_situation.word
vm.propertyInfo.house_located = result.house_located.word
vm.propertyInfo.real_unit_number = result.real_unit_number.word
vm.propertyInfo.right_type = result.right_type.word
vm.propertyInfo.right_property = result.right_property.word
vm.propertyInfo.house_purpose = result.house_purpose.word
vm.propertyInfo.house_area = result.house_area.word
vm.propertyInfo.land_use_limit = result.land_use_limit.word
vm.propertyInfo.right_others = result.right_others.word
})
},
loadItemList () { loadItemList () {
let vm = this let vm = this
let url = process.env.basePath + 'prj_cdd_check_list' let url = process.env.basePath + 'prj_cdd_check_list'
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @Author: your name * @Author: your name
* @Date: 2019-09-20 09:35:11 * @Date: 2019-09-20 09:35:11
* @LastEditTime: 2019-12-13 11:12:08 * @LastEditTime: 2019-12-16 17:42:00
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
--> -->
<template> <template>
...@@ -215,31 +215,34 @@ export default { ...@@ -215,31 +215,34 @@ export default {
}) })
}, },
verified () { verified () {
console.log('bpid', this.$route.params.bp_id) // console.log('bpid', this.$route.params.bp_id)
this.$router.push({ // this.$router.push({
name: 'Enclosure', // name: 'Enclosure',
params: { // params: {
bp_id: this.bp_id, // bp_id: this.bp_id,
}, // },
})
// let vm = this
// let url = process.env.basePath + 'bp_invoice_save'
// let param = {
// bp_id: '',
// bp_class: '',
// ...vm.invoiceInfo,
// }
// delete param.taxpayer_type_n
// delete param.invoice_kind_n
// vm.hlsPopup.showLoading('请稍候')
// vm.hlsHttp.post(url, param).then(function (res) {
// vm.hlsPopup.hideLoading()
// if (res.result === 'S') {
// vm.$router.push({
// name: 'Enclosure',
// })
// }
// }) // })
let vm = this
let url = process.env.basePath + 'bp_invoice_save'
let param = {
bp_id: vm.bp_id,
bp_class: 'ORG',
...vm.invoiceInfo,
}
delete param.taxpayer_type_n
delete param.invoice_kind_n
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.$router.push({
name: 'Enclosure',
params: {
bp_id: vm.bp_id,
},
})
}
})
}, },
}, },
} }
......
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