-
import VnLog from 'src/components/common/VnLog.vue';
-import { useRoute } from 'vue-router';
-
-const route = useRoute();
-
-const getChanges = (oldInstance, newInstance) => {
- const changes = [];
- Object.entries(newInstance).forEach(([key, newValue]) => {
- const oldValue = oldInstance?.[key];
- if (oldValue !== newValue) {
- changes.push({
- property: key,
- before: oldValue,
- after: newValue,
- });
- }
- });
- return changes;
-};
-
-const shelvingMapper = (shelving) => ({
- ...shelving,
- action: shelving.action,
- created: shelving.creationDate,
- model: shelving.changedModel,
- userFk: shelving.userFk,
- userName: shelving.user?.name,
- changes: getChanges(shelving.oldInstance, shelving.newInstance),
-});
-
-const shelvingFilter = {
- include: [
- {
- relation: 'user',
- scope: {
- fields: ['nickname', 'name'],
- },
- },
- ],
- where: {
- originFk: route.params.id,
- },
-};
-
+
diff --git a/src/pages/Supplier/SupplierCreate.vue b/src/pages/Supplier/SupplierCreate.vue
index 9b792483b..7cf8f117e 100644
--- a/src/pages/Supplier/SupplierCreate.vue
+++ b/src/pages/Supplier/SupplierCreate.vue
@@ -1,11 +1,12 @@
-
+
+
+
diff --git a/src/pages/Travel/ExtraCommunity.vue b/src/pages/Travel/ExtraCommunity.vue
index cef3ed998..245cbc9de 100644
--- a/src/pages/Travel/ExtraCommunity.vue
+++ b/src/pages/Travel/ExtraCommunity.vue
@@ -8,6 +8,7 @@ import SupplierDescriptorProxy from 'src/pages/Supplier/Card/SupplierDescriptorP
import TravelDescriptorProxy from 'src/pages/Travel/Card/TravelDescriptorProxy.vue';
import VnSearchbar from 'src/components/ui/VnSearchbar.vue';
import ExtraCommunityFilter from './ExtraCommunityFilter.vue';
+import VnInput from 'src/components/common/VnInput.vue';
import { useStateStore } from 'stores/useStateStore';
import { toCurrency } from 'src/filters';
@@ -314,7 +315,7 @@ onMounted(async () => {
label-set="Save"
label-cancel="Close"
>
-
-import { reactive } from 'vue';
+import { reactive, ref } from 'vue';
import { useI18n } from 'vue-i18n';
+
+import FetchData from 'components/FetchData.vue';
import VnFilterPanel from 'src/components/ui/VnFilterPanel.vue';
import VnSelectFilter from 'src/components/common/VnSelectFilter.vue';
-import FetchData from 'components/FetchData.vue';
+import VnInput from 'src/components/common/VnInput.vue';
import VnInputDate from 'components/common/VnInputDate.vue';
const { t } = useI18n();
@@ -14,16 +16,10 @@ const props = defineProps({
},
});
-const filtersOptions = reactive({
- warehouses: [],
- continents: [],
- agencies: [],
- suppliers: [],
-});
-
-const updateFilterOptions = (data, optionKey) => {
- filtersOptions[optionKey] = [...data];
-};
+const warehousesOptions = ref([]);
+const continentsOptions = ref([]);
+const agenciesOptions = ref([]);
+const suppliersOptions = ref([]);
const add = (paramsObj, key) => {
if (paramsObj[key] === undefined) {
@@ -43,22 +39,22 @@ const decrement = (paramsObj, key) => {
updateFilterOptions(data, 'warehouses')"
+ @on-fetch="(data) => (warehousesOptions = data)"
auto-load
/>
updateFilterOptions(data, 'continents')"
+ @on-fetch="(data) => (continentsOptions = data)"
auto-load
/>
updateFilterOptions(data, 'agencies')"
+ @on-fetch="(data) => (agenciesOptions = data)"
auto-load
/>
updateFilterOptions(data, 'suppliers')"
+ @on-fetch="(data) => (suppliersOptions = data)"
auto-load
/>
@@ -70,24 +66,22 @@ const decrement = (paramsObj, key) => {
-
-
+
+
-
+
-
+
-
-
+
{
-
+
{
/>
-
+
-
+
-
+
{
/>
-
+
{
/>
-
+
{
/>
-
+
{
+
+es:
+ Subtract 1: Quitar 1
+ Add 30: Añadir 30
+ Add 10: Añadir 10
+ Flush: Vaciar
+ Are you sure?: ¿Estás seguro?
+ It will set to 0: Se pondrá a 0
+ The counter will be reset to zero: Se pondrá el contador a cero
+
diff --git a/src/pages/Wagon/WagonCreate.vue b/src/pages/Wagon/WagonCreate.vue
index 0bd6f87be..cf6bc3ff2 100644
--- a/src/pages/Wagon/WagonCreate.vue
+++ b/src/pages/Wagon/WagonCreate.vue
@@ -1,9 +1,12 @@