0
0
Fork 0

Entry buys import open file explorer when clicking clip icon

This commit is contained in:
William Buezas 2024-02-06 10:14:48 -03:00
parent f6b0404cb4
commit 6773a9a696
1 changed files with 7 additions and 1 deletions

View File

@ -29,6 +29,7 @@ const importData = ref({
ref: null, ref: null,
}); });
const inputFileRef = ref(null);
const lastItemBuysOptions = ref([]); const lastItemBuysOptions = ref([]);
const packagingsOptions = ref([]); const packagingsOptions = ref([]);
@ -199,6 +200,7 @@ const redirectToBuysView = () => {
<VnRow class="row q-gutter-md q-mb-md"> <VnRow class="row q-gutter-md q-mb-md">
<div class="col"> <div class="col">
<QFile <QFile
ref="inputFileRef"
:label="t('entry.buys.file')" :label="t('entry.buys.file')"
v-model="importData.file" v-model="importData.file"
:multiple="false" :multiple="false"
@ -207,7 +209,11 @@ const redirectToBuysView = () => {
class="required" class="required"
> >
<template #append> <template #append>
<QIcon name="vn:attach" class="cursor-pointer"> <QIcon
name="vn:attach"
class="cursor-pointer"
@click="inputFileRef.pickFiles()"
>
<QTooltip>{{ t('Select a file') }}</QTooltip> <QTooltip>{{ t('Select a file') }}</QTooltip>
</QIcon> </QIcon>
</template> </template>