feat(签署方式): 扩展为手写板/短信/Pad/公众号四种并集中口径

This commit is contained in:
yelan
2026-09-25 12:09:58 +08:00
parent bd89a4d31a
commit 8ec55e48c9
26 changed files with 1864 additions and 688 deletions
@@ -17,8 +17,9 @@
* 只声明实际用到的字段,不绑定文档库页面的类型,避免 utils 反向依赖 views。
*/
import type { SigningFieldDef, SigningMethod, SigningTemplate } from '@/api/workbench/types'
import type { SigningFieldDef, SigningTemplate } from '@/api/workbench/types'
import { ALL_SIGNING_METHODS } from './signing-method'
import { buildFieldSpanHtml } from './signing-fields'
import { MOCK_STORAGE_KEYS, readMockState, writeMockState } from './mock-storage'
@@ -311,7 +312,7 @@ export function readLocalSigningTemplates(): SigningTemplate[] {
campusId: document.campusId ?? undefined,
category: category.name,
description: document.description ?? '',
supportedMethods: ['pad', 'sms'] as SigningMethod[],
supportedMethods: [...ALL_SIGNING_METHODS],
contentHtml: document.contentHtml,
contentSha256: document.contentSha256,
})),