This commit is contained in:
@@ -183,12 +183,23 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import type { Cliente } from '~/composables/useClienteSelector'
|
||||
interface Cliente {
|
||||
id: number
|
||||
name: string
|
||||
cedula?: number
|
||||
ubicacion?: string
|
||||
telefono?: string
|
||||
}
|
||||
|
||||
type PresetValue =
|
||||
| '' | 'custom' | 'hoy' | 'semana' | 'mes' | 'ytd'
|
||||
| 'cosecha-20-21' | 'cosecha-21-22' | 'cosecha-22-23'
|
||||
| 'cosecha-23-24' | 'cosecha-24-25' | 'cosecha-25-26'
|
||||
|
||||
interface Props {
|
||||
clientes: Cliente[]
|
||||
selectedClienteIds: number[]
|
||||
selectedPreset: string
|
||||
selectedPreset: PresetValue
|
||||
fechaDesde: string | null
|
||||
fechaHasta: string | null
|
||||
selectedTipos: string[]
|
||||
@@ -207,7 +218,7 @@ const props = defineProps<Props>()
|
||||
|
||||
const emit = defineEmits<{
|
||||
'update:selectedClienteIds': [value: number[]]
|
||||
'update:selectedPreset': [value: string]
|
||||
'update:selectedPreset': [value: PresetValue]
|
||||
'update:fechaDesde': [value: string | null]
|
||||
'update:fechaHasta': [value: string | null]
|
||||
'update:selectedTipos': [value: string[]]
|
||||
|
||||
Reference in New Issue
Block a user