0
0
Fork 0

add filters

This commit is contained in:
Joel Crespo 2023-11-22 08:02:23 -03:00
parent 010ddd01a6
commit 58b920d74d
1 changed files with 25 additions and 1 deletions

View File

@ -17,6 +17,20 @@ const payload = ref({
to: new Date('2001-01-31'), to: new Date('2001-01-31'),
}); });
const filter = ref({
company: null,
country: null,
clientId: null,
client: null,
amount: null,
base: null,
ticketId: null,
active: null,
hasToInvoice: null,
verifiedData: null,
comercial: null,
});
const columns = ref([ const columns = ref([
{ {
label: 'company', label: 'company',
@ -121,6 +135,16 @@ const exportTable = () => {
}; };
const search = async () => { const search = async () => {
const params = {
...payload.value,
filter: {
limit: 20,
where: {
...filter.value,
},
},
};
console.log(params);
rows.value = await invoiceOutService.getNegativeBases(payload.value); rows.value = await invoiceOutService.getNegativeBases(payload.value);
}; };
@ -210,7 +234,7 @@ onMounted(async () => {
" "
dense dense
standout standout
v-model="payload[col.field]" v-model="filter[col.field]"
type="text" type="text"
/> />
</div> </div>