xzcf.html 4.63 KB
<!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 punishTypeData = [[${@dict.getType('eit_punish_type')}]];

        $(function() {
            var options = {
				url: prefix + "/xzcf/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('decisionSequence', '行政处罚决定书文号');
		showMap.set('offendType', '违法行为类型');
		showMap.set('offendTruth', '违法事实');
		showMap.set('punishReason', '处罚依据');
		showMap.set('decisionType', '处罚类别');
		showMap.set('decisionContent', '处罚内容');
		showMap.set('punishMoney', '罚款金额(万元)');
		showMap.set('punishEarnMoney', '没收违法所得、没收非法财物的金额(万元)');
		showMap.set('punishCertificateCode', '暂扣或吊销证照名称及编号');
		showMap.set('decisionTime', '处罚决定日期');
		showMap.set('decisionTimeStart', '处罚有效期');
		showMap.set('decisionTimeEnd', '公示截止期');
		showMap.set('decisionDept', '处罚机关');
		showMap.set('decisionCreditCode', '处罚机关统一社会信用代码');
		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(punishTypeData, values[i]);
						}
						value = showValue;
					}
					html.push('<pre><b style="width: 250px;display: inline-block;text-align: right;">' + showKey + ':</b> ' + value + '</pre>');
				}
        	});
        	return html.join('');
       	}
    </script>
</body>
</html>