feat: 初始化医护端与患者端页面骨架
完成两个 Vite 应用的基础工程化配置、路由、状态管理及第一版业务页面,当前使用演示数据,尚未接入真实后端接口。
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import { reactive } from 'vue'
|
||||
|
||||
import type { SignFlowState } from '@/types/signing'
|
||||
|
||||
const initialState: SignFlowState = {
|
||||
patientName: '张*',
|
||||
visitNo: 'MZ20260827018',
|
||||
documentTitle: '儿科急诊特殊检查知情同意书',
|
||||
taskNo: 'CT-20260827-001',
|
||||
consentAccepted: false,
|
||||
signerName: '',
|
||||
relation: '',
|
||||
signatureCaptured: false,
|
||||
submittedAt: '',
|
||||
}
|
||||
|
||||
export const signingState = reactive<SignFlowState>({ ...initialState })
|
||||
|
||||
export function resetSignFlow() {
|
||||
Object.assign(signingState, initialState)
|
||||
}
|
||||
Reference in New Issue
Block a user