quotaInfo.vue
4.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<template>
<a-spin :spinning="confirmLoading">
<a-card title="额度节点信息"
:bordered="false">
<a-card :bordered="false">
<a-row>
<a-col :span="8">客户名称: {{this.idCardName}}</a-col>
<a-col :span="8">手机号: {{this.mobilePhoneView}}</a-col>
</a-row>
</a-card>
<a-table ref="table"
size="middle"
bordered
rowKey="id"
:columns="columns"
:dataSource="dataSourceQuota"
:pagination="false"
:loading="loading"
style="padding-top:20px;">
</a-table>
</a-card>
</a-spin>
</template>
<script>
import { creditAmountDetail } from '@/api/configApi'
import { creditAmountDetailUseCredit } from '@/api/insys'
import { axios } from '@/utils/requestLocal'
export default {
name: 'personApprovalRecord',
props: {
userType: {//用户类型 1 个人 2 企业 3企业法人
type: Number,
default: null,
},
strategyType: {//用户类型 1 进件 2 用信
type: Number,
default: null,
},
uniqueNo: {//查询编号
type: String,
default: null,
}
},
data () {
return {
confirmLoading: false,
current: 3,
loading:false,
qrUrl:'',
columns: [
{
title: '层级',
width: '150px',
align: 'center',
dataIndex: 'creditLevel'
},
{
title: '额度名称',
align: 'center',
width: 100,
dataIndex: 'creditAmountName'
},
{
title: '授信冻结金额(元)',
align: 'center',
dataIndex: 'creditFrozen'
},
{
title: '已用额度(元)',
align: 'center',
dataIndex: 'creditAmountUsed'
},
{
title: '可用额度(元)',
align: 'center',
dataIndex: 'activitiSync',
customRender: function(t, r, index) {
return Number(r.creditAmount) - Number(r.creditAmountUsed) - Number(r.creditAmountFloat)
}
},
{
title: '在途额度(元)',
align: 'center',
dataIndex: 'creditAmountFloat'
},
{
title: '生效日期',
align: 'center',
scopedSlots: { customRender: 'zhanbi' },
dataIndex: 'creditStartDate'
},
{
title: '失效日期',
align: 'center',
scopedSlots: { customRender: 'zhanbi' },
dataIndex: 'creditEndDate'
},
{
title: '状态',
align: 'center',
width: 100,
dataIndex: 'creditStatus',
customRender: function(t, r, index) {
switch (t) {
case 1:
return '正常'
break
case 2:
return '过期'
break
case 3:
return '锁定'
break
}
}
}
],
dataSourceQuota:[],
idCardName:'',
mobilePhoneView:''
}
},
mounted(){
console.log(this.dataSource)
},
methods: {
loadData(){
let that = this
that.dataSourceQuota = []
if(!this.uniqueNo){
this.$message.warning('uniqueNo is not null')
}
let p = {},promiseFn;
if(this.strategyType == 1){
p["customerType"] = this.userType,
p['id']= this.uniqueNo
promiseFn = creditAmountDetail(p)
}else{
p["customerType"] = this.userType,
p['customerNo']= this.uniqueNo
promiseFn = creditAmountDetailUseCredit(p)
}
promiseFn.then(res => {
if (res.status.statusCode == 0) {
that.dataSourceQuota.push(res.result.creditAmountTree)
that.idCardName = res.result.idCardName
that.mobilePhoneView = res.result.mobilePhoneView
if(that.userType == '2'){
that.idCardName = res.result.enterpriseName
}
} else {
this.$message.warning(res.status.statusReason)
}
})
},
// 自定义附件信息查看
handleAttachmentLook (record) {
window.open(record.approvalUploadFileUrl)
},
}
}
</script>
<style>
</style>