Commit Graph

217 Commits

Author SHA1 Message Date
wren c00e5feff0 feat: sync rule management and review ui fixes 2026-05-07 17:27:42 +08:00
wren e7bac9a33f fix: tighten route permission guards 2026-05-06 20:06:41 +08:00
wren 61bbf6907b feat: wire real upload progress and subtype mapping 2026-05-06 18:33:53 +08:00
wren 796ce90e32 fix: restore reviews detail layout and leaudit data wiring 2026-05-06 17:31:48 +08:00
wren 63bf3f56ce refactor: align document type page with root groups 2026-05-06 14:20:53 +08:00
wren 8dbacb8bea fix: speed up document type group loading 2026-05-06 11:05:35 +08:00
wren c54f84382b feat: align frontend document and rule management flows 2026-05-06 09:40:37 +08:00
wren 8a5044b024 fix: remove document review status postgrest fallback 2026-05-06 09:37:02 +08:00
wren 37e1611ed4 fix: cut reviewsTest over to new review detail apis 2026-05-06 09:19:03 +08:00
wren 2eb40e8af6 feat: show usable rule counts 2026-04-30 17:59:35 +08:00
wren 3fb7e9f5d0 feat: stabilize document type and upload flows 2026-04-30 17:44:05 +08:00
wren 81c5e98b53 refactor: rewrite document-type management for new backend API
- API client: switch from /api/v3/document-types to /api/document-types,
  replace group_ids with ruleSetIds, add getEntryModules/getRuleSets
- List page: simplified to code/name/entry_module/rule_sets/status columns
- New/Edit page: code + name + description + entry_module dropdown +
  rule_set multi-select checklist
- Fix DocumentType type import collision in documents.ts
2026-04-30 13:18:24 +08:00
wren 477bcafeb7 feat: extend DocumentType interface with code, entryModuleId, isEnabled, ruleSetIds 2026-04-30 12:52:26 +08:00
wren dd249ccfb7 refactor: replace PostgREST calls in upload page with new API endpoints
- getDocumentTypes: switch from PostgREST /document_types to
  GET /api/document-types
- getTodayDocuments: switch from PostgREST /documents to
  GET /api/documents/list with userId + dateFrom params
- getQueueStatus: gracefully handle 404 (endpoint not yet migrated)
  by returning empty queue state instead of erroring
2026-04-30 12:27:51 +08:00
wren 73fd8617e1 refactor: switch upload to new POST /api/upload with flat FormData
Replace the old nested upload_info JSON approach with flat
multipart fields (typeId, region, fileRole, createdBy, autoRun,
speed) matching the new leaudit-platform backend.

- uploadDocumentToServer: POST ${API_BASE_URL}/api/upload
- handleFileUpload: pass region from userInfo.area, derive speed
  from priority enum, pass createdBy from JWT user_id
- UploadResult replaces FileUploadResponse with documentId/fileId
  replacing the old nested result.id/result.file_name pattern
