forked from verdnatura/salix-front
Entry buys import open file explorer when clicking clip icon
This commit is contained in:
parent
f6b0404cb4
commit
6773a9a696
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue