Commit da215ce0 authored by caimeng's avatar caimeng

7月20日发布打包上线

1. 审批打开新页面
2. 通讯录不用弹框,用页面打开
3. 添加是否首次授信字段
parent 28ebbfd4
...@@ -337,7 +337,9 @@ ...@@ -337,7 +337,9 @@
}) })
}, },
onBack() { onBack() {
this.$router.back() //this.$router.back()
window.close()
} }
} }
......
...@@ -46,7 +46,8 @@ ...@@ -46,7 +46,8 @@
<el-descriptions-item label-class-name='labelCls' label='客户GPS'>{{ baseInfo.lat }},{{ baseInfo.lng }} <el-descriptions-item label-class-name='labelCls' label='客户GPS'>{{ baseInfo.lat }},{{ baseInfo.lng }}
</el-descriptions-item> </el-descriptions-item>
<!--<el-descriptions-item label-class-name='labelCls' label='首次授信'>{{baseInfo.isFirstCredit}}</el-descriptions-item>--> <el-descriptions-item label-class-name='labelCls' label='首次授信'>{{ baseInfo.isFirstCredit ? '是' : '否' }}
</el-descriptions-item>
<el-descriptions-item label-class-name='labelCls' label='BD用户名'>{{ baseInfo.loginName }}</el-descriptions-item> <el-descriptions-item label-class-name='labelCls' label='BD用户名'>{{ baseInfo.loginName }}</el-descriptions-item>
<el-descriptions-item label-class-name='labelCls' label='办单模式'>{{ baseInfo.orderProcessingMode }} <el-descriptions-item label-class-name='labelCls' label='办单模式'>{{ baseInfo.orderProcessingMode }}
</el-descriptions-item> </el-descriptions-item>
...@@ -55,49 +56,32 @@ ...@@ -55,49 +56,32 @@
</el-descriptions> </el-descriptions>
<!-- 更多联系人的弹框 -->
<template v-if='visible'>
<com-contacts
@handleClose='visible = false'
:visible='visible'
:item='linkers' />
</template>
</div> </div>
</template> </template>
<script> <script>
import ComContacts from '@/components/com-contacts'
export default { export default {
name: 'UserBaseInfo', name: 'UserBaseInfo',
components: {
ComContacts
},
props: { props: {
baseInfo: { baseInfo: {
type: Object, type: Object,
require: true require: true
}, },
contacts: {
type: Array,
require: false
},
isLoan: { isLoan: {
type: Boolean, type: Boolean,
require: false require: false
} }
}, },
data() {
return {
visible: false,
linkers: []
}
},
methods: { methods: {
handleContact() { handleContact() {
this.linkers = this.contacts const { creditNo, creditType } = this.baseInfo
this.visible = true this.$router.push({
path: '/credit/contact',
query: {
creditNo,
creditType
}
})
} }
} }
} }
......
...@@ -139,7 +139,16 @@ export const asyncRoutes = [ ...@@ -139,7 +139,16 @@ export const asyncRoutes = [
title: '授信详情' title: '授信详情'
}, },
hidden: true hidden: true
},
{
path: 'contact',
name: 'contact',
component: () => import('@/views/contact/contacts'),
meta: {
noKeepAlive: true,
title: '联系人列表'
},
hidden: true
}, },
{ {
path: 'pre-detail', path: 'pre-detail',
......
...@@ -121,7 +121,7 @@ ...@@ -121,7 +121,7 @@
{{ row.realName }} <br /> {{ row.mobile }} {{ row.realName }} <br /> {{ row.mobile }}
</span> </span>
<span v-else-if='item.label==="授信类型"'> <span v-else-if='item.label==="授信类型"'>
<el-tag v-if='row.creditTypeStr==="提额授信"' effect="plain" size='mini'>{{ row.creditTypeStr }}</el-tag> <el-tag v-if='row.creditTypeStr==="提额授信"' effect='plain' size='mini'>{{ row.creditTypeStr }}</el-tag>
<el-tag v-else size='mini'>{{ row.creditTypeStr }}</el-tag> <el-tag v-else size='mini'>{{ row.creditTypeStr }}</el-tag>
</span> </span>
<span v-else-if='item.label==="授信状态"'> <span v-else-if='item.label==="授信状态"'>
...@@ -134,7 +134,7 @@ ...@@ -134,7 +134,7 @@
</el-table-column> </el-table-column>
<template v-if='isOnLine'> <template v-if='isOnLine'>
<el-table-column fixed='right' align='center' label='操作'> <el-table-column fixed='right' align='center' label='操作'>
<template #default='{ row }'> <template #default='{ row }'>
<el-button size='mini' type='text' @click.native='handleApproval(row)'>审批</el-button> <el-button size='mini' type='text' @click.native='handleApproval(row)'>审批</el-button>
<el-button size='mini' type='text' @click='handleView(row)'>详情</el-button> <el-button size='mini' type='text' @click='handleView(row)'>详情</el-button>
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,7 @@
item: null, item: null,
checkList: ['授信编号', '客户信息', '对应BD', '商户区域', '申请金额(元)', '授信金额(元)','授信类型', '审批状态', '申请时间'], checkList: ['授信编号', '客户姓名', '手机号码', '对应BD', '商户区域', '申请金额(元)', '授信金额(元)', '授信类型', '审批状态', '申请时间'],
columns: [ columns: [
{ {
order: 1, order: 1,
...@@ -198,9 +198,14 @@ ...@@ -198,9 +198,14 @@
}, },
{ {
order: 2, order: 2,
label: '客户信息', label: '客户姓名',
prop: 'realName' prop: 'realName'
}, },
{
order: 2,
label: '手机号码',
prop: 'mobile'
},
{ {
order: 3, order: 3,
label: '对应BD', label: '对应BD',
...@@ -344,13 +349,15 @@ ...@@ -344,13 +349,15 @@
// 审批 // 审批
handleApproval(row) { handleApproval(row) {
const { creditNo } = row const { creditNo } = row
this.$router.push({ let routeUrl = this.$router.resolve({
path: '/approval/detail', path: '/approval/detail',
query: { query: {
creditNo, creditNo,
approval: 'approval' approval: 'approval'
} }
}) })
window.open(routeUrl.href, '_blank')
}, },
// 转派 // 转派
handleReassignment(row) { handleReassignment(row) {
......
<!-- 预授信申述 -->
<template>
<div v-if='detail!==null' class='page'>
<block-header :title='title' />
<!--表格-->
<el-table
ref='tableSort'
border
:data='list'
style='width: 100%'
>
<el-table-column
v-for='(item, index) in finallyColumns'
:key='index'
align='center'
:label='item.label'
:sortable='item.sortable'
:width='item.width'
:fixed='!!item.fixed'
:show-overflow-tooltip='!!item.overflow'
>
<template #default='{ row }'>
<template v-if='item.label==="号码"'>
<span>{{ row.linkPhone[0] }}</span>
</template>
<span v-else>{{ row[item.prop] }}</span>
</template>
</el-table-column>
</el-table>
</div>
</template>
<script>
import API from '@/server/api'
import _ from 'lodash'
export default {
name: 'Contacts',
data() {
return {
creditNo: '',
creditType: '',
title: '通讯录',
detail: null,
list: [],
listLoading: true,
checkList: ['姓名', '号码'],
columns: [
{
order: 1,
label: '姓名',
prop: 'linker'
},
{
order: 2,
label: '号码',
prop: 'linkPhone'
}
]
}
},
computed: {
finallyColumns() {
let finallyArray = []
this.checkList.forEach((checkItem) => {
finallyArray.push(
this.columns.filter((item) => item.label === checkItem)[0]
)
})
return _.sortBy(finallyArray, (item) => item.order)
}
},
async created() {
const { query } = this.$route
if (query && query.creditNo) {
this.creditNo = query.creditNo
this.creditType = query.creditType
await this.init()
}
},
methods: {
async init() {
const creditNo = this.creditNo
const creditType = this.creditType
const result = await API.creditDetail({
creditNo,
creditType
})
this.detail = result.result
const { linkPhoneList, clientDetail } = result.result
this.list = linkPhoneList
this.title = '客户『' + clientDetail.realName + '』的通讯录列表'
}
}
}
</script>
<style scoped lang='scss'>
.com-approval {
//position: relative;
margin-top: 15px;
}
</style>
...@@ -183,7 +183,7 @@ ...@@ -183,7 +183,7 @@
item: null, item: null,
checkList: ['授信编号', '授信类型', '客户信息', '对应BD', '商户区域', '申请金额(元)', '授信金额(元)', '审批状态', '审批结果', '创建时间'], checkList: ['授信编号', '授信类型', '客户姓名','手机号码', '对应BD', '商户区域', '申请金额(元)', '授信金额(元)', '审批状态', '审批结果', '创建时间'],
columns: [ columns: [
{ {
order: 1, order: 1,
...@@ -199,9 +199,15 @@ ...@@ -199,9 +199,15 @@
{ {
order: 3, order: 3,
width: 115, width: 115,
label: '客户信息', label: '客户姓名',
prop: 'realName' prop: 'realName'
}, },
{
order: 3,
width: 115,
label: '手机号码',
prop: 'mobile'
},
{ {
order: 4, order: 4,
width: 80, width: 80,
......
...@@ -125,7 +125,7 @@ ...@@ -125,7 +125,7 @@
visible: false, visible: false,
item: null, item: null,
checkList: ['订单编号', '项目名称', '客户信息', '借款金额', '借款期数', 'BD姓名', '商户区域', '创建时间', '借款状态', '资金渠道'], checkList: ['订单编号', '项目名称', '客户姓名', '手机号码', '借款金额', '借款期数', 'BD姓名', '商户区域', '创建时间', '借款状态', '资金渠道'],
columns: [ columns: [
{ {
order: 1, order: 1,
...@@ -139,10 +139,14 @@ ...@@ -139,10 +139,14 @@
}, },
{ {
order: 3, order: 3,
width: 110, label: '客户姓名',
label: '客户信息',
prop: 'realName' prop: 'realName'
}, },
{
order: 3,
label: '手机号码',
prop: 'mobile'
},
{ {
order: 5, order: 5,
label: '借款金额', label: '借款金额',
...@@ -252,7 +256,7 @@ ...@@ -252,7 +256,7 @@
}, },
// 稽核审批 // 稽核审批
handleAudit(row) { handleAudit(row) {
console.log(row,'点击了') console.log(row, '点击了')
this.visible = true this.visible = true
this.item = row this.item = row
} }
......
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
payChannelApiResponses: [], payChannelApiResponses: [],
checkList: ['订单编号', '项目名称', '客户信息', '借款金额', '借款期数', 'BD姓名', '商户区域', '创建时间', '放款状态', '资金渠道'], checkList: ['订单编号', '项目名称', '客户姓名','手机号码', '借款金额', '借款期数', 'BD姓名', '商户区域', '创建时间', '放款状态', '资金渠道'],
columns: [ columns: [
{ {
order: 1, order: 1,
...@@ -172,9 +172,14 @@ ...@@ -172,9 +172,14 @@
}, },
{ {
order: 3, order: 3,
label: '客户信息', label: '客户姓名',
prop: 'realName' prop: 'realName'
}, },
{
order: 3,
label: '手机号码',
prop: 'mobile'
},
{ {
order: 5, order: 5,
label: '借款金额', label: '借款金额',
......
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