forked from verdnatura/salix-front
add filters
This commit is contained in:
parent
010ddd01a6
commit
58b920d74d
|
@ -17,6 +17,20 @@ const payload = ref({
|
|||
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([
|
||||
{
|
||||
label: 'company',
|
||||
|
@ -121,6 +135,16 @@ const exportTable = () => {
|
|||
};
|
||||
|
||||
const search = async () => {
|
||||
const params = {
|
||||
...payload.value,
|
||||
filter: {
|
||||
limit: 20,
|
||||
where: {
|
||||
...filter.value,
|
||||
},
|
||||
},
|
||||
};
|
||||
console.log(params);
|
||||
rows.value = await invoiceOutService.getNegativeBases(payload.value);
|
||||
};
|
||||
|
||||
|
@ -210,7 +234,7 @@ onMounted(async () => {
|
|||
"
|
||||
dense
|
||||
standout
|
||||
v-model="payload[col.field]"
|
||||
v-model="filter[col.field]"
|
||||
type="text"
|
||||
/>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue