6 Commits

Author SHA1 Message Date
liufumingren
ee054f039a feat(printer): PDF 打印支持按驱动纸张自动选纸
- 新增 utils/printerPaper.js:读取驱动 PaperSizes(名称/尺寸/DMPAPER id),按打印机缓存 10 分钟
- 按 PDF 首页尺寸匹配纸张:精确 → 能容纳的最小纸 → 装不下时取最大纸并自动改 shrink
- 纸张参数优先 paper=<驱动纸名>,纯数字或含逗号时回退 paperkind=<RawKind>;User defined 不参与匹配
- 新增配置 pdfPrint.autoPaper(默认 true),显式 papers/请求参数仍优先
- SumatraPDF-settings.txt 加入 .gitignore(运行期生成)
- 版本 1.0.42

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-25 00:41:24 +08:00
liufumingren
b3ae701d3a feat(printer): 新增 printer.printPdf 静默打印 PDF(内置 SumatraPDF)
- 17301 新增 printer.printPdf:接收波次/平台/订单结构,逐张串行静默打印
- printer 必传(请求参数或波次/平台/订单字段),纸张按 pdfPrint.papers 匹配打印机
- 内置 SumatraPDF 3.6.1 便携版,extraResources 随包分发;仅 win32,录制模式拒绝
- wsServer 广播 printer.pdfPrintProgress(仅本机客户端,不串到远端通道)
- build.ps1 新增 Ensure-ElectronNativeModules,修复 better-sqlite3 ABI 与 Electron 不匹配导致打包后后端起不来
- 版本 1.0.41

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-24 23:32:14 +08:00
liufumingren
f7a0aa8c7b chore(deps): 增加扫码相关依赖,忽略 temp/ 目录
- package.json: @zxing/library、zxing-wasm(条码识别)、exceljs(表格导出)

- .gitignore: 忽略 temp/(本地调试脚本,不入库)
2026-10-31 02:12:30 +08:00
liufumingren
1f4083709f chore: 版本号 1.0.37/1.0.29 -> 1.0.39 2026-09-15 22:35:57 +08:00
liufumingren
4e9135c9f4 feat: Linux录制模式支持 - 平台适配/frpc/打印守卫 2026-07-28 21:55:56 +08:00
liufumingren
79bae5b51e chore: init printServer and remove rsa keys 2026-03-29 13:26:23 +08:00