diff --git a/src/pages/Ticket/Negative/TicketLackFilter.vue b/src/pages/Ticket/Negative/TicketLackFilter.vue index 79d44f6cc..b547ed5b4 100644 --- a/src/pages/Ticket/Negative/TicketLackFilter.vue +++ b/src/pages/Ticket/Negative/TicketLackFilter.vue @@ -5,7 +5,8 @@ import { useI18n } from 'vue-i18n'; import FetchData from 'components/FetchData.vue'; import VnFilterPanel from 'src/components/ui/VnFilterPanel.vue'; import VnInput from 'src/components/common/VnInput.vue'; - +import VnSelect from 'src/components/common/VnSelect.vue'; +const DEFAULT_WAREHOUSE = 'Algemesi'; const { t } = useI18n(); const props = defineProps({ dataKey: { @@ -17,12 +18,25 @@ const props = defineProps({ const to = Date.vnNew(); to.setDate(to.getDate() + 1); +const defaultParams = { + warehouse: null, +}; + const warehouses = ref(); + +const handleWarehouses = async (data) => { + warehouses.value = data; + defaultParams.warehouse = data.find((w) => w.name === DEFAULT_WAREHOUSE).id; +};