Created
December 3, 2023 00:45
-
-
Save dario61081/2e89ebec91a7ae67af90f122a0975e81 to your computer and use it in GitHub Desktop.
filtro.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
computed:{ | |
filtro(){ | |
return [ | |
... this.filtros.disponibles ? ['DISPONIBLE'] : [], | |
... this.filtros.emitidas ? ['EMITIDA'] : [], | |
... this.filtros.anuladas ? ['ANULADA'] : [], | |
... this.filtros.contado ? ['CONTADO'] : [], | |
... this.filtros.credito ? ['CREDITO'] : [], | |
] | |
}, | |
lista_filtrada(){ | |
return this.facturas.filter(item => { | |
return this.filtro.includes(item.estado); | |
}) | |
}, | |
lista_filtrada_2(){ | |
return this.lista_filtrada.filter(item => { | |
return this.filtro.includes(item.condicion_venta); | |
}) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment