银行人实用工具箱
1. 选择报告类型
2. 基本信息
3. 正文内容
报告预览

在左侧录入信息后点击「生成报告」,此处显示结构化报告。生成后可用下方按钮复制全文或导出 Word / 打印。

最近生成的报告 (本地保存,最多 5 条)
姊妹站:龙渊工具库 renlong.cc
'; const blob = new Blob([''+html], {type:"application/msword"}); const a = document.createElement("a"); a.href = URL.createObjectURL(blob); a.download = title+".doc"; a.click(); setTimeout(()=>URL.revokeObjectURL(a.href), 1000); showToast("已导出 Word"); } function saveReport(){ const title = document.getElementById("rTitle").value.trim() || curType; const author = document.getElementById("rAuthor").value.trim(); const date = document.getElementById("rDate").value; const el = document.getElementById("report"); const content = el.innerHTML || ""; if(!content || content.indexOf("在左侧录入")>=0){ showToast("请先生成报告再保存"); return; } let hist = []; try{ hist = JSON.parse(localStorage.getItem("report_history")||"[]"); }catch(e){} hist.unshift({title, type:curType, author, date, content, ts:Date.now()}); hist = hist.slice(0,5); localStorage.setItem("report_history", JSON.stringify(hist)); renderHist(); showToast("已保存到最近报告"); } function renderHist(){ const box = document.getElementById("histBox"); let hist = []; try{ hist = JSON.parse(localStorage.getItem("report_history")||"[]"); }catch(e){} if(hist.length===0){ box.innerHTML='

暂无保存的报告。

'; return; } box.innerHTML = hist.map((h,i)=>{ return '
'+h.title+'
'+h.type+' · '+(h.author||"")+' · '+(h.date||"")+'
'; }).join(""); } function loadHist(i){ let hist = []; try{ hist = JSON.parse(localStorage.getItem("report_history")||"[]"); }catch(e){} const h = hist[i]; if(!h) return; document.getElementById("report").innerHTML = h.content; document.getElementById("rTitle").value = h.title||""; document.getElementById("rAuthor").value = h.author||""; document.getElementById("rDate").value = h.date||""; if(h.type && TYPES[h.type]){ curType = h.type; renderTypes(); } showToast("已载入:"+h.title); } function clearForm(){ document.getElementById("rTitle").value=""; document.getElementById("rAuthor").value=""; document.getElementById("rDate").value=""; dynState = {ach:["","",""], pro:["",""], plan:["","",""]}; renderTypes(); document.getElementById("report").innerHTML='

已清空,重新录入后点击「生成报告」。

'; showToast("已清空"); } function showToast(msg){ const t=document.getElementById("toast"); t.textContent=msg; t.classList.add("show"); clearTimeout(t._t); t._t=setTimeout(()=>t.classList.remove("show"),1600); } renderTypes(); renderHist();
🤖
体验 BankAI 公文写作助手
输入关键词,30 秒生成符合 GB/T 9704-2012 的专业公文
立即体验 →
会员与进阶模板 · ¥29 终身买断,报表/迁徙率直接套用查看 →