wwt-certificate-tool 1.2.70 → 1.2.71
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 +5 -4
- 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.71</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.71</span></h1>
|
|
332
332
|
<div class="sub">纯前端离线版 · 双击即用 · 数据只存在本机,不上传任何服务器</div>
|
|
333
333
|
</div>
|
|
334
334
|
</div>
|
|
@@ -1083,10 +1083,11 @@ window.WWT_ENGINE = (function () {
|
|
|
1083
1083
|
if (!row || typeof row !== "object") return false;
|
|
1084
1084
|
const fields = TOTAL_LABEL_FIELDS.concat(Object.keys(row).filter(k => TOTAL_LABEL_FIELDS.indexOf(k) < 0));
|
|
1085
1085
|
// 法一:任意字段含 合计/小计/总计/total/sum(含写在摘要/备注/类型等非标识列的情况)
|
|
1086
|
+
// 某些 Excel 合计格会把「合计」写成「 合 计」之类带空格,先去掉全部空白再匹配。
|
|
1086
1087
|
for (const f of fields) {
|
|
1087
1088
|
const v = clean(row[f]);
|
|
1088
1089
|
if (!v) continue;
|
|
1089
|
-
const lv = v.toLowerCase();
|
|
1090
|
+
const lv = v.replace(/\s+/g, '').toLowerCase();
|
|
1090
1091
|
for (const kw of TOTAL_KEYWORDS) {
|
|
1091
1092
|
if (lv.indexOf(kw.toLowerCase()) >= 0) return true;
|
|
1092
1093
|
}
|
|
@@ -2709,7 +2710,7 @@ const S = window.__STATE__ = {
|
|
|
2709
2710
|
};
|
|
2710
2711
|
|
|
2711
2712
|
/* ---------------- 版本 & 框架自动更新(只更新程序本身,本地数据/规则不动) ---------------- */
|
|
2712
|
-
const WWT_VER=(function(){const raw='P1.2.
|
|
2713
|
+
const WWT_VER=(function(){const raw='P1.2.71';return raw.indexOf('__WVER__')>=0?'P1.2.10':raw;})();
|
|
2713
2714
|
const UPD_URL_KEY='wwt_fe_updurl';
|
|
2714
2715
|
// 默认更新源:Gitee 上本项目的 version.json(API 接口,浏览器可直接跨域读)
|
|
2715
2716
|
const DEFAULT_UPD_URL='https://gitee.com/api/v5/repos/wwtmrhu/certificate-generation/contents/dist/version.json';
|
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.71",
|
|
3
|
+
"npm": "1.2.71",
|
|
4
|
+
"url": "https://cdn.jsdelivr.net/npm/wwt-certificate-tool@1.2.71/dist/app.html",
|
|
5
|
+
"url_unpkg": "https://unpkg.com/wwt-certificate-tool@1.2.71/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.71.html",
|
|
7
|
+
"note": "㉔ 【P1.2.71】修复合计行识别:单元格内「合」「计」或「小」「计」之间有空格(如 Excel 底部「 合 计 」「 小 计 」)时也能正确识别并跳过,避免汇总金额被重复累加。"
|
|
8
8
|
}
|