dsh-data-dashboard 0.0.0-stage → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -2
- package/assets/theater-board.svg +1 -0
- package/backend/incremental/flow.mjs +492 -0
- package/backend/incremental/jobs.mjs +58 -0
- package/backend/incremental/xlsx-rows.mjs +145 -0
- package/backend/job-worker.mjs +22 -0
- package/backend/modules/banquet/index.mjs +46 -0
- package/backend/modules/inventory/index.mjs +45 -0
- package/backend/modules/inventory/legacy-fields.mjs +83 -0
- package/backend/modules/invoice/index.mjs +72 -0
- package/backend/modules/movement/index.mjs +68 -0
- package/backend/modules/opening/index.mjs +48 -0
- package/backend/modules/target/index.mjs +45 -0
- package/backend/modules/terminal/index.mjs +114 -0
- package/backend/modules.mjs +12 -0
- package/backend/public/admin.css +192 -0
- package/backend/public/admin.js +713 -0
- package/backend/public/board.css +43 -0
- package/backend/public/board.html +47 -0
- package/backend/public/board.js +96 -0
- package/backend/public/index.html +110 -0
- package/backend/public/review.css +5 -0
- package/backend/public/review.js +452 -0
- package/backend/real-data/generate-dashboard.mjs +135 -0
- package/backend/real-data/inventory-history.mjs +316 -0
- package/backend/real-data/organization-mapping.mjs +102 -0
- package/backend/real-data/source-payload.mjs +459 -0
- package/backend/real-data/terminal-components.mjs +280 -0
- package/backend/real-data/terminal-structure.css +105 -0
- package/backend/real-data/terminal-structure.mjs +276 -0
- package/backend/real-data/v10-components.mjs +112 -0
- package/backend/real-data/v10-details.css +18 -0
- package/backend/real-data/v10-details.mjs +251 -0
- package/backend/real-data/v10-layout.css +27 -0
- package/backend/real-data/v10-model.mjs +521 -0
- package/backend/real-data/v10-overview-data.mjs +248 -0
- package/backend/real-data/v10-overview.css +264 -0
- package/backend/real-data/v10-overview.mjs +263 -0
- package/backend/real-data/v10-presentation.mjs +342 -0
- package/backend/real-data/v10-shell.html +1097 -0
- package/backend/real-data/v10-template.mjs +351 -0
- package/backend/recognition/fingerprint.mjs +32 -0
- package/backend/recognition/headers.mjs +2 -0
- package/backend/recognition/module-definition.mjs +4 -0
- package/backend/recognition/result.mjs +29 -0
- package/backend/recognition/upload-limits.mjs +14 -0
- package/backend/review-engine.mjs +364 -0
- package/backend/review-service.mjs +182 -0
- package/backend/server.mjs +545 -0
- package/backend/store.mjs +68 -0
- package/backend/target-template.mjs +47 -0
- package/backend/validate-workbook.mjs +251 -0
- package/backend/web-sync/README.md +37 -0
- package/backend/web-sync/client.mjs +63 -0
- package/backend/web-sync/exporter.mjs +260 -0
- package/backend/web-sync/local.html +34 -0
- package/backend/web-sync/server.mjs +147 -0
- package/build-manifest.json +79 -0
- package/client.js +24 -0
- package/cordis.patch.yml +3 -0
- package/index.js +117 -0
- package/lib/dist-manifest.mjs +19 -0
- package/lib/market-index.mjs +56 -0
- package/lib/package-audit.mjs +34 -0
- package/lib/settings.mjs +71 -0
- package/lib/tool-definitions.mjs +56 -0
- package/lib/tools.mjs +255 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +71 -4
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
// Serialized into the offline dashboard. Keep this factory self-contained.
|
|
2
|
+
export function createTerminalComponents({ T, g, model, shared }) {
|
|
3
|
+
const el = (tag, props, ...children) => {
|
|
4
|
+
const { key, ...attributes } = props || {};
|
|
5
|
+
const render = children.length > 1 && T.jsxs ? T.jsxs : T.jsx;
|
|
6
|
+
return render(tag, { ...attributes, ...(children.length ? { children: children.length === 1 ? children[0] : children } : {}) }, key);
|
|
7
|
+
};
|
|
8
|
+
const finite = value => typeof value === 'number' && Number.isFinite(value);
|
|
9
|
+
const { Kpis, Ranked, Heading } = shared;
|
|
10
|
+
const metric = (label, value, unit, note = '') => ({ label, value, unit, note, state: finite(value) ? 'available' : 'pending', reason: finite(value) ? null : '当前来源不足以完整判定' });
|
|
11
|
+
const number = (value, digits = 0) => finite(value) ? model.format(value, digits, digits) : '待确认';
|
|
12
|
+
const percent = value => finite(value) ? `${model.format(value * 100, value === 1 ? 0 : 1, value === 1 ? 0 : 1)}%` : '待确认';
|
|
13
|
+
const rateText = (value, denominator) => denominator === 0 ? '—' : percent(value);
|
|
14
|
+
const width = value => `${finite(value) ? Math.max(0, Math.min(1, value)) * 100 : 0}%`;
|
|
15
|
+
const stars = ['一星', '二星', '三星', '四星', '五星', '六星', '七星', '八星'];
|
|
16
|
+
const starName = value => stars[value - 1] || '星级待确认';
|
|
17
|
+
const starList = values => Array.isArray(values) && values.length ? values.map(starName).join(' / ') : '星级待确认';
|
|
18
|
+
const labelFor = value => model.label ? model.label(value) : value;
|
|
19
|
+
const terminalRows = structure => Array.isArray(structure?.terminals) ? structure.terminals : [];
|
|
20
|
+
const seriesMatches = (terminal, selection) => !selection || (terminal.series || []).some(series => (series.matrixKey || series.key) === selection.key && (series.stars || []).includes(selection.star));
|
|
21
|
+
const noSource = module => module.state === 'unavailable' || !module.source;
|
|
22
|
+
const moveTab = (event, options, current, select) => {
|
|
23
|
+
const index = options.indexOf(current);
|
|
24
|
+
const next = event.key === 'ArrowRight' ? (index + 1) % options.length : event.key === 'ArrowLeft' ? (index + options.length - 1) % options.length : event.key === 'Home' ? 0 : event.key === 'End' ? options.length - 1 : null;
|
|
25
|
+
if (next === null) return;
|
|
26
|
+
event.preventDefault(); select(options[next]); event.currentTarget.parentElement?.querySelectorAll('[role="tab"]')[next]?.focus();
|
|
27
|
+
};
|
|
28
|
+
function SeriesTags({ series }) {
|
|
29
|
+
return el('div', { className: 'terminal-series-tags' }, ...(series || []).map(item => el('span', { key: item.key || item.name }, `${item.name} ${starList(item.stars)}`)));
|
|
30
|
+
}
|
|
31
|
+
function EffectiveBar({ count, total, rate }) {
|
|
32
|
+
return el('div', {},
|
|
33
|
+
el('div', { className: 'terminal-effective-values' }, el('strong', {}, rateText(rate, total)), el('small', {}, `${number(count)} / ${number(total)} 份`)),
|
|
34
|
+
el('div', { className: 'terminal-progress-track', 'aria-hidden': true }, el('i', { style: { width: width(rate) } })),
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
function TerminalCardContent({ module }) {
|
|
38
|
+
const structure = module.structure;
|
|
39
|
+
if (!structure || noSource(module)) return el('div', { className: 'terminal-card-summary' }, el('p', { className: 'terminal-quality-note' }, '上传并校验签约与动销来源后展示签约结构及有效终端。'));
|
|
40
|
+
const total = structure.totals || {};
|
|
41
|
+
return el('div', { className: 'terminal-card-summary' },
|
|
42
|
+
el('div', { className: 'terminal-card-effective' },
|
|
43
|
+
el('div', {}, el('span', {}, '有效终端'), el('strong', { 'data-terminal-metric': 'effective-count' }, number(total.effectiveCount), finite(total.effectiveCount) && el('small', {}, ' 家'))),
|
|
44
|
+
el('div', {}, el('span', {}, '有效率'), el('strong', { 'data-terminal-metric': 'effective-rate' }, rateText(total.effectiveRate, total.terminalCount))),
|
|
45
|
+
),
|
|
46
|
+
el('div', { className: 'support-foot' }, `${number(total.agreements)} 份协议 · 不随产品筛选`),
|
|
47
|
+
finite(total.pendingCount) && total.pendingCount > 0 && el('p', { className: 'terminal-quality-note' }, `${number(total.pendingCount)} 家终端的有效性待确认`),
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
function Matrix({ structure, mode, setMode, selection, selectCell }) {
|
|
51
|
+
const rows = structure.rows || [], totals = structure.totals || {};
|
|
52
|
+
const maxCount = Math.max(1, ...rows.flatMap(row => (row.cells || []).map(cell => cell.agreements || 0)));
|
|
53
|
+
const heat = share => {
|
|
54
|
+
const opacity = finite(share) && share > 0 ? .08 + .92 * Math.sqrt(Math.min(1, share)) : .045;
|
|
55
|
+
return { color: `rgb(${[135, 119, 83].map(channel => Math.round(255 + (channel - 255) * opacity)).join(',')})`, dark: opacity > .60 };
|
|
56
|
+
};
|
|
57
|
+
return el('section', { className: 'chart-section terminal-matrix-section', 'aria-label': '品系与星级协议矩阵' },
|
|
58
|
+
el('div', { className: 'terminal-matrix-toolbar' },
|
|
59
|
+
el('div', {}, el('h3', { className: 'terminal-section-title' }, '品系 × 星级矩阵'), el('p', { className: 'terminal-section-note' }, `${number(totals.agreements)} 份协议 · ${number(totals.terminalCount)} 家终端`)),
|
|
60
|
+
el('div', { className: 'terminal-mode-tabs', role: 'tablist', 'aria-label': '矩阵显示指标' }, ...[['agreements', '协议数'], ['share', '行内占比'], ['effective', '有效率']].map(([id, title]) => el('button', { key: id, type: 'button', role: 'tab', 'aria-selected': mode === id, onClick: () => setMode(id), onKeyDown: event => moveTab(event, ['agreements', 'share', 'effective'], id, setMode) }, title))),
|
|
61
|
+
),
|
|
62
|
+
el('div', { className: 'terminal-matrix-scroll', tabIndex: 0, 'aria-label': '矩阵,可横向滚动查看全部星级' },
|
|
63
|
+
el('table', { className: 'terminal-matrix' },
|
|
64
|
+
el('thead', {}, el('tr', {}, el('th', { scope: 'col', className: 'terminal-series-column' }, '品系'), ...stars.map(name => el('th', { key: name, scope: 'col' }, name)), el('th', { scope: 'col', className: 'terminal-total-column' }, '合计'), el('th', { scope: 'col', className: 'terminal-effective-column' }, '本品系有效协议'))),
|
|
65
|
+
el('tbody', {}, ...rows.map(row => el('tr', { key: row.key },
|
|
66
|
+
el('th', { scope: 'row', className: 'terminal-series-label' }, el('strong', {}, row.name), el('small', {}, `${number(row.terminalCount)} 家终端`)),
|
|
67
|
+
...stars.map((name, index) => {
|
|
68
|
+
const cell = (row.cells || []).find(item => item.star === index + 1);
|
|
69
|
+
if (cell && cell.observed === false) return el('td', { key: name }, el('div', { className: 'terminal-cell is-absent', title: `${row.name} · ${name}:来源未观察到此档`, 'aria-label': `${row.name}${name},来源未观察到此档` }, '—'));
|
|
70
|
+
const color = heat(mode === 'effective' ? cell?.effectiveAgreementRate : mode === 'share' ? cell?.share : cell?.agreements / maxCount), selected = selection?.key === row.key && selection.star === index + 1;
|
|
71
|
+
const title = `${row.name} · ${name};协议 ${number(cell?.agreements)} 份;本品系有效协议 ${number(cell?.effectiveAgreements)} / ${number(cell?.agreements)} 份;有效率 ${rateText(cell?.effectiveAgreementRate, cell?.agreements)}`;
|
|
72
|
+
const value = mode === 'share' ? percent(cell?.share) : mode === 'effective' ? rateText(cell?.effectiveAgreementRate, cell?.agreements) : number(cell?.agreements);
|
|
73
|
+
const pending = mode === 'share' ? !finite(cell?.share) : mode === 'effective' ? !finite(cell?.effectiveAgreementRate) && cell?.agreements !== 0 : !finite(cell?.agreements);
|
|
74
|
+
return el('td', { key: name }, el('button', {
|
|
75
|
+
type: 'button', className: `terminal-cell${color.dark ? ' is-dark' : ''}${pending ? ' is-pending' : ''}`,
|
|
76
|
+
style: { '--cell-color': color.color }, title, 'aria-label': `${title},点击筛选终端明细`, 'aria-pressed': selected,
|
|
77
|
+
'data-terminal-cell': `${row.key}:${index + 1}`, onClick: () => selectCell({ key: row.key, name: row.name, star: index + 1 }),
|
|
78
|
+
}, el('strong', {}, value), el('small', { title: '本品系有效协议及有效率' }, mode === 'effective' ? `${number(cell?.effectiveAgreements)} 份` : rateText(cell?.effectiveAgreementRate, cell?.agreements))));
|
|
79
|
+
}),
|
|
80
|
+
el('td', { className: 'terminal-total-cell' }, el('strong', {}, number(row.agreements)), el('small', {}, '份协议')),
|
|
81
|
+
el('td', { className: 'terminal-effective-cell' }, el(EffectiveBar, { count: row.effectiveAgreements, total: row.agreements, rate: row.effectiveAgreementRate })),
|
|
82
|
+
))),
|
|
83
|
+
el('tfoot', {}, el('tr', {}, el('th', { scope: 'row' }, '列合计'), ...stars.map((name, index) => el('td', { key: name }, number((structure.columns || []).find(item => item.star === index + 1)?.agreements))), el('td', {}, number(totals.agreements)), el('td', { className: 'terminal-effective-cell', title: '各品系终端有重叠,按终端编码重新去重' }, `${number(totals.terminalCount)} 家去重终端`))),
|
|
84
|
+
),
|
|
85
|
+
),
|
|
86
|
+
rows.length === 0 && el('p', { className: 'terminal-empty' }, '当前组织与月份范围没有可展示的签约协议。'),
|
|
87
|
+
el('div', { className: 'terminal-legend' },
|
|
88
|
+
el('span', { className: 'terminal-legend-item' }, '颜色深浅', el('span', { className: 'terminal-legend-scale', 'aria-hidden': true }, ...[.02, .12, .25, .45, .7, 1].map(value => el('i', { key: value, style: { background: heat(value).color } }))), mode === 'effective' ? '= 本品系有效率' : mode === 'share' ? '= 本行协议占比' : '= 协议数 / 最大格协议数'),
|
|
89
|
+
el('span', { className: 'terminal-legend-item' }, el('i', { className: 'terminal-legend-hatch', 'aria-hidden': true }), '来源未观察到此档'),
|
|
90
|
+
el('span', {}, '点击格子 → 筛选下方终端明细'),
|
|
91
|
+
el('span', {}, '有效 = 该终端在本品系 7 月以来动销净件数 ≥ 1 件'),
|
|
92
|
+
),
|
|
93
|
+
el('p', { className: 'terminal-caution' }, '同一星级在不同品系代表的规模不同,请按行阅读。列合计仅供数量参考,不代表同等规模;斜纹表示当前上传来源未观察到此档,不据此判断业务上未设该星级。'),
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
function HighestCard({ structure }) {
|
|
97
|
+
const highest = structure.highest || [], max = Math.max(...highest.map(row => finite(row.count) ? row.count : 0), 1);
|
|
98
|
+
return el('section', { className: 'terminal-subcard', 'aria-label': '终端综合档位' },
|
|
99
|
+
el('h3', { className: 'terminal-section-title' }, '终端综合档位 · 按最高星级'),
|
|
100
|
+
el('p', { className: 'terminal-section-note' }, `每家终端取所有品系协议中的最高星级 · ${number(structure.totals?.terminalCount)} 家终端`),
|
|
101
|
+
el('div', { className: 'terminal-highest-list' }, ...stars.map((name, index) => {
|
|
102
|
+
const row = highest.find(item => item.star === index + 1);
|
|
103
|
+
return el('div', { key: name, className: 'terminal-highest-row' }, el('span', {}, name), el('div', { className: 'terminal-bar-track', 'aria-hidden': true }, el('i', { style: { width: width(finite(row?.count) ? row.count / max : null) } })), el('span', { className: 'terminal-highest-value' }, el('b', {}, number(row?.count)), el('small', {}, percent(row?.share))));
|
|
104
|
+
})),
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
function MultiCard({ structure }) {
|
|
108
|
+
const example = structure.example, multi = structure.multi || {};
|
|
109
|
+
return el('section', { className: 'terminal-subcard', 'aria-label': '多品系签约' },
|
|
110
|
+
el('h3', { className: 'terminal-section-title' }, '多品系签约'),
|
|
111
|
+
el('p', { className: 'terminal-section-note' }, '终端签约的品系数量,以及各品系星级是否一致'),
|
|
112
|
+
el('div', { className: 'terminal-multi-stats' }, ...[['single', '单品系'], ['two', '2 个品系'], ['threePlus', '3 个及以上'], ['inconsistent', '星级不一致']].map(([key, label]) => el('div', { key }, el('span', {}, label), el('strong', {}, number(multi[key]))))),
|
|
113
|
+
example ? el('div', { className: 'terminal-example' },
|
|
114
|
+
el('p', { className: 'terminal-example-label' }, `当前范围示例 · ${example.terminalCode}${example.terminalName ? ` · ${example.terminalName}` : ''}`),
|
|
115
|
+
el(SeriesTags, { series: example.series }),
|
|
116
|
+
el('p', { className: 'terminal-example-summary' }, `综合档位:${starName(example.highest)} · 签约 ${number(example.seriesCount)} 个品系 · 星级跨度 ${number(example.span)} 档`),
|
|
117
|
+
) : el('p', { className: 'terminal-empty' }, '当前范围暂无可展示的终端示例。'),
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
function SigningTrend({ structure, filters, drill }) {
|
|
121
|
+
const points = structure.monthly || [], w = 760, left = 55, right = 60, top = 38, bottom = 200;
|
|
122
|
+
const maxAgreements = Math.max(1, ...points.map(p => finite(p.agreements) ? p.agreements : 0));
|
|
123
|
+
const maxTerminals = Math.max(1, ...points.map(p => finite(p.terminalCount) ? p.terminalCount : 0));
|
|
124
|
+
const step = (w - left - right) / Math.max(points.length, 1), x = index => left + step * (index + .5);
|
|
125
|
+
const y = (value, max) => bottom - value / max * (bottom - top);
|
|
126
|
+
const line = []; let segment = [];
|
|
127
|
+
points.forEach((point, index) => { if (finite(point.terminalCount)) segment.push(`${x(index)},${y(point.terminalCount, maxTerminals)}`); else if (segment.length) { line.push(segment); segment = []; } });
|
|
128
|
+
if (segment.length) line.push(segment);
|
|
129
|
+
return el('section', { className: 'chart-section terminal-trend', 'aria-label': '签约节奏' },
|
|
130
|
+
el(Heading, { title: '签约节奏', note: '每月新签协议 · 截至各月末累计签约终端' }),
|
|
131
|
+
structure.beforeSigningStart && el('p', { className: 'terminal-quality-note' }, 'FY27 协议自 7 月起签约'),
|
|
132
|
+
points.length ? el('svg', { className: 'terminal-trend-chart', viewBox: `0 0 ${w} 240`, role: 'group', 'aria-label': '月度新签协议柱图与累计签约终端折线' },
|
|
133
|
+
el('text', { x: left, y: 16, className: 'v10-axis-label' }, '新签协议 / 份'),
|
|
134
|
+
el('text', { x: w - right, y: 16, textAnchor: 'end', className: 'v10-axis-label' }, '累计终端 / 家'),
|
|
135
|
+
...[0, .5, 1].map(fraction => el('g', { key: fraction },
|
|
136
|
+
el('line', { x1: left, x2: w - right, y1: y(fraction, 1), y2: y(fraction, 1), stroke: '#e6ebf0', strokeDasharray: '3 5' }),
|
|
137
|
+
el('text', { x: left - 8, y: y(fraction, 1) + 4, textAnchor: 'end', className: 'v10-axis-label' }, number(maxAgreements * fraction)),
|
|
138
|
+
el('text', { x: w - right + 8, y: y(fraction, 1) + 4, className: 'v10-axis-label' }, number(maxTerminals * fraction)),
|
|
139
|
+
)),
|
|
140
|
+
...points.map((point, index) => {
|
|
141
|
+
const selected = point.month === filters.month, barWidth = Math.min(60, step * .45), label = `${Number(point.month.slice(5))}月`;
|
|
142
|
+
const title = `${label}:新签 ${number(point.agreements)} 份协议,累计签约 ${number(point.terminalCount)} 家终端,点击切换月份`;
|
|
143
|
+
return el('g', { key: point.month, role: 'button', tabIndex: 0, 'aria-label': title, 'aria-pressed': selected, 'data-terminal-month': point.month,
|
|
144
|
+
onClick: () => drill('month', point.month), onKeyDown: event => { if (['Enter', ' '].includes(event.key)) { event.preventDefault(); drill('month', point.month); } }, className: 'terminal-trend-month' },
|
|
145
|
+
el('title', {}, title), el('rect', { x: x(index) - step / 2 + 2, y: top - 10, width: step - 4, height: bottom - top + 43, fill: selected ? '#87775308' : 'transparent', rx: 8 }),
|
|
146
|
+
finite(point.agreements) && el('rect', { x: x(index) - barWidth / 2, y: y(point.agreements, maxAgreements), width: barWidth, height: Math.max(1, bottom - y(point.agreements, maxAgreements)), rx: 4, fill: selected ? '#877753' : '#c4b898' }),
|
|
147
|
+
el('text', { x: x(index), y: bottom + 22, textAnchor: 'middle', className: 'v10-axis-label', fill: selected ? '#877753' : undefined }, label),
|
|
148
|
+
el('text', { x: x(index), y: bottom - 10, textAnchor: 'middle', fontSize: 11, fill: point.agreements > maxAgreements * .15 ? '#fff' : '#657382', pointerEvents: 'none' }, number(point.agreements)),
|
|
149
|
+
);
|
|
150
|
+
}),
|
|
151
|
+
...line.map((part, index) => el('polyline', { key: index, points: part.join(' '), fill: 'none', stroke: '#547fa3', strokeWidth: 2, pointerEvents: 'none' })),
|
|
152
|
+
...points.map((point, index) => finite(point.terminalCount) && el('g', { key: point.month, pointerEvents: 'none' },
|
|
153
|
+
el('circle', { cx: x(index), cy: y(point.terminalCount, maxTerminals), r: 4, fill: '#547fa3', stroke: '#fff', strokeWidth: 2 }),
|
|
154
|
+
el('text', { x: x(index), y: y(point.terminalCount, maxTerminals) - 11, textAnchor: 'middle', fontSize: 11, fill: '#547fa3' }, number(point.terminalCount)),
|
|
155
|
+
)),
|
|
156
|
+
) : el('p', { className: 'terminal-empty' }, '当前来源没有可展示的签约月份。'),
|
|
157
|
+
el('div', { className: 'inv-legend' }, el('span', {}, el('i', { style: { background: '#c4b898' } }), '新签协议'), el('span', {}, el('i', { style: { background: '#547fa3' } }), '累计签约终端'), el('b', {}, '点击柱子切换月份 · 终端按编码去重')),
|
|
158
|
+
el('p', { className: 'v10-chart-caption' }, `签约来源截至 ${structure.signingSourceEnd || '未提供'};当前月份按已有记录展示,不外推月末。`),
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
function OrganizationRanking({ structure, module, filters, drill }) {
|
|
162
|
+
const items = (structure.organizations || []).map(row => ({ ...metric(labelFor(row.name), row.terminalCount, '家'), key: row.name, name: labelFor(row.name), share: row.effectiveRate, shareText: `有效率 ${rateText(row.effectiveRate, row.terminalCount)}`, note: `有效终端 ${number(row.effectiveCount)} 家 · 有效率 ${rateText(row.effectiveRate, row.terminalCount)}` }));
|
|
163
|
+
return el('section', { className: 'chart-section', 'aria-label': '终端签约组织排行' },
|
|
164
|
+
el(Heading, { title: `${filters.unit === 'all' ? '下级组织' : '当前单元'} · 签约终端`, note: filters.unit === 'all' ? '点击一行联动组织筛选' : '按当前完整组织路径统计' }),
|
|
165
|
+
el(Ranked, { items, color: '#877753', drill, groupField: module.groupField, leaf: filters.unit !== 'all' }),
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
function OutletTypes({ structure }) {
|
|
169
|
+
const items = (structure.outletTypes || []).map(row => ({ ...metric(row.name, row.terminalCount, '家'), key: row.name, name: row.name, share: row.effectiveRate, shareText: `有效率 ${rateText(row.effectiveRate, row.terminalCount)}`, note: `有效终端 ${number(row.effectiveCount)} 家` }));
|
|
170
|
+
return el('section', { className: 'chart-section', 'aria-label': '网点类型' },
|
|
171
|
+
el(Heading, { title: '网点类型 · 终端', note: '各类型内按终端编码去重,附终端有效率' }),
|
|
172
|
+
el(Ranked, { items, color: '#877753', secondary: true }),
|
|
173
|
+
el('p', { className: 'v10-chart-caption' }, '使用签约来源网点类型;同一终端跨类型出现时分别观察,分类数量不直接相加。'),
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
function TopTerminals({ structure }) {
|
|
177
|
+
const rows = (structure.topTerminals || []).filter(row => finite(row.cases)).slice(0, 10);
|
|
178
|
+
return el('section', { className: 'chart-section terminal-block', 'aria-label': '签约品系动销 Top 终端' },
|
|
179
|
+
el(Heading, { title: '签约品系动销 Top 终端', note: '按已签品系动销净件数排序 · 前 10 家' }),
|
|
180
|
+
el('div', { className: 'preview-table-wrap' }, el('table', { className: 'terminal-data-table terminal-top-table' },
|
|
181
|
+
el('colgroup', {}, ...['name', 'office', 'series', 'star', 'cases'].map(key => el('col', { key, className: `terminal-col-${key}` }))),
|
|
182
|
+
el('thead', {}, el('tr', {}, ...['终端', '办事处', '签约品系与星级', '综合档位', '净件数'].map(label => el('th', { key: label, scope: 'col' }, label)))),
|
|
183
|
+
el('tbody', {}, ...rows.map(row => el('tr', { key: row.code },
|
|
184
|
+
el('td', { className: 'terminal-detail-code' }, el('strong', {}, row.name), el('small', {}, row.code)),
|
|
185
|
+
el('td', { className: 'terminal-org-cell' }, el('span', { className: 'terminal-org-text', title: row.orgLabel }, row.officeLabel || '未提供')),
|
|
186
|
+
el('td', {}, el(SeriesTags, { series: row.series })), el('td', {}, starName(row.highest)), el('td', { className: 'terminal-number' }, number(row.cases, 1)),
|
|
187
|
+
))),
|
|
188
|
+
)),
|
|
189
|
+
!rows.length && el('p', { className: 'terminal-empty' }, '当前范围没有件数完整、可参与排名的终端。'),
|
|
190
|
+
el('p', { className: 'v10-chart-caption' }, '净件数只汇总已签品系,保留来源负值;件数待确认的终端不参与排名,有效性仍按每个品系分别判断。'),
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
function TerminalTable({ structure, selection, clear, tableRef }) {
|
|
194
|
+
const [page, setPage] = g.useState(0), pageSize = 40;
|
|
195
|
+
const rows = terminalRows(structure).filter(row => seriesMatches(row, selection));
|
|
196
|
+
const pageCount = Math.max(1, Math.ceil(rows.length / pageSize)), safePage = Math.min(page, pageCount - 1);
|
|
197
|
+
g.useEffect(() => setPage(0), [structure, selection?.key, selection?.star]);
|
|
198
|
+
return el('section', { ref: tableRef, className: 'chart-section terminal-block', 'aria-label': '终端明细', tabIndex: -1 },
|
|
199
|
+
el('div', { className: 'terminal-block-heading' }, el('h3', {}, '终端明细'), el('span', { className: 'terminal-section-note', 'aria-live': 'polite' }, `${number(rows.length)} 家终端 · 件数仅计已签约品系`)),
|
|
200
|
+
selection && el('div', { className: 'terminal-filter-chip' }, `${selection.name} · ${starName(selection.star)}`, el('button', { type: 'button', className: 'terminal-clear', onClick: clear }, '清除筛选')),
|
|
201
|
+
el('div', { className: 'preview-table-wrap' }, el('table', { className: 'terminal-data-table terminal-detail-table' },
|
|
202
|
+
el('colgroup', {}, ...['name', 'org', 'series', 'star', 'status', 'cases'].map(key => el('col', { key, className: `terminal-col-${key}` }))),
|
|
203
|
+
el('thead', {}, el('tr', {}, ...['终端', '组织', '签约品系与星级', '综合档位', '是否有效', '签约品系动销净件数'].map(label => el('th', { key: label, scope: 'col', className: label === '签约品系动销净件数' ? 'terminal-number' : undefined }, label)))),
|
|
204
|
+
el('tbody', {}, ...rows.slice(safePage * pageSize, (safePage + 1) * pageSize).map(row => el('tr', { key: row.code },
|
|
205
|
+
el('td', { className: 'terminal-detail-code' }, el('strong', {}, row.name || row.code || '终端名称未提供'), el('small', {}, row.code || '终端编码未提供')),
|
|
206
|
+
el('td', { className: 'terminal-org-cell' }, el('span', { className: 'terminal-org-text', title: row.orgLabel || '组织未提供' }, row.orgShortLabel || '组织未提供')),
|
|
207
|
+
el('td', {}, el(SeriesTags, { series: row.series })), el('td', {}, starName(row.highest)),
|
|
208
|
+
el('td', {}, el('span', { className: `terminal-status${row.effective === true ? ' is-effective' : row.effective === false ? '' : ' is-pending'}`, title: row.effective === false ? '所有已签约品系的净扫码件数均未达到 1 件' : undefined }, row.effective === true ? '有效' : row.effective === false ? '无效' : '待确认')),
|
|
209
|
+
el('td', { className: 'terminal-number' }, number(row.cases, 1)),
|
|
210
|
+
))),
|
|
211
|
+
)),
|
|
212
|
+
rows.length === 0 && el('p', { className: 'terminal-empty' }, selection ? '当前矩阵筛选下没有终端记录。' : '当前组织与月份范围没有终端记录。'),
|
|
213
|
+
rows.length > pageSize && el('div', { className: 'terminal-pagination' },
|
|
214
|
+
el('span', {}, `${safePage * pageSize + 1}–${Math.min((safePage + 1) * pageSize, rows.length)} / ${number(rows.length)}`),
|
|
215
|
+
el('button', { type: 'button', className: 'terminal-page-button', disabled: safePage === 0, onClick: () => setPage(safePage - 1) }, '上一页'),
|
|
216
|
+
el('button', { type: 'button', className: 'terminal-page-button', disabled: safePage >= pageCount - 1, onClick: () => setPage(safePage + 1) }, '下一页'),
|
|
217
|
+
),
|
|
218
|
+
el('p', { className: 'terminal-section-note' }, '有效性按单一已签约品系分别判断;不同品系的净件数不合并凑足 1 件。'),
|
|
219
|
+
);
|
|
220
|
+
}
|
|
221
|
+
function Definitions({ module, structure }) {
|
|
222
|
+
const window = structure?.window || {};
|
|
223
|
+
const notes = [...new Set([...(structure?.notes || []), ...(module.pending || [])])];
|
|
224
|
+
return el('section', { className: 'terminal-block definitions' },
|
|
225
|
+
el('h3', { className: 'terminal-section-title' }, '指标口径'),
|
|
226
|
+
el('ul', { className: 'terminal-definition-list' },
|
|
227
|
+
el('li', {}, '签约表仅使用 A 列至 AJ 列,AJ 为星级;AJ 列之后的字段不使用。'),
|
|
228
|
+
el('li', {}, '签约协议按签约日期截至所选月末累计,跟随组织筛选,不跟随产品筛选。协议数量与网点编码去重后的终端数量分别展示。'),
|
|
229
|
+
el('li', {}, '品系主要根据协议名称识别。矩阵统计协议,星级仅在同一品系内比较;终端综合档位取其全部签约品系的最高星级。'),
|
|
230
|
+
el('li', {}, `有效终端计算窗口为 ${window.start || '2026-07-01'} 至 ${window.end || '所选月末'},按网点编号匹配售点编码,扫码件数采用采购减退货的净额。`),
|
|
231
|
+
el('li', {}, '只统计该终端已签约的品系;其中任意一个品系净扫码件数达到 1 件,即计为有效终端。不把不同品系相加凑足 1 件。'),
|
|
232
|
+
el('li', {}, '终端有效率 = 有效终端数 ÷ 去重签约终端数;组织和网点类型使用终端级规则。矩阵及有效协议只看协议本品系是否达到 1 件,有效率 = 本品系有效协议数 ÷ 对应协议数。来源不完整或关联无法确定时显示“待确认”,不补零。'),
|
|
233
|
+
el('li', {}, '矩阵颜色随模式变化:协议数相对当前最大格协议数着色,行内占比按本行协议数着色,有效率按本品系有效协议比例着色。斜纹统一表示“来源未观察到此档”,不代表业务未设置。'),
|
|
234
|
+
el('li', {}, '组织列缩写只影响显示,关联仍使用完整路径。明细与排名件数显示 1 位小数,是否达到 1 件使用来源原精度。'),
|
|
235
|
+
),
|
|
236
|
+
notes.length > 0 && el('div', { className: 'rules-pending' }, el('h3', {}, '当前来源状态'), ...notes.map((note, index) => el('p', { key: index }, note))),
|
|
237
|
+
el('div', { className: 'preview-provenance' }, el('h3', {}, '本次来源版本'),
|
|
238
|
+
module.source ? el('dl', {}, el('dt', {}, '文件'), el('dd', {}, module.source.originalName), el('dt', {}, '上传版本'), el('dd', {}, module.source.uploadId), el('dt', {}, 'SHA-256'), el('dd', {}, module.source.sha256), el('dt', {}, '签约范围'), el('dd', {}, module.period), el('dt', {}, '动销截止'), el('dd', {}, window.sourceEnd || '未提供')) : el('p', {}, '当前没有有效上传来源。'),
|
|
239
|
+
el('p', {}, `生成时间:${model.payload.generatedAt}`),
|
|
240
|
+
),
|
|
241
|
+
);
|
|
242
|
+
}
|
|
243
|
+
function TerminalDetails({ module, filters, drill }) {
|
|
244
|
+
const [mode, setMode] = g.useState('agreements'), [selection, setSelection] = g.useState(null);
|
|
245
|
+
const tableRef = g.useRef(null), structure = module.structure;
|
|
246
|
+
g.useEffect(() => setSelection(null), [filters.month, filters.region, filters.office, filters.unit]);
|
|
247
|
+
const selectCell = value => {
|
|
248
|
+
setSelection(previous => previous?.key === value.key && previous.star === value.star ? null : value);
|
|
249
|
+
if (typeof requestAnimationFrame === 'function') requestAnimationFrame(() => tableRef.current?.scrollIntoView({ behavior: 'smooth', block: 'start' }));
|
|
250
|
+
};
|
|
251
|
+
const totals = structure?.totals || {}, multi = structure?.multi || {};
|
|
252
|
+
const kpis = [
|
|
253
|
+
metric('签约终端', totals.terminalCount, '家', '截至所选月末 · 网点编号去重'),
|
|
254
|
+
metric('签约协议', totals.agreements, '份', '截至所选月末 · 已确认去重'),
|
|
255
|
+
metric('当月新签协议', structure?.currentMonthAgreements, '份', filters.month),
|
|
256
|
+
metric('有效终端', totals.effectiveCount, '家', `有效率 ${rateText(totals.effectiveRate, totals.terminalCount)}`),
|
|
257
|
+
metric('有效协议', totals.effectiveAgreements, '份', `占比 ${rateText(totals.effectiveAgreementRate, totals.agreements)} · 本品系达标`),
|
|
258
|
+
metric('多品系终端', finite(multi.two) && finite(multi.threePlus) ? multi.two + multi.threePlus : null, '家', `星级不一致 ${number(multi.inconsistent)} 家`),
|
|
259
|
+
];
|
|
260
|
+
return el('section', { className: 'details-panel v10-details v10-terminal', 'aria-label': '终端签约详细信息', style: { '--detail-accent': module.color } },
|
|
261
|
+
el('div', { className: 'detail-title' }, el('div', {}, el('span', { className: 'eyebrow' }, 'TERMINAL NETWORK'), el('h2', {}, '终端签约分析'), el('p', {}, '签约节奏、品系星级结构、组织分布与已签品系动销。')), el('span', { className: 'scope-tag' }, '筛选联动')),
|
|
262
|
+
el('div', { className: 'detail-context' }, el('span', {}, model.scope(filters)), el('span', {}, `签约截至 ${structure?.window?.end || filters.month}`), el('span', {}, '不随产品筛选')),
|
|
263
|
+
(!structure || noSource(module)) && el('p', { className: 'terminal-empty' }, '当前没有可用的签约来源。请上传并校验签约数据后重新生成看板。'),
|
|
264
|
+
structure && !noSource(module) && el('div', { className: 'analysis-content inv-analysis sg-analysis' },
|
|
265
|
+
el(Kpis, { items: kpis }),
|
|
266
|
+
el(SigningTrend, { structure, filters, drill }),
|
|
267
|
+
el(Matrix, { structure, mode, setMode, selection, selectCell }),
|
|
268
|
+
finite(structure.totals?.pendingCount) && structure.totals.pendingCount > 0 && el('p', { className: 'terminal-quality-note' }, `当前范围 ${number(structure.totals.pendingCount)} 家终端的有效性尚不能完整判断,相关有效数与有效率保留“待确认”。`),
|
|
269
|
+
(filters.unit !== 'all' || filters.office !== 'all' || filters.region !== 'all') && el('button', { type: 'button', className: 'up-level v10-up-level', onClick: () => drill(filters.unit !== 'all' ? 'unit' : filters.office !== 'all' ? 'office' : 'region', 'all') },
|
|
270
|
+
'‹ 返回上一级', el('small', {}, filters.unit !== 'all' ? model.label(filters.office) : filters.office !== 'all' ? model.label(filters.region) : '全战区')),
|
|
271
|
+
el(OrganizationRanking, { structure, module, filters, drill }),
|
|
272
|
+
el('section', { className: 'chart-section terminal-summary-grid' }, el(HighestCard, { structure }), el(MultiCard, { structure })),
|
|
273
|
+
el(OutletTypes, { structure }),
|
|
274
|
+
el(TopTerminals, { structure }),
|
|
275
|
+
el(TerminalTable, { structure, selection, clear: () => setSelection(null), tableRef }),
|
|
276
|
+
),
|
|
277
|
+
);
|
|
278
|
+
}
|
|
279
|
+
return { TerminalCardContent, TerminalDetails };
|
|
280
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/* Terminal content shares the V10 detail shell, spacing, KPIs and organization rows. */
|
|
2
|
+
.v10-terminal{--terminal-gold:#877753;--terminal-ink:#283544;--terminal-muted:#85909f;--terminal-line:#e8edf2;font-variant-numeric:tabular-nums}
|
|
3
|
+
.terminal-card-summary{font-variant-numeric:tabular-nums}
|
|
4
|
+
.v10-terminal .detail-tabs button[aria-selected="true"]{color:var(--terminal-gold);border-bottom-color:var(--terminal-gold)}
|
|
5
|
+
.terminal-matrix-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px;flex-wrap:wrap}
|
|
6
|
+
.terminal-section-title{font-size:14px;font-weight:700;line-height:1.6;margin:0;color:var(--terminal-ink)}
|
|
7
|
+
.terminal-section-note{font-size:11px;line-height:1.8;color:var(--terminal-muted);margin:3px 0 0}
|
|
8
|
+
.terminal-mode-tabs{display:inline-flex;align-items:center;border-radius:999px;background:#f3f1ed;padding:3px;gap:2px;flex-shrink:0}
|
|
9
|
+
.terminal-mode-tabs button{border:0;border-radius:999px;background:transparent;color:#78818c;font-size:11px;line-height:1.5;padding:6px 12px;cursor:pointer;white-space:nowrap}
|
|
10
|
+
.terminal-mode-tabs button[aria-selected="true"]{background:#fff;color:var(--terminal-gold);font-weight:700;box-shadow:0 1px 4px #38301810}
|
|
11
|
+
.terminal-mode-tabs button:focus-visible,.terminal-cell:focus-visible,.terminal-clear:focus-visible,.terminal-page-button:focus-visible,.terminal-trend-chart [role="button"]:focus-visible{outline:2px solid #877753;outline-offset:3px}
|
|
12
|
+
.terminal-matrix-scroll{max-width:100%;overflow-x:auto;padding:2px 2px 5px;margin:0 -2px;scrollbar-width:thin}
|
|
13
|
+
.v10-terminal .terminal-matrix{width:100%;min-width:760px;border-collapse:separate;border-spacing:3px;table-layout:fixed;font-size:11px;margin:0}
|
|
14
|
+
.v10-terminal .terminal-matrix th,.v10-terminal .terminal-matrix td{padding:0;border:0;vertical-align:middle;white-space:normal}
|
|
15
|
+
.v10-terminal .terminal-matrix thead th{font-weight:400;color:#7f8c9c;text-align:center;height:29px;font-size:10px;background:transparent}
|
|
16
|
+
.v10-terminal .terminal-matrix .terminal-series-column{width:104px;text-align:left;padding-left:4px}
|
|
17
|
+
.v10-terminal .terminal-matrix .terminal-total-column{width:78px}
|
|
18
|
+
.v10-terminal .terminal-matrix .terminal-effective-column{width:150px;text-align:left;padding-left:7px}
|
|
19
|
+
.v10-terminal .terminal-matrix .terminal-series-label{text-align:left;padding:5px 4px;font-weight:400;background:transparent}
|
|
20
|
+
.terminal-series-label strong{display:block;line-height:1.5;font-size:12px;font-weight:700;overflow-wrap:anywhere}
|
|
21
|
+
.terminal-series-label small{display:block;color:#95a0ad;font-size:10px;line-height:1.8;margin-top:1px;font-weight:400}
|
|
22
|
+
.terminal-cell{width:100%;height:50px;border:0;border-radius:9px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;cursor:pointer;color:var(--terminal-ink);padding:5px 2px;transition:box-shadow .16s,transform .16s;background:var(--cell-color,#f3f2ef)}
|
|
23
|
+
.terminal-cell:hover{box-shadow:0 0 0 2px #87775380;transform:translateY(-1px)}
|
|
24
|
+
.terminal-cell[aria-pressed="true"]{box-shadow:inset 0 0 0 2px #625333,0 0 0 2px #fff;outline:1px solid #877753}
|
|
25
|
+
.terminal-cell strong{font-size:14px;font-weight:700;line-height:1.3;letter-spacing:-.2px}
|
|
26
|
+
.terminal-cell small{font-size:10px;line-height:1.4;color:#8e8065;white-space:nowrap;letter-spacing:-.2px;max-width:100%;overflow:hidden;text-overflow:ellipsis}
|
|
27
|
+
.terminal-cell.is-dark{color:#fff}
|
|
28
|
+
.terminal-cell.is-dark small{color:#ffffffd9}
|
|
29
|
+
.terminal-cell.is-absent{cursor:default;background:repeating-linear-gradient(135deg,#faf9f7 0,#faf9f7 5px,#f3f2ef 5px,#f3f2ef 9px);color:#c7c1b6}
|
|
30
|
+
.terminal-cell.is-absent:hover{box-shadow:none;transform:none}
|
|
31
|
+
.terminal-cell.is-pending strong{font-size:11px;color:#9a7959}
|
|
32
|
+
.v10-terminal .terminal-matrix .terminal-total-cell,.v10-terminal .terminal-matrix .terminal-effective-cell{height:50px;padding:7px;background:#f5f7fa;border-radius:9px}
|
|
33
|
+
.terminal-total-cell{text-align:center}
|
|
34
|
+
.terminal-total-cell strong{display:block;font-size:14px;line-height:1.6;font-weight:700}
|
|
35
|
+
.terminal-total-cell small{display:block;color:#9ba5b2;font-size:10px;line-height:1.7}
|
|
36
|
+
.terminal-effective-values{display:flex;align-items:baseline;gap:4px;flex-wrap:wrap;line-height:1.6}
|
|
37
|
+
.terminal-effective-values strong{font-size:13px;font-weight:700}
|
|
38
|
+
.terminal-effective-values small{font-size:10px;color:#929dad;white-space:nowrap}
|
|
39
|
+
.terminal-progress-track{height:5px;overflow:hidden;background:#e9e5db;border-radius:999px;margin-top:5px}
|
|
40
|
+
.terminal-progress-track i{display:block;height:100%;border-radius:inherit;background:var(--terminal-gold)}
|
|
41
|
+
.v10-terminal .terminal-matrix tfoot td{height:36px;border-radius:9px;background:#faf9f7;text-align:center;font-size:10px;color:#657382}
|
|
42
|
+
.v10-terminal .terminal-matrix tfoot th{font-weight:400;color:#8692a0;font-size:11px;text-align:left;padding-left:4px}
|
|
43
|
+
.v10-terminal .terminal-matrix tfoot .terminal-effective-cell{height:36px;font-size:10px;font-weight:400;color:#657382}
|
|
44
|
+
.terminal-legend{display:flex;align-items:center;gap:10px 16px;flex-wrap:wrap;font-size:10px;line-height:1.7;color:#7e8a9a;margin:14px 4px 12px}
|
|
45
|
+
.terminal-legend-item{display:inline-flex;align-items:center;gap:5px}
|
|
46
|
+
.terminal-legend-scale{display:inline-flex;vertical-align:middle;overflow:hidden}
|
|
47
|
+
.terminal-legend-scale i{width:13px;height:9px}
|
|
48
|
+
.terminal-legend-hatch{width:17px;height:10px;background:repeating-linear-gradient(135deg,#faf9f7 0,#faf9f7 3px,#e9e6df 3px,#e9e6df 5px)}
|
|
49
|
+
.terminal-caution{border:1px solid #eadfc9;background:#faf7f0;border-radius:10px;padding:10px 12px;font-size:11px;line-height:1.8;color:#977442;margin:0}
|
|
50
|
+
.terminal-summary-grid{display:grid;grid-template-columns:1.12fr 1fr;gap:16px;min-width:0;margin:22px 0;padding-bottom:22px;border-bottom:1px solid var(--line,#e6ebf0)}
|
|
51
|
+
.terminal-subcard{border:1px solid var(--terminal-line);border-radius:20px;padding:18px;min-width:0;background:#fff}
|
|
52
|
+
.terminal-highest-list{display:grid;gap:9px;margin-top:14px}
|
|
53
|
+
.terminal-highest-row{display:grid;grid-template-columns:32px minmax(0,1fr) 84px;align-items:center;gap:8px;font-size:12px;line-height:1.5}
|
|
54
|
+
.terminal-highest-row .terminal-bar-track{height:8px;background:#f0efeb;border-radius:999px;overflow:hidden}
|
|
55
|
+
.terminal-highest-row .terminal-bar-track i{display:block;height:100%;background:#b5a67c;border-radius:inherit}
|
|
56
|
+
.terminal-highest-value{text-align:right;white-space:nowrap}
|
|
57
|
+
.terminal-highest-value b{font-size:12px;font-weight:700}
|
|
58
|
+
.terminal-highest-value small{font-size:10px;color:#97a0ad;margin-left:3px}
|
|
59
|
+
.terminal-multi-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-top:12px}
|
|
60
|
+
.terminal-multi-stats>div{background:#f5f7fa;border-radius:11px;padding:10px 7px;min-width:0}
|
|
61
|
+
.terminal-multi-stats span{display:block;font-size:10px;color:#8995a4;line-height:1.6;overflow-wrap:anywhere}
|
|
62
|
+
.terminal-multi-stats strong{display:block;font-size:21px;font-weight:700;line-height:1.5;margin-top:4px}
|
|
63
|
+
.terminal-example{padding:12px;background:#f5f7fa;border-radius:12px;margin-top:12px}
|
|
64
|
+
.terminal-example-label{font-size:11px;color:#6f7b8c;margin:0 0 6px;overflow-wrap:anywhere}
|
|
65
|
+
.terminal-series-tags{display:flex;align-items:center;flex-wrap:wrap;gap:4px;min-width:0;max-width:100%}
|
|
66
|
+
.terminal-series-tags span{display:block;min-width:0;max-width:100%;color:#87724d;background:#eee8da;border-radius:9px;font-size:10px;line-height:1.6;padding:2px 7px;white-space:normal;overflow-wrap:anywhere}
|
|
67
|
+
.terminal-example-summary{font-size:11px;line-height:1.8;color:#697789;margin:7px 0 0}
|
|
68
|
+
.terminal-block{min-width:0;scroll-margin-top:20px}
|
|
69
|
+
.terminal-block-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;flex-wrap:wrap}
|
|
70
|
+
.terminal-block-heading h3{font-size:14px;margin:0;color:var(--terminal-ink)}
|
|
71
|
+
.terminal-filter-chip{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;border-radius:10px;background:#f5f0e5;color:#87724d;font-size:11px;padding:7px 10px;margin:0 0 12px}
|
|
72
|
+
.terminal-clear{border:0;background:none;color:#77613f;cursor:pointer;text-decoration:underline;text-underline-offset:3px;font-size:10px;padding:1px 0}
|
|
73
|
+
.v10-terminal .terminal-data-table{width:100%;min-width:760px;border-collapse:collapse;table-layout:fixed;text-align:left;font-size:11px;line-height:1.6}
|
|
74
|
+
.v10-terminal .terminal-data-table th{font-weight:500;color:#8390a0;font-size:10px;white-space:normal;padding:9px 8px;background:#f8f9fb;border:0;vertical-align:middle;overflow-wrap:anywhere}
|
|
75
|
+
.v10-terminal .terminal-data-table td{padding:11px 8px;border-top:1px solid #edf0f4;vertical-align:top;min-width:0;max-width:none;white-space:normal;overflow-wrap:anywhere;overflow:hidden}
|
|
76
|
+
.v10-terminal .terminal-data-table .terminal-number{text-align:right;white-space:nowrap}
|
|
77
|
+
.v10-terminal .terminal-data-table th.terminal-number{white-space:normal}
|
|
78
|
+
.terminal-col-name{width:140px}.terminal-col-org{width:150px}.terminal-col-office{width:130px}.terminal-col-series{width:200px}.terminal-col-star{width:75px}.terminal-col-status{width:70px}.terminal-col-cases{width:125px}
|
|
79
|
+
.terminal-top-table .terminal-col-name{width:155px}.terminal-top-table .terminal-col-series{width:250px}.terminal-top-table .terminal-col-cases{width:150px}
|
|
80
|
+
.v10-terminal .terminal-data-table .terminal-org-cell{font-size:10px}
|
|
81
|
+
.terminal-org-text{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
82
|
+
.terminal-data-table .terminal-detail-code strong{display:block;font-size:11px;font-weight:600;overflow-wrap:anywhere}
|
|
83
|
+
.terminal-data-table .terminal-detail-code small{font-size:9px;display:block;color:#8995a4;margin-top:3px;overflow-wrap:anywhere}
|
|
84
|
+
.terminal-status{display:inline-block;border-radius:999px;padding:2px 7px;font-size:9px;white-space:nowrap;background:#f0f1f3;color:#87919d}
|
|
85
|
+
.terminal-status.is-effective{background:#e9f0e9;color:#5d795d}
|
|
86
|
+
.terminal-status.is-pending{background:#f6eee0;color:#997a4b}
|
|
87
|
+
.terminal-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;font-size:10px;color:#8994a2;margin-top:14px;flex-wrap:wrap}
|
|
88
|
+
.terminal-page-button{border:1px solid #e0e4e9;background:white;border-radius:8px;padding:5px 9px;font-size:10px;cursor:pointer;color:#5d6b7d}
|
|
89
|
+
.terminal-page-button:disabled{opacity:.4;cursor:default}
|
|
90
|
+
.terminal-empty{padding:28px 16px;text-align:center;background:#f8f9fb;border-radius:14px;color:#84909f;font-size:12px;line-height:1.9;margin:12px 0}
|
|
91
|
+
.terminal-definition-list{padding-left:19px;margin:12px 0;color:#687687;font-size:12px;line-height:1.95}
|
|
92
|
+
.terminal-definition-list li+li{margin-top:7px}
|
|
93
|
+
.terminal-quality-note{font-size:11px;line-height:1.8;color:#997a4b;margin:12px 0 0}
|
|
94
|
+
.terminal-trend{min-width:0}
|
|
95
|
+
.terminal-trend-chart{display:block;width:100%;height:auto;overflow:visible}
|
|
96
|
+
.terminal-card-summary{flex:1;display:flex;flex-direction:column;margin-top:10px;min-height:0}
|
|
97
|
+
.terminal-card-effective{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}
|
|
98
|
+
.terminal-card-effective>div{padding:8px 10px;background:#f6f5f0;border-radius:10px;min-width:0}
|
|
99
|
+
.terminal-card-effective span{font-size:9px;color:#8b8a7f;display:block;line-height:1.6}
|
|
100
|
+
.terminal-card-effective strong{font-size:17px;color:#6f6148;font-weight:650;display:block;line-height:1.5;font-variant-numeric:tabular-nums}
|
|
101
|
+
.terminal-card-effective strong small{font-size:10px;font-weight:400}
|
|
102
|
+
.terminal-card-summary .terminal-quality-note{font-size:9px;margin-top:8px}
|
|
103
|
+
.terminal-card-summary .support-foot{margin-bottom:0}
|
|
104
|
+
@media(max-width:1150px){.terminal-summary-grid{gap:12px}.terminal-subcard{padding:14px}.terminal-multi-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.terminal-highest-row{grid-template-columns:30px minmax(0,1fr) 76px;gap:6px}.terminal-card-effective>div{padding:8px 7px}.terminal-card-effective strong{font-size:16px;white-space:nowrap}.terminal-card-effective strong small{font-size:9px}}
|
|
105
|
+
@media(prefers-reduced-motion:reduce){.terminal-cell{transition:none}.terminal-cell:hover{transform:none}}
|