Commit e107e186 authored by 14699's avatar 14699

fix-20231102

parent 6d01bd25
......@@ -146,7 +146,7 @@
<img src="@/assets/functionCenter/in@2x.png" alt="">
</div>
</div>
<!-- <div class="info-content">
<div class="info-content">
<div class="add-name">
<img src="@/assets/functionCenter/con-que@2x.png" alt="">
<div class="name-title">逾期信息查询</div>
......@@ -155,15 +155,15 @@
<img src="@/assets/functionCenter/in@2x.png" alt="">
</div>
</div>
<div class="info-content">
<div class="add-name">
<img src="@/assets/functionCenter/con-que@2x.png" alt="">
<div class="name-title">延期申请</div>
</div>
<div class="add-content" @click="goOvertimeApply">
<img src="@/assets/functionCenter/in@2x.png" alt="">
</div>
</div> -->
<!-- <div class="info-content">-->
<!-- <div class="add-name">-->
<!-- <img src="@/assets/functionCenter/con-que@2x.png" alt="">-->
<!-- <div class="name-title">延期申请</div>-->
<!-- </div>-->
<!-- <div class="add-content" @click="goOvertimeApply">-->
<!-- <img src="@/assets/functionCenter/in@2x.png" alt="">-->
<!-- </div>-->
<!-- </div>-->
</div>
</h-content>
......
......@@ -98,50 +98,135 @@ export default {
async face (item) {
let vm = this
let register = ['NP_NO', 'ORG_NO', 'ORG_L_NO', 'ORG_AUTH_NO']
if (register.includes(item.bp_identity)) {
// 人脸识别之前要确认是否已经在别的渠道已经绑定。
let res = await vm.getNpCertificationUrl(item)
if (res) {
hlsPopup.showLongCenter(item.bp_identity === 'ORG_NO' ? '请联系业务人员协助认证' : '认证已通过')
return vm.getList()
}
vm.showPopupList()
// if (register.includes(item.bp_identity)) {
// // 人脸识别之前要确认是否已经在别的渠道已经绑定。
// let res = await vm.getNpCertificationUrl(item)
// if (res) {
// hlsPopup.showLongCenter(item.bp_identity === 'ORG_NO' ? '请联系业务人员协助认证' : '认证已通过')
// return vm.getList()
// }
// // 正式进行人脸识别
// let url = process.env.basePath + 'bp_query'
// let param = { bp_id: item.bp_id }
// hlsPopup.showLoading('请稍候')
// vm.hlsHttp.post(url, param).then((result) => {
// hlsPopup.hideLoading()
// if (result.result === 'S') {
// let data = result.lists[0]
// cordova.plugins.IdCardPlugin.idCardIdentify(
// {
// idNum: data.id_card_no,
// idName: data.bp_name,
// phoneNum: window.localStorage.user_phone,
// },
// async function (suc) {
// let success = JSON.parse(suc)
// if (success.code === 1) {
// let res = await vm.getNpCertificationUrl(item)
// hlsPopup.showLongCenter(res ? '绑定成功!' : '绑定失败!')
// if (res) vm.getList()
// }
// },
// function (reason) {
// let error = JSON.parse(reason)
// vm.hlsPopup.showLongCenter('认证失败: ' + error.message)
// }
// )
// } else {
// vm.hlsPopup.showLongCenter(result.message)
// }
// })
// } else {
// hlsPopup.showLongCenter('认证已通过')
// }
},
// 正式进行人脸识别
let url = process.env.basePath + 'bp_query'
let param = { bp_id: item.bp_id }
hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then((result) => {
hlsPopup.hideLoading()
if (result.result === 'S') {
let data = result.lists[0]
cordova.plugins.IdCardPlugin.idCardIdentify(
{
idNum: data.id_card_no,
idName: data.bp_name,
phoneNum: window.localStorage.user_phone,
},
async function (suc) {
let success = JSON.parse(suc)
if (success.code === 1) {
let res = await vm.getNpCertificationUrl(item)
hlsPopup.showLongCenter(res ? '绑定成功!' : '绑定失败!')
if (res) vm.getList()
}
},
function (reason) {
let error = JSON.parse(reason)
vm.hlsPopup.showLongCenter('认证失败: ' + error.message)
}
)
} else {
vm.hlsPopup.showLongCenter(result.message)
showPopupList () {
let vm = this
let popList = [{
code: 'AUTH',
code_name: '个人实名认证/企业认证',
}, {
code: 'FORGET',
code_name: '忘记PIN码',
}, {
code: 'QUERY',
code_name: '查询认证状态',
}, {
code: 'ACTIVE',
code_name: '人工审核激活账户',
}]
vm.hlsPopup.selectList({
list: popList,
code: 'code',
object: {},
returnItem: (index, obj) => {
vm.goAuthManage(obj.code)
},
})
},
goAuthManage (code) {
if (code === 'AUTH') {
cordova.plugins.IdCardPlugin.registerNotary(
async function (suc) {
console.log(suc)
let success = JSON.parse(suc)
console.log(success)
},
function (reason) {
console.log(reason)
let error = JSON.parse(reason)
console.log(error)
},
'331081199412227815',
'毛嘉诚',
'331081199412227815',
false
)
} else if (code === 'FORGET') {
cordova.plugins.IdCardPlugin.forgetPINNotary(
async function (suc) {
console.log(suc)
let success = JSON.parse(suc)
console.log(success)
},
function (reason) {
console.log(reason)
let error = JSON.parse(reason)
console.log(error)
}
})
} else {
hlsPopup.showLongCenter('认证已通过')
)
} else if (code === 'QUERY') {
cordova.plugins.IdCardPlugin.haveUser(
async function (suc) {
console.log(suc)
let success = JSON.parse(suc)
console.log(success)
},
function (reason) {
console.log(reason)
let error = JSON.parse(reason)
console.log(error)
},
'331081199412227815'
)
} else if (code === 'ACTIVE') {
cordova.plugins.IdCardPlugin.activeUserNotary(
async function (suc) {
console.log(suc)
let success = JSON.parse(suc)
console.log(success)
},
function (reason) {
console.log(reason)
let error = JSON.parse(reason)
console.log(error)
},
'331081199412227815'
)
}
},
// 获取个人认证url
async getNpCertificationUrl (item) {
let vm = this
......@@ -254,14 +339,14 @@ export default {
// 自己添加认证文字
let register = {
NP_NO: '个人待认证',
NP_YES: '个人认证通过',
ORG_YES: '企业认证通过',
ORG_NO: '企业待认证',
ORG_L_NO: '法人待认证',
ORG_L_YES: '法人认证通过',
ORG_AUTH_NO: '授权人待认证',
ORG_AUTH_YES: '授权人认证通过',
NP_NO: '电签认证',
NP_YES: '查询认证状态',
ORG_YES: '查询认证状态',
ORG_NO: '电签认证',
ORG_L_NO: '电签认证',
ORG_L_YES: '查询认证状态',
ORG_AUTH_NO: '电签认证',
ORG_AUTH_YES: '查询认证状态',
}
query.lists = query.lists.map(item => {
......
......@@ -36,15 +36,15 @@
</div>
<div class="center">
<div><span>合同履约情况</span>
<p>{{ item.bp_name }}</p>
<p>{{ item.con_overdue_status }}</p>
</div>
<div><span>逾期租金(元)</span>
<p>{{ item.int_rate_n }}</p>
<p>{{ parseFloat(item.finance_amount).toFixed(2) | currency }}</p>
</div>
<div><span>逾期利息(元)</span>
<p>{{ item.lease_times }}</p>
<p>{{ parseFloat(item.finance_amount).toFixed(2) | currency }}</p>
</div>
<div><span>逾期天数(元)</span>
<div><span>逾期天数</span>
<p class="bold">{{ parseFloat(item.finance_amount).toFixed(2) | currency }}</p>
</div>
......
......@@ -72,7 +72,7 @@
<script>
export default {
name: 'RepayPlan',
name: 'overTimeQueryDetail',
components: {
},
data () {
......@@ -92,7 +92,7 @@ export default {
watch: {},
beforeRouteEnter (to, from, next) {
next(vm => {
if (from.name === 'RepayDetail') {
if (from.name === 'overTimeQueryDetail') {
vm.repayPlan()
}
})
......@@ -134,7 +134,7 @@ export default {
},
repayPlan () {
let vm = this
let url = $config.basePath + 'con_equip_cashflow_query'
let url = $config.basePath + 'app_financial_repayment_plan'
let param = {
contract_id: vm.$route.params.contract_id,
}
......
......@@ -160,6 +160,7 @@ const customerAccessDetail = resolve => require.ensure([], () => { resolve(requi
// 逾期查询
const overTimeQueryList = resolve => require.ensure([], () => { resolve(require('@/pages/overTimeQuery/list')) }, 'overTimeQuery')
const overTimeQueryDetail = resolve => require.ensure([], () => { resolve(require('@/pages/overTimeQuery/detail')) }, 'overTimeQuery')
const overTimeQueryPlans = resolve => require.ensure([], () => { resolve(require('@/pages/overTimeQuery/plans')) }, 'overTimeQueryPlans')
const overTimeApplyList = resolve => require.ensure([], () => { resolve(require('@/pages/overTimeApply/list')) }, 'overTimeApply')
const overTimeApplyDetail = resolve => require.ensure([], () => { resolve(require('@/pages/overTimeApply/detail')) }, 'overTimeApply')
......@@ -403,6 +404,12 @@ export default new Router({
path: '/over-time-query-detail',
component: overTimeQueryDetail,
name: 'overTimeQueryDetail',
meta: { keepAlive: true },
},
{
path: '/over-time-query-plans',
component: overTimeQueryPlans,
name: 'overTimeQueryPlans',
meta: { keepAlive: false },
},
{
......
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