Commit e107e186 authored by 14699's avatar 14699

fix-20231102

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