diff --git a/CHANGELOG.md b/CHANGELOG.md index b72bc2c8a..250aa01a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [2420.01] +### Added + +- (Item) => Se añade la opción de añadir un comentario del motivo de hacer una foto + ## [2418.01] ## [2416.01] - 2024-04-18 diff --git a/package.json b/package.json index 742fbf276..139961155 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "salix-front", - "version": "24.24.1", + "version": "24.26.0", "description": "Salix frontend", "productName": "Salix", "author": "Verdnatura", @@ -56,4 +56,4 @@ "vite": "^5.1.4", "vitest": "^0.31.1" } -} +} \ No newline at end of file diff --git a/src/components/CrudModel.vue b/src/components/CrudModel.vue index 000de4336..fe15d2db1 100644 --- a/src/components/CrudModel.vue +++ b/src/components/CrudModel.vue @@ -1,6 +1,7 @@ - + - - - - - - + + + - + + + @@ -411,7 +330,7 @@ async function upsert() { - - @@ -522,7 +441,7 @@ async function upsert() { - @@ -545,7 +464,7 @@ async function upsert() { :options="warehouses" option-value="id" option-label="name" - :rules="[requiredFieldRule]" + :required="true" /> - import { ref, computed } from 'vue'; -import { useRoute, useRouter } from 'vue-router'; +import { useRouter } from 'vue-router'; import { useI18n } from 'vue-i18n'; import { useArrayData } from 'src/composables/useArrayData'; import { useCapitalize } from 'src/composables/useCapitalize'; @@ -8,12 +8,11 @@ import CrudModel from 'src/components/CrudModel.vue'; import FetchData from 'src/components/FetchData.vue'; import VnSelect from 'src/components/common/VnSelect.vue'; -const router = useRouter(); -const route = useRoute(); +const { push, currentRoute } = useRouter(); const { t } = useI18n(); -const invoiceId = route.params.id; -const arrayData = useArrayData('InvoiceIn'); +const invoiceId = +currentRoute.value.params.id; +const arrayData = useArrayData(currentRoute.value.meta.moduleName); const invoiceIn = computed(() => arrayData.store.data); const invoiceInCorrectionRef = ref(); const filter = { @@ -74,7 +73,7 @@ const rowsSelected = ref([]); const requiredFieldRule = (val) => val || t('globals.requiredField'); -const onSave = (data) => data.deletes && router.push(`/invoice-in/${invoiceId}/summary`); +const onSave = (data) => data.deletes && push(`/invoice-in/${invoiceId}/summary`);