From c362b31fb8819d8000223fa19918bfff90c62f90 Mon Sep 17 00:00:00 2001 From: alexm Date: Thu, 11 Jan 2024 12:05:29 +0100 Subject: [PATCH] refs #6595 fix: VnSelectFilter fix: invoiceIn --- src/components/FetchData.vue | 6 +-- src/components/common/VnSelectFilter.vue | 38 +++++++++++------ src/i18n/en/index.js | 1 + src/i18n/es/index.js | 1 + src/pages/Claim/Card/ClaimDevelopment.vue | 9 +--- src/pages/Customer/Card/CustomerCard.vue | 7 +--- src/pages/Customer/CustomerCreate.vue | 7 +--- .../Notifications/CustomerNotifications.vue | 7 +--- src/pages/Department/Card/DepartmentCard.vue | 8 ++-- src/pages/Entry/Card/EntryCard.vue | 8 ++-- src/pages/Entry/EntryCreate.vue | 7 +--- .../InvoiceIn/Card/InvoiceInBasicData.vue | 42 ++++++++++++++----- src/pages/InvoiceIn/Card/InvoiceInCard.vue | 7 +--- .../InvoiceOut/InvoiceOutNegativeBases.vue | 7 +--- src/pages/Order/Card/OrderCard.vue | 2 + src/pages/Order/Card/OrderForm.vue | 8 +--- src/pages/Supplier/Card/SupplierCard.vue | 8 ++-- .../Supplier/Card/SupplierDescriptor.vue | 4 +- src/pages/Supplier/SupplierCreate.vue | 7 +--- src/pages/Ticket/Card/TicketCard.vue | 8 ++-- src/pages/Travel/Card/TravelCard.vue | 8 ++-- src/pages/Travel/TravelCreate.vue | 8 +--- src/pages/Worker/Card/WorkerCard.vue | 8 ++-- src/pages/Worker/WorkerCreate.vue | 7 +--- src/stores/useNavigationStore.js | 1 - 25 files changed, 105 insertions(+), 119 deletions(-) diff --git a/src/components/FetchData.vue b/src/components/FetchData.vue index b8e7c2ac3..137f751db 100644 --- a/src/components/FetchData.vue +++ b/src/components/FetchData.vue @@ -30,7 +30,7 @@ const $props = defineProps({ params: { type: Object, default: null, - } + }, }); const emit = defineEmits(['onFetch']); @@ -42,9 +42,9 @@ onMounted(async () => { } }); -async function fetch() { +async function fetch(fetchFilter = {}) { try { - const filter = Object.assign({}, $props.filter); // eslint-disable-line vue/no-dupe-keys + const filter = Object.assign(fetchFilter, $props.filter); // eslint-disable-line vue/no-dupe-keys if ($props.where) filter.where = $props.where; if ($props.sortBy) filter.order = $props.sortBy; if ($props.limit) filter.limit = $props.limit; diff --git a/src/components/common/VnSelectFilter.vue b/src/components/common/VnSelectFilter.vue index f2fd2a311..244fb50bb 100644 --- a/src/components/common/VnSelectFilter.vue +++ b/src/components/common/VnSelectFilter.vue @@ -1,5 +1,5 @@ diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js index e25130aa0..76d2d97c3 100644 --- a/src/i18n/en/index.js +++ b/src/i18n/en/index.js @@ -109,6 +109,7 @@ export default { customer: { pageTitles: { customers: 'Customers', + create: 'Create', list: 'List', webPayments: 'Web Payments', extendedList: 'Extended list', diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index c0247dda0..26d8a335b 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -109,6 +109,7 @@ export default { customer: { pageTitles: { customers: 'Clientes', + create: 'Crear', list: 'Listado', webPayments: 'Pagos Web', extendedList: 'Listado extendido', diff --git a/src/pages/Claim/Card/ClaimDevelopment.vue b/src/pages/Claim/Card/ClaimDevelopment.vue index d1634c709..0b740cf64 100644 --- a/src/pages/Claim/Card/ClaimDevelopment.vue +++ b/src/pages/Claim/Card/ClaimDevelopment.vue @@ -1,13 +1,11 @@ @@ -15,11 +16,8 @@ const stateStore = useStateStore(); - -
- -
-
+ +
diff --git a/src/pages/Entry/Card/EntryCard.vue b/src/pages/Entry/Card/EntryCard.vue index 5aa50fc94..d4937e983 100644 --- a/src/pages/Entry/Card/EntryCard.vue +++ b/src/pages/Entry/Card/EntryCard.vue @@ -1,6 +1,7 @@ @@ -15,11 +16,8 @@ const stateStore = useStateStore(); - -
- -
-
+ +
diff --git a/src/pages/Entry/EntryCreate.vue b/src/pages/Entry/EntryCreate.vue index 37cfea1ad..d4eb8a3ef 100644 --- a/src/pages/Entry/EntryCreate.vue +++ b/src/pages/Entry/EntryCreate.vue @@ -7,6 +7,7 @@ import FormModel from 'components/FormModel.vue'; import VnRow from 'components/ui/VnRow.vue'; import VnSelectFilter from 'src/components/common/VnSelectFilter.vue'; import FetchData from 'components/FetchData.vue'; +import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue'; import { toDate } from 'src/filters'; @@ -51,11 +52,7 @@ const companiesOptions = ref([]); - -
- -
-
+