commonCertificationStatusTable.vue
4.05 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
<template>
<div>
<a-card title="认证状态信息" :bordered="false">
<a-table ref="table" size="middle" bordered rowKey="id" :columns="companyApproveData" :dataSource="collCreditStatuses" :pagination="false" :loading="loading" @change="handleTableChange">
<span slot="action" slot-scope="text, record">
<a v-if="(record.certDetailCode == 'IDCARD_EFFECT_CHECK' || record.certDetailCode == 'BUSINESS_INFO_CHECK' || record.certDetailCode == 'LEGAL_REPRESENTATIVE_CONSISTENCY_CHECK') && record.certStatus==2" @click="handlePass(record)">人工认证通过</a>
</span>
</a-table>
</a-card>
<common-certification-status-modal ref="commonCertificationStatusModal" @ok="commonCertificationStatusModalOk"></common-certification-status-modal>
</div>
</template>
<script>
import { JeecgListMixin } from '@/mixins/CoreListMixin'
import commonCertificationStatusModal from './commonCertificationStatusModal'
export default {
name: 'commonCertificationStatusTable',
mixins: [JeecgListMixin],
components: {
commonCertificationStatusModal
},
props: {
userType: {
type: Number,
default: null
},
collCreditStatuses: {
type: Array,
default: () => {
return []
}
},
applyNo: {
type: String,
default: ''
}
},
data () {
return {
creditCertCode: JSON.parse(sessionStorage.getItem('CREDITCERTCODE')),
creditCertDetailCode: JSON.parse(sessionStorage.getItem('CREDITCERTDETAILCODE')),
creditDetailCertStatus: JSON.parse(sessionStorage.getItem('CREDIT_DETAIL_CERT_STATUS')),
companyApproveData: [
{
title: '序号',
dataIndex: '',
key: 'rowIndex',
align: 'center',
width: 60,
customRender: function (t, r, index) {
return parseInt(index) + 1
}
},
{
title: '认证名称',
align: 'center',
dataIndex: 'certCode',
customRender: (t, r, index) => {
for (var i = 0; i < this.creditCertCode.length; i++) {
if (t === this.creditCertCode[i].name) {
return this.creditCertCode[i].title
}
}
}
},
{
title: '节点服务',
align: 'center',
dataIndex: 'certDetailCode',
customRender: (t, r, index) => {
console.log(this.creditCertDetailCode)
for (var i = 0; i < this.creditCertDetailCode.length; i++) {
if (t === this.creditCertDetailCode[i].name) {
return this.creditCertDetailCode[i].title
}
}
}
},
{
title: '认证结果',
align: 'center',
dataIndex: 'certStatus',
customRender: (t, r, index) => {
console.log(this.creditDetailCertStatus)
for (var i = 0; i < this.creditDetailCertStatus.length; i++) {
if (t === Number(this.creditDetailCertStatus[i].name)) {
return this.creditDetailCertStatus[i].title
}
}
}
},
{
title: '认证日期',
align: 'center',
dataIndex: 'certDate'
},
{
title: '备注',
align: 'center',
dataIndex: 'remark'
},
{
title: '操作人',
align: 'center',
dataIndex: 'updateUser'
},
{
title: '操作',
dataIndex: 'action',
scopedSlots: { customRender: 'action' },
align: 'center',
width: 150,
fixed: 'right'
}
],
disableMixinCreated: true
}
},
methods: {
handlePass (record) {
console.log(record)
this.$refs.commonCertificationStatusModal.edit(record)
this.$refs.commonCertificationStatusModal.title = '人工认证'
this.$refs.commonCertificationStatusModal.disableSubmit = true
},
commonCertificationStatusModalOk () {
this.$emit('editReload')
}
}
}
</script>
<style>
</style>