xzxk.html
4.65 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
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('行政许可列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<div th:include="include :: footer"></div>
<script th:inline="javascript">
var prefix = ctx + "business/info";
var entityId = [[${entityId}]];
var pubTypeData = [[${@dict.getType('eit_pub_type')}]];
var counterpartTypeData = [[${@dict.getType('eit_counterpart_type')}]];
var certificateTypeData = [[${@dict.getType('eit_certificate_type')}]];
var permissionTypeData = [[${@dict.getType('eit_permission_type')}]];
var statusData = [[${@dict.getEnum('credit_pub_xzxk_status')}]];
$(function() {
var options = {
url: prefix + "/xzxk/list/" + entityId,
showSearch: false,
showRefresh: false,
showToggle: false,
showColumns: false,
detailView: true,
detailFormatter: detailFormatter,
columns: [{
checkbox: false
},
{
field: 'pubId',
title: '公示id',
visible: false
},
{
field: 'pubType',
title: '公示类型',
formatter: function(value, row, index) {
return $.table.selectDictLabel(pubTypeData, value);
}
},
{
field: 'counterpartName',
title: '行政相对人名称'
},
{
field: 'counterpartType',
title: '行政相对人类别',
formatter: function(value, row, index) {
return $.table.selectDictLabel(counterpartTypeData, value);
}
},
{
field: 'decisionSequence',
title: '决定书文号'
},
{
field: 'decisionTime',
title: '许可决定日期'
},
{
field: 'reportDate',
title: '上报日期'
}]
};
$.table.init(options);
});
const showMap = new Map();
showMap.set('counterpartType', '行政相对人类型');
showMap.set('counterpartName', '行政相对人名称');
showMap.set('creditCode', '统一社会信用代码');
showMap.set('registerCode', '工商注册号');
showMap.set('orgCode', '组织机构代码');
showMap.set('taxCode', '税务登记号');
showMap.set('sectorCode', '事业单位证书号');
showMap.set('societyCode', '社会组织登记证号');
showMap.set('delegate', '法定代表人');
showMap.set('delegateCardType', '法定代表人证件类型');
showMap.set('delegateCardCode', '法定代表人证件号码');
showMap.set('certificateType', '证件类型');
showMap.set('certificateCode', '证件号码');
showMap.set('permissionTitle', '行政许可决定文书名称');
showMap.set('decisionSequence', '行政许可决定文书号');
showMap.set('decisionType', '许可类别');
showMap.set('permissionName', '许可证书名称');
showMap.set('permissionCode', '许可编号');
showMap.set('decisionContent', '许可内容');
showMap.set('decisionTime', '许可决定日期');
showMap.set('decisionTimeStart', '有效期自');
showMap.set('decisionTimeEnd', '有效期至');
showMap.set('decisionDept', '许可机关');
showMap.set('decisionCreditCode', '许可机关统一社会信用代码');
showMap.set('decisionStatus', '当前状态');
showMap.set('dataSource', '数据来源单位');
showMap.set('sourceCreditCode', '数据来源单位统一社会信用代码');
showMap.set('memo', '备注');
function detailFormatter(index, row) {
var html = [];
$.each(row, function(key, value) {
var showKey = showMap.get(key);
if (showKey) {
if (key == 'counterpartType') {
value = $.table.selectDictLabel(counterpartTypeData, value);
} else if (key == 'delegateCardType') {
value = $.table.selectDictLabel(certificateTypeData, value);
} else if (key == 'certificateType') {
value = $.table.selectDictLabel(certificateTypeData, value);
} else if (key == 'decisionType') {
var values = value.split(',');
var showValue = '';
for (var i = 0; i < values.length; i++) {
showValue = showValue + ' ' + $.table.selectDictLabel(permissionTypeData, values[i]);
}
value = showValue;
} else if (key == 'decisionStatus') {
value = $.table.selectDictLabel(statusData, value);
}
html.push('<pre><b style="width: 250px;display: inline-block;text-align: right;">' + showKey + ':</b> ' + value + '</pre>');
}
});
return html.join('');
}
</script>
</body>
</html>