diff --git a/src/components/CreateBankEntityForm.vue b/src/components/CreateBankEntityForm.vue
index 26334ab2d..c2b711883 100644
--- a/src/components/CreateBankEntityForm.vue
+++ b/src/components/CreateBankEntityForm.vue
@@ -1,7 +1,14 @@
-
- {{ t('title') }}
- {{ t('subtitle') }}
-
-
+ setCountriesOptions(data)"
+ :filter="countriesFilter"
+ auto-load
+ />
+
+
+ {{ t('title') }}
+ {{ t('subtitle') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
en:
- name: Name *
title: New bank entity
subtitle: Please, ensure you put the correct data!
+ name: Name *
+ swift: Swift *
+ country: Country
+ id: Entity code
es:
- name: Nombre *
title: Nueva entidad bancaria
subtitle: ¡Por favor, asegúrate de poner los datos correctos!
+ name: Nombre *
+ swift: Swift *
+ country: País
+ id: Código de la entidad
diff --git a/src/components/FormModel.vue b/src/components/FormModel.vue
index 34964fc12..dc413942e 100644
--- a/src/components/FormModel.vue
+++ b/src/components/FormModel.vue
@@ -57,7 +57,7 @@ const $props = defineProps({
},
});
-const emit = defineEmits(['onFetch']);
+const emit = defineEmits(['onFetch', 'onDataSaved']);
defineExpose({
save,
@@ -114,7 +114,7 @@ async function fetch() {
}
async function save() {
- if (!hasChanges.value) {
+ if ($props.observeFormChanges && !hasChanges.value) {
notify('globals.noChanges', 'negative');
return;
}
diff --git a/src/components/common/VnSelectCreate.vue b/src/components/common/VnSelectCreate.vue
index 20d9fb9ae..867c97135 100644
--- a/src/components/common/VnSelectCreate.vue
+++ b/src/components/common/VnSelectCreate.vue
@@ -27,7 +27,7 @@ const $props = defineProps({
});
const role = useRole();
-const popup = ref(null);
+const showForm = ref(false);
const value = computed({
get() {
@@ -42,31 +42,27 @@ const isAllowedToCreate = computed(() => {
return role.hasAny($props.rolesAllowedToCreate);
});
-const openCreateForm = () => {
- popup.value.show();
+const toggleForm = () => {
+ showForm.value = !showForm.value;
};
-
+
-
-
+
+
+
+
+
diff --git a/src/pages/Travel/TravelCreate.vue b/src/pages/Travel/TravelCreate.vue
index 434bbb238..d1a0734c5 100644
--- a/src/pages/Travel/TravelCreate.vue
+++ b/src/pages/Travel/TravelCreate.vue
@@ -169,11 +169,3 @@ const onFetchWarehouses = (warehouses) => {
-
-
diff --git a/src/pages/Worker/WorkerCreate.vue b/src/pages/Worker/WorkerCreate.vue
index 0c214d36d..b047a6a93 100644
--- a/src/pages/Worker/WorkerCreate.vue
+++ b/src/pages/Worker/WorkerCreate.vue
@@ -59,14 +59,14 @@ const updateFilterOptions = (data, optionKey) => {
filtersOptions[optionKey] = [...data];
};
+const onFetchWorkerConfig = (workerConfig) => {
+ newWorkerForm.value.payMethodFk = workerConfig.payMethodFk;
+};
+
onMounted(async () => {
const userInfo = await useUserConfig().fetch();
newWorkerForm.value = { companyFk: userInfo.companyFk };
});
-
-const onFetchWorkerConfig = (workerConfig) => {
- newWorkerForm.value.payMethodFk = workerConfig.payMethodFk;
-};
@@ -108,6 +108,7 @@ const onFetchWorkerConfig = (workerConfig) => {
@on-fetch="(data) => updateFilterOptions(data, 'bankEntities')"
auto-load
/>
+
@@ -115,7 +116,7 @@ const onFetchWorkerConfig = (workerConfig) => {
@@ -261,35 +262,27 @@ const onFetchWorkerConfig = (workerConfig) => {
-
-
+
+
+
+
+
+ {{ scope.opt.bic }}
+ {{ scope.opt.name }}
+
+