feat(患者签署): 接入签署上下文接口并补齐文书渲染与手写签名链路
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
import { computed } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
|
||||
import { resetSignFlow, signingState } from '@/composables/useSignFlow'
|
||||
import { clearPersistedSession, resetSignFlow, signingState } from '@/composables/useSignFlow'
|
||||
|
||||
const router = useRouter()
|
||||
|
||||
@@ -33,8 +33,18 @@ const statusLabel = computed(() => {
|
||||
return labels[signingState.backendStatus] ?? (signingState.backendStatus || '已提交')
|
||||
})
|
||||
|
||||
/** 签署人由医生在医护端填好,这里只展示 —— 两边取同一份数据,不各算一套 */
|
||||
const signerLine = computed(() => {
|
||||
const name = signingState.signerName || signingState.patientName
|
||||
const relation = signingState.relation || '本人'
|
||||
|
||||
return `${name}(${relation})`
|
||||
})
|
||||
|
||||
function returnToEntry() {
|
||||
resetSignFlow()
|
||||
// 连同本地会话一起清掉:本次已提交,不该再靠旧凭证回到签署页
|
||||
clearPersistedSession()
|
||||
void router.replace('/entry')
|
||||
}
|
||||
</script>
|
||||
@@ -53,7 +63,7 @@ function returnToEntry() {
|
||||
</div>
|
||||
<div>
|
||||
<span>签署人</span>
|
||||
<strong>{{ signingState.signerName }}({{ signingState.relation }})</strong>
|
||||
<strong>{{ signerLine }}</strong>
|
||||
</div>
|
||||
<div>
|
||||
<span>提交时间</span>
|
||||
|
||||
Reference in New Issue
Block a user