wwt-certificate-tool 1.2.73 → 1.2.74
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 +15 -7
- 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.74</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.74</span></h1>
|
|
332
332
|
<div class="sub">纯前端离线版 · 双击即用 · 数据只存在本机,不上传任何服务器</div>
|
|
333
333
|
</div>
|
|
334
334
|
</div>
|
|
@@ -2758,7 +2758,7 @@ const S = window.__STATE__ = {
|
|
|
2758
2758
|
};
|
|
2759
2759
|
|
|
2760
2760
|
/* ---------------- 版本 & 框架自动更新(只更新程序本身,本地数据/规则不动) ---------------- */
|
|
2761
|
-
const WWT_VER=(function(){const raw='P1.2.
|
|
2761
|
+
const WWT_VER=(function(){const raw='P1.2.74';return raw.indexOf('__WVER__')>=0?'P1.2.10':raw;})();
|
|
2762
2762
|
const UPD_URL_KEY='wwt_fe_updurl';
|
|
2763
2763
|
// 默认更新源:Gitee 上本项目的 version.json(API 接口,浏览器可直接跨域读)
|
|
2764
2764
|
const DEFAULT_UPD_URL='https://gitee.com/api/v5/repos/wwtmrhu/certificate-generation/contents/dist/version.json';
|
|
@@ -5897,7 +5897,6 @@ function switchTab(t){
|
|
|
5897
5897
|
if(t==='asset')ASSET_UI.init();
|
|
5898
5898
|
}
|
|
5899
5899
|
async function init(){
|
|
5900
|
-
if(window.__ASSET_PRESET__){ /* 资产基础表在首次进入模块9或生成时补全,避免覆盖用户上传 */ }
|
|
5901
5900
|
// 1) 先探测持久化模式(任何 await DB.* 都会触发)
|
|
5902
5901
|
await DB.probe();
|
|
5903
5902
|
// 2) 加载配置(月度/映射/规则)
|
|
@@ -5917,6 +5916,15 @@ async function init(){
|
|
|
5917
5916
|
}
|
|
5918
5917
|
}
|
|
5919
5918
|
}
|
|
5919
|
+
// 【P1.2.74】资产基础表(资产位置表/资产类别表)随其它内置表在启动时一并补全,
|
|
5920
|
+
// 仅在用户未上传(表缺失或空)时补,绝不覆盖用户已上传的数据。
|
|
5921
|
+
const AP=window.__ASSET_PRESET__||{};
|
|
5922
|
+
for(const k of Object.keys(AP)){
|
|
5923
|
+
if(AP[k]&&AP[k].length&&!(S.base[k]||[]).length){
|
|
5924
|
+
S.base[k]=AP[k];
|
|
5925
|
+
try{ await DB.put('base',k,AP[k]); }catch(_){}
|
|
5926
|
+
}
|
|
5927
|
+
}
|
|
5920
5928
|
if(z&&Object.keys(z).length) S.biz=z;
|
|
5921
5929
|
if(m){
|
|
5922
5930
|
S.draft=(m.draft)||[];
|
|
@@ -6225,7 +6233,7 @@ function _dvFilter(){
|
|
|
6225
6233
|
|
|
6226
6234
|
|
|
6227
6235
|
/* ============================================================
|
|
6228
|
-
* ⑨ 资产卡片生成引擎 (P1.2.
|
|
6236
|
+
* ⑨ 资产卡片生成引擎 (P1.2.74)
|
|
6229
6237
|
* 数据源:库存.xls(厂牌含"资产工具") + 入库明细.xls(零件编码关联)
|
|
6230
6238
|
* 输出:金蝶资产卡片引入文件(37列 + 可选供应商/客户/付款方式列)
|
|
6231
6239
|
* ============================================================ */
|
|
@@ -6419,7 +6427,7 @@ const ASSET = (function(){
|
|
|
6419
6427
|
})();
|
|
6420
6428
|
|
|
6421
6429
|
|
|
6422
|
-
/* ===== P1.2.
|
|
6430
|
+
/* ===== P1.2.74 模块9 UI 交互 ===== */
|
|
6423
6431
|
const ASSET_UI=(function(){
|
|
6424
6432
|
function log(msg){ const l=$('assetLog'); if(!l)return; l.classList.add('on');
|
|
6425
6433
|
l.innerHTML+='<div>'+new Date().toLocaleTimeString('zh-CN')+' '+esc(msg)+'</div>'; l.scrollTop=l.scrollHeight; }
|
|
@@ -6809,7 +6817,7 @@ if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',
|
|
|
6809
6817
|
else init();
|
|
6810
6818
|
})();
|
|
6811
6819
|
|
|
6812
|
-
/* ===== P1.2.
|
|
6820
|
+
/* ===== P1.2.74 内置:资产位置表 / 资产类别表 默认数据 ===== */
|
|
6813
6821
|
window.__ASSET_PRESET__={
|
|
6814
6822
|
'资产位置表':[
|
|
6815
6823
|
{编码:'AOA001',地址:'广州市花都区先科一路',详细地址:'广州市花都区先科一路'},
|
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.74",
|
|
3
|
+
"npm": "1.2.74",
|
|
4
|
+
"url": "https://cdn.jsdelivr.net/npm/wwt-certificate-tool@1.2.74/dist/app.html",
|
|
5
|
+
"url_unpkg": "https://unpkg.com/wwt-certificate-tool@1.2.74/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.74.html",
|
|
7
|
+
"note": "㉗ 【P1.2.74】修复资产位置表/资产类别表内置不显示:改为启动时随其它内置基础表一并补全,打开「基础数据」页即显示已内置(仍需改才自行上传),不覆盖用户已上传数据。"
|
|
8
8
|
}
|