feature: add handoff report

This commit is contained in:
voltsrage
2026-06-23 20:32:33 +08:00
parent 79b6d9d85e
commit c6b98b5f7c
14 changed files with 906 additions and 7 deletions
@@ -3,8 +3,10 @@ import { storeToRefs } from 'pinia'
import { useWardStore } from '@/stores/ward'
import Button from '@/components/ui/Button.vue'
const emit = defineEmits(['export-handoff'])
const wardStore = useWardStore()
const { searchInput, filters, hasActiveFilters } = storeToRefs(wardStore)
const { searchInput, filters, hasActiveFilters, encounters } = storeToRefs(wardStore)
const filterOptions = [
{ key: 'hasAlerts', label: 'Has alerts' },
@@ -45,6 +47,15 @@ const filterOptions = [
>
Clear filters
</Button>
<Button
size="sm"
variant="secondary"
:disabled="encounters.length === 0"
@click="emit('export-handoff')"
>
Export Handoff Report
</Button>
</div>
</div>
</template>