f
This commit is contained in:
@@ -1094,6 +1094,7 @@
|
||||
"annualReports",
|
||||
"taxViolations",
|
||||
"ownTaxNotices",
|
||||
"customsCredit",
|
||||
];
|
||||
var sectionTitles = {
|
||||
riskOverview: "风险情况(综合分析)",
|
||||
@@ -1115,6 +1116,7 @@
|
||||
annualReports: "十六、企业年报(公示)",
|
||||
taxViolations: "十七、税收违法",
|
||||
ownTaxNotices: "十八、欠税公告",
|
||||
customsCredit: "十九、进出口信用(海关)",
|
||||
};
|
||||
// 保持所有板块单列纵向排布
|
||||
var keyLabels = {
|
||||
@@ -1225,6 +1227,28 @@
|
||||
illegalFact: "具体违法事实描述",
|
||||
caseType: "案件性质",
|
||||
police: "案件移送公安机关情况",
|
||||
// 进出口信用(QYGLDJ33)
|
||||
entityNameEn: "企业英文名称",
|
||||
customsRegisterCode: "海关注册编码",
|
||||
customsRegisterDate: "海关注册日期",
|
||||
reportingAddress: "海关报备地址",
|
||||
reportingAddressEn: "海关报备地址(英文)",
|
||||
customsName: "海关注册",
|
||||
customsBusinessType: "经营类别",
|
||||
importExportEntityCode: "进出口企业代码",
|
||||
economicDistrict: "经济区划",
|
||||
specialArea: "特殊贸易区域",
|
||||
industryType: "行业种类",
|
||||
tradeType: "跨境贸易电子商务类型",
|
||||
validDate: "报关有效期",
|
||||
firstRecordDate: "最早备案日期",
|
||||
lastRecordDate: "最新备案日期",
|
||||
customsCancelFlag: "海关注销标志",
|
||||
ifAnnualReport: "年报情况",
|
||||
abnormalInfo: "异常信息",
|
||||
punishInfo: "行政处罚信息",
|
||||
customsLevel: "海关评级",
|
||||
creditLevel: "信用等级",
|
||||
// 企业年报(QYGLDJ12)
|
||||
registerCode: "注册号",
|
||||
organizationCode: "组织机构代码",
|
||||
@@ -3209,6 +3233,71 @@
|
||||
});
|
||||
}
|
||||
|
||||
function renderCustomsCredit(v) {
|
||||
if (!v || !Array.isArray(v.items) || !v.items.length)
|
||||
return "<p class='empty-hint'>暂无进出口信用记录</p>";
|
||||
var html = "<p class='count-hint'>共 " + v.items.length + " 条</p>";
|
||||
v.items.forEach(function (it, idx) {
|
||||
html += "<div class='item-block' style='margin-bottom:16px'>";
|
||||
html += "<h3 style='margin:0 0 8px;font-size:15px'>" + esc(it.entityName || "—") + "</h3>";
|
||||
// 基本信息表
|
||||
html += "<table class='kv-table'><tbody>";
|
||||
html += "<tr><td class='k'>" + label("entityNameEn") + "</td><td>" + esc(it.entityNameEn) + "</td></tr>";
|
||||
html += "<tr><td class='k'>" + label("customsRegisterCode") + "</td><td>" + esc(it.customsRegisterCode) + "</td></tr>";
|
||||
html += "<tr><td class='k'>" + label("customsBusinessType") + "</td><td>" + esc(it.customsBusinessType) + "</td></tr>";
|
||||
html += "<tr><td class='k'>" + label("importExportEntityCode") + "</td><td>" + esc(it.importExportEntityCode) + "</td></tr>";
|
||||
html += "<tr><td class='k'>" + label("customsName") + "</td><td>" + esc(it.customsName) + "</td></tr>";
|
||||
html += "<tr><td class='k'>" + label("customsRegisterDate") + "</td><td>" + esc(it.customsRegisterDate) + "</td></tr>";
|
||||
html += "<tr><td class='k'>" + label("validDate") + "</td><td>" + esc(it.validDate) + "</td></tr>";
|
||||
html += "<tr><td class='k'>" + label("district") + "</td><td>" + esc(it.district) + "</td></tr>";
|
||||
html += "<tr><td class='k'>" + label("reportingAddress") + "</td><td>" + esc(it.reportingAddress || it.reportingAddressEn) + "</td></tr>";
|
||||
html += "</tbody></table>";
|
||||
// 信用状态
|
||||
html += "<h4 style='margin:12px 0 6px;font-size:14px'>信用状态</h4>";
|
||||
html += "<table class='kv-table'><tbody>";
|
||||
html += "<tr><td class='k'>" + label("creditLevel") + "</td><td>" + esc(it.creditLevel) + "</td></tr>";
|
||||
html += "<tr><td class='k'>" + label("customsLevel") + "</td><td>" + esc(it.customsLevel || "—") + "</td></tr>";
|
||||
html += "<tr><td class='k'>" + label("customsCancelFlag") + "</td><td>" + esc(it.customsCancelFlag) + "</td></tr>";
|
||||
html += "<tr><td class='k'>" + label("ifAnnualReport") + "</td><td>" + esc(it.ifAnnualReport) + "</td></tr>";
|
||||
html += "<tr><td class='k'>" + label("abnormalInfo") + "</td><td>" + esc(it.abnormalInfo) + "</td></tr>";
|
||||
html += "</tbody></table>";
|
||||
// 行政处罚
|
||||
if (it.punishInfo && it.punishInfo !== "" && it.punishInfo !== "[]" && it.punishInfo !== "无") {
|
||||
html += "<h4 style='margin:12px 0 6px;font-size:14px'>行政处罚记录</h4>";
|
||||
try {
|
||||
var punishArr = JSON.parse(it.punishInfo);
|
||||
if (Array.isArray(punishArr) && punishArr.length > 0) {
|
||||
punishArr.forEach(function (p, pi) {
|
||||
html += "<div class='item-meta' style='margin-bottom:6px;padding:6px 8px;background:var(--surface-raised);border-radius:var(--radius-sm)'>";
|
||||
html += "<strong>处罚" + (punishArr.length > 1 ? "(" + (pi + 1) + ")" : "") + ":</strong>";
|
||||
html += "案件性质:" + esc(p.case_type || "—") + ";";
|
||||
html += "当事人:" + esc(p.case_litigant || "—") + ";";
|
||||
html += "决定书编号:" + esc(p.case_no || "—") + ";";
|
||||
html += "处罚日期:" + esc(p.case_date || "—");
|
||||
html += "</div>";
|
||||
});
|
||||
} else {
|
||||
html += "<div class='item-meta'>" + esc(it.punishInfo) + "</div>";
|
||||
}
|
||||
} catch (e) {
|
||||
html += "<div class='item-meta'>" + esc(it.punishInfo) + "</div>";
|
||||
}
|
||||
}
|
||||
// 其他备案信息
|
||||
html += "<h4 style='margin:12px 0 6px;font-size:14px'>备案信息</h4>";
|
||||
html += "<table class='kv-table'><tbody>";
|
||||
html += "<tr><td class='k'>" + label("economicDistrict") + "</td><td>" + esc(it.economicDistrict) + "</td></tr>";
|
||||
html += "<tr><td class='k'>" + label("specialArea") + "</td><td>" + esc(it.specialArea) + "</td></tr>";
|
||||
html += "<tr><td class='k'>" + label("industryType") + "</td><td>" + esc(it.industryType) + "</td></tr>";
|
||||
html += "<tr><td class='k'>" + label("tradeType") + "</td><td>" + esc(it.tradeType || "—") + "</td></tr>";
|
||||
html += "<tr><td class='k'>" + label("firstRecordDate") + "</td><td>" + esc(it.firstRecordDate) + "</td></tr>";
|
||||
html += "<tr><td class='k'>" + label("lastRecordDate") + "</td><td>" + esc(it.lastRecordDate) + "</td></tr>";
|
||||
html += "</tbody></table>";
|
||||
html += "</div>";
|
||||
});
|
||||
return html;
|
||||
}
|
||||
|
||||
var sectionRenderers = {
|
||||
riskOverview: renderRiskOverview,
|
||||
basic: renderBasic,
|
||||
@@ -3229,6 +3318,7 @@
|
||||
annualReports: renderAnnualReports,
|
||||
taxViolations: renderTaxViolationsSection,
|
||||
ownTaxNotices: renderOwnTaxNotices,
|
||||
customsCredit: renderCustomsCredit,
|
||||
};
|
||||
|
||||
function renderSectionContent(key, value) {
|
||||
|
||||
Reference in New Issue
Block a user