forked from verdnatura/salix-front
Several changes
This commit is contained in:
parent
67eb8e82b6
commit
ac5d83b8cc
|
@ -114,7 +114,7 @@ onMounted(() => {
|
||||||
:label="t('worker.create.bankEntity')"
|
:label="t('worker.create.bankEntity')"
|
||||||
v-model="row.bankEntityFk"
|
v-model="row.bankEntityFk"
|
||||||
:options="bankEntitiesOptions"
|
:options="bankEntitiesOptions"
|
||||||
option-label="name"
|
option-label="bic"
|
||||||
option-value="id"
|
option-value="id"
|
||||||
hide-selected
|
hide-selected
|
||||||
>
|
>
|
||||||
|
|
|
@ -11,6 +11,15 @@ const route = useRoute();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const supplierContactRef = ref(null);
|
const supplierContactRef = ref(null);
|
||||||
|
|
||||||
|
const insertRow = () => {
|
||||||
|
supplierContactRef.value.insert();
|
||||||
|
setTimeout(() => {
|
||||||
|
const inputs = document.querySelectorAll('[input-name-focusable]');
|
||||||
|
const lastInput = inputs[inputs.length - 1];
|
||||||
|
if (lastInput) lastInput.focus();
|
||||||
|
}, 5);
|
||||||
|
};
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (supplierContactRef.value) supplierContactRef.value.reload();
|
if (supplierContactRef.value) supplierContactRef.value.reload();
|
||||||
});
|
});
|
||||||
|
@ -38,6 +47,7 @@ onMounted(() => {
|
||||||
<VnRow class="row q-gutter-md">
|
<VnRow class="row q-gutter-md">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<VnInput
|
<VnInput
|
||||||
|
input-name-focusable
|
||||||
:label="t('supplier.contacts.name')"
|
:label="t('supplier.contacts.name')"
|
||||||
v-model="row.name"
|
v-model="row.name"
|
||||||
/>
|
/>
|
||||||
|
@ -92,7 +102,7 @@ onMounted(() => {
|
||||||
size="sm"
|
size="sm"
|
||||||
class="cursor-pointer"
|
class="cursor-pointer"
|
||||||
color="primary"
|
color="primary"
|
||||||
@click="supplierContactRef.insert()"
|
@click="insertRow()"
|
||||||
>
|
>
|
||||||
<QTooltip>
|
<QTooltip>
|
||||||
{{ t('Add contact') }}
|
{{ t('Add contact') }}
|
||||||
|
|
|
@ -167,6 +167,7 @@ const getEntryQueryParams = (supplier) => {
|
||||||
<QTooltip>{{ t('All entries with current supplier') }}</QTooltip>
|
<QTooltip>{{ t('All entries with current supplier') }}</QTooltip>
|
||||||
</QBtn>
|
</QBtn>
|
||||||
<QBtn
|
<QBtn
|
||||||
|
v-if="entity.client?.fi"
|
||||||
:to="{
|
:to="{
|
||||||
name: 'CustomerCard',
|
name: 'CustomerCard',
|
||||||
params: { id: entity.client?.id },
|
params: { id: entity.client?.id },
|
||||||
|
|
Loading…
Reference in New Issue