fix(sign): 对齐签署操作权限校验
This commit is contained in:
@@ -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')"
|
||||
|
||||
Reference in New Issue
Block a user