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')"
|
||||
v-model="row.bankEntityFk"
|
||||
:options="bankEntitiesOptions"
|
||||
option-label="name"
|
||||
option-label="bic"
|
||||
option-value="id"
|
||||
hide-selected
|
||||
>
|
||||
|
|
|
@ -11,6 +11,15 @@ const route = useRoute();
|
|||
const { t } = useI18n();
|
||||
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(() => {
|
||||
if (supplierContactRef.value) supplierContactRef.value.reload();
|
||||
});
|
||||
|
@ -38,6 +47,7 @@ onMounted(() => {
|
|||
<VnRow class="row q-gutter-md">
|
||||
<div class="col">
|
||||
<VnInput
|
||||
input-name-focusable
|
||||
:label="t('supplier.contacts.name')"
|
||||
v-model="row.name"
|
||||
/>
|
||||
|
@ -92,7 +102,7 @@ onMounted(() => {
|
|||
size="sm"
|
||||
class="cursor-pointer"
|
||||
color="primary"
|
||||
@click="supplierContactRef.insert()"
|
||||
@click="insertRow()"
|
||||
>
|
||||
<QTooltip>
|
||||
{{ t('Add contact') }}
|
||||
|
|
|
@ -167,6 +167,7 @@ const getEntryQueryParams = (supplier) => {
|
|||
<QTooltip>{{ t('All entries with current supplier') }}</QTooltip>
|
||||
</QBtn>
|
||||
<QBtn
|
||||
v-if="entity.client?.fi"
|
||||
:to="{
|
||||
name: 'CustomerCard',
|
||||
params: { id: entity.client?.id },
|
||||
|
|
Loading…
Reference in New Issue