fix(sign): 对齐签署操作权限校验

This commit is contained in:
xy
2026-09-28 22:37:22 +08:00
parent f7804d476d
commit c4363889b1
2 changed files with 18 additions and 18 deletions
@@ -35,7 +35,7 @@ const props = defineProps<{
artifactsError: boolean
padSessionStatus: string | null
padSessionLoading: boolean
canDeliveryWrite: boolean
canSignTask: boolean
canReopen: boolean
canVoid: boolean
/** 科室复核签章(sign:task:confirm):只有「待科室确认」的任务用得上 */
@@ -193,7 +193,7 @@ defineExpose({ getDocumentElement, locateSignatureSlot })
{{ formatSigningMethodTitle(task.method) }}
</button>
</template>
<template v-else-if="canDeliveryWrite">
<template v-else-if="canSignTask">
<button
type="button"
class="action-button"
@@ -201,7 +201,9 @@ defineExpose({ getDocumentElement, locateSignatureSlot })
@click="emit('action', 'create-pad-session')"
>
{{
padSessionLoading ? '创建会话中…' : `创建${readSigningMethod(task.method).short}会话`
padSessionLoading
? '创建会话中…'
: `创建${readSigningMethod(task.method).short}会话`
}}
</button>
<span v-if="padSessionStatus" class="action-hint">
@@ -235,7 +237,7 @@ defineExpose({ getDocumentElement, locateSignatureSlot })
✓ 模拟患者完成签署(演示)
</button>
<button
v-if="canDeliveryWrite"
v-if="canRemind"
type="button"
class="action-button action-button--ghost"
@click="emit('action', task.method === 'wx' ? 'resend-wx-push' : 'resend-sms')"