Commit 90d121d8 authored by 786817560's avatar 786817560

'12/13'

parent 52f2db65
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2019-09-29 10:02:11 * @Date: 2019-09-29 10:02:11
* @LastEditTime: 2019-12-11 13:49:08 * @LastEditTime: 2019-12-13 10:48:23
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
--> -->
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</div> </div>
</h-header> </h-header>
<div <div
v-if="!isConfirm&&con_confirm_status!=='APPROVED'&&auth_credit_flag!=='Y'" v-if="!isConfirm && con_confirm_status !== 'APPROVED' && auth_credit_flag !=='Y' && credit_status !== 'N'"
v-once v-once
class="myModal" class="myModal"
> >
...@@ -336,6 +336,7 @@ export default { ...@@ -336,6 +336,7 @@ export default {
tabNum: null, tabNum: null,
bp_name: '', bp_name: '',
showModalValue: false, showModalValue: false,
credit_status: '', // 一个月内是否查过征信
guarantorInfo: [], // 担保人信息 guarantorInfo: [], // 担保人信息
bp_class: this.$route.params.item.bp_class, // 承租人性质(自然人,企业) bp_class: this.$route.params.item.bp_class, // 承租人性质(自然人,企业)
info: {}, // 租赁信息 info: {}, // 租赁信息
...@@ -391,6 +392,7 @@ export default { ...@@ -391,6 +392,7 @@ export default {
vm.bank_flag = false vm.bank_flag = false
vm.isConfirm = false vm.isConfirm = false
vm.ischecked = false vm.ischecked = false
vm.credit_status = ''
vm.showModalValue = false vm.showModalValue = false
vm.tabNum = vm.$route.params.num vm.tabNum = vm.$route.params.num
vm.confirm_note = '' // 审批意见 vm.confirm_note = '' // 审批意见
...@@ -428,6 +430,25 @@ export default { ...@@ -428,6 +430,25 @@ export default {
} }
}, },
methods: { methods: {
// 征信查询
creditCheck () {
let vm = this
let url = process.env.basePath + 'bp_credit_check'
let param = {
bp_class: vm.baseInfo.bp_class,
bp_id: vm.baseInfo.bp_id,
}
vm.hlsPopup.showLoading('提交数据中!')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
console.log('征信查询', res)
if (res.result === 'S') {
vm.credit_status = res.info.credit_status // N查过征信, Y未查过
} else {
vm.hlsPopup.showLongCenter(res.info.msg)
}
})
},
goBodyCheck () { // 活体检测 goBodyCheck () { // 活体检测
this.$router.push({ this.$router.push({
name: 'BodyCheck', name: 'BodyCheck',
...@@ -718,6 +739,7 @@ export default { ...@@ -718,6 +739,7 @@ export default {
if (res.info.auth_flag) { if (res.info.auth_flag) {
window.localStorage.setItem('auth_flag', res.info.auth_flag) window.localStorage.setItem('auth_flag', res.info.auth_flag)
} }
vm.creditCheck()
} }
}) })
}, },
......
...@@ -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-12 09:14:40 * @LastEditTime: 2019-12-13 10:53:10
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
--> -->
<template> <template>
...@@ -721,15 +721,6 @@ export default { ...@@ -721,15 +721,6 @@ export default {
verified () { verified () {
window.localStorage.setItem('authFlag', this.flag) window.localStorage.setItem('authFlag', this.flag)
this.$router.push({
name: 'Invoice',
params: {
bp_id: this.bp_id,
organization_code: this.baseInfo.organization_code,
from: this.from,
},
})
if (!this.flag) { // 已授权 if (!this.flag) { // 已授权
this.baseInfo.auth_flag = 'Y' this.baseInfo.auth_flag = 'Y'
this.lastInfo = {...this.baseInfo, ...this.legal_personMsg, ...this.authMsg} this.lastInfo = {...this.baseInfo, ...this.legal_personMsg, ...this.authMsg}
...@@ -953,6 +944,14 @@ export default { ...@@ -953,6 +944,14 @@ export default {
if (res.result === 'S') { if (res.result === 'S') {
// vm.hlsPopup.showSuccess('保存成功,请去维护附件信息') // vm.hlsPopup.showSuccess('保存成功,请去维护附件信息')
vm.bp_id = res.bp_id vm.bp_id = res.bp_id
vm.$router.push({
name: 'Invoice',
params: {
bp_id: vm.bp_id,
organization_code: vm.baseInfo.organization_code,
from: vm.from,
},
})
// 查询资料清单 // 查询资料清单
vm.loadItemList() vm.loadItemList()
} else { } else {
......
...@@ -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-12 19:58:04 * @LastEditTime: 2019-12-13 16:15:32
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
--> -->
<template> <template>
...@@ -38,7 +38,6 @@ ...@@ -38,7 +38,6 @@
<input <input
slot="content" slot="content"
v-model="hauseInfo.house_owner" v-model="hauseInfo.house_owner"
readonly
placeholder="识别房产证自动填充" placeholder="识别房产证自动填充"
> >
</item> </item>
...@@ -47,7 +46,6 @@ ...@@ -47,7 +46,6 @@
<input <input
slot="content" slot="content"
v-model="hauseInfo.public_situation" v-model="hauseInfo.public_situation"
readonly
placeholder="识别房产证自动填充" placeholder="识别房产证自动填充"
> >
</item> </item>
...@@ -56,7 +54,6 @@ ...@@ -56,7 +54,6 @@
<input <input
slot="content" slot="content"
v-model="hauseInfo.house_located" v-model="hauseInfo.house_located"
readonly
placeholder="识别房产证自动填充" placeholder="识别房产证自动填充"
> >
</item> </item>
...@@ -65,7 +62,6 @@ ...@@ -65,7 +62,6 @@
<input <input
slot="content" slot="content"
v-model="hauseInfo.regist_date" v-model="hauseInfo.regist_date"
readonly
placeholder="识别房产证自动填充" placeholder="识别房产证自动填充"
> >
</item> </item>
...@@ -74,7 +70,6 @@ ...@@ -74,7 +70,6 @@
<input <input
slot="content" slot="content"
v-model="hauseInfo.house_property" v-model="hauseInfo.house_property"
readonly
placeholder="识别房产证自动填充" placeholder="识别房产证自动填充"
> >
</item> </item>
...@@ -83,7 +78,6 @@ ...@@ -83,7 +78,6 @@
<input <input
slot="content" slot="content"
v-model="hauseInfo.plan_purpose" v-model="hauseInfo.plan_purpose"
readonly
placeholder="识别房产证自动填充" placeholder="识别房产证自动填充"
> >
</item> </item>
...@@ -92,7 +86,6 @@ ...@@ -92,7 +86,6 @@
<input <input
slot="content" slot="content"
v-model="hauseInfo.house_layers" v-model="hauseInfo.house_layers"
readonly
placeholder="识别房产证自动填充" placeholder="识别房产证自动填充"
> >
</item> </item>
...@@ -101,7 +94,6 @@ ...@@ -101,7 +94,6 @@
<input <input
slot="content" slot="content"
v-model="hauseInfo.built_area" v-model="hauseInfo.built_area"
readonly
placeholder="识别房产证自动填充" placeholder="识别房产证自动填充"
> >
</item> </item>
...@@ -110,20 +102,18 @@ ...@@ -110,20 +102,18 @@
<input <input
slot="content" slot="content"
v-model="hauseInfo.built_in_area" v-model="hauseInfo.built_in_area"
readonly
placeholder="识别房产证自动填充" placeholder="识别房产证自动填充"
> >
</item> </item>
<item> <item>
<div slot="name">其他</div> <div slot="name">其他</div>
<input slot="content" v-model="hauseInfo.others" readonly placeholder="识别房产证自动填充" > <input slot="content" v-model="hauseInfo.others" placeholder="识别房产证自动填充" >
</item> </item>
<item> <item>
<div slot="name">地号</div> <div slot="name">地号</div>
<input <input
slot="content" slot="content"
v-model="hauseInfo.land_number" v-model="hauseInfo.land_number"
readonly
placeholder="识别房产证自动填充" placeholder="识别房产证自动填充"
> >
</item> </item>
...@@ -132,7 +122,6 @@ ...@@ -132,7 +122,6 @@
<input <input
slot="content" slot="content"
v-model="hauseInfo.land_get_method" v-model="hauseInfo.land_get_method"
readonly
placeholder="识别房产证自动填充" placeholder="识别房产证自动填充"
> >
</item> </item>
...@@ -141,7 +130,6 @@ ...@@ -141,7 +130,6 @@
<input <input
slot="content" slot="content"
v-model="hauseInfo.land_use_limit" v-model="hauseInfo.land_use_limit"
readonly
placeholder="识别房产证自动填充" placeholder="识别房产证自动填充"
> >
</item> </item>
...@@ -405,9 +393,9 @@ export default { ...@@ -405,9 +393,9 @@ export default {
let param = { let param = {
master: vm.hauseInfo, master: vm.hauseInfo,
} }
hlsPopup.showLoading('请稍候') // hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() // vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
vm.saveCarInfo() vm.saveCarInfo()
} else { } else {
...@@ -526,10 +514,49 @@ export default { ...@@ -526,10 +514,49 @@ export default {
vm.hlsUtil.takePicture(cameraoptions, success, error) vm.hlsUtil.takePicture(cameraoptions, success, error)
}, },
// 房产证识别 // 房产证识别
houseCardIdentify () {}, houseCardIdentify (fileUrl) {
let vm = this
hlsPopup.showLoading('正在识别')
let url = process.env.ocrPath + '/baidu/ocr/house'
hlsUtil.baiduOcr(fileUrl, url, function (res) {
hlsPopup.hideLoading()
let result = res.result.data
vm.hauseInfo.house_owner = result.house_owner.word
vm.hauseInfo.public_situation = result.public_situation.word
vm.hauseInfo.house_located = result.house_located.word
vm.hauseInfo.regist_date = result.regist_date.word
vm.hauseInfo.house_property = result.house_property.word
vm.hauseInfo.plan_purpose = result.plan_purpose.word
vm.hauseInfo.house_layers = result.house_layers.word
vm.hauseInfo.built_area = result.built_area.word
vm.hauseInfo.built_in_area = result.built_in_area.word
vm.hauseInfo.others = result.others.word
vm.hauseInfo.land_number = result.land_number.word
vm.hauseInfo.land_get_method = result.land_get_method.word
vm.hauseInfo.land_use_limit = result.land_use_limit.word
})
},
// 行驶证识别 // 行驶证识别
carCardIdentify () { carCardIdentify (fileUrl) {
let vm = this
hlsPopup.showLoading('正在识别')
let url = process.env.ocrPath + '/baidu/ocr/vehicleLicense'
hlsUtil.baiduOcr(fileUrl, url, function (res) {
hlsPopup.hideLoading()
let result = res.result.words_result
vm.carInfo.vehicle_identify_num = result.车辆识别代号.words
vm.carInfo.address = result.住址.words
vm.carInfo.brand_model_number = result.品牌型号.words
vm.carInfo.start_date = result.发证日期.words
vm.carInfo.vehicle_type = result.车辆类型.words
vm.carInfo.owner = result.所有人.words
vm.carInfo.use_nature = result.使用性质.words
vm.carInfo.engine_number = result.发动机号码.words
vm.carInfo.plate_number = result.号牌号码.words
vm.carInfo.regist_date = result.注册日期.words
vm.carInfo.words_result_num = res.result.words_result_num
vm.carInfo.success = res.success
})
}, },
loadItemList () { loadItemList () {
let vm = this let vm = this
...@@ -550,7 +577,7 @@ export default { ...@@ -550,7 +577,7 @@ export default {
case 'HOUSE_CARD': // 房产证 case 'HOUSE_CARD': // 房产证
vm.house_id = item.check_id vm.house_id = item.check_id
break break
case 'CAR_CARD': // 承租人身份证背面 case 'CAR_CARD': // 行驶证
vm.car_id = item.check_id vm.car_id = item.check_id
break break
default: default:
...@@ -594,9 +621,7 @@ export default { ...@@ -594,9 +621,7 @@ export default {
break break
default: default:
vm.dowload_list.push(res.lists) vm.dowload_list.push(res.lists)
console.log('dowload_listbbbbbbbbbbbb', vm.dowload_list)
} }
console.log('res.lists', res.lists)
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
......
...@@ -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-11 19:17:05 * @LastEditTime: 2019-12-13 11:12:08
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
--> -->
<template> <template>
...@@ -90,7 +90,7 @@ export default { ...@@ -90,7 +90,7 @@ export default {
taxpayerList: [], taxpayerList: [],
invoice_kind_n: '', invoice_kind_n: '',
invoiceInfo: { invoiceInfo: {
invoice_kind: 1, invoice_kind: '',
invoice_kind_n: '', invoice_kind_n: '',
taxpayer_type: '', taxpayer_type: '',
invoice_title: '', invoice_title: '',
...@@ -131,7 +131,9 @@ export default { ...@@ -131,7 +131,9 @@ export default {
vm.hlsHttp.post(url, param).then(function (res) { vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
vm.invoiceInfo = res.info console.log('invoiceInfo', res.info)
// vm.invoiceInfo = res.info
Object.assign(vm.invoiceInfo, res.info)
} }
}) })
}, },
...@@ -186,27 +188,29 @@ export default { ...@@ -186,27 +188,29 @@ export default {
} }
}) })
}, },
selectInvoiceType (e) { selectTaxpayer (e) {
let vm = this let vm = this
console.log('vm.taxpayerList', vm.taxpayerList)
vm.hlsPopup.selectList({ vm.hlsPopup.selectList({
list: vm.invoicList, list: vm.taxpayerList,
code: 'bp_type', code: 'bp_type',
object: {}, object: {},
returnItem: function (index, obj) { returnItem: function (index, obj) {
vm.invoiceInfo.invoice_kind = obj.bp_type vm.invoiceInfo.taxpayer_type = obj.bp_type
vm.invoiceInfo.invoice_kind_n = obj.bp_type_n vm.invoiceInfo.taxpayer_type_n = obj.bp_type_n
console.log('obj', vm.invoiceInfo)
}, },
}) })
}, },
selectTaxpayer (e) { selectInvoiceType (e) {
let vm = this let vm = this
vm.hlsPopup.selectList({ vm.hlsPopup.selectList({
list: vm.taxpayerList, list: vm.invoicList,
code: 'bp_type', code: 'bp_type',
object: {}, object: {},
returnItem: function (index, obj) { returnItem: function (index, obj) {
vm.invoiceInfo.taxpayer_type = obj.bp_type vm.invoiceInfo.invoice_kind = obj.bp_type
vm.invoiceInfo.taxpayer_type_n = obj.bp_type_n vm.invoiceInfo.invoice_kind_n = obj.bp_type_n
}, },
}) })
}, },
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<div class="info"> <div class="info">
<div class="info-icon"> <div class="info-icon">
<img src="@/assets/userBind/info.png" > <img src="@/assets/userBind/info.png" >
<span @click="goEnterprise">温馨提示</span> <span>温馨提示</span>
</div> </div>
<p>绑定成功后,您即可使用APP中合同查询、还款查询等功能。</p> <p>绑定成功后,您即可使用APP中合同查询、还款查询等功能。</p>
</div> </div>
......
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