feat: refs #8602 streamline filter logic in EntryBuys component
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
cc8aa4def0
commit
8b73227b80
|
@ -393,22 +393,12 @@ const tag1Filter = ref(null);
|
||||||
const tag2Filter = ref(null);
|
const tag2Filter = ref(null);
|
||||||
const filter = computed(() => {
|
const filter = computed(() => {
|
||||||
const where = {};
|
const where = {};
|
||||||
if (buyerFk.value) {
|
where.workerFk = buyerFk.value;
|
||||||
where.workerFk = buyerFk.value;
|
where.itemTypeFk = itemTypeFk.value;
|
||||||
}
|
where.inkFk = inkFk.value;
|
||||||
if (itemTypeFk.value) {
|
where.tag1 = tag1.value;
|
||||||
where.itemTypeFk = itemTypeFk.value;
|
where.tag2 = tag2.value;
|
||||||
}
|
|
||||||
if (inkFk.value) {
|
|
||||||
where.inkFk = inkFk.value;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (tag1.value) {
|
|
||||||
where.tag1 = tag1.value;
|
|
||||||
}
|
|
||||||
if (tag2.value) {
|
|
||||||
where.tag2 = tag2.value;
|
|
||||||
}
|
|
||||||
return { where };
|
return { where };
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue