diff --git a/src/pages/Supplier/Card/SupplierAccounts.vue b/src/pages/Supplier/Card/SupplierAccounts.vue index 302e03217..39bcca63c 100644 --- a/src/pages/Supplier/Card/SupplierAccounts.vue +++ b/src/pages/Supplier/Card/SupplierAccounts.vue @@ -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 > diff --git a/src/pages/Supplier/Card/SupplierContacts.vue b/src/pages/Supplier/Card/SupplierContacts.vue index d69b74a4c..571b57f00 100644 --- a/src/pages/Supplier/Card/SupplierContacts.vue +++ b/src/pages/Supplier/Card/SupplierContacts.vue @@ -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(() => {
@@ -92,7 +102,7 @@ onMounted(() => { size="sm" class="cursor-pointer" color="primary" - @click="supplierContactRef.insert()" + @click="insertRow()" > {{ t('Add contact') }} diff --git a/src/pages/Supplier/Card/SupplierDescriptor.vue b/src/pages/Supplier/Card/SupplierDescriptor.vue index 83bad87d2..eabb95554 100644 --- a/src/pages/Supplier/Card/SupplierDescriptor.vue +++ b/src/pages/Supplier/Card/SupplierDescriptor.vue @@ -167,6 +167,7 @@ const getEntryQueryParams = (supplier) => { {{ t('All entries with current supplier') }}