diff --git a/static/css/style.css b/static/css/style.css index 6f9ea54..9546fac 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -494,23 +494,19 @@ table.grid .ops a:hover { text-decoration: underline; } max-height: 62vh; overflow-y: auto; } -.fin-year { - border: 1px solid #eef0f4; - border-radius: 6px; - padding: 10px 14px; - margin-bottom: 10px; - background: #fbfcfe; -} -.fin-year-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; } -.fin-year-head b { font-size: 13px; color: #1e2a3a; font-weight: bold; } -.fin-year-head input { - width: 100px; +/* 年度财务明细表格 */ +.fin-tbl input { border: 1px solid #d9dee8; border-radius: 4px; - padding: 5px 8px; - font-size: 13px; - margin-left: 6px; + padding: 4px 6px; + font-size: 12px; + background: #fff; + width: 78px; } +.fin-tbl input[name="fin-fiscal_year"], +.fin-tbl input[name="fin-employee_count"] { width: 66px; } +.fin-tbl input[name="fin-financial_report_url"] { width: 150px; } +.fin-tbl input[name="fin-data_source"] { width: 88px; } .cert-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; flex-wrap: wrap; } .cert-row select, .cert-row input { border: 1px solid #d9dee8; diff --git a/static/js/company.js b/static/js/company.js index bbd3a9c..c14f245 100644 --- a/static/js/company.js +++ b/static/js/company.js @@ -120,10 +120,6 @@ $(function () { '
' + '
' + '
' + - '
' + - '
' + '
' + ''; @@ -136,15 +132,19 @@ $(function () { '
' + ''; - // Tab2 财务信息:最新冗余字段 + 年度财务明细列表 + // Tab3 财务信息:顶部独立字段(是否上市/股票代码/最新员工/最新营收)+ 年度财务明细列表 var finRowsHtml = ''; if (!financials.length) { - finRowsHtml = finYearRowHtml(null); + finRowsHtml = finRowHtml(null); } else { - financials.forEach(function (f) { finRowsHtml += finYearRowHtml(f); }); + financials.forEach(function (f) { finRowsHtml += finRowHtml(f); }); } var finHtml = '
' + + '
' + + '
' + '
' + '
' + '
' + @@ -152,7 +152,10 @@ $(function () { ' 年度财务明细' + ' ' + '' + - '
' + finRowsHtml + '
'; + '
' + + ' ' + + ' ' + finRowsHtml + '' + + '
财年员工数总营收(万元)净利润(万元)总资产(万元)总负债(万元)所有者权益(万元)毛利率(%)净利率(%)资产负债率(%)财务报表链接数据来源操作
'; // Tab3 资质认证:列表形式(瞪羚企业等) var certRowsHtml = ''; @@ -197,7 +200,7 @@ $(function () { }); $('#form-cancel').on('click', function () { Dialog.close(idx); }); - $('#add-fin-row').on('click', function () { $('#fin-rows').append(finYearRowHtml(null)); }); + $('#add-fin-row').on('click', function () { $('#fin-tbody').append(finRowHtml(null)); }); $('#add-cert-row').on('click', function () { $('#cert-rows').append(certRowHtml(null, certTypes)); }); // 工商查询按钮(预留:后续接入工商查询API自动填写) $('#btn-gongshang-query').on('click', function () { @@ -217,7 +220,7 @@ $(function () { // 年度财务明细(整表替换) var financials = []; - $('#fin-rows .fin-year').each(function () { + $('#fin-tbody .fin-row').each(function () { var $y = $(this); var year = $.trim($y.find('[name="fin-fiscal_year"]').val()); if (!year) return; @@ -271,29 +274,25 @@ $(function () { $('#edit-pane-' + $(el).data('tab')).show(); }; - /** 年度财务明细行模板 */ - function finYearRowHtml(f) { + /** 年度财务明细行模板(列表形式,一行一个财年) */ + function finRowHtml(f) { f = f || {}; var empty = function (v) { return (v === null || v === undefined) ? '' : v; }; - return '
' + - '
' + - ' 财年 ' + - ' ' + - '
' + - '
' + - '
' + - '
' + - '
' + - '
' + - '
' + - '
' + - '
' + - '
' + - '
' + - '
' + - '
' + - '
' + - '
'; + return '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + ''; } /** 资质认证行模板 */ diff --git a/static/js/config.js b/static/js/config.js index d43ad0f..c2af51c 100644 --- a/static/js/config.js +++ b/static/js/config.js @@ -5,7 +5,7 @@ var BASE_URL = '/api/'; var PAGE_SIZE = 20; /** 系统版本号(logo旁展示):修改代码后运行 tools/bump_version.php 自动递增 */ -var APP_VERSION = 'v1.0.13'; +var APP_VERSION = 'v1.0.14'; /** 页脚版权/备案信息(在 config.js 中修改) */ var FOOTER_TEXT = '© 2026 SuperLink 管理系统 版权所有 | 备案号:请替换为真实备案号';