houhuan and Claude Opus 4.7
d299db0ab2
fix: move BatchDeleteRequest class before its use in endpoint
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-14 01:19:17 +08:00
houhuan and Claude Opus 4.7
13ef605481
feat: auto-sync file list + clear processing cache
...
- Auto-sync file_relations on every query (files appear immediately)
- Add POST /api/files/reset-cache endpoint to delete output/result
files and reset status to pending for reprocessing
- Add "清除处理缓存" button to all 3 file views
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-12 22:18:47 +08:00
houhuan and Claude Opus 4.7
17c45cab3f
feat: add batch-delete API endpoint, replace N+1 frontend calls
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-12 21:45:28 +08:00
houhuan and Claude Opus 4.7
81bafaf557
fix: sync/barcode/memory overhaul + detailed logs + preview + result tracking
...
- Sync: fix GiteaSync constructor + add push()/pull() methods
- Barcode: two-tab layout matching GUI (mapping + special rules)
- Memory: spec→specification unification, manual add, confidence/price tracking
- Processing: TaskLogHandler captures detailed logs (barcode mapping, unit conversion)
- Preview: fullscreen dialog for file preview (image/Excel) in Orders/Tables/Images
- Detail: per-file log filtering in file pages
- Tasks: result files now per-task, add copy path button
- Config: reactive edited state + save_config fix
- Dashboard: sync task isolation, log limit 10
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-05 19:37:10 +08:00
houhuan
0721ed099c
@
...
feat: shadcn主题 + 文件关系追踪 + 处理流程修复
前端:
- 全站应用 shadcn/ui 主题 (zinc灰调, Inter字体, 1px细边框, 无硬阴影)
- 重写 global.css / Dashboard.vue / Login.vue / Layout.vue 样式
- 新增文件处理子页面: 采购单(Orders), 表格处理(Tables), 图片处理(Images)
- 侧边栏使用 el-sub-menu 组织文件处理导航
后端:
- 新增 file_relations 表追踪 input→output→result 链路
- 新增 /files/relations, /files/stats/detailed 等关系查询API
- 新增 ocr-single, excel-single, pipeline-single, merge-batch 端点
- 处理流程增加跳过逻辑 (已处理文件自动跳过)
- 全流程不再自动合并, 合并仅在采购单页面手动触发
Bug修复:
- TaskManager: asyncio.create_task 在线程池中无事件循环 → 改用 _schedule() 调度
- PurchaseOrderMerger 缺少 config 参数 → 传入 ConfigManager()
- FastAPI regex= 弃用 → 改为 pattern=
- merger.process() 接收 Path 对象 → 转为字符串
@
2026-05-05 14:16:30 +08:00
houhuan and Claude Opus 4.7
205e18563d
feat: record file operations to metadata table + add history/stats endpoints
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-05 11:32:04 +08:00