Commit 90d121d8 authored by 786817560's avatar 786817560

'12/13'

parent 52f2db65
<!--
* @Author: your name
* @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
* @Description: In User Settings Edit
-->
......@@ -26,7 +26,7 @@
</div>
</h-header>
<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
class="myModal"
>
......@@ -336,6 +336,7 @@ export default {
tabNum: null,
bp_name: '',
showModalValue: false,
credit_status: '', // 一个月内是否查过征信
guarantorInfo: [], // 担保人信息
bp_class: this.$route.params.item.bp_class, // 承租人性质(自然人,企业)
info: {}, // 租赁信息
......@@ -391,6 +392,7 @@ export default {
vm.bank_flag = false
vm.isConfirm = false
vm.ischecked = false
vm.credit_status = ''
vm.showModalValue = false
vm.tabNum = vm.$route.params.num
vm.confirm_note = '' // 审批意见
......@@ -428,6 +430,25 @@ export default {
}
},
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 () { // 活体检测
this.$router.push({
name: 'BodyCheck',
......@@ -718,6 +739,7 @@ export default {
if (res.info.auth_flag) {
window.localStorage.setItem('auth_flag', res.info.auth_flag)
}
vm.creditCheck()
}
})
},
......
......@@ -2,7 +2,7 @@
* @Description: In User Settings Edit
* @Author: your name
* @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
-->
<template>
......@@ -721,15 +721,6 @@ export default {
verified () {
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) { // 已授权
this.baseInfo.auth_flag = 'Y'
this.lastInfo = {...this.baseInfo, ...this.legal_personMsg, ...this.authMsg}
......@@ -953,6 +944,14 @@ export default {
if (res.result === 'S') {
// vm.hlsPopup.showSuccess('保存成功,请去维护附件信息')
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()
} else {
......
......@@ -2,7 +2,7 @@
* @Description: 附件信息
* @Author: your name
* @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
-->
<template>
......@@ -38,7 +38,6 @@
<input
slot="content"
v-model="hauseInfo.house_owner"
readonly
placeholder="识别房产证自动填充"
>
</item>
......@@ -47,7 +46,6 @@
<input
slot="content"
v-model="hauseInfo.public_situation"
readonly
placeholder="识别房产证自动填充"
>
</item>
......@@ -56,7 +54,6 @@
<input
slot="content"
v-model="hauseInfo.house_located"
readonly
placeholder="识别房产证自动填充"
>
</item>
......@@ -65,7 +62,6 @@
<input
slot="content"
v-model="hauseInfo.regist_date"
readonly
placeholder="识别房产证自动填充"
>
</item>
......@@ -74,7 +70,6 @@
<input
slot="content"
v-model="hauseInfo.house_property"
readonly
placeholder="识别房产证自动填充"
>
</item>
......@@ -83,7 +78,6 @@
<input
slot="content"
v-model="hauseInfo.plan_purpose"
readonly
placeholder="识别房产证自动填充"
>
</item>
......@@ -92,7 +86,6 @@
<input
slot="content"
v-model="hauseInfo.house_layers"
readonly
placeholder="识别房产证自动填充"
>
</item>
......@@ -101,7 +94,6 @@
<input
slot="content"
v-model="hauseInfo.built_area"
readonly
placeholder="识别房产证自动填充"
>
</item>
......@@ -110,20 +102,18 @@
<input
slot="content"
v-model="hauseInfo.built_in_area"
readonly
placeholder="识别房产证自动填充"
>
</item>
<item>
<div slot="name">其他</div>
<input slot="content" v-model="hauseInfo.others" readonly placeholder="识别房产证自动填充" >
<input slot="content" v-model="hauseInfo.others" placeholder="识别房产证自动填充" >
</item>
<item>
<div slot="name">地号</div>
<input
slot="content"
v-model="hauseInfo.land_number"
readonly
placeholder="识别房产证自动填充"
>
</item>
......@@ -132,7 +122,6 @@
<input
slot="content"
v-model="hauseInfo.land_get_method"
readonly
placeholder="识别房产证自动填充"
>
</item>
......@@ -141,7 +130,6 @@
<input
slot="content"
v-model="hauseInfo.land_use_limit"
readonly
placeholder="识别房产证自动填充"
>
</item>
......@@ -405,9 +393,9 @@ export default {
let param = {
master: vm.hauseInfo,
}
hlsPopup.showLoading('请稍候')
// hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
// vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.saveCarInfo()
} else {
......@@ -526,10 +514,49 @@ export default {
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 () {
let vm = this
......@@ -550,7 +577,7 @@ export default {
case 'HOUSE_CARD': // 房产证
vm.house_id = item.check_id
break
case 'CAR_CARD': // 承租人身份证背面
case 'CAR_CARD': // 行驶证
vm.car_id = item.check_id
break
default:
......@@ -594,9 +621,7 @@ export default {
break
default:
vm.dowload_list.push(res.lists)
console.log('dowload_listbbbbbbbbbbbb', vm.dowload_list)
}
console.log('res.lists', res.lists)
} else {
hlsPopup.showLongCenter(res.message)
}
......
......@@ -2,7 +2,7 @@
* @Description: In User Settings Edit
* @Author: your name
* @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
-->
<template>
......@@ -90,7 +90,7 @@ export default {
taxpayerList: [],
invoice_kind_n: '',
invoiceInfo: {
invoice_kind: 1,
invoice_kind: '',
invoice_kind_n: '',
taxpayer_type: '',
invoice_title: '',
......@@ -131,7 +131,9 @@ export default {
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
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 {
}
})
},
selectInvoiceType (e) {
selectTaxpayer (e) {
let vm = this
console.log('vm.taxpayerList', vm.taxpayerList)
vm.hlsPopup.selectList({
list: vm.invoicList,
list: vm.taxpayerList,
code: 'bp_type',
object: {},
returnItem: function (index, obj) {
vm.invoiceInfo.invoice_kind = obj.bp_type
vm.invoiceInfo.invoice_kind_n = obj.bp_type_n
vm.invoiceInfo.taxpayer_type = obj.bp_type
vm.invoiceInfo.taxpayer_type_n = obj.bp_type_n
console.log('obj', vm.invoiceInfo)
},
})
},
selectTaxpayer (e) {
selectInvoiceType (e) {
let vm = this
vm.hlsPopup.selectList({
list: vm.taxpayerList,
list: vm.invoicList,
code: 'bp_type',
object: {},
returnItem: function (index, obj) {
vm.invoiceInfo.taxpayer_type = obj.bp_type
vm.invoiceInfo.taxpayer_type_n = obj.bp_type_n
vm.invoiceInfo.invoice_kind = obj.bp_type
vm.invoiceInfo.invoice_kind_n = obj.bp_type_n
},
})
},
......
......@@ -10,7 +10,7 @@
<div class="info">
<div class="info-icon">
<img src="@/assets/userBind/info.png" >
<span @click="goEnterprise">温馨提示</span>
<span>温馨提示</span>
</div>
<p>绑定成功后,您即可使用APP中合同查询、还款查询等功能。</p>
</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