wwt-certificate-tool 1.2.67 → 1.2.69
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/dist/app.html +169 -46
- package/dist/version.json +6 -6
- package/package.json +1 -1
package/dist/app.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
6
|
-
<title>WWT 金蝶凭证工具 · 纯前端版 P1.2.
|
|
6
|
+
<title>WWT 金蝶凭证工具 · 纯前端版 P1.2.69</title>
|
|
7
7
|
<style>*{box-sizing:border-box;margin:0;padding:0}
|
|
8
8
|
body{font-family:"Microsoft YaHei","PingFang SC",-apple-system,Segoe UI,sans-serif;font-size:13px;color:#1f2328;background:#f4f6f9;line-height:1.6}
|
|
9
9
|
h1{font-size:17px;font-weight:600}
|
|
@@ -328,7 +328,7 @@ input[data-f="field"][list^="dlGe_"]::placeholder{color:#a8861f;font-style:itali
|
|
|
328
328
|
<div class="brand">
|
|
329
329
|
<span class="logo">WWT</span>
|
|
330
330
|
<div>
|
|
331
|
-
<h1>金蝶凭证工具 <span class="ver">P1.2.
|
|
331
|
+
<h1>金蝶凭证工具 <span class="ver">P1.2.69</span></h1>
|
|
332
332
|
<div class="sub">纯前端离线版 · 双击即用 · 数据只存在本机,不上传任何服务器</div>
|
|
333
333
|
</div>
|
|
334
334
|
</div>
|
|
@@ -907,6 +907,45 @@ window.WWT_CONST = (function () {
|
|
|
907
907
|
// 【P1.2.39】新增 维修已结算(已结算类,按设计意图纳入对碰检测)
|
|
908
908
|
// 【P1.2.52】移除「入库未结算」:未结算单据不需要对碰,避免干扰补档案。
|
|
909
909
|
const DETECT_ALLOWED_SOURCES = ["入库已确认","销售已确认","调拨已确认","维修已结算"];
|
|
910
|
+
|
|
911
|
+
/* ---------- 业务源别名(P1.2.64) ----------
|
|
912
|
+
用户命名习惯:销售=出库、确认=结算、未确认=未结算,同一业务源有多种叫法。
|
|
913
|
+
variant → 规范名(key 必须等于 SOURCE_META 里的 key)。
|
|
914
|
+
等价只在「同一状态内」换词:已确认↔已结算、未确认↔未结算、销售↔出库;
|
|
915
|
+
不跨状态(已确认 不会混进 未确认),也不跨性质(销售/出库 只互相换,不换到 入库/调拨)。
|
|
916
|
+
新增其它别名直接往对应数组里加即可,无需改其它代码。 */
|
|
917
|
+
const SOURCE_ALIASES = {
|
|
918
|
+
"销售已确认": ["销售已确认","销售已结算","出库已确认","出库已结算"],
|
|
919
|
+
"入库已确认": ["入库已确认","入库已结算"],
|
|
920
|
+
"调拨已确认": ["调拨已确认","调拨已结算"],
|
|
921
|
+
"维修已结算": ["维修已结算","维修已确认"],
|
|
922
|
+
"入库未结算": ["入库未结算","入库未确认"],
|
|
923
|
+
"出库未确认": ["出库未确认","出库未结算"],
|
|
924
|
+
"调拨未确认": ["调拨未确认","调拨未结算"],
|
|
925
|
+
"已完工未结算": ["已完工未结算","已完工未确认"],
|
|
926
|
+
};
|
|
927
|
+
// 任意 variant(含规范名自身)→ 规范名
|
|
928
|
+
const SOURCE_ALIAS_TO_CANON = (()=>{
|
|
929
|
+
const m={};
|
|
930
|
+
for(const k in SOURCE_ALIASES){ for(const v of SOURCE_ALIASES[k]) m[v]=k; }
|
|
931
|
+
for(const k in SOURCE_META) if(!m[k]) m[k]=k; // 未列别名的源:自身即规范名
|
|
932
|
+
return m;
|
|
933
|
+
})();
|
|
934
|
+
// 文件名词干(去 .xls)→ 规范名,供上传自动归位
|
|
935
|
+
const SOURCE_FILE_STEM_MAP = (()=>{
|
|
936
|
+
const m={};
|
|
937
|
+
for(const k in SOURCE_ALIASES){ for(const v of SOURCE_ALIASES[k]){ const s=v.replace(/\.xls$/i,''); m[s]=k; } }
|
|
938
|
+
for(const k in SOURCE_META){ const s=(SOURCE_META[k].file||'').replace(/\.xls$/i,''); if(!m[s]) m[s]=k; }
|
|
939
|
+
return m;
|
|
940
|
+
})();
|
|
941
|
+
// 规范化:把任意写法的源名归一到规范名(认不到就原样返回,便于报错时可见)
|
|
942
|
+
function normSource(raw){ const k=SOURCE_ALIAS_TO_CANON[String(raw==null?'':raw).trim()]; return k==null?raw:k; }
|
|
943
|
+
// 某规范名允许接受的"文件名词干"列表(上传对话框校验用)
|
|
944
|
+
function sourceStems(key){
|
|
945
|
+
const a=(SOURCE_ALIASES[key]||[]).map(s=>s.replace(/\.xls$/i,''));
|
|
946
|
+
const c=(SOURCE_META[key]&&SOURCE_META[key].file||'').replace(/\.xls$/i,'');
|
|
947
|
+
return a.indexOf(c)>=0 ? a : [c].concat(a);
|
|
948
|
+
}
|
|
910
949
|
// v1.2.20:只核对 挂账 / 对账S / 冲转S 三类(去掉 对帐F / 冲转F)
|
|
911
950
|
const DETECT_ALLOWED_PAY = ["对帐S","挂帐","冲转S"];
|
|
912
951
|
|
|
@@ -1003,6 +1042,7 @@ window.WWT_CONST = (function () {
|
|
|
1003
1042
|
KINGDEE_COLUMNS, KINGDEE_NAMES, CASHFLOW_HEAD, MISSING_HEAD, SUBJ_MISS_HEAD,
|
|
1004
1043
|
DIM_DISPLAY, DIM_COLUMNS, DIM_LIST, STRICT_DIMS,
|
|
1005
1044
|
SOURCE_META, BIZ_SLOTS, BASE_SLOTS,
|
|
1045
|
+
SOURCE_ALIASES, SOURCE_ALIAS_TO_CANON, SOURCE_FILE_STEM_MAP, normSource, sourceStems,
|
|
1006
1046
|
DETECT_ALLOWED_SOURCES, DETECT_ALLOWED_PAY,
|
|
1007
1047
|
MONTHLY_FIELDS, MONTHLY_MUST, MONTHLY_HL, MAP_DEFS,
|
|
1008
1048
|
DRILL_1122, DRILL_1122_DEFAULT, DRILL_6002, DRILL_6002_DEFAULT,
|
|
@@ -1769,14 +1809,14 @@ window.WWT_ENGINE = (function () {
|
|
|
1769
1809
|
for (const rule of (opts.rules || [])) {
|
|
1770
1810
|
if (rule.enabled === false) continue;
|
|
1771
1811
|
if (sel && !sel.has(rule.id)) continue;
|
|
1772
|
-
const curSrc = rule.source;
|
|
1812
|
+
const curSrc = C.normSource(rule.source); // 【P1.2.64】规则源名按别名归一到规范名
|
|
1773
1813
|
const rowsAll = (opts.biz && opts.biz[curSrc]) || [];
|
|
1774
1814
|
if (!rowsAll.length) { stats.skipped.push({ rule: rule.name, why: "无业务数据" }); continue; }
|
|
1775
1815
|
if (!usedRows[curSrc]) usedRows[curSrc] = new Set();
|
|
1776
1816
|
if (!globalExcludedUsed[curSrc]) globalExcludedUsed[curSrc] = new Set();
|
|
1777
1817
|
|
|
1778
1818
|
// 命中行(同一行只归属第一条命中的规则)
|
|
1779
|
-
|
|
1819
|
+
let rowsIn = [];
|
|
1780
1820
|
for (let i = 0; i < rowsAll.length; i++) {
|
|
1781
1821
|
if (usedRows[curSrc].has(i)) continue;
|
|
1782
1822
|
const row = rowsAll[i];
|
|
@@ -1794,11 +1834,20 @@ window.WWT_ENGINE = (function () {
|
|
|
1794
1834
|
}
|
|
1795
1835
|
}
|
|
1796
1836
|
if (!rowsIn.length) { stats.skipped.push({ rule: rule.name, why: "无条件命中行" }); continue; }
|
|
1797
|
-
rowsIn.forEach(it => usedRows[curSrc].add(it._i));
|
|
1798
|
-
stats.rules++; stats.rows += rowsIn.length;
|
|
1799
1837
|
|
|
1800
1838
|
// 每行挂上生效 lines(分支优先)
|
|
1801
1839
|
for (const it of rowsIn) it._lines = resolveEffectiveLines(rule, it.row, curSrc, idx);
|
|
1840
|
+
// 【P1.2.69】命中顶层条件但无有效分录行(分支未覆盖且无默认 lines)的行,不占用 usedRows,
|
|
1841
|
+
// 留给后续规则 / 遗漏统计,避免" silently 被吞"。
|
|
1842
|
+
const noLinesRows = rowsIn.filter(it => !it._lines || !it._lines.length);
|
|
1843
|
+
if (noLinesRows.length) {
|
|
1844
|
+
stats.skipped.push({ rule: rule.name, why: "命中但无有效分录行 " + noLinesRows.length + " 行" });
|
|
1845
|
+
}
|
|
1846
|
+
const effectiveRowsIn = rowsIn.filter(it => it._lines && it._lines.length);
|
|
1847
|
+
if (!effectiveRowsIn.length) { stats.skipped.push({ rule: rule.name, why: "无有效分录行" }); continue; }
|
|
1848
|
+
effectiveRowsIn.forEach(it => usedRows[curSrc].add(it._i));
|
|
1849
|
+
stats.rules++; stats.rows += effectiveRowsIn.length;
|
|
1850
|
+
rowsIn = effectiveRowsIn; // 后续分桶统一用有效行
|
|
1802
1851
|
|
|
1803
1852
|
// Step A:分桶(决定几张凭证)
|
|
1804
1853
|
const genMode = opts.modeOverride || rule.genMode || "一对一";
|
|
@@ -2117,7 +2166,7 @@ window.WWT_ENGINE = (function () {
|
|
|
2117
2166
|
*/
|
|
2118
2167
|
function auditRule(opts) {
|
|
2119
2168
|
const rule = opts.rule || {};
|
|
2120
|
-
const curSrc = rule.source;
|
|
2169
|
+
const curSrc = C.normSource(rule.source); // 【P1.2.64】规则源名按别名归一到规范名
|
|
2121
2170
|
const rowsAll = (opts.biz && opts.biz[curSrc]) || [];
|
|
2122
2171
|
const idx = buildIndex(opts.base);
|
|
2123
2172
|
const monthly = opts.monthly || {};
|
|
@@ -2168,11 +2217,12 @@ window.WWT_ENGINE = (function () {
|
|
|
2168
2217
|
const out = [];
|
|
2169
2218
|
const missing = [];
|
|
2170
2219
|
const stats = { rules: 0, rows: 0, vouchers: 0, entries: 0, skipped: [], totalRows: 0 };
|
|
2220
|
+
const noLinesIdxs = new Set(); // 【P1.2.69】命中顶层条件但无有效分录行的索引
|
|
2171
2221
|
if (rowsAll.length) {
|
|
2172
2222
|
// 直接复用 generate 走一遍,但只跑这一条 rule;为不污染 vstart,每次都重算起始号
|
|
2173
2223
|
// 这里简单实现:复制 generate 主循环的核心分桶逻辑,但只跑一条 rule
|
|
2174
2224
|
const sel = new Set([r.id]);
|
|
2175
|
-
|
|
2225
|
+
let rowsIn = [];
|
|
2176
2226
|
for (let i = 0; i < rowsAll.length; i++) {
|
|
2177
2227
|
if (usedRows.has(i)) continue;
|
|
2178
2228
|
const row = rowsAll[i];
|
|
@@ -2192,6 +2242,19 @@ window.WWT_ENGINE = (function () {
|
|
|
2192
2242
|
rowsIn.forEach(it => usedRows.add(it._i));
|
|
2193
2243
|
stats.rules++; stats.rows += rowsIn.length;
|
|
2194
2244
|
for (const it of rowsIn) it._lines = resolveEffectiveLines(r, it.row, curSrc, idx);
|
|
2245
|
+
// 【P1.2.69】无有效分录行的,不算真正命中,从 usedRows 移除并单独记录
|
|
2246
|
+
for (const it of rowsIn) {
|
|
2247
|
+
if (!it._lines || !it._lines.length) {
|
|
2248
|
+
usedRows.delete(it._i);
|
|
2249
|
+
noLinesIdxs.add(it._i);
|
|
2250
|
+
}
|
|
2251
|
+
}
|
|
2252
|
+
const effectiveRowsIn = rowsIn.filter(it => it._lines && it._lines.length);
|
|
2253
|
+
if (effectiveRowsIn.length) {
|
|
2254
|
+
stats.rules = Math.max(1, stats.rules); // 保持规则计数
|
|
2255
|
+
stats.rows = effectiveRowsIn.length; // 修正为有效行数
|
|
2256
|
+
rowsIn = effectiveRowsIn; // 后续分桶用有效行
|
|
2257
|
+
}
|
|
2195
2258
|
|
|
2196
2259
|
const genMode = r.genMode;
|
|
2197
2260
|
const gb = r.genGroupBy || "";
|
|
@@ -2346,11 +2409,12 @@ window.WWT_ENGINE = (function () {
|
|
|
2346
2409
|
}
|
|
2347
2410
|
|
|
2348
2411
|
/* ---- by_source:本源覆盖情况 ----
|
|
2349
|
-
*
|
|
2412
|
+
* 拆四段:
|
|
2350
2413
|
* candidatesMissed = 应处理子集(满足全部 = 条件)但未生成凭证 = 真正的"遗漏"
|
|
2414
|
+
* branchMissed = 命中顶层条件但无有效分录行(分支未覆盖且无默认 lines)
|
|
2351
2415
|
* excludedRows = 源表里不满足本规则的全部 = 条件 → 按规则就不该处理,不算遗漏
|
|
2352
2416
|
* neverMatchedRows = candidatesMissed(兼容旧字段名) */
|
|
2353
|
-
const candidatesMissed = [], excludedRows = [];
|
|
2417
|
+
const candidatesMissed = [], branchMissed = [], excludedRows = [];
|
|
2354
2418
|
let ruleExcludedCount = 0, ruleExcludedAmount = 0;
|
|
2355
2419
|
let globalExcludedCount = 0, globalExcludedAmount = 0; // 【P1.2.35】
|
|
2356
2420
|
for (let i = 0; i < rowsAll.length; i++) {
|
|
@@ -2381,8 +2445,14 @@ window.WWT_ENGINE = (function () {
|
|
|
2381
2445
|
// 候选行 = 满足规则的全部 = 条件。重新判定一次而非靠 usedRows 倒推(兜底)
|
|
2382
2446
|
const cand = isCandidate(row);
|
|
2383
2447
|
if (cand) {
|
|
2384
|
-
|
|
2385
|
-
if (
|
|
2448
|
+
// 【P1.2.69】命中顶层条件但无有效分录行 → 单独归类为"分支未覆盖",而非普通遗漏
|
|
2449
|
+
if (noLinesIdxs.has(i)) {
|
|
2450
|
+
branchMissed.push(rec);
|
|
2451
|
+
if (branchMissed.length >= 200) break;
|
|
2452
|
+
} else {
|
|
2453
|
+
candidatesMissed.push(rec);
|
|
2454
|
+
if (candidatesMissed.length >= 200) break;
|
|
2455
|
+
}
|
|
2386
2456
|
} else {
|
|
2387
2457
|
excludedRows.push(rec);
|
|
2388
2458
|
if (excludedRows.length >= 200) break;
|
|
@@ -2391,6 +2461,8 @@ window.WWT_ENGINE = (function () {
|
|
|
2391
2461
|
// 漏算金额 = 应处理子集里漏命中的金额(非候选行的金额不算"遗漏",避免误报警报)
|
|
2392
2462
|
let unmatchedAmt = 0;
|
|
2393
2463
|
for (const r of candidatesMissed) unmatchedAmt += num(r.金额);
|
|
2464
|
+
let branchMissedAmt = 0;
|
|
2465
|
+
for (const r of branchMissed) branchMissedAmt += num(r.金额);
|
|
2394
2466
|
|
|
2395
2467
|
const audit = {
|
|
2396
2468
|
by_rule: [{
|
|
@@ -2407,6 +2479,8 @@ window.WWT_ENGINE = (function () {
|
|
|
2407
2479
|
matched_amount: round2(matchedAmount),
|
|
2408
2480
|
failed_amount: round2(failedAmount),
|
|
2409
2481
|
missed_amount: round2(unmatchedAmt),
|
|
2482
|
+
branch_missed: branchMissed.length,
|
|
2483
|
+
branch_missed_amount: round2(branchMissedAmt),
|
|
2410
2484
|
}],
|
|
2411
2485
|
by_source: [{
|
|
2412
2486
|
source: curSrc,
|
|
@@ -2426,6 +2500,11 @@ window.WWT_ENGINE = (function () {
|
|
|
2426
2500
|
// 兼容旧字段(仍叫 never_matched,但其内容仅含真正应处理子集漏命中的行)
|
|
2427
2501
|
never_matched: candidatesMissed.length,
|
|
2428
2502
|
unmatched_amount: round2(unmatchedAmt),
|
|
2503
|
+
// 【P1.2.69】命中条件但无有效分录行(分支未覆盖)
|
|
2504
|
+
branch_missed: branchMissed.length,
|
|
2505
|
+
branch_missed_amount: round2(branchMissedAmt),
|
|
2506
|
+
branch_missed_clipped: branchMissed.length >= 200,
|
|
2507
|
+
branch_missed_rows: branchMissed,
|
|
2429
2508
|
missing_code_count: missingCodeCount,
|
|
2430
2509
|
missing_code_amount: round2(failedAmount),
|
|
2431
2510
|
amount_col: amountCol,
|
|
@@ -2630,7 +2709,7 @@ const S = window.__STATE__ = {
|
|
|
2630
2709
|
};
|
|
2631
2710
|
|
|
2632
2711
|
/* ---------------- 版本 & 框架自动更新(只更新程序本身,本地数据/规则不动) ---------------- */
|
|
2633
|
-
const WWT_VER=(function(){const raw='P1.2.
|
|
2712
|
+
const WWT_VER=(function(){const raw='P1.2.69';return raw.indexOf('__WVER__')>=0?'P1.2.10':raw;})();
|
|
2634
2713
|
const UPD_URL_KEY='wwt_fe_updurl';
|
|
2635
2714
|
// 默认更新源:Gitee 上本项目的 version.json(API 接口,浏览器可直接跨域读)
|
|
2636
2715
|
const DEFAULT_UPD_URL='https://gitee.com/api/v5/repos/wwtmrhu/certificate-generation/contents/dist/version.json';
|
|
@@ -2652,7 +2731,11 @@ function cmpVer(a,b){
|
|
|
2652
2731
|
}
|
|
2653
2732
|
function decodeBase64(s){ try{ return decodeURIComponent(escape(atob(s.replace(/\s/g,'')))); }catch(_){ return atob(s.replace(/\s/g,'')); } }
|
|
2654
2733
|
async function checkUpdate(silent){
|
|
2655
|
-
|
|
2734
|
+
// 在启动器内运行(blob URL 或 iframe srcdoc)时由启动器统一处理更新
|
|
2735
|
+
if(location.protocol==='blob:' || window.parent!==window){
|
|
2736
|
+
if(!silent) toast('当前由启动器管理更新,请关闭后用桌面「WWT凭证工具.html」检查更新');
|
|
2737
|
+
return;
|
|
2738
|
+
}
|
|
2656
2739
|
const url=getUpdUrl();
|
|
2657
2740
|
if(!url){ if(!silent) toast('未设置更新地址,点「⚙ 更新设置」配置'); return; }
|
|
2658
2741
|
// Gitee 匿名 API 经常被限流(403),但限流窗口通常只有几秒 → 自动重试 2 次(断网/404 不重试,避免白等)
|
|
@@ -2664,15 +2747,19 @@ async function checkUpdate(silent){
|
|
|
2664
2747
|
if(res && !(res.status===403||res.status===429||res.status>=500)) break; // 限流/服务端错误才重试
|
|
2665
2748
|
if(i<2){ res=null; await new Promise(r=>setTimeout(r,1500)); }
|
|
2666
2749
|
}
|
|
2667
|
-
if(!res || !res.ok){
|
|
2750
|
+
if(!res || !res.ok){
|
|
2751
|
+
console.warn('更新检查失败:HTTP '+(res?res.status:'网络不可达'));
|
|
2752
|
+
if(!silent) toast('更新检查失败:'+(res?res.status+',请稍后重试(Gitee 限流常见)':'网络不可达'));
|
|
2753
|
+
return;
|
|
2754
|
+
}
|
|
2668
2755
|
try{
|
|
2669
2756
|
let info=await res.json();
|
|
2670
2757
|
if(info && info.content && info.encoding==='base64'){ info=JSON.parse(decodeBase64(info.content)); }
|
|
2671
2758
|
const rv=info.ver||info.version;
|
|
2672
2759
|
if(!rv){ if(!silent) toast('版本信息格式不对'); return; }
|
|
2673
2760
|
if(cmpVer(rv,WWT_VER)>0) showUpdateBanner(rv, info.url||url, info.note||'');
|
|
2674
|
-
else if(!silent) toast('
|
|
2675
|
-
}catch(e){ console.warn('更新检查出错:'+e.message); }
|
|
2761
|
+
else if(!silent) toast('当前已是最新版:'+WWT_VER);
|
|
2762
|
+
}catch(e){ console.warn('更新检查出错:'+e.message); if(!silent) toast('更新检查出错:'+e.message); }
|
|
2676
2763
|
}
|
|
2677
2764
|
function showUpdateBanner(ver,url,note){
|
|
2678
2765
|
_pendingUpdUrl=url;
|
|
@@ -3107,8 +3194,7 @@ function renderUpload(){
|
|
|
3107
3194
|
if(kind==='base'){
|
|
3108
3195
|
for(const k in BASE_KEYWORD){ if(BASE_KEYWORD[k].some(w=>f.name.indexOf(w)>=0)){matched=k;break;} }
|
|
3109
3196
|
}else{
|
|
3110
|
-
for(const
|
|
3111
|
-
if(f.name.indexOf(stem)>=0){matched=s.key;break;} }
|
|
3197
|
+
for(const stem in C.SOURCE_FILE_STEM_MAP){ if(f.name.indexOf(stem)>=0){matched=C.SOURCE_FILE_STEM_MAP[stem];break;} }
|
|
3112
3198
|
}
|
|
3113
3199
|
if(matched){ await handleOne(kind,matched,f); hit++; } else miss.push(f.name);
|
|
3114
3200
|
}
|
|
@@ -3254,7 +3340,7 @@ function openUploadDialog(){
|
|
|
3254
3340
|
'<optgroup label="基础数据(一次上传长期有效)">'+optBase+'</optgroup></select>'+
|
|
3255
3341
|
'</div>'+
|
|
3256
3342
|
'<div class="up-row"><label>选择文件</label><input type="file" id="upFile" accept=".xls,.xlsx"></div>'+
|
|
3257
|
-
'<div class="up-tip">业务数据请用本月原 <b>.xls</b> 文件,<b>不要改名、不要另存为 .xlsx</b>。文件名含表关键字可自动归位(如「入库已确认.xls」「客户表.xls
|
|
3343
|
+
'<div class="up-tip">业务数据请用本月原 <b>.xls</b> 文件,<b>不要改名、不要另存为 .xlsx</b>。文件名含表关键字可自动归位(如「入库已确认.xls」「客户表.xls」)。<br>同一张表的不同叫法(如 <b>销售=出库、确认=结算、未确认=未结算</b>)会自动归到同一张表。</div>'+
|
|
3258
3344
|
'<div class="up-row up-actions">'+
|
|
3259
3345
|
'<button class="btn primary" data-act="upload">📤 上传</button>'+
|
|
3260
3346
|
'<button class="btn ghost" data-act="close">取消</button>'+
|
|
@@ -3272,9 +3358,13 @@ function openUploadDialog(){
|
|
|
3272
3358
|
const opt=sel.options[sel.selectedIndex];
|
|
3273
3359
|
const key=sel.value, kind=opt.dataset.kind;
|
|
3274
3360
|
if(!file){ toast('请先选文件'); return; }
|
|
3275
|
-
// 业务表按 SOURCE_META.file
|
|
3276
|
-
const stem = kind==='base' ? key :
|
|
3277
|
-
if(
|
|
3361
|
+
// 业务表按 SOURCE_META.file(及别名)关键字校验;基础表按 key 关键字
|
|
3362
|
+
const stem = kind==='base' ? key : null;
|
|
3363
|
+
if(kind==='biz'){
|
|
3364
|
+
const stems=C.sourceStems(key);
|
|
3365
|
+
const ok=stems.some(s=>file.name.indexOf(s)>=0);
|
|
3366
|
+
if(!ok && !confirm('文件名不含「'+stems.join(' / ')+'」,可能不是该表对应文件,仍要上传吗?')) return;
|
|
3367
|
+
} else if(stem && file.name.indexOf(stem)<0 && !confirm('文件名不含「'+stem+'」,可能不是该表对应文件,仍要上传吗?')) return;
|
|
3278
3368
|
close();
|
|
3279
3369
|
await handleOne(kind, key, file);
|
|
3280
3370
|
renderUpload();
|
|
@@ -3732,13 +3822,16 @@ function log(msg){ const l=$('uploadLog'); l.classList.add('on');
|
|
|
3732
3822
|
|
|
3733
3823
|
async function handleOne(kind,key,file){
|
|
3734
3824
|
const sheetName=(kind==='biz'&&C.SOURCE_META[key])?C.SOURCE_META[key].sheet:key;
|
|
3825
|
+
// 【P1.2.64】若是按别名归位的(文件名不含规范名词干),日志/提示写明映射关系
|
|
3826
|
+
const canonStem=(kind==='biz'&&C.SOURCE_META[key])?(C.SOURCE_META[key].file||'').replace(/\.xls$/i,''):'';
|
|
3827
|
+
const aliasNote=(kind==='biz'&&canonStem&&file.name.indexOf(canonStem)<0)?'(按别名归位:'+file.name.replace(/\.xls$/i,'').replace(/\.xlsx$/i,'')+' → '+key+')':'';
|
|
3735
3828
|
try{
|
|
3736
3829
|
const r=readSheetFile?await readSheetFile(file,sheetName):null;
|
|
3737
3830
|
if(!r.rows.length){ toast('这个文件没读到数据行'); return; }
|
|
3738
3831
|
if(kind==='base'){ S.base[key]=r.rows; await DB.put('base',key,r.rows); }
|
|
3739
3832
|
else{ S.biz[key]=r.rows; await DB.put('biz',key,r.rows); }
|
|
3740
|
-
log('✅ '+key+' ← '+file.name+'(工作表「'+r.sheet+'」,'+r.rows.length+' 行)');
|
|
3741
|
-
toast(key+' 已载入 '+r.rows.length+' 行');
|
|
3833
|
+
log('✅ '+key+' ← '+file.name+'(工作表「'+r.sheet+'」,'+r.rows.length+' 行)'+aliasNote);
|
|
3834
|
+
toast(key+' 已载入 '+r.rows.length+' 行'+(aliasNote?'(别名归位)':''));
|
|
3742
3835
|
renderUpload();
|
|
3743
3836
|
_treeRefreshIfOpen();
|
|
3744
3837
|
}catch(e){ toast('读取失败:'+e.message); log('❌ '+key+' ← '+file.name+':'+e.message); }
|
|
@@ -3753,8 +3846,7 @@ function autoFill(kind){
|
|
|
3753
3846
|
if(kind==='base'){
|
|
3754
3847
|
for(const k in BASE_KEYWORD){ if(BASE_KEYWORD[k].some(w=>f.name.indexOf(w)>=0)){matched=k;break;} }
|
|
3755
3848
|
}else{
|
|
3756
|
-
for(const
|
|
3757
|
-
if(f.name.indexOf(stem)>=0){matched=s.key;break;} }
|
|
3849
|
+
for(const stem in C.SOURCE_FILE_STEM_MAP){ if(f.name.indexOf(stem)>=0){matched=C.SOURCE_FILE_STEM_MAP[stem];break;} }
|
|
3758
3850
|
}
|
|
3759
3851
|
if(matched){ await handleOne(kind,matched,f); hit++; } else miss.push(f.name);
|
|
3760
3852
|
}
|
|
@@ -3894,7 +3986,10 @@ function _srcTabsHTML(scope){
|
|
|
3894
3986
|
const rules=S.rules||[];
|
|
3895
3987
|
const total=rules.length;
|
|
3896
3988
|
let html='<button class="stab'+(filter==='all'?' on':'')+(total?'':' zero')+'" data-src="all">全部 <span class="cnt">'+total+'</span></button>';
|
|
3897
|
-
|
|
3989
|
+
// 【P1.2.65】未确认 / 未结算 类业务源(如 入库未结算、出库未确认、调拨未确认、已完工未结算)排到后面,已确认/已结算类在前,更贴合月结顺序
|
|
3990
|
+
const _isPending = k => /未结算|未确认|未结/.test(k);
|
|
3991
|
+
const _slots = C.BIZ_SLOTS.slice().sort((a,b)=> (_isPending(a.key)?1:0) - (_isPending(b.key)?1:0));
|
|
3992
|
+
for(const s of _slots){
|
|
3898
3993
|
const cnt=rules.filter(r=>r.source===s.key).length;
|
|
3899
3994
|
html+='<button class="stab'+(filter===s.key?' on':'')+(cnt?'':' zero')+'" data-src="'+esc(s.key)+'">'+esc(s.label)+' <span class="cnt">'+cnt+'</span></button>';
|
|
3900
3995
|
}
|
|
@@ -3959,7 +4054,13 @@ function lineChip(l){
|
|
|
3959
4054
|
function renderRuleChecks(){
|
|
3960
4055
|
renderGenRuleTabs();
|
|
3961
4056
|
const filter=S.genSrcFilter||'all';
|
|
3962
|
-
|
|
4057
|
+
let list=filter==='all'?S.rules:S.rules.filter(r=>r.source===filter);
|
|
4058
|
+
// 【P1.2.65】按凭证号从小到大排序(已生成有凭证号在前,未生成的放最后),方便查看
|
|
4059
|
+
list=list.slice().sort((a,b)=>{
|
|
4060
|
+
const va=S.ruleVnos[a.id], vb=S.ruleVnos[b.id];
|
|
4061
|
+
const na=va?va.min:Infinity, nb=vb?vb.min:Infinity;
|
|
4062
|
+
return na-nb;
|
|
4063
|
+
});
|
|
3963
4064
|
$('ruleChecks').innerHTML=list.length?list.map(r=>{
|
|
3964
4065
|
const generated=S.genRules.has(r.id);
|
|
3965
4066
|
const vnoInfo=S.ruleVnos[r.id];
|
|
@@ -4218,11 +4319,11 @@ function ruleFormHTML(){
|
|
|
4218
4319
|
'<span class="w60">条件逻辑</span><select id="rf_logic">'+logicOpts+'</select></div></div>';
|
|
4219
4320
|
|
|
4220
4321
|
h+='<div class="sec"><h4>命中条件(这张表的哪些行要被这条规则处理)</h4><div id="rf_conds">'+
|
|
4221
|
-
(r.conditions||[]).map((c,i)=>condRowHTML(i,c)).join('')+'</div>'+
|
|
4322
|
+
(r.conditions||[]).map((c,i)=>condRowHTML(i,c,undefined,true)).join('')+'</div>'+
|
|
4222
4323
|
'<button class="mini" onclick="UI.addCond()">+ 加条件</button></div>';
|
|
4223
4324
|
|
|
4224
4325
|
h+='<div class="sec"><h4>分支(可选:按条件走不同分录;命中第一个分支就停)</h4><div id="rf_branches">'+
|
|
4225
|
-
(r.branches||[]).map((b,bi)=>branchHTML(bi,b)).join('')+'</div>'+
|
|
4326
|
+
(r.branches||[]).map((b,bi)=>branchHTML(bi,b,undefined)).join('')+'</div>'+
|
|
4226
4327
|
'<button class="mini" onclick="UI.addBranch()">+ 加分支</button></div>';
|
|
4227
4328
|
|
|
4228
4329
|
h+='<div class="sec"><h4>默认分录(没分支、或分支都没命中时走这里)</h4><div id="rf_lines">'+
|
|
@@ -4230,26 +4331,29 @@ function ruleFormHTML(){
|
|
|
4230
4331
|
'<button class="mini" onclick="UI.addLine(-1)">+ 加分录</button></div>';
|
|
4231
4332
|
return h;
|
|
4232
4333
|
}
|
|
4233
|
-
function condRowHTML(i,c,srcKey){
|
|
4334
|
+
function condRowHTML(i,c,srcKey,showLogic){
|
|
4234
4335
|
const opOpts=C.OPS.map(o=>'<option value="'+esc(o)+'"'+(c.op===o?' selected':'')+'>'+esc(o)+'</option>').join('');
|
|
4235
4336
|
// 【P1.2.36】全局排除分组按业务源独立 datalist(避免看到别的业务源的字段)
|
|
4236
4337
|
const listId = srcKey ? 'dlGe_' + srcKey : 'dlBizFields';
|
|
4338
|
+
// 【P1.2.66】全局排除的分组逻辑由顶部 AND/OR 统一控制,条件行不需要每行「并且/或者」下拉;
|
|
4339
|
+
// 规则编辑器/分支里的条件仍保留该下拉。
|
|
4340
|
+
const logicPart = showLogic ? '<select class="w80" data-f="logic"><option value=""'+(!c.logic?' selected':'')+'>并且</option>'+
|
|
4341
|
+
'<option value="OR"'+(c.logic==='OR'?' selected':'')+'>或者</option></select>' : '';
|
|
4237
4342
|
return '<div class="row condrow" data-i="'+i+'">'+
|
|
4238
4343
|
'<input class="w140" data-f="field" value="'+esc(c.field||'')+'" placeholder="点此选字段" list="'+listId+'">'+
|
|
4239
4344
|
'<select class="w80" data-f="op">'+opOpts+'</select>'+
|
|
4240
4345
|
'<input class="w180" data-f="value" value="'+esc(c.value===undefined?'':c.value)+'" placeholder="比较值">'+
|
|
4241
|
-
|
|
4242
|
-
'<option value="OR"'+(c.logic==='OR'?' selected':'')+'>或者</option></select>'+
|
|
4346
|
+
logicPart+
|
|
4243
4347
|
'<button class="mini del" onclick="UI.delRow(this,\'condrow\')">删</button></div>';
|
|
4244
4348
|
}
|
|
4245
|
-
function branchHTML(bi,b){
|
|
4349
|
+
function branchHTML(bi,b,srcKey){
|
|
4246
4350
|
return '<div class="sec" style="background:#f7f9fc" data-bi="'+bi+'"><div class="row">'+
|
|
4247
4351
|
'<span class="w60">分支名</span><input class="w180" data-bf="name" value="'+esc(b.name||'')+'">'+
|
|
4248
4352
|
'<span class="w60">逻辑</span><select class="w80" data-bf="logic"><option value="AND"'+((b.logic||'AND')==='AND'?' selected':'')+'>AND</option>'+
|
|
4249
4353
|
'<option value="OR"'+(b.logic==='OR'?' selected':'')+'>OR</option></select>'+
|
|
4250
4354
|
'<button class="mini del" onclick="UI.delBranch('+bi+')">删除分支</button></div>'+
|
|
4251
4355
|
'<div style="font-size:11.5px;color:#57606a;margin:4px 0">分支条件:</div><div class="bconds">'+
|
|
4252
|
-
(b.conditions||b.when||[]).map((c,i)=>condRowHTML(i,c)).join('')+'</div>'+
|
|
4356
|
+
(b.conditions||b.when||[]).map((c,i)=>condRowHTML(i,c,srcKey,true)).join('')+'</div>'+
|
|
4253
4357
|
'<button class="mini" onclick="UI.addCond(this)">+ 加条件</button>'+
|
|
4254
4358
|
'<div style="font-size:11.5px;color:#57606a;margin:6px 0 3px">分录:</div><div class="blines">'+
|
|
4255
4359
|
(b.lines||[]).map((l,li)=>lineHTML(bi,li,l)).join('')+'</div>'+
|
|
@@ -4281,7 +4385,7 @@ function auxHTML(ai,a){
|
|
|
4281
4385
|
/* 编辑器增/删(直接操作 editing 对象后重绘,保证 DOM 与数据一致) */
|
|
4282
4386
|
function syncFormToObj(){
|
|
4283
4387
|
const r=editing;
|
|
4284
|
-
r.name=$('rf_name').value.trim(); r.source
|
|
4388
|
+
r.name=$('rf_name').value.trim(); r.source=C.normSource($('rf_src').value);
|
|
4285
4389
|
r.enabled=$('rf_en').checked; r.genMode=$('rf_mode').value;
|
|
4286
4390
|
r.genGroupBy=$('rf_gb').value.trim(); r.lineSplitBy=$('rf_split').value.trim();
|
|
4287
4391
|
r.logic=$('rf_logic').value;
|
|
@@ -4289,7 +4393,7 @@ function syncFormToObj(){
|
|
|
4289
4393
|
r.conditions=[...document.querySelectorAll('#rf_conds > .condrow')].map(row=>{
|
|
4290
4394
|
const g=f=>row.querySelector('[data-f="'+f+'"]');
|
|
4291
4395
|
return {field:g('field').value.trim(),op:g('op').value,value:g('value').value.trim(),
|
|
4292
|
-
logic:g('logic').value||undefined};
|
|
4396
|
+
logic:(g('logic')||{}).value||undefined};
|
|
4293
4397
|
});
|
|
4294
4398
|
// 分支
|
|
4295
4399
|
const bsecs=[...document.querySelectorAll('#rf_branches > [data-bi]')];
|
|
@@ -4299,7 +4403,7 @@ function syncFormToObj(){
|
|
|
4299
4403
|
const conds=[...sec.querySelectorAll(':scope > .bconds > .condrow')].map(row=>{
|
|
4300
4404
|
const g=f=>row.querySelector('[data-f="'+f+'"]');
|
|
4301
4405
|
return {field:g('field').value.trim(),op:g('op').value,value:g('value').value.trim(),
|
|
4302
|
-
logic:g('logic').value||undefined};
|
|
4406
|
+
logic:(g('logic')||{}).value||undefined};
|
|
4303
4407
|
});
|
|
4304
4408
|
const lines=collectLines(sec.querySelectorAll(':scope > .blines > .linerow'));
|
|
4305
4409
|
return {name:nm,logic:lg,conditions:conds,when:conds,lines:lines};
|
|
@@ -4332,7 +4436,7 @@ function redrawRuleForm(){
|
|
|
4332
4436
|
* ============================================================ */
|
|
4333
4437
|
|
|
4334
4438
|
// 【P1.2.60】多规则全选生成时,按以下优先级排序,让同类/同付款方式规则的凭证号相邻
|
|
4335
|
-
const GEN_PRIORITY_SOURCES = ['
|
|
4439
|
+
const GEN_PRIORITY_SOURCES = ['入库未结算','出库未确认','调拨未确认','在修车','已完工未结算'];
|
|
4336
4440
|
const GEN_PRIORITY_PAYMENTS = ['对冲F','对账S','对账F','还件F','入库F','冲转S','冲转F','挂账','冲预收','冲预付','现金S','银行S','现金F','银行F'];
|
|
4337
4441
|
function _uClean(s){ return String(s==null?'':s).trim(); }
|
|
4338
4442
|
function detectRulePayment(r){
|
|
@@ -4349,7 +4453,7 @@ function detectRulePayment(r){
|
|
|
4349
4453
|
return '';
|
|
4350
4454
|
}
|
|
4351
4455
|
function rulePriorityKey(r){
|
|
4352
|
-
const src=_uClean(r.source||'');
|
|
4456
|
+
const src=_uClean(C.normSource(r.source||''));
|
|
4353
4457
|
for(let i=0;i<GEN_PRIORITY_SOURCES.length;i++) if(src.indexOf(GEN_PRIORITY_SOURCES[i])>=0) return [0,i];
|
|
4354
4458
|
const pay=detectRulePayment(r);
|
|
4355
4459
|
const pi=GEN_PRIORITY_PAYMENTS.indexOf(pay);
|
|
@@ -4592,10 +4696,11 @@ function previewRule(ruleId){
|
|
|
4592
4696
|
const r0Matched = r0.actually_matched || 0;
|
|
4593
4697
|
const r0Cand = r0.candidate_in_source || 0;
|
|
4594
4698
|
const candMissed = bs.candidate_missed || 0;
|
|
4699
|
+
const branchMissed = bs.branch_missed || 0;
|
|
4595
4700
|
const excluded = bs.excluded || 0;
|
|
4596
4701
|
const coverage = r0Cand ? Math.round(r0Matched / r0Cand * 1000) / 10 : 0;
|
|
4597
|
-
// ok:无遗漏 + 编码完整 + 真命中数 > 0
|
|
4598
|
-
const ok = r0Matched > 0 && candMissed === 0 && (r0.missing_code_count || 0) === 0;
|
|
4702
|
+
// ok:无遗漏 + 无分支未覆盖 + 编码完整 + 真命中数 > 0
|
|
4703
|
+
const ok = r0Matched > 0 && candMissed === 0 && branchMissed === 0 && (r0.missing_code_count || 0) === 0;
|
|
4599
4704
|
// warn:完全没命中(条件过严 / 数据缺映射)
|
|
4600
4705
|
const bannerCls = ok ? 'ok' : (r0Matched === 0 ? 'warn' : 'err');
|
|
4601
4706
|
|
|
@@ -4609,16 +4714,18 @@ function previewRule(ruleId){
|
|
|
4609
4714
|
((r.genMode==='匹配汇总' || (r.genMode==='全部汇总' && r.genGroupBy && r.genGroupBy!=='单位名称'))?'(按 '+esc(r.genGroupBy||'单位名称')+')':'')+' · '+linesTxt+'</span>'+
|
|
4610
4715
|
'<button class="mini" onclick="UI.closeModal()">✕ 关闭</button></div><div class="modalbd">';
|
|
4611
4716
|
|
|
4612
|
-
// 顶部 banner:先说"覆盖率 N% + 命中数 / 应处理子集",再分别说"应处理子集漏命中"
|
|
4717
|
+
// 顶部 banner:先说"覆盖率 N% + 命中数 / 应处理子集",再分别说"应处理子集漏命中" / "分支未覆盖" / "源表被规则排除"
|
|
4613
4718
|
h+='<div class="banner '+bannerCls+'">规则源表 <code>['+esc(r.source)+']</code> '+filterTxt+
|
|
4614
4719
|
' 源表共 <b>'+(r0.source_total||0)+'</b> 行 → 应处理的子集 <b>'+r0Cand+'</b> 行 → '+
|
|
4615
4720
|
'命中 <b>'+r0Matched+'</b> 行(应处理子集覆盖率 <b>'+coverage+'%</b>)'+
|
|
4616
4721
|
(candMissed?' <abbr title="满足本规则的全部 = 条件、应当命中却未生成凭证"><b style="color:#a40e26">应处理子集里漏了 '+candMissed+' 行</b></abbr>':'')+
|
|
4722
|
+
(branchMissed?' <abbr title="命中本规则顶层条件,但所有分支都不匹配且没有默认分录行,因此未生成凭证"><b style="color:#a40e26">分支未覆盖 '+branchMissed+' 行</b></abbr>':'')+
|
|
4617
4723
|
(r0.missing_code_count?' <b style="color:#a40e26">编码缺失 '+r0.missing_code_count+' 条</b>':'')+
|
|
4618
4724
|
(excluded?' <abbr title="源表里不满足本规则的全部 = 条件(付款方式≠对账S 等),按规则设计本就不该命中"><span style="color:#57606a">另有 '+excluded+' 行不满足条件</span></abbr>':'')+
|
|
4619
4725
|
'<div style="margin-top:5px;font-size:12px;color:#57606a">命中金额 '+fmt(r0.matched_amount||0)+' 元 · '+
|
|
4620
4726
|
'失败金额 '+fmt(r0.failed_amount||0)+' 元 · '+
|
|
4621
4727
|
(candMissed?'<b style="color:#a40e26">应处理子集漏算 '+fmt(r0.missed_amount||0)+' 元</b>':'漏算金额 '+fmt(r0.missed_amount||0)+' 元')+
|
|
4728
|
+
(branchMissed?' · <b style="color:#a40e26">分支未覆盖金额 '+fmt(r0.branch_missed_amount||0)+' 元</b>':'')+
|
|
4622
4729
|
(bs.amount_col?'(按 '+esc(bs.amount_col)+' 列汇总)':'')+'</div></div>';
|
|
4623
4730
|
|
|
4624
4731
|
// 段 1:应处理子集漏命中 = 真遗漏(必显示,便于排查)
|
|
@@ -4632,7 +4739,21 @@ function previewRule(ruleId){
|
|
|
4632
4739
|
'」在客户表里没记录;② 业务数值字段(如 实收金额)为空/为 0;③ 维度映射缺失导致 makeEntry 跳过。展开逐行查:</div>'+
|
|
4633
4740
|
unmatchedTableHtml(candRows, r.source)+
|
|
4634
4741
|
'</details>';
|
|
4635
|
-
}
|
|
4742
|
+
}
|
|
4743
|
+
|
|
4744
|
+
// 段 1.5:命中顶层条件但无有效分录行 = 分支未覆盖(或默认 lines 为空)
|
|
4745
|
+
const branchRows = bs.branch_missed_rows || [];
|
|
4746
|
+
if(branchRows.length){
|
|
4747
|
+
const cap = bs.branch_missed_clipped ? '(已截断,最多显示 200 行)' : '';
|
|
4748
|
+
h+='<details style="margin-top:8px" open><summary style="cursor:pointer;color:#a40e26;font-weight:600">▼ 命中条件但无分支/分录匹配 <b>'+
|
|
4749
|
+
branchRows.length+'</b> 行(未生成凭证) '+cap+'</summary>'+
|
|
4750
|
+
'<div style="margin-top:6px;color:#57606a;font-size:12px">这些行满足本规则的顶层条件,但所有分支条件都不命中,且规则没有设置默认分录行,因此没有生成凭证。' +
|
|
4751
|
+
'请检查分支条件是否遗漏了「分类码」= E类其它 / 空白 等取值,或给规则添加默认分录行。</div>'+
|
|
4752
|
+
unmatchedTableHtml(branchRows, r.source)+
|
|
4753
|
+
'</details>';
|
|
4754
|
+
}
|
|
4755
|
+
|
|
4756
|
+
if(!candRows.length && !branchRows.length && r0Matched > 0){
|
|
4636
4757
|
h+='<div class="banner ok" style="margin-top:8px">✅ 应处理子集全部命中,无遗漏</div>';
|
|
4637
4758
|
}
|
|
4638
4759
|
|
|
@@ -5576,6 +5697,8 @@ function importRules(){
|
|
|
5576
5697
|
fr.onload=ev=>{ try{ const o=JSON.parse(ev.target.result);
|
|
5577
5698
|
const arr=Array.isArray(o)?o:(o.rules||[]);
|
|
5578
5699
|
if(!arr.length){toast('文件里没有规则');return;}
|
|
5700
|
+
// 【P1.2.64】导入时把 rule.source 按别名归一(如 出库已结算 → 销售已确认)
|
|
5701
|
+
arr.forEach(r=>{ if(r&&r.source) r.source=C.normSource(r.source); });
|
|
5579
5702
|
S.rules=S.rules.concat(arr); saveCfg(); renderRules(); renderRuleChecks();
|
|
5580
5703
|
toast('已导入 '+arr.length+' 条规则');
|
|
5581
5704
|
}catch(err){toast('导入失败:'+err.message);} };
|
|
@@ -6110,7 +6233,7 @@ window.UI={
|
|
|
6110
6233
|
}
|
|
6111
6234
|
for (const s of slots) {
|
|
6112
6235
|
const cfg = ge[s.key] || (ge[s.key] = { logic: 'AND', conditions: [] });
|
|
6113
|
-
const condHTML = (cfg.conditions || []).map((c, i) => condRowHTML(i, c, s.key)).join('');
|
|
6236
|
+
const condHTML = (cfg.conditions || []).map((c, i) => condRowHTML(i, c, s.key, false)).join('');
|
|
6114
6237
|
const condsId = 'ge_conds_' + s.key;
|
|
6115
6238
|
html += '<details open style="border:1px solid #dde2e8;border-radius:6px;margin:6px 0;background:#fff">'+
|
|
6116
6239
|
'<summary style="padding:8px 12px;cursor:pointer;font-weight:600">'+
|
package/dist/version.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"ver": "P1.2.
|
|
3
|
-
"npm": "1.2.
|
|
4
|
-
"url": "https://cdn.jsdelivr.net/npm/wwt-certificate-tool@1.2.
|
|
5
|
-
"url_unpkg": "https://unpkg.com/wwt-certificate-tool@1.2.
|
|
6
|
-
"url_gh": "https://api.github.com/repos/huweipei745839/certificate-generation/contents/dist/WWT%E5%87%AD%E8%AF%81%E5%B7%A5%E5%85%B7_P1.2.
|
|
7
|
-
"note": "
|
|
2
|
+
"ver": "P1.2.69",
|
|
3
|
+
"npm": "1.2.69",
|
|
4
|
+
"url": "https://cdn.jsdelivr.net/npm/wwt-certificate-tool@1.2.69/dist/app.html",
|
|
5
|
+
"url_unpkg": "https://unpkg.com/wwt-certificate-tool@1.2.69/dist/app.html",
|
|
6
|
+
"url_gh": "https://api.github.com/repos/huweipei745839/certificate-generation/contents/dist/WWT%E5%87%AD%E8%AF%81%E5%B7%A5%E5%85%B7_P1.2.69.html",
|
|
7
|
+
"note": "㉒ 【P1.2.69】修复规则命中顶层条件但分支未覆盖(且无默认分录行)的行被静默吞掉:这些行不再计入「已命中/已覆盖」,也不占用 usedRows;auditRule 新增 branch_missed 统计,规则预览弹窗显式提示「命中条件但无分支/分录匹配 X 行」及金额,避免用户误以为「应处理子集全部命中」。"
|
|
8
8
|
}
|