From df907a72809e7caf2bb90603cd0fb2ce14ca41aa Mon Sep 17 00:00:00 2001 From: jorgep Date: Tue, 30 Jul 2024 12:43:26 +0200 Subject: [PATCH 01/58] fix: refs #6449 fix summaryId --- src/components/common/VnLog.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/components/common/VnLog.vue b/src/components/common/VnLog.vue index 19765b1f7..282393623 100644 --- a/src/components/common/VnLog.vue +++ b/src/components/common/VnLog.vue @@ -213,7 +213,7 @@ function getLogTree(data) { } nLogs++; modelLog.logs.push(log); - + modelLog.summaryId = modelLog.logs[0].summaryId; // Changes const notDelete = log.action != 'delete'; const olds = (notDelete ? log.oldInstance : null) || {}; @@ -464,9 +464,12 @@ onUnmounted(() => { > {{ t(modelLog.modelI18n) }} - #{{ modelLog.summaryId }} + + {{ modelLog.showValue }} From 3bb261376d15f1c179eb012bdabb8dd5bbec137f Mon Sep 17 00:00:00 2001 From: jorgep Date: Tue, 30 Jul 2024 13:16:45 +0200 Subject: [PATCH 02/58] chore: refs #6449 refactor model-value text --- src/components/common/VnLog.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/common/VnLog.vue b/src/components/common/VnLog.vue index 282393623..2af40dd27 100644 --- a/src/components/common/VnLog.vue +++ b/src/components/common/VnLog.vue @@ -470,9 +470,11 @@ onUnmounted(() => { v-if="modelLog.summaryId" v-text="`#${modelLog.summaryId}`" /> - - {{ modelLog.showValue }} - + Date: Fri, 2 Aug 2024 12:50:09 +0200 Subject: [PATCH 03/58] fix: refs #7283 basicData locale --- src/pages/Item/Card/ItemBasicData.vue | 41 ++++++++++++++------------- src/pages/Item/locale/en.yml | 2 +- 2 files changed, 23 insertions(+), 20 deletions(-) diff --git a/src/pages/Item/Card/ItemBasicData.vue b/src/pages/Item/Card/ItemBasicData.vue index ca2fbc7a7..8d3cb2633 100644 --- a/src/pages/Item/Card/ItemBasicData.vue +++ b/src/pages/Item/Card/ItemBasicData.vue @@ -73,7 +73,7 @@ const onIntrastatCreated = (response, formData) => { - - + + - + { {
{ - - + +
- {{ t('basicData.isFragileTooltip') }} + {{ t('basic_data.isFragileTooltip') }}
- {{ t('basicData.isPhotoRequestedTooltip') }} + {{ t('basic_data.isPhotoRequestedTooltip') }}
Date: Fri, 2 Aug 2024 12:50:58 +0200 Subject: [PATCH 04/58] fix: refs #7283 basicData locale --- src/pages/Item/locale/es.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Item/locale/es.yml b/src/pages/Item/locale/es.yml index 451b75698..d0c322d8c 100644 --- a/src/pages/Item/locale/es.yml +++ b/src/pages/Item/locale/es.yml @@ -25,7 +25,7 @@ itemDiary: showBefore: Mostrar lo anterior al inventario since: Desde warehouse: Almacén -basicData: +basic_data: type: Tipo reference: Referencia relevancy: Relevancia From 6f771c7ae6aaeb922444da87d5e836122662fa3f Mon Sep 17 00:00:00 2001 From: jorgep Date: Fri, 2 Aug 2024 14:31:41 +0200 Subject: [PATCH 05/58] fix: refs #7283 basicData locale --- src/pages/Item/Card/ItemBasicData.vue | 38 +++++++++++++-------------- src/pages/Item/locale/en.yml | 2 +- src/pages/Item/locale/es.yml | 2 +- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/pages/Item/Card/ItemBasicData.vue b/src/pages/Item/Card/ItemBasicData.vue index 8d3cb2633..52d4e852e 100644 --- a/src/pages/Item/Card/ItemBasicData.vue +++ b/src/pages/Item/Card/ItemBasicData.vue @@ -73,7 +73,7 @@ const onIntrastatCreated = (response, formData) => {
- - + + - + { {
{ - +
- {{ t('basic_data.isFragileTooltip') }} + {{ t('itemBasicData.isFragileTooltip') }}
- {{ t('basic_data.isPhotoRequestedTooltip') }} + {{ t('itemBasicData.isPhotoRequestedTooltip') }}
Date: Mon, 5 Aug 2024 13:01:26 +0200 Subject: [PATCH 06/58] fix: refs #7283 itemTags & VnImg --- src/components/ui/VnImg.vue | 37 ++++++++------------- src/components/ui/VnRow.vue | 12 +++---- src/pages/Item/Card/ItemBasicData.vue | 13 ++------ src/pages/Item/Card/ItemDescriptorImage.vue | 7 +++- src/pages/Item/Card/ItemTags.vue | 23 ++++++------- 5 files changed, 37 insertions(+), 55 deletions(-) diff --git a/src/components/ui/VnImg.vue b/src/components/ui/VnImg.vue index 985c9cc53..2a2df5aed 100644 --- a/src/components/ui/VnImg.vue +++ b/src/components/ui/VnImg.vue @@ -1,6 +1,8 @@ + - diff --git a/src/pages/Account/Card/AccountDescriptor.vue b/src/pages/Account/Card/AccountDescriptor.vue index d43266172..bc0c8c713 100644 --- a/src/pages/Account/Card/AccountDescriptor.vue +++ b/src/pages/Account/Card/AccountDescriptor.vue @@ -54,7 +54,7 @@ const hasAccount = ref(false); diff --git a/src/pages/Route/Roadmap/RoadmapCard.vue b/src/pages/Route/Roadmap/RoadmapCard.vue index 4e8f8dd50..02450887b 100644 --- a/src/pages/Route/Roadmap/RoadmapCard.vue +++ b/src/pages/Route/Roadmap/RoadmapCard.vue @@ -10,8 +10,10 @@ import RoadmapFilter from 'pages/Route/Roadmap/RoadmapFilter.vue'; :descriptor="RoadmapDescriptor" :filter-panel="RoadmapFilter" search-data-key="RoadmapList" - search-url="Roadmaps" - searchbar-label="Search roadmap" - searchbar-info="You can search by roadmap id or customer name" + :searchbar="{ + url: 'Roadmaps', + label: 'Search roadmap', + info: 'You can search by roadmap id or customer name', + }" /> diff --git a/src/pages/Supplier/Card/SupplierCard.vue b/src/pages/Supplier/Card/SupplierCard.vue index ed4ce7eb2..880d2a977 100644 --- a/src/pages/Supplier/Card/SupplierCard.vue +++ b/src/pages/Supplier/Card/SupplierCard.vue @@ -12,6 +12,8 @@ import SupplierListFilter from '../SupplierListFilter.vue'; search-data-key="SupplierList" search-url="Suppliers/filter" searchbar-label="Search suppliers" - search-url-query="table" + :searchbar="{ + searchUrl: 'table', + }" /> diff --git a/src/pages/Ticket/Card/TicketCard.vue b/src/pages/Ticket/Card/TicketCard.vue index 8c9745c02..11ac53832 100644 --- a/src/pages/Ticket/Card/TicketCard.vue +++ b/src/pages/Ticket/Card/TicketCard.vue @@ -11,6 +11,7 @@ const { t } = useI18n(); const route = useRoute(); const routeName = computed(() => route.name); +const customRouteRedirectName = computed(() => routeName.value); diff --git a/src/pages/Travel/Card/TravelCard.vue b/src/pages/Travel/Card/TravelCard.vue index a3c1430e9..2a42d4580 100644 --- a/src/pages/Travel/Card/TravelCard.vue +++ b/src/pages/Travel/Card/TravelCard.vue @@ -35,10 +35,12 @@ const filter = { data-key="Travel" base-url="Travels" search-data-key="TravelList" - searchbar-label="Search travel" - searchbar-info="You can search by travel id or name" - search-url="Travels" :filter="filter" :descriptor="TravelDescriptor" + :searchbar="{ + url: 'Travels', + label: 'Search travel', + info: 'You can search by travel id or name', + }" /> diff --git a/src/pages/Worker/Card/WorkerCard.vue b/src/pages/Worker/Card/WorkerCard.vue index 1a5bacf2f..8d8e348e0 100644 --- a/src/pages/Worker/Card/WorkerCard.vue +++ b/src/pages/Worker/Card/WorkerCard.vue @@ -10,8 +10,10 @@ import WorkerFilter from '../WorkerFilter.vue'; :descriptor="WorkerDescriptor" :filter-panel="WorkerFilter" search-data-key="WorkerList" - search-url="Workers/filter" - searchbar-label="Search worker" - searchbar-info="You can search by worker id or name" + :searchbar="{ + url: 'Workers/filter', + label: 'Search worker', + info: 'You can search by worker id or name', + }" /> diff --git a/src/pages/Zone/Card/ZoneCard.vue b/src/pages/Zone/Card/ZoneCard.vue index 59049a5b3..84a1df5f5 100644 --- a/src/pages/Zone/Card/ZoneCard.vue +++ b/src/pages/Zone/Card/ZoneCard.vue @@ -28,11 +28,12 @@ const searchBarDataKeys = { data-key="Zone" :descriptor="ZoneDescriptor" :search-data-key="searchBarDataKeys[routeName]" - :search-custom-route-redirect="customRouteRedirectName" - :search-redirect="!!customRouteRedirectName" - :search-make-fetch="searchbarMakeFetch" - :searchbar-label="t('list.searchZone')" - :searchbar-info="t('list.searchInfo')" + :filter-panel="ZoneFilterPanel" + :searchbar="{ + url: 'Zones', + label: t('list.searchZone'), + info: t('list.searchInfo'), + }" > From 3a77be0043922d185755f9233b7cb52bdb8fe25f Mon Sep 17 00:00:00 2001 From: alexm Date: Thu, 8 Aug 2024 07:56:29 +0200 Subject: [PATCH 23/58] change searchbar to searchbarProps --- src/components/common/VnCard.vue | 4 ++-- src/pages/Account/Alias/Card/AliasCard.vue | 2 +- src/pages/Account/Card/AccountCard.vue | 2 +- src/pages/Account/Role/Card/RoleCard.vue | 2 +- src/pages/Claim/Card/ClaimCard.vue | 2 +- src/pages/Customer/Card/CustomerCard.vue | 2 +- src/pages/Entry/Card/EntryCard.vue | 2 +- src/pages/InvoiceOut/Card/InvoiceOutCard.vue | 2 +- src/pages/Item/Card/ItemCard.vue | 2 +- src/pages/Parking/Card/ParkingCard.vue | 2 +- src/pages/Route/Agency/Card/AgencyCard.vue | 2 +- src/pages/Route/Roadmap/RoadmapCard.vue | 2 +- src/pages/Supplier/Card/SupplierCard.vue | 6 +++--- src/pages/Ticket/Card/TicketCard.vue | 2 +- src/pages/Travel/Card/TravelCard.vue | 2 +- src/pages/Worker/Card/WorkerCard.vue | 2 +- src/pages/Zone/Card/ZoneCard.vue | 2 +- 17 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/components/common/VnCard.vue b/src/components/common/VnCard.vue index c33e18dcd..27e301426 100644 --- a/src/components/common/VnCard.vue +++ b/src/components/common/VnCard.vue @@ -17,7 +17,7 @@ const props = defineProps({ descriptor: { type: Object, required: true }, filterPanel: { type: Object, default: undefined }, searchDataKey: { type: String, default: undefined }, - searchbar: { type: Object, default: undefined }, + searchbarProps: { type: Object, default: undefined }, }); const stateStore = useStateStore(); @@ -60,7 +60,7 @@ if (props.baseUrl) { - + diff --git a/src/pages/Account/Alias/Card/AliasCard.vue b/src/pages/Account/Alias/Card/AliasCard.vue index 07ded9316..d997af4a9 100644 --- a/src/pages/Account/Alias/Card/AliasCard.vue +++ b/src/pages/Account/Alias/Card/AliasCard.vue @@ -25,7 +25,7 @@ const searchBarDataKeys = { base-url="MailAliases" :descriptor="AliasDescriptor" :search-data-key="searchBarDataKeys[routeName]" - :searchbar="{ + :searchbarProps="{ redirect: !!customRouteRedirectName, customRouteRedirectName, info: t('mailAlias.searchInfo'), diff --git a/src/pages/Account/Card/AccountCard.vue b/src/pages/Account/Card/AccountCard.vue index 46d6e77b1..c64515aab 100644 --- a/src/pages/Account/Card/AccountCard.vue +++ b/src/pages/Account/Card/AccountCard.vue @@ -26,7 +26,7 @@ const searchBarDataKeys = { data-key="Account" :descriptor="AccountDescriptor" :search-data-key="searchBarDataKeys[routeName]" - :searchbar="{ + :searchbarProps="{ redirect: !!customRouteRedirectName, customRouteRedirectName, label: t('account.search'), diff --git a/src/pages/Account/Role/Card/RoleCard.vue b/src/pages/Account/Role/Card/RoleCard.vue index c24b36745..72134b53d 100644 --- a/src/pages/Account/Role/Card/RoleCard.vue +++ b/src/pages/Account/Role/Card/RoleCard.vue @@ -23,7 +23,7 @@ const searchBarDataKeys = { data-key="Role" :descriptor="RoleDescriptor" :search-data-key="searchBarDataKeys[routeName]" - :searchbar="{ + :searchbarProps="{ redirect: !!customRouteRedirectName, customRouteRedirectName, label: t('role.searchRoles'), diff --git a/src/pages/Claim/Card/ClaimCard.vue b/src/pages/Claim/Card/ClaimCard.vue index 09eaa13d4..64cf35f81 100644 --- a/src/pages/Claim/Card/ClaimCard.vue +++ b/src/pages/Claim/Card/ClaimCard.vue @@ -12,7 +12,7 @@ import filter from './ClaimFilter.js'; :filter-panel="ClaimFilter" search-data-key="ClaimList" :filter="filter" - :searchbar="{ + :searchbarProps="{ url: 'Claims/filter', label: 'Search claim', info: 'You can search by claim id or customer name', diff --git a/src/pages/Customer/Card/CustomerCard.vue b/src/pages/Customer/Card/CustomerCard.vue index 0cc41e024..c77e429ef 100644 --- a/src/pages/Customer/Card/CustomerCard.vue +++ b/src/pages/Customer/Card/CustomerCard.vue @@ -10,7 +10,7 @@ import CustomerFilter from '../CustomerFilter.vue'; :descriptor="CustomerDescriptor" :filter-panel="CustomerFilter" search-data-key="CustomerList" - :searchbar="{ + :searchbarProps="{ url: 'Clients/extendedListFilter', label: 'Search customer', info: 'You can search by customer id or name', diff --git a/src/pages/Entry/Card/EntryCard.vue b/src/pages/Entry/Card/EntryCard.vue index 75a3567cb..a1fd83d05 100644 --- a/src/pages/Entry/Card/EntryCard.vue +++ b/src/pages/Entry/Card/EntryCard.vue @@ -10,7 +10,7 @@ import EntryFilter from '../EntryFilter.vue'; :descriptor="EntryDescriptor" :filter-panel="EntryFilter" search-data-key="EntryList" - :searchbar="{ + :searchbarProps="{ url: 'Entries/filter', label: 'Search entries', info: 'You can search by entry reference', diff --git a/src/pages/InvoiceOut/Card/InvoiceOutCard.vue b/src/pages/InvoiceOut/Card/InvoiceOutCard.vue index 7365eaba0..26f34d0d3 100644 --- a/src/pages/InvoiceOut/Card/InvoiceOutCard.vue +++ b/src/pages/InvoiceOut/Card/InvoiceOutCard.vue @@ -10,7 +10,7 @@ import InvoiceOutFilter from '../InvoiceOutFilter.vue'; :descriptor="InvoiceOutDescriptor" :filter-panel="InvoiceOutFilter" search-data-key="InvoiceOutList" - :searchbar="{ + :searchbarProps="{ url: 'InvoiceOuts/filter', label: 'Search invoice', info: 'You can search by invoice reference', diff --git a/src/pages/Item/Card/ItemCard.vue b/src/pages/Item/Card/ItemCard.vue index 01eda25b0..d125e9bbd 100644 --- a/src/pages/Item/Card/ItemCard.vue +++ b/src/pages/Item/Card/ItemCard.vue @@ -10,7 +10,7 @@ import ItemListFilter from '../ItemListFilter.vue'; :descriptor="ItemDescriptor" :filter-panel="ItemListFilter" search-data-key="ItemList" - :searchbar="{ + :searchbarProps="{ url: 'Items/filter', label: 'searchbar.labelr', info: 'searchbar.info', diff --git a/src/pages/Parking/Card/ParkingCard.vue b/src/pages/Parking/Card/ParkingCard.vue index 5912c424c..5c29e5665 100644 --- a/src/pages/Parking/Card/ParkingCard.vue +++ b/src/pages/Parking/Card/ParkingCard.vue @@ -16,7 +16,7 @@ const filter = { :descriptor="ParkingDescriptor" :filter-panel="ParkingFilter" search-data-key="ParkingList" - :searchbar="{ + :searchbarProps="{ url: 'Parkings', label: 'parking.searchBar.label', info: 'parking.searchBar.info', diff --git a/src/pages/Route/Agency/Card/AgencyCard.vue b/src/pages/Route/Agency/Card/AgencyCard.vue index 365cb6f58..65a095e48 100644 --- a/src/pages/Route/Agency/Card/AgencyCard.vue +++ b/src/pages/Route/Agency/Card/AgencyCard.vue @@ -8,7 +8,7 @@ import VnCard from 'components/common/VnCard.vue'; base-url="Agencies" :descriptor="AgencyDescriptor" search-data-key="AgencyList" - :searchbar="{ + :searchbarProps="{ url: 'Agencies', label: 'agency.searchBar.label', info: 'agency.searchBar.info', diff --git a/src/pages/Route/Roadmap/RoadmapCard.vue b/src/pages/Route/Roadmap/RoadmapCard.vue index 02450887b..6bd6816ff 100644 --- a/src/pages/Route/Roadmap/RoadmapCard.vue +++ b/src/pages/Route/Roadmap/RoadmapCard.vue @@ -10,7 +10,7 @@ import RoadmapFilter from 'pages/Route/Roadmap/RoadmapFilter.vue'; :descriptor="RoadmapDescriptor" :filter-panel="RoadmapFilter" search-data-key="RoadmapList" - :searchbar="{ + :searchbarProps="{ url: 'Roadmaps', label: 'Search roadmap', info: 'You can search by roadmap id or customer name', diff --git a/src/pages/Supplier/Card/SupplierCard.vue b/src/pages/Supplier/Card/SupplierCard.vue index 880d2a977..594026d18 100644 --- a/src/pages/Supplier/Card/SupplierCard.vue +++ b/src/pages/Supplier/Card/SupplierCard.vue @@ -10,10 +10,10 @@ import SupplierListFilter from '../SupplierListFilter.vue'; :descriptor="SupplierDescriptor" :filter-panel="SupplierListFilter" search-data-key="SupplierList" - search-url="Suppliers/filter" - searchbar-label="Search suppliers" - :searchbar="{ + :searchbar-props="{ + url: 'Suppliers/filter', searchUrl: 'table', + label: 'Search suppliers', }" /> diff --git a/src/pages/Ticket/Card/TicketCard.vue b/src/pages/Ticket/Card/TicketCard.vue index 11ac53832..b9510576a 100644 --- a/src/pages/Ticket/Card/TicketCard.vue +++ b/src/pages/Ticket/Card/TicketCard.vue @@ -20,7 +20,7 @@ const customRouteRedirectName = computed(() => routeName.value); :filter-panel="TicketFilter" :descriptor="TicketDescriptor" search-data-key="TicketList" - :searchbar="{ + :searchbarProps="{ customRouteRedirectName, label: t('card.search'), info: t('card.searchInfo'), diff --git a/src/pages/Travel/Card/TravelCard.vue b/src/pages/Travel/Card/TravelCard.vue index 2a42d4580..99271459e 100644 --- a/src/pages/Travel/Card/TravelCard.vue +++ b/src/pages/Travel/Card/TravelCard.vue @@ -37,7 +37,7 @@ const filter = { search-data-key="TravelList" :filter="filter" :descriptor="TravelDescriptor" - :searchbar="{ + :searchbarProps="{ url: 'Travels', label: 'Search travel', info: 'You can search by travel id or name', diff --git a/src/pages/Worker/Card/WorkerCard.vue b/src/pages/Worker/Card/WorkerCard.vue index 8d8e348e0..48eca8644 100644 --- a/src/pages/Worker/Card/WorkerCard.vue +++ b/src/pages/Worker/Card/WorkerCard.vue @@ -10,7 +10,7 @@ import WorkerFilter from '../WorkerFilter.vue'; :descriptor="WorkerDescriptor" :filter-panel="WorkerFilter" search-data-key="WorkerList" - :searchbar="{ + :searchbarProps="{ url: 'Workers/filter', label: 'Search worker', info: 'You can search by worker id or name', diff --git a/src/pages/Zone/Card/ZoneCard.vue b/src/pages/Zone/Card/ZoneCard.vue index 84a1df5f5..eeece3bd8 100644 --- a/src/pages/Zone/Card/ZoneCard.vue +++ b/src/pages/Zone/Card/ZoneCard.vue @@ -29,7 +29,7 @@ const searchBarDataKeys = { :descriptor="ZoneDescriptor" :search-data-key="searchBarDataKeys[routeName]" :filter-panel="ZoneFilterPanel" - :searchbar="{ + :searchbarProps="{ url: 'Zones', label: t('list.searchZone'), info: t('list.searchInfo'), From dc5142c20a381aa8445783c5c8c0ec7dbbf4f039 Mon Sep 17 00:00:00 2001 From: jorgep Date: Thu, 8 Aug 2024 10:12:54 +0200 Subject: [PATCH 24/58] feat: refs #6900 use VnTable & sort filter fields --- src/components/VnTable/VnColumn.vue | 2 +- src/i18n/locale/en.yml | 1 + src/i18n/locale/es.yml | 2 + src/pages/InvoiceIn/InvoiceInCreate.vue | 17 +- src/pages/InvoiceIn/InvoiceInFilter.vue | 108 ++++---- src/pages/InvoiceIn/InvoiceInList.vue | 236 +++++++++++------- src/pages/Route/RouteAutonomous.vue | 3 +- .../Supplier/Card/SupplierDescriptor.vue | 3 +- 8 files changed, 205 insertions(+), 167 deletions(-) diff --git a/src/components/VnTable/VnColumn.vue b/src/components/VnTable/VnColumn.vue index 55b2f5fee..ed34e9eee 100644 --- a/src/components/VnTable/VnColumn.vue +++ b/src/components/VnTable/VnColumn.vue @@ -151,7 +151,7 @@ const col = computed(() => { }; } if ( - (newColumn.name.startsWith('is') || newColumn.name.startsWith('has')) && + (/^is[A-Z]/.test(newColumn.name) || /^has[A-Z]/.test(newColumn.name)) && newColumn.component == null ) newColumn.component = 'checkbox'; diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index d2cd83560..12680d0cb 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -262,6 +262,7 @@ globals: unsavedPopup: title: Unsaved changes will be lost subtitle: Are you sure exit without saving? + createInvoiceIn: Create invoice in errors: statusUnauthorized: Access denied statusInternalServerError: An internal server error has ocurred diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index b926bd50b..747a10d51 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -264,6 +264,8 @@ globals: unsavedPopup: title: Los cambios que no haya guardado se perderán subtitle: ¿Seguro que quiere salir sin guardar? + createInvoiceIn: Crear factura recibida + errors: statusUnauthorized: Acceso denegado statusInternalServerError: Ha ocurrido un error interno del servidor diff --git a/src/pages/InvoiceIn/InvoiceInCreate.vue b/src/pages/InvoiceIn/InvoiceInCreate.vue index 4dec9ac7d..e6863beb1 100644 --- a/src/pages/InvoiceIn/InvoiceInCreate.vue +++ b/src/pages/InvoiceIn/InvoiceInCreate.vue @@ -26,8 +26,7 @@ const newInvoiceIn = reactive({ companyFk: user.value.companyFk || null, issued: Date.vnNew(), }); -const suppliersOptions = ref([]); -const companiesOptions = ref([]); +const companies = ref([]); const redirectToInvoiceInBasicData = (__, { id }) => { router.push({ name: 'InvoiceInBasicData', params: { id } }); @@ -35,19 +34,12 @@ const redirectToInvoiceInBasicData = (__, { id }) => {