diff --git a/src/components/common/VnSelect.vue b/src/components/common/VnSelect.vue index 62d4783d0..e3a5544f2 100644 --- a/src/components/common/VnSelect.vue +++ b/src/components/common/VnSelect.vue @@ -140,12 +140,6 @@ const arrayDataKey = const arrayData = useArrayData(arrayDataKey, { url: useURL.value }); -onMounted(async () => { - if ($props.focusOnMount) setTimeout(() => vnSelectRef.value.showPopup(), 300); - setOptions(options.value); - if (useURL.value) fetchFilter($props.modelValue); -}); - watch(modelValue, (newValue) => { if (!myOptions.value.some((option) => option[optionValue.value] == newValue)) fetchFilter(newValue); diff --git a/src/pages/Customer/Card/CustomerBasicData.vue b/src/pages/Customer/Card/CustomerBasicData.vue index 91d9edc05..24f921777 100644 --- a/src/pages/Customer/Card/CustomerBasicData.vue +++ b/src/pages/Customer/Card/CustomerBasicData.vue @@ -96,12 +96,12 @@ const title = ref(); :params="{ departmentCodes: ['VT', 'shopping'], }" + map-options :fields="['id', 'nickname']" sort-by="nickname ASC" :rules="validate('client.salesPersonFk')" :use-like="false" emit-value - auto-load > <template #prepend> <VnAvatar @@ -137,17 +137,15 @@ const title = ref(); <VnRow> <VnSelect url="Clients" - :input-debounce="0" :label="t('customer.basicData.previousClient')" - :options="clients" + v-model="data.transferorFk" + :fields="['id', 'name']" :rules="validate('client.transferorFk')" emit-value map-options option-label="name" option-value="id" sort-by="name ASC" - v-model="data.transferorFk" - :fields="['id', 'name']" > <template #append> <QIcon name="info" class="cursor-pointer">