#8409: Added VnSelectSupplier #1274

Merged
jon merged 10 commits from 8409-VnSelectSupplier into dev 2025-01-30 14:20:07 +00:00
1 changed files with 46 additions and 58 deletions
Showing only changes of commit 3aa8acf02a - Show all commits

View File

@ -146,7 +146,6 @@ const cols = computed(() => [
<template #advanced-menu>
<InvoiceInFilter :data-key />
</template>
</RightMenu>
<template #body>
<VnTable
ref="tableRef"
@ -172,25 +171,11 @@ const cols = computed(() => [
</span>
</template>
<template #more-create-dialog="{ data }">
<VnSelect
<VnSelectSupplier
v-model="data.supplierFk"
url="Suppliers"
:fields="['id', 'nickname', 'name']"
:label="t('globals.supplier')"
option-value="id"
option-label="nickname"
:filter-options="['id', 'name', 'nickname']"
hide-selected
:required="true"
>
<template #option="scope">
<QItem v-bind="scope.itemProps">
<QItemSection>
<QItemLabel>{{ scope.opt?.nickname }}</QItemLabel>
<QItemLabel caption> #{{ scope.opt?.id }}, {{ scope.opt?.name }} </QItemLabel>
</QItemSection>
</QItem>
</template>
</VnSelect>
/>
<VnInput
:label="t('invoicein.list.supplierRef')"
jon marked this conversation as resolved
Review

bien visto

bien visto
v-model="data.supplierRef"
@ -204,7 +189,10 @@ const cols = computed(() => [
option-label="code"
:required="true"
/>
<VnInputDate :label="t('invoicein.summary.issued')" v-model="data.issued" />
<VnInputDate
:label="t('invoicein.summary.issued')"
v-model="data.issued"
/>
</template>
</VnTable>
</template>