diff --git a/CHANGELOG.md b/CHANGELOG.md index fd8a900b6..b72bc2c8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - (Worker) => Se crea la sección Taquilla +- (General) => Se mantiene el filtro lateral en cualquier parte de la seccíon. ### Fixed diff --git a/package.json b/package.json index 7be20a842..38a1d06a3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "salix-front", - "version": "24.22.0", + "version": "24.24.0", "description": "Salix frontend", "productName": "Salix", "author": "Verdnatura", diff --git a/src/components/CreateBankEntityForm.vue b/src/components/CreateBankEntityForm.vue index 19c50e286..b2c5226e6 100644 --- a/src/components/CreateBankEntityForm.vue +++ b/src/components/CreateBankEntityForm.vue @@ -8,6 +8,8 @@ import FetchData from 'components/FetchData.vue'; import VnRow from 'components/ui/VnRow.vue'; import FormModelPopup from './FormModelPopup.vue'; +defineProps({ showEntityField: { type: Boolean, default: true } }); + const emit = defineEmits(['onDataSaved']); const { t } = useI18n(); const bicInputRef = ref(null); @@ -19,7 +21,7 @@ const bankEntityFormData = reactive({ }); const countriesFilter = { - fields: ['id', 'country', 'code'], + fields: ['id', 'name', 'code'], }; const countriesOptions = ref([]); @@ -72,7 +74,7 @@ onMounted(async () => { v-model="data.countryFk" :options="countriesOptions" option-value="id" - option-label="country" + option-label="name" hide-selected :required="true" :rules="validate('bankEntity.countryFk')" diff --git a/src/components/CreateManualInvoiceForm.vue b/src/components/CreateManualInvoiceForm.vue index f3d4de605..92399c20c 100644 --- a/src/components/CreateManualInvoiceForm.vue +++ b/src/components/CreateManualInvoiceForm.vue @@ -48,7 +48,11 @@ const onDataSaved = async (formData, requestResponse) => { /> diff --git a/src/components/CreateNewPostcodeForm.vue b/src/components/CreateNewPostcodeForm.vue index 064ad1631..25a61a0ca 100644 --- a/src/components/CreateNewPostcodeForm.vue +++ b/src/components/CreateNewPostcodeForm.vue @@ -134,7 +134,7 @@ const onProvinceCreated = async ({ name }, formData) => { :label="t('Country')" :options="countriesOptions" hide-selected - option-label="country" + option-label="name" option-value="id" v-model="data.countryFk" :rules="validate('postcode.countryFk')" diff --git a/src/components/FormModelPopup.vue b/src/components/FormModelPopup.vue index c65e18e6e..25213a8b7 100644 --- a/src/components/FormModelPopup.vue +++ b/src/components/FormModelPopup.vue @@ -6,6 +6,37 @@ import FormModel from 'components/FormModel.vue'; const emit = defineEmits(['onDataSaved']); +defineProps({ + title: { + type: String, + default: '', + }, + subtitle: { + type: String, + default: '', + }, + url: { + type: String, + default: '', + }, + model: { + type: String, + default: '', + }, + filter: { + type: Object, + default: null, + }, + urlCreate: { + type: String, + default: null, + }, + formInitialData: { + type: Object, + default: () => {}, + }, +}); + const { t } = useI18n(); const formModelRef = ref(null); diff --git a/src/components/FormPopup.vue b/src/components/FormPopup.vue index e6f03ca3b..2da986006 100644 --- a/src/components/FormPopup.vue +++ b/src/components/FormPopup.vue @@ -4,6 +4,29 @@ import { useI18n } from 'vue-i18n'; const emit = defineEmits(['onSubmit']); +defineProps({ + title: { + type: String, + default: '', + }, + subtitle: { + type: String, + default: '', + }, + defaultSubmitButton: { + type: Boolean, + default: true, + }, + defaultCancelButton: { + type: Boolean, + default: true, + }, + customSubmitButtonLabel: { + type: String, + default: '', + }, +}); + const { t } = useI18n(); const closeButton = ref(null); diff --git a/src/components/UserPanel.vue b/src/components/UserPanel.vue index c2011639f..3ae05a268 100644 --- a/src/components/UserPanel.vue +++ b/src/components/UserPanel.vue @@ -178,6 +178,8 @@ function copyUserToken() { :options="warehousesData" option-label="name" option-value="id" + input-debounce="0" + hide-selected />