diff --git a/package.json b/package.json index 063cf6de4..7be20a842 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "salix-front", - "version": "24.20.0", + "version": "24.22.0", "description": "Salix frontend", "productName": "Salix", "author": "Verdnatura", diff --git a/src/components/CrudModel.vue b/src/components/CrudModel.vue index de4724e55..000de4336 100644 --- a/src/components/CrudModel.vue +++ b/src/components/CrudModel.vue @@ -81,6 +81,7 @@ defineExpose({ hasChanges, saveChanges, getChanges, + formData, }); async function fetch(data) { diff --git a/src/components/FilterItemForm.vue b/src/components/FilterItemForm.vue index e031999e2..7af9adf93 100644 --- a/src/components/FilterItemForm.vue +++ b/src/components/FilterItemForm.vue @@ -1,7 +1,6 @@ - - diff --git a/src/pages/Entry/Card/EntryBuysImport.vue b/src/pages/Entry/Card/EntryBuysImport.vue index 705f56b68..6d856f068 100644 --- a/src/pages/Entry/Card/EntryBuysImport.vue +++ b/src/pages/Entry/Card/EntryBuysImport.vue @@ -251,6 +251,7 @@ const redirectToBuysView = () => { > diff --git a/src/pages/Item/Card/CreateIntrastatForm.vue b/src/pages/Item/Card/CreateIntrastatForm.vue new file mode 100644 index 000000000..3fd1ffe22 --- /dev/null +++ b/src/pages/Item/Card/CreateIntrastatForm.vue @@ -0,0 +1,52 @@ + + + diff --git a/src/pages/Item/Card/ItemBasicData.vue b/src/pages/Item/Card/ItemBasicData.vue index 334cf049d..7e8fa1d92 100644 --- a/src/pages/Item/Card/ItemBasicData.vue +++ b/src/pages/Item/Card/ItemBasicData.vue @@ -1 +1,233 @@ - + + diff --git a/src/pages/Item/Card/ItemLastEntries.vue b/src/pages/Item/Card/ItemLastEntries.vue index 5200db239..9071cc6eb 100644 --- a/src/pages/Item/Card/ItemLastEntries.vue +++ b/src/pages/Item/Card/ItemLastEntries.vue @@ -2,7 +2,7 @@ import { onMounted, computed, onUnmounted, reactive, ref } from 'vue'; import { useI18n } from 'vue-i18n'; import { useRoute } from 'vue-router'; - +import { dateRange } from 'src/filters'; import EntryDescriptorProxy from 'src/pages/Entry/Card/EntryDescriptorProxy.vue'; import VnInputDate from 'src/components/common/VnInputDate.vue'; @@ -29,28 +29,19 @@ const exprBuilder = (param, value) => { case 'landed': return { 'tr.landed': { - between: getDateRange(value), + between: dateRange(value), }, }; } }; -const dateRange = reactive({ +const datedRange = reactive({ from: null, to: null, }); -const getDateRange = (val) => { - const minHour = new Date(val); - minHour.setHours(0, 0, 0, 0); - const maxHour = new Date(val); - maxHour.setHours(23, 59, 59, 59); - - return [minHour, maxHour]; -}; - const from = computed({ - get: () => dateRange.from, + get: () => datedRange.from, set: (val) => { updateFrom(val); updateFilter(); @@ -58,7 +49,7 @@ const from = computed({ }); const to = computed({ - get: () => dateRange.to, + get: () => datedRange.to, set: (val) => { updateTo(val); updateFilter(); @@ -173,17 +164,17 @@ const fetchItemLastEntries = async () => { const updateFrom = async (date) => { date.setHours(0, 0, 0, 0); - dateRange.from = date.toISOString(); + datedRange.from = date.toISOString(); }; const updateTo = async (date) => { date.setHours(23, 59, 59, 59); - dateRange.to = date.toISOString(); + datedRange.to = date.toISOString(); }; const updateFilter = async () => { arrayData.store.userFilter.where.landed = { - between: [dateRange.from, dateRange.to], + between: [datedRange.from, datedRange.to], }; await fetchItemLastEntries(); }; diff --git a/src/pages/Item/Card/ItemShelving.vue b/src/pages/Item/Card/ItemShelving.vue new file mode 100644 index 000000000..7e7faab36 --- /dev/null +++ b/src/pages/Item/Card/ItemShelving.vue @@ -0,0 +1,279 @@ + + + diff --git a/src/pages/Item/Card/ItemTags.vue b/src/pages/Item/Card/ItemTags.vue index 95f4380e4..b3cdfffb1 100644 --- a/src/pages/Item/Card/ItemTags.vue +++ b/src/pages/Item/Card/ItemTags.vue @@ -1 +1,191 @@ - + + + diff --git a/src/pages/Item/ItemRequest.vue b/src/pages/Item/ItemRequest.vue index 1872ad859..735f3a7b7 100644 --- a/src/pages/Item/ItemRequest.vue +++ b/src/pages/Item/ItemRequest.vue @@ -1,7 +1,7 @@