feat(costreview): 升级导出克隆完整块、GCL 前缀公式与导入换行保留,并配套界面与规格更新

This commit is contained in:
lianjianwei2024
2026-10-18 01:49:29 +08:00
parent 9269541ee6
commit 9ddd9bb240
13 changed files with 4235 additions and 2664 deletions

View File

@@ -790,12 +790,15 @@ function grpTreeRender(box, d, pick, opt) {
// 组号跟主表对齐(2026-10-10 主人定「按现有目录排序」):一律按显示位置连续编第 1~N 组,
// 不再用规则 seq —— 那套号与主表错位,还和系统组撞号(第19/20/24组在树里各出现两次)。
// 关键词组名保留(主表组标题没有组名,左树是唯一能看到组名的地方)。
// 规格 20:全部组价一致的组**不消失**,目录组名变绿(consistent=1);再出现价差恢复原色。
const nm = (opt.kind === 'inconsistent' && g.name)
? '第 ' + (i + 1) + ' 组 · ' + esc(g.name) + ' · ' + n + ' 条' // 规格 左目录区1
: g.cat
? '第 ' + (i + 1) + ' 组 · ' + esc(g.cat) + '(' + n + ' 条)'
: '第 ' + (i + 1) + ' 组 · ' + n + ' 条';
h += '<div class="rn lv1" data-pk="' + pfx + 'g' + i + '"><span class="nm">' + nm + '</span></div>';
const grn = (opt.kind === 'inconsistent' && g.consistent)
? ' style="color:#1a9e5c;font-weight:600" title="该组已组价一致"' : '';
h += '<div class="rn lv1" data-pk="' + pfx + 'g' + i + '"><span class="nm"' + grn + '>' + nm + '</span></div>';
});
extra.forEach((g, i) => {
// 2026-10-13 主人定:落单组标题颜色与其他组一致(原灰色 #8a97a8 内联取消)