2026-04-30 12:16:24 +08:00
wren 185f55cec6 fix: pass through server 403 message instead of hardcoded '无权限'
The axios response interceptor was discarding the server's
permission-denied message (e.g. "缺少「用户列表」权限") and
replacing it with a generic "无权限". Now it reads the server
response body and surfaces the exact permission that's missing.
2026-04-30 11:47:32 +08:00
wren 55e2c6993f fix: tighten entry module rbac flows 2026-04-29 22:25:06 +08:00
wren 790b9566e1 feat: restore settings routes for admin modules 2026-04-29 18:39:45 +08:00
wren 1b67358e5b fix: hide unsupported menus in minimal scope 2026-04-29 18:14:04 +08:00
wren 3d3d8d6e6b fix: align login and home routing with leaudit backend 2026-04-29 18:02:31 +08:00
wren 23ab13dd1e feat: hook document list to leaudit list api 2026-04-29 12:20:16 +08:00
jandejang dce5ac0c9a 保存规则库 YAML 维护改造进展 2026-04-28 22:00:00 +08:00
LiangShiyong a3fd2c7fed feat: 初步完成评查详情页面的work文档和pdf文档的加载的页面三栏设计的重构。 2026-04-21 15:08:14 +08:00
PingChuan 5bee9288b9 feat:替换 Dify 为自建 RAG去实现
1、修复了若干无权限时的失败提示语
2、新增了一个生成后续建议问题的功能
3、重构了知识问答部分的权限管理模块
4、修复了若干渲染不恰当的样式渲染
2026-04-10 16:20:32 +08:00
TanWenyan 2694eeb011 fix: bypass Vite tree-shake for pointCode via pointCodeMap
Vite's SSR build strips pointCode from ReviewPointResult return objects.
Workaround: pass a separate pointCodeMap from reviews.ts and apply it
in the route loader (reviews.tsx) which Vite preserves.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 20:39:08 +08:00
TanWenyan 20a8ed4466 fix: use String() instead of 'as string' for pointCode to survive Vite build 2026-03-23 20:36:21 +08:00
TanWenyan 7ad9e479cd fix: add pointCode to ReviewPointResult interface to survive build
Vite/Remix tree-shaking was stripping pointCode from the return object
because it wasn't declared in the ReviewPointResult interface.
Also removed debug console.logs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 20:33:38 +08:00
TanWenyan 38a43133c0 debug: add server-side point.code logging and enlarge badge 2026-03-23 20:25:30 +08:00
TanWenyan 2fe773909e feat(ui): display evaluation point code and support code search
- Add pointCode field to ReviewPoint interface and data pipeline
- Show code badge (e.g., JZ-DJ-001) before evaluation point name
- Search bar now matches against point code in addition to name
- Updated placeholder to indicate code search support

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 20:02:35 +08:00
DocAuditAI Dev ebcaf05625 revert: reset to 32bee87 for clean text_bbox baseline
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 18:14:11 +08:00
DocAuditAI Dev 61fdfec3d0 fix(api): disable HTTP keep-alive to prevent ECONNRESET on reused sockets
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 17:01:32 +08:00
TanWenyan 306cb24c70 feat(frontend): integrate GraphRAG scored evaluation results
- Add getUnifiedEvaluationResults API function
- Extend ReviewPointsListProps with flowType, scoredResults, scoredSummary
- Add ScoredResultCard rendering for graphrag flow_type
- Modify reviews.tsx loader to call unified API
- Add scored evaluation component imports

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-20 09:42:30 +08:00
TanWenyan 62a8f4b13d feat(cross-checking): 交叉评查上传支持合同类型选择 2026-03-18 22:00:26 +08:00
TanWenyan 1a2ce367af feat(api): uploadDocumentToServer 增加 attribute_type 参数 2026-03-18 21:55:04 +08:00
TanWenyan 0a436311c8 新增上传队列显示 2026-01-29 16:54:45 +08:00
LiangShiyong b97d0e1a0b 1. 登录返回总公司,分公司,部门信息。
2. 修改角色权限管理的分配用户的数据渲染和接口。
3. 交叉评查任务的创建的组织架构组件的重构。
2026-01-21 10:04:04 +08:00
LiangShiyong 9951f16e50 1.同步包版本。
2.交叉评查的任务中上传文件。
3.添加dify库名解决保存配置失败的问题。
2026-01-20 17:29:55 +08:00
LiangShiyong 1fca1a2e2e 1. 添加新的正式环境的secret配置信息。
2. 动态回调地址,如果是钉钉应用则用对应的回调地址。
3. 高频错误评查点改成显示出错次数。
4. 添加开关的通用组件,评查点列表方便修改状态。
2026-01-19 16:22:21 +08:00
LiangShiyong 66d2f7cef4 1.添加移动端用户的检测工具类,移动端用户只能访问对话页面。
2.评查点列表添加文档属性类型字段。
3.优化dify的对话侧边栏的显示效果。
4.评查点规则添加使用文档属性类型的输入框。添加多实体开关的操作开关。
2025-12-30 18:35:48 +08:00
LiangShiyong 616f059f1e feat: 1. 完善评查点分组的删除逻辑,会涉及文档类型绑定的一级分组,分组绑定的评查点规则。新增一个评查点分组换绑的。
2. 修复交叉评查的任务中的文档列表的历史文档的查看跳转路径。
3. 修复评查点新增中评查点类型只能显示当前文档类型绑定的这几个一级分组。评查点类型=一级分组。
4. 修复文档列表关于pdf的下载失败的问题。
2025-12-19 00:21:49 +08:00
LiangShiyong 07440b3e23 fix:1. 优化上传文档页面中的select查询语句 2025-12-17 09:54:44 +08:00
LiangShiyong 0aa75c6ffb 修改企查查使用真实的接口 2025-12-15 15:19:26 +08:00
LiangShiyong 1658bb1c6f feat: 1. 重构交叉评查任务的文档列表的显示,对接接口查询当前任务的文档相关信息。
2.文档上传通过接口去查询是否存在同名的文件,做上传前拦截提示。
3.交叉评查的评查结果也同步添加企查查的企业信息查询模块。
4. 封装上传附件和上传模板的模态框的组件,在交叉评查的文档列表中引入显示。
5. 交叉评查的评查结果中关于合同类型的文档同步加入结构比对的功能。
2025-12-13 07:18:37 +08:00
LiangShiyong daa53289af feat: 1. 添加企查查的按钮。新增相关组件和对接接口进行显示。
2. 为51707端口添加只存在交叉评查入口的项目启动配置。入口页添加相关的区分。
3. 完善文档列表的权限功能控制。
4. 隐藏系统概览中高风险用户的统计模块。
fix: 1. 修复合同起草无权访问却生成了新的模板文件的问题。
2. 修复文档类型无法编辑入口模块的问题。
2025-12-13 02:59:34 +08:00
LiangShiyong 847f7b2b5a feat: 1. 添加交叉评查中的相关页面的按钮与权限的绑定控制。 2. 完善权限校验的hook函数,添加指定的交叉评查的相关的权限。
fix: 1. 修复交叉评查中无法高亮文档的问题。
2025-12-12 16:10:05 +08:00
LiangShiyong d4000cd292 fix: 1. 继续对齐交叉评查的接口,完善创建交叉评查的逻辑 和 相关组件的渲染布局。
2. 文档的基本信息修改改用接口。      3. 重新完善角色权限管理的页面逻辑。     4.将评查点列表中的返回逻辑改用浏览器的记忆返回。
2025-12-12 12:00:36 +08:00
LiangShiyong d8bba607fc fix: 1. 重新对齐交叉评查的接口。
2. 确认评查结果的接口对接。 3. 新增评查点适配省级创建的响应数据和其他用户创建的单条响应数据。  4. 文档列表的文档类型通过通用的查询接口查询文档类型。优化加载状态的时机。
2025-12-11 11:16:50 +08:00
LiangShiyong ba517d7b9c fix:修复前端路由权限校验。修复交叉评查与普通评查结果的ai建议的替换效果不一致。 2025-12-10 09:10:57 +08:00
LiangShiyong de923f6521 fix: 1. 修改dockerFile
2. 修复一些合同起草的刷新报错问题
2025-12-09 14:46:07 +08:00
LiangShiyong 59c127806c Merge branch 'Wren' into shiy-login
# Conflicts:
#	app/hooks/dify-chat-apps/useChatApps.ts
2025-12-08 21:41:29 +08:00