jilu.vue
5.11 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
<template>
<a-modal title="分类列表" :width="1200" :centered="true" v-model="fenleiliebiao" cancelText="关闭" style="top:20px;"
:maskClosable="false" @ok="fenleiOk">
<div>
<a-table ref="table" size="middle" bordered :columns="bankData" :dataSource="jiluString" :pagination="false"
:loading="loading" :rowKey="(record, index) => index" @change="handleTableChange">
</a-table>
</div>
</a-modal>
</template>
<script>
import { JeecgListMixin } from '@/mixins/CoreListMixin'
import { deleteCollCusBankAccount } from '@/api/configApi'
import { formatAmount, formatAmountFen, reverseAmountFen, reverseAmount } from '@/utils/format'
export default {
name: 'commonBankAccountTable',
mixins: [JeecgListMixin],
components: {
},
props: {
jiluString: {
type: Array,
default: () => {
return [];
}
}
},
data() {
return {
title: '',
titleModal: '',
visible: false,
confirmLoading: false,
fenleiliebiao: false,
collCusBankAccountList: {},
bankData: [
{
title: '序号',
dataIndex: '',
key: 'rowIndex',
align: 'center',
width: 60,
customRender: function (t, r, index) {
return parseInt(index) + 1
}
},
{
title: '分类日期',
align: 'center',
width: 180,
dataIndex: 'classificationTime'
},
{
title: '分类前状态',
align: 'center',
width: 120,
dataIndex: 'beforeClassificationStatus',
customRender: (t, r, index) => {
if (t == 1) {
return '关注'
} else if (t == 2) {
return '次级'
} else if (t == 3) {
return '可疑'
} else if (t == 4) {
return '损失'
} else if (t == 0) {
return '正常'
}
}
},
{
title: '分类后状态',
align: 'center',
dataIndex: 'afterClassificationStatus',
width: 120,
customRender: (t, r, index) => {
if (t == 1) {
return '关注'
} else if (t == 2) {
return '次级'
} else if (t == 3) {
return '可疑'
} else if (t == 4) {
return '损失'
} else if (t == 0) {
return '正常'
}
}
},
{
title: '当前账期',
align: 'center',
dataIndex: 'stagesIndex',
width: 120,
customRender: (t, r, index) => {
return t + '/' + r.countStages
}
},
{
title: '最长逾期天数',
align: 'center',
dataIndex: 'maximumOverdueDays',
width: 120,
},
{
title: '剩余应还本息(元)',
align: 'center',
dataIndex: 'dueSumMoney',
width: 180,
customRender: (t, r, index) => {
return formatAmount(t.toFixed(2), 2)
}
},
{
title: '分类类型',
align: 'center',
dataIndex: 'classificationType',
width: 120,
customRender: (t, r, index) => {
if (t == 1) {
return '手动'
} else if (t == 0) {
return '自动'
}
}
},
{
title: '操作人',
align: 'center',
dataIndex: 'operator',
width: 120,
},
],
disableMixinCreated: true,
}
},
methods: {
edit(username) {
console.log(username)
this.fenleiliebiao = true
this.confirmLoading = true
this.confirmLoading = false
},
handleCancel() {
this.close()
},
fenleiOk() {
this.fenleiliebiao = false
},
}
}
</script>
<style>
</style>