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
This commit is contained in:
wren
2026-04-30 13:18:24 +08:00
parent 477bcafeb7
commit 81c5e98b53
4 changed files with 421 additions and 1784 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import { postgrestGet, postgrestDelete, postgrestPut, postgrestPost } from '../p
import { getDocumentTypes } from '../document-types/document-types';
import { formatDate } from '../../utils';
import { API_BASE_URL } from '~/config/api-config';
import type { DocumentType } from './files-upload';
import type { DocumentType } from '../document-types/document-types';
/**
* 从不同格式的 API 响应中提取数据