build(clinical-web): 新增富文本编辑与 Word 转换依赖

This commit is contained in:
yelan
2026-09-10 12:03:21 +08:00
parent 7bea008680
commit 23d85cf8ce
11 changed files with 1398 additions and 1063 deletions
@@ -1,6 +1,6 @@
import type { DocumentDepartment, DocumentStatus, LibraryDocument } from './types'
import { documentContentHtml } from './contents'
import { presetDocumentContentHtml } from './preset-contents'
const documentStatusLabels: Record<DocumentStatus, string> = {
enabled: '启用中',
@@ -31,12 +31,12 @@ function createDocument(
version,
description,
status,
contentHtml: documentContentHtml[id],
contentHtml: presetDocumentContentHtml[id],
}
}
// 文书内容以 2025 年在各科室采集的真实知情同意书原件为准(见 ./contents.ts)。
// 各科室版式差异较大:勾选项目表、安全筛查问卷、多签署人等,均为真实业务结构。
// 预置文书为 2025 年在各科室采集的真实知情同意书原件(HTML 已固化在 preset-contents.ts),
// 也可在 Word 编辑器中继续维护;科室自维护的新文书通过 Word 编辑器录入。
export const documentLibrary: DocumentDepartment[] = [
{
key: 'medical-imaging',