wwt-certificate-tool 1.2.52 → 1.2.53
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 +12 -11
- 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.53</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}
|
|
@@ -320,7 +320,7 @@ input[data-f="field"][list^="dlGe_"]::placeholder{color:#a8861f;font-style:itali
|
|
|
320
320
|
<div class="brand">
|
|
321
321
|
<span class="logo">WWT</span>
|
|
322
322
|
<div>
|
|
323
|
-
<h1>金蝶凭证工具 <span class="ver">P1.2.
|
|
323
|
+
<h1>金蝶凭证工具 <span class="ver">P1.2.53</span></h1>
|
|
324
324
|
<div class="sub">纯前端离线版 · 双击即用 · 数据只存在本机,不上传任何服务器</div>
|
|
325
325
|
</div>
|
|
326
326
|
</div>
|
|
@@ -2469,7 +2469,7 @@ window.WWT_ENGINE = (function () {
|
|
|
2469
2469
|
});
|
|
2470
2470
|
totalRows += checked.length;
|
|
2471
2471
|
|
|
2472
|
-
const push = (dimName, val, kind, hint, billNo) => {
|
|
2472
|
+
const push = (dimName, val, kind, hint, billNo, pay) => {
|
|
2473
2473
|
if (!val) return;
|
|
2474
2474
|
let code = "";
|
|
2475
2475
|
if (kind === "客户" || kind === "供应商") {
|
|
@@ -2479,7 +2479,7 @@ window.WWT_ENGINE = (function () {
|
|
|
2479
2479
|
if (!code) {
|
|
2480
2480
|
missCount++;
|
|
2481
2481
|
byDim[dimName] = (byDim[dimName] || 0) + 1;
|
|
2482
|
-
res.push({ 来源单据: src, 维度: dimName, 名称: val, 单号: billNo || '', 建议: hint });
|
|
2482
|
+
res.push({ 来源单据: src, 维度: dimName, 名称: val, 单号: billNo || '', '付款方式/结算方式': pay || '', 建议: hint });
|
|
2483
2483
|
}
|
|
2484
2484
|
};
|
|
2485
2485
|
|
|
@@ -2489,7 +2489,8 @@ window.WWT_ENGINE = (function () {
|
|
|
2489
2489
|
if (party) {
|
|
2490
2490
|
const dimName = meta.partytype === "供应商" ? "供应商" : "客户";
|
|
2491
2491
|
const billNo = clean(r[meta.no]) || clean(r["原单号"]);
|
|
2492
|
-
|
|
2492
|
+
const pay = clean(r["付款方式"]) || clean(r["支付方式"]) || clean(r["结算方式"]);
|
|
2493
|
+
push(dimName, party, dimName, suggest[dimName], billNo, pay);
|
|
2493
2494
|
}
|
|
2494
2495
|
}
|
|
2495
2496
|
}
|
|
@@ -2527,7 +2528,7 @@ const S = window.__STATE__ = {
|
|
|
2527
2528
|
};
|
|
2528
2529
|
|
|
2529
2530
|
/* ---------------- 版本 & 框架自动更新(只更新程序本身,本地数据/规则不动) ---------------- */
|
|
2530
|
-
const WWT_VER=(function(){const raw='P1.2.
|
|
2531
|
+
const WWT_VER=(function(){const raw='P1.2.53';return raw.indexOf('__WVER__')>=0?'P1.2.10':raw;})();
|
|
2531
2532
|
const UPD_URL_KEY='wwt_fe_updurl';
|
|
2532
2533
|
// 默认更新源:Gitee 上本项目的 version.json(API 接口,浏览器可直接跨域读)
|
|
2533
2534
|
const DEFAULT_UPD_URL='https://gitee.com/api/v5/repos/wwtmrhu/certificate-generation/contents/dist/version.json';
|
|
@@ -4581,8 +4582,8 @@ function exportRulePreview(){
|
|
|
4581
4582
|
* ⑤ 凭证审核
|
|
4582
4583
|
* ============================================================ */
|
|
4583
4584
|
// 【P1.2.48】审核表格把客户/供应商/部门/员工/仓库/收入类型/成本类型等合并成「核算维度」单列
|
|
4584
|
-
const AUD_COLS=['凭证号','分录序号','记账日期','业务日期','摘要','科目编码','科目名称','借方金额','贷方金额',
|
|
4585
|
-
'
|
|
4585
|
+
const AUD_COLS=['凭证号','分录序号','记账日期','业务日期','摘要','科目编码','科目名称','核算维度','借方金额','贷方金额',
|
|
4586
|
+
'结算方式名称','来源单据','规则名称'];
|
|
4586
4587
|
const AUD_NUM=['借方金额','贷方金额'];
|
|
4587
4588
|
let audPage=1;
|
|
4588
4589
|
/** S.draft 里"分组来源":cv_upload | 业务源 key(如 销售已确认) */
|
|
@@ -4741,9 +4742,9 @@ function runDetect(){
|
|
|
4741
4742
|
(Object.keys(r.byDim).length?'('+Object.entries(r.byDim).map(x=>esc(x[0])+' '+x[1]).join('、')+')':'');
|
|
4742
4743
|
let h='';
|
|
4743
4744
|
if(r.rows.length){
|
|
4744
|
-
h='<table><thead><tr><th>来源单据</th><th>维度</th><th>业务里的名称</th><th>单号</th><th>建议</th></tr></thead><tbody>'+
|
|
4745
|
+
h='<table><thead><tr><th>来源单据</th><th>维度</th><th>业务里的名称</th><th>单号</th><th>付款方式/结算方式</th><th>建议</th></tr></thead><tbody>'+
|
|
4745
4746
|
r.rows.slice(0,500).map(x=>'<tr><td>'+esc(x.来源单据)+'</td><td>'+esc(x.维度)+'</td><td><b>'+esc(x.名称)+'</b></td>'+
|
|
4746
|
-
'<td>'+esc(x.单号||'-')+'</td><td style="color:#8b949e">'+esc(x.建议)+'</td></tr>').join('')+'</tbody></table>';
|
|
4747
|
+
'<td>'+esc(x.单号||'-')+'</td><td>'+esc(x['付款方式/结算方式']||'-')+'</td><td style="color:#8b949e">'+esc(x.建议)+'</td></tr>').join('')+'</tbody></table>';
|
|
4747
4748
|
$('btnDlMissing').style.display='';
|
|
4748
4749
|
}else h='<div class="notice">✅ 全部对得上,没有缺失。</div>';
|
|
4749
4750
|
$('checkWrap').innerHTML=h;
|
|
@@ -4873,7 +4874,7 @@ function dlMissing(){
|
|
|
4873
4874
|
const aoa=[C.MISSING_HEAD].concat(S.missing.map(m=>C.MISSING_HEAD.map(h=>m[h]||'')));
|
|
4874
4875
|
aoaToXlsx([aoa],['缺失编码清单'],'缺失编码清单.xlsx');
|
|
4875
4876
|
}else{
|
|
4876
|
-
const aoa=[['来源单据','维度','业务里的名称','单号','建议']].concat(S.checkRows.map(x=>[x.来源单据,x.维度,x.名称,x.单号||'',x.建议]));
|
|
4877
|
+
const aoa=[['来源单据','维度','业务里的名称','单号','付款方式/结算方式','建议']].concat(S.checkRows.map(x=>[x.来源单据,x.维度,x.名称,x.单号||'',x['付款方式/结算方式']||'',x.建议]));
|
|
4877
4878
|
aoaToXlsx([aoa],['缺失清单'],'缺失编码清单.xlsx');
|
|
4878
4879
|
}
|
|
4879
4880
|
}
|
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": "① 内置默认基础表/规则/映射:新安装或分享打开即自带当前这套标准配置。② 生成凭证后实际生成了凭证的规则自动变绿并显示「已生成」徽章,状态持久化。③ 新增「清空已生成」按钮。④ 凭证起始号放到「④ 生成凭证」页生成栏。⑤ 【P1.2.
|
|
2
|
+
"ver": "P1.2.53",
|
|
3
|
+
"npm": "1.2.53",
|
|
4
|
+
"url": "https://cdn.jsdelivr.net/npm/wwt-certificate-tool@1.2.53/dist/app.html",
|
|
5
|
+
"url_unpkg": "https://unpkg.com/wwt-certificate-tool@1.2.53/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.53.html",
|
|
7
|
+
"note": "① 内置默认基础表/规则/映射:新安装或分享打开即自带当前这套标准配置。② 生成凭证后实际生成了凭证的规则自动变绿并显示「已生成」徽章,状态持久化。③ 新增「清空已生成」按钮。④ 凭证起始号放到「④ 生成凭证」页生成栏。⑤ 对碰检测跳过未结算单据,缺失清单增加「单号」列。⑥ 【P1.2.53】对碰清单增加「付款方式/结算方式」列;凭证审核表「核算维度」列移到「科目名称」后。"
|
|
8
8
|
}
|