Compare commits

...

893 Commits

Author SHA1 Message Date
Alex Moreno ef2e3c5351 refactor: remove unused defineEmits import in ChangeQuantityDialog.vue
gitea/salix-front/pipeline/head Build queued... Details
2025-02-12 07:56:09 +01:00
Alex Moreno 224d554a37 fix: update import path for ParkingDescriptor in ParkingCard.vue
gitea/salix-front/pipeline/head Build started... Details
2025-02-12 07:54:28 +01:00
Pablo Natek b221e56aae Merge pull request '6897-refactorVnTableAndEntryBuys' (!1374) from 6897-refactorVnTableAndEntryBuys into dev
gitea/salix-front/pipeline/head There was a failure building this commit Details
Reviewed-on: #1374
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
2025-02-12 06:49:36 +00:00
Pablo Natek cce9016e4e Merge branch 'dev' into 6897-refactorVnTableAndEntryBuys
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-11 15:50:51 +00:00
Pablo Natek 7e993cab73 refactor: refs #6897 improve condition checks in VnTable and remove unused emit in VnInputTime for cleaner code
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-02-11 16:44:05 +01:00
Carlos Satorres 7b34433898 Merge pull request '7550-refactPagesParking' (!1350) from 7550-refactPagesParking into dev
gitea/salix-front/pipeline/head There was a failure building this commit Details
Reviewed-on: #1350
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
2025-02-11 15:28:05 +00:00
Carlos Satorres a0b7f0083d Merge branch 'dev' into 7550-refactPagesParking
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-11 15:26:23 +00:00
Pablo Natek b403daff0e refactor: refs #6897 update VnFilter and VnTable components to enhance customization and improve styling
gitea/salix-front/pipeline/pr-dev Build queued... Details
2025-02-11 14:34:15 +01:00
Pablo Natek 5605654bb8 refactor: refs #6897 remove unused import statements in VnFilter component for cleaner code
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-11 12:30:35 +01:00
Pablo Natek 61ee7ced54 refactor: refs #6897 update component imports and class names for consistency and clarity
gitea/salix-front/pipeline/head This commit looks good Details
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-11 12:25:42 +01:00
Pablo Natek 9c306e4420 Merge branch '6897-entryBuyListRefactor' of https://gitea.verdnatura.es/verdnatura/salix-front into 6897-entryBuyListRefactor 2025-02-11 12:24:17 +01:00
Pablo Natek 7b2240b01d Merge branch 'dev' of https: refs #6897//gitea.verdnatura.es/verdnatura/salix-front into 6897-entryBuyListRefactor 2025-02-11 12:24:15 +01:00
Alex Moreno fcf6957b74 refactor: refs #6897 update deletion handling in CrudModel component to improve data management 2025-02-11 11:35:34 +01:00
Alex Moreno c04adf0e7d refactor: refs #6897 update SkeletonDescriptor component add image 2025-02-11 11:15:19 +01:00
Alex Moreno 06a07d4fd3 refactor: refs #6897 update checkbox attributes to include toggleIndeterminate in EntryBuys component 2025-02-11 10:11:26 +01:00
Javier Segarra 4a2074dc9d Merge pull request '6321_negative_tickets' (!1371) from 6321_negative_tickets into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1371
Reviewed-by: Carlos Satorres <carlossa@verdnatura.es>
2025-02-11 09:04:30 +00:00
Javier Segarra 3a95e22f67 Merge branch 'dev' into 6321_negative_tickets
gitea/salix-front/pipeline/head This commit looks good Details
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-11 08:51:33 +00:00
Jose Antonio Tubau 54585691c3 Merge pull request '#7411 - addInfoOnVnCheckboxAndVnInput' (!1295) from 7411-addInfoOnVnCheckboxAndVnInput into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1295
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
2025-02-11 08:50:09 +00:00
Javier Segarra 4bd9e69bf1 Merge branch 'dev' into 6321_negative_tickets
gitea/salix-front/pipeline/head This commit looks good Details
2025-02-11 08:43:22 +00:00
Alex Moreno c975943eb1 Merge branch 'dev' into 7411-addInfoOnVnCheckboxAndVnInput
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-11 08:38:51 +00:00
Pablo Natek ce89d4a31b Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6897-entryBuyListRefactor 2025-02-11 08:15:30 +01:00
Jon Elias f6c5891e0b Merge pull request 'Fix[InvoiceInBasicData]: fixed basic data e2e' (!1361) from Fix-InvoiceInBasicDataE2E into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1361
Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
2025-02-11 07:14:48 +00:00
Pablo Natek 45f4a1cea8 refactor: refs #6897 update component attributes and improve checkbox integration in tables 2025-02-11 07:58:26 +01:00
Jon Elias 94f1b2d709 Merge branch 'dev' into Fix-InvoiceInBasicDataE2E
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-11 06:49:57 +00:00
Pablo Natek f4e210734b Merge branch '6897-entryBuyListRefactor' of https://gitea.verdnatura.es/verdnatura/salix-front into 6897-entryBuyListRefactor 2025-02-10 16:05:08 +01:00
Pablo Natek 86184b905e refactor: refs #6897 remove 'only' from test cases to ensure all tests run 2025-02-10 16:05:01 +01:00
Javier Segarra d4212e6e07 Merge pull request 'fix_customerConsumption_filter' (!1357) from fix_customerConsumption_filter into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1357
Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
2025-02-10 12:40:47 +00:00
Javier Segarra b2a50e23bf Merge branch 'dev' into fix_customerConsumption_filter
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-10 12:39:54 +00:00
Alex Moreno 5e167876a9 Merge branch 'test' of https://gitea.verdnatura.es/verdnatura/salix-front into dev
gitea/salix-front/pipeline/head This commit looks good Details
2025-02-10 13:31:09 +01:00
Alex Moreno 8d209c9415 Merge branch 'master' of https://gitea.verdnatura.es/verdnatura/salix-front into test
gitea/salix-front/pipeline/head This commit looks good Details
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-10 13:30:57 +01:00
Jon Elias c0e03bd467 Merge branch 'Fix-InvoiceInBasicDataE2E' of https://gitea.verdnatura.es/verdnatura/salix-front into Fix-InvoiceInBasicDataE2E
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-10 13:19:01 +01:00
Jon Elias 73f02cf8bd refactor: use data-cy in VnSelectSupplier component and refactored e2e 2025-02-10 13:18:59 +01:00
Jon Elias a3c3a60e98 Merge branch 'dev' into Fix-InvoiceInBasicDataE2E
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-10 11:46:20 +00:00
Jon Elias aa6c6f0e69 refactor: requested changes
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-10 12:44:35 +01:00
Guillermo Bonet 2a5eeac8d5 Merge branch 'dev' into 6897-entryBuyListRefactor 2025-02-10 11:30:43 +00:00
Pablo Natek 5f624bbf7f refactor: refs #6897 clean up alignment and improve data attributes for better testing 2025-02-10 11:41:41 +01:00
Javier Segarra cdf600cbd0 fix: replace i18n
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-02-10 11:04:42 +01:00
Alex Moreno 0a40dd598e fix: cardDescriptor use userFilter
gitea/salix-front/pipeline/head This commit looks good Details
2025-02-10 10:21:38 +01:00
Jon Elias 8c499e3fc3 fix: fixed basic data e2e
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-10 10:20:40 +01:00
Jose Antonio Tubau 18da0e9922 refactor: refs #7411 bind event listeners to QCheckbox in VnCheckbox component
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-10 09:42:34 +01:00
Carlos Satorres 1c4afcb7cc Merge branch 'dev' into 7550-refactPagesParking
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-10 08:42:22 +00:00
Javier Segarra cc21b74626 Merge branch 'dev' into fix_customerConsumption_filter 2025-02-10 09:31:02 +01:00
Jon Elias 0e1f04323c Merge pull request 'Fix[OrderCatalogItemDialog]: Fixed add item to order' (!1359) from Fix-OrderCatalogAddToOrder into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1359
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
2025-02-10 08:08:59 +00:00
Jon Elias 585bb9973e Merge branch 'dev' into Fix-OrderCatalogAddToOrder
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-10 07:57:03 +00:00
Jon Elias 311eab363a Merge pull request '#8246 modified addressFk field to use dashIfEmpty filter' (!1208) from 8246-ZoneAddressFk2 into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1208
Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
2025-02-10 07:55:54 +00:00
Jon Elias a287844860 Merge branch 'dev' into 8246-ZoneAddressFk2
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-10 07:54:53 +00:00
Jon Elias 73dfce4104 fix: fixed OrderCatalog add item to order
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-10 08:51:51 +01:00
Jose Antonio Tubau b2f011e7cc Merge pull request 'fix: refs #7318 fixed claim summary warnings' (!1347) from 7318-claimSummaryFixWarnings into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1347
Reviewed-by: Carlos Satorres <carlossa@verdnatura.es>
2025-02-10 07:17:48 +00:00
Jose Antonio Tubau b95d8f3b44 Merge branch 'dev' into 7318-claimSummaryFixWarnings
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-10 07:16:40 +00:00
Alex Moreno 03ef6f01e5 Merge branch 'dev' into 7550-refactPagesParking
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-02-10 06:14:25 +00:00
Pablo Natek af2cbda077 Merge branch 'dev' of https: refs #6897//gitea.verdnatura.es/verdnatura/salix-front into 6897-entryBuyListRefactor
gitea/salix-front/pipeline/head This commit looks good Details
2025-02-09 18:28:33 +01:00
Pablo Natek b37923e194 feat: refs #6897 add success messages for entry lock and improve data attributes for better testing 2025-02-09 18:24:41 +01:00
Jorge Penadés dc3c800342 Merge pull request 'fix: refs #6919 include entityId in descriptor filter' (!1358) from 6919-fixFilters into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1358
Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
2025-02-09 12:24:03 +00:00
Jorge Penadés 1948ee9c52 fix: refs #6919 include entityId in descriptor filter
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-09 10:16:48 +01:00
Javier Segarra 40569b1ede fix: refs #6321 ticket locale en 2025-02-08 16:39:25 +01:00
Javier Segarra ca6cfb4c5e Merge branch 'fix_customerConsumption_filter' of https://gitea.verdnatura.es/verdnatura/salix-front into fix_customerConsumption_filter
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-07 23:42:39 +01:00
Javier Segarra b3fd818b13 feat: improves 2025-02-07 23:42:17 +01:00
Javier Segarra ce17e124a0 Merge branch 'dev' into fix_customerConsumption_filter
gitea/salix-front/pipeline/pr-dev Build queued... Details
2025-02-07 22:23:58 +00:00
Javier Segarra 55719fbce7 style: remove comments
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-07 23:02:45 +01:00
Javier Segarra 9dc22b39e2 feat: add more filters 2025-02-07 23:02:17 +01:00
Javier Segarra 63af730838 Merge branch 'dev' into 6321_negative_tickets 2025-02-07 21:42:21 +00:00
Carlos Satorres f8b41101d3 Merge pull request 'fix: improve method into dev' (!1356) from fix_reload_icon into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1356
Reviewed-by: Carlos Satorres <carlossa@verdnatura.es>
2025-02-07 14:19:32 +00:00
Javier Segarra d060e88ebb fix: improve method into dev
gitea/salix-front/pipeline/pr-dev This commit looks good Details
Reviewed-on: #1354
Reviewed-by: Carlos Satorres <carlossa@verdnatura.es>
2025-02-07 14:15:28 +00:00
Javier Segarra a4179eeb0a Merge pull request 'WARMFIX: improve method' (!1354) from warmfix_reload_scriptIsMissing into test
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1354
Reviewed-by: Carlos Satorres <carlossa@verdnatura.es>
2025-02-07 14:13:39 +00:00
Jorge Penadés b75578b6fb Merge pull request '#8388 fixInvoiceIn' (!1321) from 8388-fixInvoiceIn into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1321
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
2025-02-07 13:51:46 +00:00
Jorge Penadés 8380808ffa Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 8388-fixInvoiceIn
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-07 14:49:43 +01:00
Javier Segarra 2a3e807460 fix: improve method
gitea/salix-front/pipeline/pr-test This commit looks good Details
2025-02-07 13:38:06 +00:00
Jon Elias b1f0cc7f1d Merge pull request 'Fix[ItemFixedPrice]: Fixed item name filter' (!1351) from Fix-ItemFixedPriceNameFilter into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1351
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
2025-02-07 12:44:37 +00:00
Jon Elias 94849d0cdf Merge branch 'dev' into Fix-ItemFixedPriceNameFilter
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-07 12:43:23 +00:00
Jon Elias 0692de7bfb fix: fixed item name filter
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-07 13:41:34 +01:00
Alex Moreno 2d65811360 Merge branch 'dev' into 8246-ZoneAddressFk2
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-02-07 12:04:55 +00:00
Jorge Penadés f01e5b824e fix: refs #8388 adjust table cell properties and remove unused styles in InvoiceInVat.vue
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-07 10:41:42 +01:00
Jorge Penadés d9897b3ea2 Merge branch 'dev' of https: refs #8388//gitea.verdnatura.es/verdnatura/salix-front into 8388-fixInvoiceIn
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-07 10:05:30 +01:00
Jorge Penadés de6020626f Merge pull request 'feat: refs #7119 show country name' (!1346) from 7119-showCountryName into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1346
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
2025-02-07 09:03:52 +00:00
Jorge Penadés 05f6e1ec20 Merge branch '7119-showCountryName' of https://gitea.verdnatura.es/verdnatura/salix-front into 7119-showCountryName
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-07 10:02:46 +01:00
Jorge Penadés 0adb86d4f2 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 7119-showCountryName 2025-02-07 10:02:37 +01:00
Carlos Satorres b334807c5b fix: refs #7550 department
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-07 09:59:47 +01:00
Javier Segarra 86b77c2022 Merge pull request '#7601 - Different agency fot future tickets' (!1342) from 7601_futureAgency into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1342
Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
2025-02-07 08:36:18 +00:00
Javier Segarra 0901c57b12 Merge branch 'dev' into 7601_futureAgency
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-07 08:32:53 +00:00
Carlos Satorres 154a893580 Merge pull request 'fix: refs #6426 create constants' (!1228) from 6426-refactorConstants into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1228
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
2025-02-07 08:22:54 +00:00
Carlos Satorres 780e7839f4 Merge branch 'dev' into 6426-refactorConstants
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-07 08:21:56 +00:00
Carlos Satorres acb1ce39e0 fix: refs #7550 organize parking, shelving 2025-02-07 09:19:11 +01:00
Jose Antonio Tubau 1f1fa1e2b6 refactor: refs #7318 update order prop type to string and improve conditional rendering for zone
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-07 08:32:33 +01:00
Alex Moreno 6dd3a7b00d Merge branch 'dev' into 7411-addInfoOnVnCheckboxAndVnInput
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-07 07:26:52 +00:00
Alex Moreno 89df2e837c Merge pull request 'refactor: #8322 changed supplier component to use VnSection/VnCardBeta' (!1216) from 8322-Supplier into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1216
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
2025-02-07 07:20:47 +00:00
Alex Moreno c72d4e9f04 fix: refs #8322 supplier use cardBeta correctly
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-07 08:19:51 +01:00
Jon Elias 98bcb2f45b Merge pull request 'Hotfix[InvoiceOutList]: Fixed company filter' (!1349) from Hotfix-InvoiceOutCompanyFilter into master
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1349
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
2025-02-07 07:12:36 +00:00
Javier Segarra 2550add549 Merge branch 'dev' into 7601_futureAgency
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-07 07:07:48 +00:00
Jon Elias f93c512e16 Merge branch 'master' into Hotfix-InvoiceOutCompanyFilter
gitea/salix-front/pipeline/pr-master This commit looks good Details
2025-02-07 07:00:43 +00:00
Javier Segarra 314f656965 Merge branch '6321_negative_tickets' of https://gitea.verdnatura.es/verdnatura/salix-front into 6321_negative_tickets 2025-02-07 07:56:29 +01:00
Jon Elias 43b6ff89be fix: fixed company filter
gitea/salix-front/pipeline/pr-master This commit looks good Details
2025-02-07 07:56:08 +01:00
Javier Segarra 14c7ec2e39 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6321_negative_tickets 2025-02-07 07:54:21 +01:00
Javier Segarra eb9ab710c4 Merge branch 'dev' into 6321_negative_tickets 2025-02-07 06:41:08 +00:00
Alex Moreno 1a420abfb2 Merge branch 'dev' of https: refs #8322//gitea.verdnatura.es/verdnatura/salix-front into 8322-Supplier
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-02-07 07:39:47 +01:00
Alex Moreno 3021e38ae8 fix: hotfix fetchData not use userFilter
gitea/salix-front/pipeline/head This commit looks good Details
2025-02-07 07:32:28 +01:00
Jose Antonio Tubau f6e53e478f fix: refs #7318 fixed claim summary warnings
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-07 07:27:36 +01:00
Alex Moreno 2fea795bdb fix: hotfix empty observations
gitea/salix-front/pipeline/head This commit looks good Details
2025-02-07 07:21:59 +01:00
Alex Moreno fc44424dda Merge branch 'dev' into 7119-showCountryName
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-02-07 06:00:54 +00:00
Javier Segarra 4994a94369 Merge pull request '#7058 LeftMenu vitest' (!1153) from 7058_leftMenu_vitest into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1153
Reviewed-by: Jorge Penadés <jorgep@verdnatura.es>
2025-02-06 21:45:16 +00:00
Javier Segarra 48e40cdc46 Merge branch 'dev' into 7058_leftMenu_vitest
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-06 21:44:27 +00:00
Javier Segarra 220fb057e6 feat: refs #6321 requested changes 2025-02-06 18:00:18 +01:00
Jorge Penadés 5e17af2fae feat: refs #7119 show country name
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-06 16:19:38 +01:00
Javier Segarra d7b9a01c57 Merge branch 'dev' into 6321_negative_tickets 2025-02-06 14:58:28 +00:00
Javier Segarra ceef46eccc feat: refs #6321 remove ticketConfig 2025-02-06 15:18:35 +01:00
Jon Elias 504fee11a0 Merge branch '8246-ZoneAddressFk2' of https://gitea.verdnatura.es/verdnatura/salix-front into 8246-ZoneAddressFk2
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-06 14:21:14 +01:00
Jon Elias 1395c0da80 Merge branch 'dev' of https: refs #8246//gitea.verdnatura.es/verdnatura/salix-front into 8246-ZoneAddressFk2 2025-02-06 14:21:12 +01:00
Robert Ferrús 72e9637ef0 Merge pull request 'feat: refs #6822 change traduction Partial delay' (!1341) from 6822-changeTitlePartialDelay into test
gitea/salix-front/pipeline/pr-dev This commit looks good Details
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1341
Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
2025-02-06 12:51:10 +00:00
Javier Segarra e8a90faa62 feat: add agency icon
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-06 12:33:26 +00:00
Alex Moreno 07eacdcebf fix: refs #6426 constants
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-06 12:42:00 +01:00
Carlos Satorres 117ce937fe Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6426-refactorConstants
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-06 11:58:01 +01:00
Carlos Satorres 64a52e0183 fix: refs #6426 outLayout
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-06 11:57:27 +01:00
Robert Ferrús 3a7366c91a feat: refs #6822 change traduction Partial delay
gitea/salix-front/pipeline/pr-test This commit looks good Details
2025-02-06 11:47:14 +01:00
Alex Moreno 063ac0cb7b Merge branch 'test' of https://gitea.verdnatura.es/verdnatura/salix-front into dev
gitea/salix-front/pipeline/head This commit looks good Details
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-06 11:00:10 +01:00
Alex Moreno 671018ea2e Merge branch 'master' of https://gitea.verdnatura.es/verdnatura/salix-front into test
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
gitea/salix-front/pipeline/head There was a failure building this commit Details
2025-02-06 10:59:30 +01:00
Jorge Penadés 63a8f0f3c7 Merge pull request '#6919 syncData' (!941) from 6919-syncData into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #941
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
2025-02-06 09:39:48 +00:00
Jorge Penadés f9ba0642e1 Merge pull request '#7524 dynamic fetch' (!1339) from 7524-hotfix-removeLimit into master
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1339
Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
2025-02-06 09:32:44 +00:00
Jorge Penadés f991aa0aa8 Merge branch '6919-syncData' of https://gitea.verdnatura.es/verdnatura/salix-front into 6919-syncData
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-06 10:32:02 +01:00
Jorge Penadés 848d00a8b3 Merge branch 'dev' of https: refs #6919//gitea.verdnatura.es/verdnatura/salix-front into 6919-syncData 2025-02-06 10:32:00 +01:00
Jorge Penadés 6732effe0c Merge branch 'master' of https://gitea.verdnatura.es/verdnatura/salix-front into 7524-hotfix-removeLimit
gitea/salix-front/pipeline/pr-master This commit looks good Details
2025-02-06 10:30:16 +01:00
Alex Moreno c6758c3346 Merge pull request 'fix: use userFilter to keep includes' (!1340) from hotFix_use_userFilter into master
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1340
Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
2025-02-06 09:26:02 +00:00
Jorge Penadés 85c4d79443 Merge pull request '#7119 add VehicleList page and routing configuration' (!1129) from 7119-createVehicle into dev
gitea/salix-front/pipeline/head There was a failure building this commit Details
Reviewed-on: #1129
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
2025-02-06 09:24:15 +00:00
Jorge Penadés f37294f229 Merge branch '7119-createVehicle' of https://gitea.verdnatura.es/verdnatura/salix-front into 7119-createVehicle
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-06 10:20:43 +01:00
Jorge Penadés 017f435da6 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 7119-createVehicle 2025-02-06 10:20:29 +01:00
Alex Moreno ae36d676f5 Merge branch 'test' of https://gitea.verdnatura.es/verdnatura/salix-front into dev
gitea/salix-front/pipeline/head There was a failure building this commit Details
2025-02-06 10:13:40 +01:00
Alex Moreno a1555a4c54 Merge branch 'master' of https://gitea.verdnatura.es/verdnatura/salix-front into test
gitea/salix-front/pipeline/head There was a failure building this commit Details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-02-06 10:13:36 +01:00
Alex Moreno ab2d3fc4dc fix: use userFilter to keep includes
gitea/salix-front/pipeline/pr-master This commit looks good Details
2025-02-06 10:12:52 +01:00
Jorge Penadés 80337c61df fix: refs #7524 dynamic fetch
gitea/salix-front/pipeline/pr-master This commit looks good Details
2025-02-06 10:09:30 +01:00
Carlos Satorres 5d7bfec177 Merge branch '6426-refactorConstants' of https://gitea.verdnatura.es/verdnatura/salix-front into 6426-refactorConstants
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-06 09:53:13 +01:00
Carlos Satorres ded1dae481 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6426-refactorConstants 2025-02-06 09:53:09 +01:00
Alex Moreno a88696d590 Merge pull request 'fix(VnLog): load filters' (!1338) from hotFix_VnLog_filters into master
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1338
Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
2025-02-06 08:48:26 +00:00
Carlos Satorres 502f41993a Merge branch 'dev' into 6426-refactorConstants
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-06 08:47:50 +00:00
Alex Moreno 2ed9323f0f fix(VnLog): load filters
gitea/salix-front/pipeline/pr-master This commit looks good Details
2025-02-06 08:23:46 +01:00
Javier Segarra a06cfa12a4 Merge pull request 'perf: keyshortcut directive' (!1315) from improve_shortcut_directive into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1315
Reviewed-by: Pablo Natek <pablone@verdnatura.es>
2025-02-06 07:14:22 +00:00
Javier Segarra 852e51c06f feat: refs #6321 fetch ticketConfig for alertLevelCode 2025-02-06 01:06:48 +01:00
Javier Segarra b8f2df59cd feat: refs #6321 updates requested 2025-02-06 00:33:43 +01:00
Javier Segarra 841195eca0 Merge branch 'dev' into improve_shortcut_directive
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-05 22:06:08 +00:00
Javier Segarra 698edfbe72 feat: refs #7058 expect parent
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-05 23:03:43 +01:00
Javier Segarra 97dfeca20d fix: refs #7058 remove comment 2025-02-05 23:00:23 +01:00
Carlos Satorres 5cb2b326f1 Merge branch 'dev' into 6426-refactorConstants
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-05 15:08:25 +00:00
Javier Segarra d8bc37b627 style: refs #6321 i18n es 2025-02-05 15:38:54 +01:00
Javier Segarra 4f4071f13b Merge branch 'dev' of https: refs #6321//gitea.verdnatura.es/verdnatura/salix-front into 6321_negative_tickets 2025-02-05 15:38:13 +01:00
Javier Segarra aa53feea39 feat: refs #6321 changes 2025-02-05 15:37:16 +01:00
Jon Elias fac0e21ffd Merge branch 'dev' into 8246-ZoneAddressFk2
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-05 13:42:09 +00:00
Jon Elias 6eae05b7d0 Merge branch '8246-ZoneAddressFk2' of https://gitea.verdnatura.es/verdnatura/salix-front into 8246-ZoneAddressFk2
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-05 14:40:05 +01:00
Jon Elias 41c8760707 refactor: refs #8246 added filter to searchbar due to data key 2025-02-05 14:40:04 +01:00
Javier Segarra b5b52dcda0 Merge branch 'dev' into 7058_leftMenu_vitest
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-02-05 12:56:00 +00:00
Javier Segarra 7ece059610 test: refs #7058 clean comments
gitea/salix-front/pipeline/pr-dev Build queued... Details
2025-02-05 13:55:47 +01:00
Javier Segarra fcdc69d7c8 test: refs #7058 pass both tests 2025-02-05 13:48:29 +01:00
Alex Moreno a338dbed70 Merge branch 'test' of https://gitea.verdnatura.es/verdnatura/salix-front into dev
gitea/salix-front/pipeline/head This commit looks good Details
2025-02-05 13:48:06 +01:00
Alex Moreno 676ce400ac Merge branch 'master' of https://gitea.verdnatura.es/verdnatura/salix-front into test
gitea/salix-front/pipeline/head This commit looks good Details
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-05 13:47:58 +01:00
Alex Moreno 1b52468e14 fix: translation
gitea/salix-front/pipeline/head This commit looks good Details
2025-02-05 13:47:44 +01:00
Jose Antonio Tubau 3aa5bdac92 Merge pull request 'feat: refs #8304 added remove option to operator' (!1195) from 8304-workerChangesAndFixes into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1195
Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
2025-02-05 12:25:26 +00:00
Jon Elias 883eb7d57a Merge pull request 'Merge pull request 'Fx[MonitorTicket]: Fixed summary dialog width' (!1334)' (!1335) from warmfix_ticketSummary_width into test
gitea/salix-front/pipeline/pr-dev This commit looks good Details
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1335
Reviewed-by: Jon Elias <jon@verdnatura.es>
2025-02-05 12:24:58 +00:00
Jose Antonio Tubau c6cf2ed144 Merge branch 'dev' into 8304-workerChangesAndFixes
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-05 12:23:23 +00:00
Javier Segarra cf7bcdae7a Merge pull request 'Fx[MonitorTicket]: Fixed summary dialog width' (!1334)
gitea/salix-front/pipeline/pr-test This commit looks good Details
Reviewed-on: #1334
Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
2025-02-05 12:21:39 +00:00
Javier Segarra c8943e43fd Merge pull request 'Fx[MonitorTicket]: Fixed summary dialog width' (!1334) from Fix-MonitorTicketSummaryDialog into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1334
Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
2025-02-05 12:19:14 +00:00
Javier Segarra b0b04ad017 Merge branch 'dev' into Fix-MonitorTicketSummaryDialog
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-05 12:18:28 +00:00
Javier Segarra 0d2aada01f Merge branch 'dev' into improve_shortcut_directive
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-05 12:18:00 +00:00
Jon Elias 4848a89ca2 fix: fixed summary dialog width
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-05 13:17:31 +01:00
Carlos Satorres 018327a9ec Merge branch 'dev' into 6426-refactorConstants
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-05 11:51:30 +00:00
Carlos Satorres 896626a1fd Merge branch '6426-refactorConstants' of https://gitea.verdnatura.es/verdnatura/salix-front into 6426-refactorConstants
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-02-05 12:51:06 +01:00
Carlos Satorres b45e529879 fix: refs #6426 fix constants 2025-02-05 12:51:04 +01:00
Pablo Natek e121cc5d5c Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6897-entryBuyListRefactor 2025-02-05 12:42:00 +01:00
Pablo Natek 962a49868e feat: refs #6897 enhance entry management with new filters and localization updates 2025-02-05 12:41:52 +01:00
Alex Moreno 2eb38382f4 Merge branch 'test' of https://gitea.verdnatura.es/verdnatura/salix-front into dev
gitea/salix-front/pipeline/head This commit looks good Details
2025-02-05 12:16:02 +01:00
Alex Moreno 65b5094e23 Merge branch 'master' of https://gitea.verdnatura.es/verdnatura/salix-front into test
gitea/salix-front/pipeline/head This commit looks good Details
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-05 12:15:56 +01:00
Alex Moreno 5696a44c1b fix: empty order
gitea/salix-front/pipeline/head This commit looks good Details
2025-02-05 12:15:30 +01:00
Alex Moreno 5078559668 Merge branch 'test' of https://gitea.verdnatura.es/verdnatura/salix-front into dev
gitea/salix-front/pipeline/head This commit looks good Details
2025-02-05 12:04:33 +01:00
Alex Moreno a25744c4a4 Merge branch 'master' of https://gitea.verdnatura.es/verdnatura/salix-front into test
gitea/salix-front/pipeline/pr-dev This commit looks good Details
gitea/salix-front/pipeline/head This commit looks good Details
2025-02-05 12:04:16 +01:00
Alex Moreno 6e8f2754e5 fix: empty order
gitea/salix-front/pipeline/head This commit looks good Details
2025-02-05 12:00:34 +01:00
Alex Moreno 82cc153c98 fix: empty order
gitea/salix-front/pipeline/head This commit looks good Details
2025-02-05 12:00:19 +01:00
Alex Moreno 93ece4bf07 fix: empty order
gitea/salix-front/pipeline/head This commit looks good Details
2025-02-05 11:58:30 +01:00
Alex Moreno 4b66a8dea5 Merge branch 'test' of https://gitea.verdnatura.es/verdnatura/salix-front into dev
gitea/salix-front/pipeline/head This commit looks good Details
2025-02-05 11:52:04 +01:00
Alex Moreno f7db8d671c Merge branch 'master' of https://gitea.verdnatura.es/verdnatura/salix-front into test
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
gitea/salix-front/pipeline/head This commit looks good Details
2025-02-05 11:49:58 +01:00
Alex Moreno 43284e3b79 fix: empty order
gitea/salix-front/pipeline/head This commit looks good Details
2025-02-05 11:49:53 +01:00
Alex Moreno 0b7f2895a7 Merge branch 'dev' of https: refs #6919//gitea.verdnatura.es/verdnatura/salix-front into 6919-syncData
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-05 11:42:29 +01:00
Alex Moreno 2f6adfc515 Merge branch 'dev' into 7119-createVehicle
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-05 10:22:15 +00:00
Alex Moreno 7364f055b7 Merge branch 'test' of https://gitea.verdnatura.es/verdnatura/salix-front into dev
gitea/salix-front/pipeline/head This commit looks good Details
2025-02-05 11:16:29 +01:00
Alex Moreno 924d921b70 test: fix VnSearchbar
gitea/salix-front/pipeline/pr-dev This commit looks good Details
gitea/salix-front/pipeline/head This commit looks good Details
2025-02-05 11:16:21 +01:00
Alex Moreno 54962fbb56 fix: workerSummary 2025-02-05 11:16:02 +01:00
Javier Segarra 5e2158daf4 test: refs #7058 chnges requested
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-02-05 08:29:08 +01:00
Jon Elias 808dfe7122 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 8246-ZoneAddressFk2 2025-02-05 08:23:52 +01:00
Javier Segarra 629b89fe2f Merge branch 'dev' into 7058_leftMenu_vitest 2025-02-05 08:09:33 +01:00
Pablo Natek abce9c66ee Merge branch 'dev' of https: refs #6897//gitea.verdnatura.es/verdnatura/salix-front into 6897-entryBuyListRefactor 2025-02-05 08:04:42 +01:00
Jon Elias 090814cd29 Merge branch 'dev' into 8246-ZoneAddressFk2
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-05 06:59:07 +00:00
Jon Elias f132912da7 Merge pull request '#6242: Show all ticket problems' (!1331) from 6242-AddHasRoundingField into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1331
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
2025-02-05 06:51:40 +00:00
Jon Elias f88fb130c6 Merge branch 'dev' into 6242-AddHasRoundingField
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-05 06:50:36 +00:00
Alex Moreno 23ae5d7b4c Merge branch 'test' of https://gitea.verdnatura.es/verdnatura/salix-front into dev
gitea/salix-front/pipeline/head This commit looks good Details
2025-02-05 07:40:30 +01:00
Alex Moreno 9ff1d3fa83 Merge pull request 'fix: update selector for buyLabel button in myEntry.spec.js' (!1329) from fix-myEntryTest into test
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1329
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
2025-02-05 06:40:02 +00:00
Alex Moreno b5ae9ab0c5 Merge branch 'test' into fix-myEntryTest
gitea/salix-front/pipeline/pr-test This commit looks good Details
2025-02-05 06:37:11 +00:00
Pablo Natek dc8612fc73 refactor: refs #6897 update VnCheckbox component for improved model handling and replace QCheckbox 2025-02-05 07:35:06 +01:00
Alex Moreno 0ecdaf89e7 Merge branch 'test' of https://gitea.verdnatura.es/verdnatura/salix-front into dev
gitea/salix-front/pipeline/head This commit looks good Details
2025-02-05 07:25:36 +01:00
Alex Moreno 8c6a61a165 Merge pull request 'Warmfix[Wagon]: Fixed wagons e2e' (!1330) from Fix-WagonModuleE2E into test
gitea/salix-front/pipeline/head This commit looks good Details
gitea/salix-front/pipeline/pr-dev This commit looks good Details
Reviewed-on: #1330
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
2025-02-05 06:20:32 +00:00
Alex Moreno a476bc2d6b Merge branch 'test' into Fix-WagonModuleE2E
gitea/salix-front/pipeline/pr-test This commit looks good Details
2025-02-05 06:18:50 +00:00
Javier Segarra de454313cf feat: refs #6321 remove agency 2025-02-05 00:22:50 +01:00
Javier Segarra c65f1524c6 perf: refs #6321 remove console 2025-02-05 00:02:03 +01:00
Javier Segarra 74c0c64d50 fix: refs #6321 colors with variables 2025-02-04 23:59:17 +01:00
Javier Segarra bdb35e24ee perf: refs #6321 minor changes 2025-02-04 23:44:49 +01:00
Javier Segarra 7b7a8085e7 Merge branch 'dev' into 6321_negative_tickets 2025-02-04 23:43:44 +01:00
Jon Elias dbc1eee2e4 fix: fixed wagons e2e
gitea/salix-front/pipeline/pr-test This commit looks good Details
2025-02-04 15:39:34 +01:00
Jose Antonio Tubau 01344d693e fix: update selector for buyLabel button in myEntry.spec.js
gitea/salix-front/pipeline/pr-test There was a failure building this commit Details
2025-02-04 15:03:36 +01:00
Alex Moreno 419353e18b build: init version
gitea/salix-front/pipeline/head This commit looks good Details
2025-02-04 14:44:31 +01:00
Alex Moreno 06ceaf3820 Merge pull request '8524-devToTest' (!1328) from 8524-devToTest into test
gitea/salix-front/pipeline/pr-dev This commit looks good Details
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1328
Reviewed-by: Guillermo Bonet <guillermo@verdnatura.es>
2025-02-04 13:44:04 +00:00
Alex Moreno 616725b956 fix: refs #8524 parking test
gitea/salix-front/pipeline/pr-test This commit looks good Details
2025-02-04 14:37:41 +01:00
Alex Moreno 684418c550 test: refs #8524 fix
gitea/salix-front/pipeline/pr-test This commit looks good Details
2025-02-04 14:25:20 +01:00
Alex Moreno 217942dfd0 fix: refs #8524 parking section router
gitea/salix-front/pipeline/pr-test Build queued... Details
2025-02-04 14:25:04 +01:00
Pablo Natek 568f523e36 feat: refs #6897 add VnCheckbox component and enhance route list with dynamic select fields 2025-02-04 14:10:00 +01:00
Javier Segarra de6b1a8d5d fix: refs #6321 param 2025-02-04 13:04:57 +01:00
Alex Moreno 421970ba45 Merge branch 'test' of https://gitea.verdnatura.es/verdnatura/salix-front into dev
gitea/salix-front/pipeline/head This commit looks good Details
gitea/salix-front/pipeline/pr-test There was a failure building this commit Details
2025-02-04 13:02:21 +01:00
Alex Moreno a3177f126e Merge branch 'master' of https://gitea.verdnatura.es/verdnatura/salix-front into test
gitea/salix-front/pipeline/pr-dev This commit looks good Details
gitea/salix-front/pipeline/head This commit looks good Details
2025-02-04 13:01:50 +01:00
Jose Antonio Tubau 5c5a6069ce Merge branch 'dev' into 8304-workerChangesAndFixes
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-04 12:01:41 +00:00
PAU ROVIRA ROSALENY 2eb555f12f Merge pull request 'fix: #8422 fixed ItemTag e2e test not working' (!1301) from 8422-e2eItemTag into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1301
Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
2025-02-04 09:25:38 +00:00
Javier Segarra 1971534876 Merge branch 'dev' into 6321_negative_tickets 2025-02-04 09:46:27 +01:00
Jon Elias c254c89bd8 Merge branch 'dev' into 6242-AddHasRoundingField
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-04 07:43:15 +00:00
PAU ROVIRA ROSALENY 87e0b1661b Merge branch 'dev' into 8422-e2eItemTag
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-04 06:04:26 +00:00
PAU ROVIRA ROSALENY 108edae586 Merge pull request 'feat: #7065 created unit tests for UserPanel' (!1260) from 7065-testUserPanel into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1260
Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
2025-02-04 06:03:49 +00:00
PAU ROVIRA ROSALENY c65ac9f4db Merge branch 'dev' into 7065-testUserPanel
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-04 06:02:39 +00:00
Jose Antonio Tubau ff28df13f8 Merge pull request 'fix: refs #8418 adjusted route for button click' (!1305) from 8418-fixTestMyEntry into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1305
Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
2025-02-04 06:01:44 +00:00
PAU ROVIRA ROSALENY 885437bb2e Merge branch 'dev' into 7065-testUserPanel
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-04 06:00:00 +00:00
Javier Segarra b7e3401d06 feat: refs #6321 changes 2025-02-03 23:29:56 +01:00
Javier Segarra cc9a4af169 Merge pull request 'HOTFIX: orderList column created' (!1327) from hotfix_column_created_orderList into master
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1327
Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
2025-02-03 16:21:08 +00:00
Javier Segarra ac57141c0e fix: orderList column created
gitea/salix-front/pipeline/pr-master This commit looks good Details
2025-02-03 16:19:33 +00:00
Jose Antonio Tubau eabe29ed5c Merge branch 'dev' into 8304-workerChangesAndFixes
gitea/salix-front/pipeline/pr-dev Build queued... Details
2025-02-03 13:30:05 +00:00
Jose Antonio Tubau ca01ceacde fix: refs #8304 add visibility condition for notes in WorkerCalendar
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-03 14:29:44 +01:00
Jorge Penadés 4ad8bfc210 feat: refs #7119 update icon for inactive vehicles
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-03 14:25:21 +01:00
Jorge Penadés edbdf221ff Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 7119-createVehicle
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-03 14:22:21 +01:00
Pablo Natek 30f13b65f0 refactor: refs #6897 streamline supplier selection component and enhance localization entries 2025-02-03 14:19:50 +01:00
Alex Moreno e71278d7c8 Merge branch 'dev' into 6242-AddHasRoundingField
gitea/salix-front/pipeline/head This commit looks good Details
2025-02-03 12:55:51 +00:00
Pablo Natek 6b9f9188a2 Merge branch 'dev' of https: refs #6897//gitea.verdnatura.es/verdnatura/salix-front into 6897-entryBuyListRefactor
gitea/salix-front/pipeline/head This commit looks good Details
2025-02-03 13:27:23 +01:00
Jose Antonio Tubau 535fa77986 fix: refs #8418 correct casing in translation keys for supplier reference and issued date labels
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-03 13:19:26 +01:00
Pablo Natek b258c4eaac refactor: refs #6897 enhance localization entries, clean up unused code, and improve component structure 2025-02-03 13:16:57 +01:00
Jose Antonio Tubau 5b4fdcc443 Merge branch 'dev' into 8418-fixTestMyEntry
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-03 12:14:37 +00:00
Jose Antonio Tubau de19f2b54c refactor: refs #8418 update data-cy attribute for print labels button in EntryBuysTableDialog
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-03 13:14:11 +01:00
Jorge Penadés 13f09f13d2 fix: refs #8388 update translation for VAT and Transaction fields in invoice booking
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-03 13:04:38 +01:00
Jose Antonio Tubau 59fc86bfe9 Merge pull request 'fix: refs #7322 handle null responses in client, agency and address fetching' (!1313) from 7322-fixDestructuringErrorTicketSection into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1313
Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
2025-02-03 11:58:52 +00:00
Jose Antonio Tubau a4201368d7 Merge branch 'dev' into 7322-fixDestructuringErrorTicketSection
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-03 11:42:11 +00:00
Jorge Penadés 5147967bc0 feat: refs #8388 add validation for missing VAT and Transaction fields in invoice booking
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-03 12:26:43 +01:00
Jorge Penadés e3706094c2 fix: refs #8388 rollback
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-03 12:03:39 +01:00
Jose Antonio Tubau 278788ead3 test: refs #7322 update getAgencies unit test to include filter parameters for enhanced API call validation
gitea/salix-front/pipeline/pr-dev Build queued... Details
2025-02-03 11:59:13 +01:00
PAU ROVIRA ROSALENY 11cfca5d80 fix: refs #7065 removed
gitea/salix-front/pipeline/pr-dev This commit looks good Details
unnecessary code
2025-02-03 11:43:48 +01:00
Jose Antonio Tubau f2ef6c1c4e refactor: refs #7322 update API functions to accept filters for enhanced data retrieval
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-02-03 11:33:51 +01:00
PAU ROVIRA ROSALENY b4b096ef9e Merge branch 'dev' into 7065-testUserPanel
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-03 10:31:07 +00:00
Jorge Penadés 778d8fbb67 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 8388-fixInvoiceIn
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-02-03 11:06:39 +01:00
Javier Segarra 859071ca4d Merge branch '6321_negative_tickets' of https://gitea.verdnatura.es/verdnatura/salix-front into 6321_negative_tickets 2025-02-03 10:57:27 +01:00
Jon Elias d5f2dd8f06 Merge pull request 'Hotfix: Fixed VnPaginate' (!1322) from Hotfix-OrderCatalogPaginate into master
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1322
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
2025-02-03 08:49:28 +00:00
Carlos Satorres e18a1a6176 Merge pull request 'fix: fix grid two' (!1323) from fix-6553workerBusiness into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1323
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
2025-02-03 08:32:52 +00:00
Javier Segarra 5d71a16ec7 feat: refs #6321 changes after review 2025-02-03 09:30:31 +01:00
Carlos Satorres 4ddc07406a fix: fix grid two
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-03 09:29:08 +01:00
Javier Segarra 035a42a895 Merge branch 'dev' into 8304-workerChangesAndFixes
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-02-03 08:27:28 +00:00
Jon Elias a1bba4496d fix: deleted catalog limit
gitea/salix-front/pipeline/pr-master This commit looks good Details
2025-02-03 08:48:32 +01:00
Jon Elias 855da2b7bf fix: fixed VnPaginate
gitea/salix-front/pipeline/pr-master This commit looks good Details
2025-02-03 08:46:44 +01:00
Jorge Penadés 97df1d8fd2 feat: refs #8388 add total amount calculation and update invoice insertion logic
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-31 18:43:09 +01:00
Jorge Penadés f18da15262 feat: refs #8388 enhance invoice booking validation and user confirmation messages
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-31 18:07:20 +01:00
Jorge Penadés c2042276ae fix: refs #8388 locale
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-31 16:14:09 +01:00
Jorge Penadés d8073e78ab Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 8388-fixInvoiceIn
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-31 16:02:33 +01:00
Jorge Penadés 66665ba5dd feat: refs #8388 if is number check startsWith wip 2025-01-31 16:01:44 +01:00
Jorge Penadés c83854c4c6 fix: refs #8388 update locale 2025-01-31 14:56:27 +01:00
Jorge Penadés 359e67c734 refactor: refs #8388 improve filter and search functionality 2025-01-31 14:46:42 +01:00
Jorge Penadés 290a7273d0 fix: refs #8388 update the right row 2025-01-31 14:19:48 +01:00
Jorge Penadés 8d0d19d4c7 fix: refs #8388 update the right row 2025-01-31 14:17:08 +01:00
Jorge Penadés 6a7fcd1afe feat: refs #8388 add setCursor 2025-01-31 13:44:30 +01:00
Jon Elias 909e6674d6 Merge pull request 'Fix[VnPaginate]: Fixed paginate' (!1319) from Fix-OrderCatalogPaginate into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1319
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
2025-01-31 12:31:25 +00:00
Jon Elias 0fe63abba6 fix: fixed pagiante
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-31 13:01:28 +01:00
Jorge Penadés 42b86f05ce fix: refs #8388 improve table column widths 2025-01-31 12:53:38 +01:00
PAU ROVIRA ROSALENY 83e7a5f66a Merge branch 'dev' into 8422-e2eItemTag
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-31 10:21:14 +00:00
Javier Segarra 3e61b93ba3 Merge branch 'dev' into 6321_negative_tickets 2025-01-31 10:20:50 +00:00
PAU ROVIRA ROSALENY 5ae5cec9f9 Merge pull request 'feat: #8410 added new feature to module searchbar' (!1272) from 8410-improveModuleSearchbar into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1272
Reviewed-by: Jorge Penadés <jorgep@verdnatura.es>
2025-01-31 10:02:49 +00:00
PAU ROVIRA ROSALENY a09f430c60 Merge branch 'dev' into 8410-improveModuleSearchbar
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-31 10:01:28 +00:00
Jon Elias 0fcd969c97 Merge pull request 'Fix[ItemType]: Fixed list and e2e' (!1303) from Fix-ItemTypeE2E into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1303
Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
2025-01-31 09:34:54 +00:00
Jon Elias e710d45011 Merge branch 'dev' into Fix-ItemTypeE2E
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-31 09:33:06 +00:00
Jorge Penadés 4d23c9f24b fix: refs #6919 tests #8316
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-31 10:29:47 +01:00
Jorge Penadés 84651c8a17 Merge branch 'dev' of https: refs #6919//gitea.verdnatura.es/verdnatura/salix-front into 6919-syncData 2025-01-31 10:27:50 +01:00
Carlos Satorres ccff995680 Merge pull request '6553-workerBusiness' (!1311) from 6553-workerBusiness into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1311
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
2025-01-31 09:20:10 +00:00
Carlos Satorres d94cd801cc Merge branch 'dev' into 6553-workerBusiness
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-31 09:16:02 +00:00
Jose Antonio Tubau 45a77a86f1 refactor: refs #8304 improve required attribute handling in VnNotes using computed property
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-31 10:11:10 +01:00
PAU ROVIRA ROSALENY 4eebfd8769 Merge branch 'dev' into 8410-improveModuleSearchbar
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-31 09:10:21 +00:00
PAU ROVIRA ROSALENY 39d6e818f5 Merge branch '8410-improveModuleSearchbar' of https://gitea.verdnatura.es/verdnatura/salix-front into 8410-improveModuleSearchbar
gitea/salix-front/pipeline/pr-dev Build queued... Details
2025-01-31 10:09:51 +01:00
PAU ROVIRA ROSALENY f69ed548f0 fix: refs #8410 removed unused ref 2025-01-31 10:09:48 +01:00
Jon Elias f6439ed356 Merge pull request 'Fix[InvoiceInDescriptor]: Fixed descriptor E2E' (!1316) from Fix-InvoiceInDescriptorE2E into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1316
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
2025-01-31 09:07:25 +00:00
Jon Elias fea59a729e Merge branch 'dev' into Fix-InvoiceInDescriptorE2E
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-31 09:04:54 +00:00
Jorge Penadés 194e7a3eb4 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6919-syncData 2025-01-31 10:00:57 +01:00
Jose Antonio Tubau 645f3f3cb9 refactor: refs #8418 update selector to use cy.dataCy instead cy.get
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-31 09:36:37 +01:00
Jose Antonio Tubau fb902b54bc refactor: refs #8304 simplify actionsChildCount computation and update saveUrl assignment in WorkerCalendar
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-31 09:29:20 +01:00
PAU ROVIRA ROSALENY 5526987472 Merge branch 'dev' into 7065-testUserPanel
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-31 08:28:37 +00:00
Jon Elias c2a6dd7979 fix: fixed descriptor e2e
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-31 09:26:14 +01:00
PAU ROVIRA ROSALENY 1744524949 Merge branch 'dev' into 8422-e2eItemTag
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-31 08:18:08 +00:00
PAU ROVIRA ROSALENY 5b2987c95e Merge branch 'dev' into 8410-improveModuleSearchbar
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-31 08:18:04 +00:00
Jose Antonio Tubau c8754ae4df refactor: refs #7411 add clearable and clear-icon properties to sync password checkbox
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-31 08:51:24 +01:00
Jose Antonio Tubau cc07cc7824 refactor: refs #7411 update VnCheckbox component to use v-bind for attributes 2025-01-31 08:50:35 +01:00
PAU ROVIRA ROSALENY bd2db2ef58 Merge pull request 'fix: #8425 fixed zoneWarehouse e2e test not working' (!1304) from 8423-e2eZoneWarehouse into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1304
Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
2025-01-31 07:49:19 +00:00
Jon Elias 4246275759 refactor: request changes
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-31 07:56:40 +01:00
Jose Antonio Tubau 858d2f842a Merge branch '7322-fixDestructuringErrorTicketSection' of https://gitea.verdnatura.es/verdnatura/salix-front into 7322-fixDestructuringErrorTicketSection
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-31 07:55:55 +01:00
Jose Antonio Tubau 5250e59389 test: refs #7322 add unit tests for getAgencies to validate agency retrieval logic 2025-01-31 07:55:53 +01:00
Jose Antonio Tubau b10cb9f09f refactor: refs #7322 update getAgencies to handle client and return default agency 2025-01-31 07:55:32 +01:00
PAU ROVIRA ROSALENY bcc4e5ba44 Merge branch 'dev' into 8422-e2eItemTag
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-31 06:52:55 +00:00
PAU ROVIRA ROSALENY 2f80bc90af fix: refs #8422 optimized get and dataCy
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-31 07:52:09 +01:00
Jon Elias f70dd41a37 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into Fix-ItemTypeE2E 2025-01-31 06:40:35 +01:00
PAU ROVIRA ROSALENY 023593eb45 Merge branch 'dev' into 8423-e2eZoneWarehouse
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-31 05:21:12 +00:00
Jon Elias 67872aca10 Merge pull request '#8419: Modified list and fixed e2e' (!1302) from 8419-FixInvoiceInCorrectiveE2E into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1302
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
2025-01-31 05:10:56 +00:00
Jon Elias 59ca61c96f Merge branch 'dev' into 8419-FixInvoiceInCorrectiveE2E
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-31 05:06:59 +00:00
PAU ROVIRA ROSALENY e5a449c80c Merge branch '8410-improveModuleSearchbar' of https://gitea.verdnatura.es/verdnatura/salix-front into 8410-improveModuleSearchbar
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-31 06:01:20 +01:00
PAU ROVIRA ROSALENY 0de8af81d3 fix: refs #8410 removed unused code 2025-01-31 06:01:17 +01:00
PAU ROVIRA ROSALENY 6cd0df04e6 Merge branch 'dev' into 8410-improveModuleSearchbar
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-31 04:52:20 +00:00
PAU ROVIRA ROSALENY e13f46613f Merge branch 'dev' into 8423-e2eZoneWarehouse
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-31 04:51:53 +00:00
Javier Segarra 107b8a7692 perf: refs #6321 clean code 2025-01-31 01:37:08 +01:00
Javier Segarra 0b084ae371 Merge branch 'dev' into 6321_negative_tickets 2025-01-31 01:08:30 +01:00
Javier Segarra 055a0b8751 feat: refs #6321 updates 2025-01-31 01:08:19 +01:00
Javier Segarra 8e761f711d test: fix vitest test
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-30 20:33:29 +01:00
Javier Segarra 65a8a78622 feat: improve test
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-30 20:30:03 +01:00
Javier Segarra c067006d08 feat: modify directive 2025-01-30 20:29:54 +01:00
Javier Segarra af940c67c6 perf: replace shortcut=+ by v-shortcut=+ 2025-01-30 20:29:45 +01:00
Javier Segarra 89cdd466b1 perf: keyshortcut directive
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-30 18:04:43 +00:00
Jorge Penadés 311a40deef fix: refs #6919 test
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-30 18:36:09 +01:00
Jorge Penadés 58ec845402 fix: refs #6919 test
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-30 17:57:52 +01:00
Jorge Penadés 169389b5b8 test: refs #6919 fix typos in useArrayData tests and add new test cases for single record handling
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-30 17:51:18 +01:00
Jorge Penadés 78da5f5393 test: refs #6919 fix tests
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-30 17:29:36 +01:00
Jorge Penadés d5373ecbd6 test: refs #6919 fix tests
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-30 17:28:03 +01:00
Jorge Penadés f26290a952 chore: refs #6919 remove unused searchbar-props
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-30 16:47:55 +01:00
Jorge Penadés ca7ae30991 refactor: refs #6919 remove unnecessary title attribute from RoadmapDescriptor component
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-30 16:43:02 +01:00
Jorge Penadés d4a93484c4 fix: refs #6919 update import statement for RouteFilter to include file extension
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-30 16:34:21 +01:00
Jorge Penadés 399f2fd8fe Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6919-syncData
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-30 16:27:31 +01:00
Jorge Penadés b083dada83 refactor: refs #6919 replace userFilter prop with filter in multiple components
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-30 16:25:43 +01:00
Jorge Penadés f3042b0326 Merge pull request 'feat: add inactive car icon' (!1314) from updateIcons into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1314
Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
2025-01-30 15:07:17 +00:00
Jorge Penadés b383efd99a feat: add inactive car icon
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-30 15:38:14 +01:00
Jorge Penadés 19fd0ee71b Merge branch 'dev' of https: refs #6919//gitea.verdnatura.es/verdnatura/salix-front into 6919-syncData
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-30 15:30:37 +01:00
Jon Elias 22ae08863b Merge pull request '#8409: Added VnSelectSupplier' (!1274) from 8409-VnSelectSupplier into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1274
Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
2025-01-30 14:20:06 +00:00
Jon Elias 76ebb3beb4 Merge pull request 'Hotfix[ItemRequest]: Deleted duplicate request' (!1290) from Hotfix-PurchaseRequestDuplicate into master
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1290
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
2025-01-30 14:09:59 +00:00
Jorge Penadés ffcf52a490 fix: refs #6919 remove unnecessary title attribute from TicketDescriptor component
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-30 14:45:29 +01:00
Jon Elias abbfe7bc4a Merge branch 'master' into Hotfix-PurchaseRequestDuplicate
gitea/salix-front/pipeline/pr-master This commit looks good Details
2025-01-30 13:42:31 +00:00
Jorge Penadés 56d1c0ca30 Merge branch 'dev' of https: refs #6919//gitea.verdnatura.es/verdnatura/salix-front into 6919-syncData
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-30 14:01:06 +01:00
PAU ROVIRA ROSALENY 374118133a fix: refs #8410 removed unused condition
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-30 14:00:16 +01:00
Jon Elias 788c6e8b61 Merge branch 'dev' into 8409-VnSelectSupplier
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-30 12:53:56 +00:00
Jon Elias 7547461282 Merge branch '8409-VnSelectSupplier' of https://gitea.verdnatura.es/verdnatura/salix-front into 8409-VnSelectSupplier
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-30 13:52:23 +01:00
Jon Elias ed211ba14b refactor: refs #8409 deleted unused variable 2025-01-30 13:52:22 +01:00
PAU ROVIRA ROSALENY 860f92cb42 fix: refs #8410 simplified searchModule function
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-30 13:51:12 +01:00
PAU ROVIRA ROSALENY b2414f861b Merge branch '8410-improveModuleSearchbar' of https://gitea.verdnatura.es/verdnatura/salix-front into 8410-improveModuleSearchbar
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-30 13:28:59 +01:00
PAU ROVIRA ROSALENY 42e46a88fb fix: refs #8410 removed ref from searching boolean 2025-01-30 13:28:54 +01:00
Jorge Penadés c0e3a14e8b Merge branch '8410-improveModuleSearchbar' of https://gitea.verdnatura.es/verdnatura/salix-front into 8410-improveModuleSearchbar
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-30 13:12:22 +01:00
Jorge Penadés 7759a49f3a Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 8410-improveModuleSearchbar 2025-01-30 13:12:00 +01:00
PAU ROVIRA ROSALENY 0d7d60a1e8 Merge branch '8410-improveModuleSearchbar' of https://gitea.verdnatura.es/verdnatura/salix-front into 8410-improveModuleSearchbar
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-30 13:06:31 +01:00
PAU ROVIRA ROSALENY 3e8b35e2e1 refactor: refs #8410 restructured code 2025-01-30 13:06:28 +01:00
PAU ROVIRA ROSALENY 47603d1315 Merge branch 'dev' into 8423-e2eZoneWarehouse
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-30 11:40:16 +00:00
PAU ROVIRA ROSALENY 983b91fbdd Merge branch 'dev' into 8410-improveModuleSearchbar
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-30 11:39:46 +00:00
PAU ROVIRA ROSALENY f6fc19f210 Merge branch '8423-e2eZoneWarehouse' of https://gitea.verdnatura.es/verdnatura/salix-front into 8423-e2eZoneWarehouse
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-30 12:38:54 +01:00
PAU ROVIRA ROSALENY ed0f33dbc5 fix: refs #8423 used dataCy to get data-cy 2025-01-30 12:38:50 +01:00
Jorge Penadés c144da665e feat: refs #7119 add navigation to VehicleList in VehicleDescriptor component
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-30 11:26:09 +01:00
Jorge Penadés e86c8f6263 fix: refs #7119 rollback
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-30 11:10:27 +01:00
Jorge Penadés 9c861f7544 fix: refs #7119 rollback
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-30 11:09:17 +01:00
Jorge Penadés 262ab78305 feat: refs #7119 add delete functionality for vehicles with Cypress test
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-30 10:55:52 +01:00
Jorge Penadés 223e14a850 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 7119-createVehicle
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-30 10:25:17 +01:00
Jorge Penadés 2b474cab67 Merge pull request 'hotfix: refs #8198 ensure warehouseFk is a number when set from query' (!1308) from 8198-hotfix-parseQueryParam into master
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1308
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
2025-01-30 09:05:04 +00:00
Jose Antonio Tubau 4d163c7e8f Merge branch 'dev' into 7322-fixDestructuringErrorTicketSection
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-30 08:12:15 +00:00
Jose Antonio Tubau de39839140 fix: refs #7322 handle null responses in client, agency and address fetching
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-30 09:07:08 +01:00
Carlos Satorres c97b5bffd2 Merge branch 'dev' into 6426-refactorConstants
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-30 07:57:30 +00:00
Carlos Satorres 962ae4ca96 Merge branch 'dev' into 6553-workerBusiness
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-30 07:49:58 +00:00
Jon Elias caffb672bc Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into Fix-ItemTypeE2E 2025-01-30 08:44:47 +01:00
Jon Elias 6522df24b4 Merge pull request 'Fix[invoiceOutE2E]: Fixed InvoiceOutList e2e' (!1310) from Fix-InvoiceOutListE2E into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1310
Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
2025-01-30 07:42:55 +00:00
Javier Segarra b90f6b037c Merge branch 'dev' into Fix-InvoiceOutListE2E
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-30 07:19:47 +00:00
Jon Elias 71b5b8d47a fix: fixed InvoiceOutList e2e
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-30 08:10:26 +01:00
Javier Segarra 31d829ac05 Merge branch 'dev' into 6321_negative_tickets 2025-01-30 00:08:58 +01:00
Javier Segarra 07ad4b1655 Merge branch 'dev' into 6321_negative_tickets 2025-01-29 23:51:03 +01:00
Jorge Penadés 2d85ce32f9 fix: refs #7119 rollback
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-29 18:32:35 +01:00
Jorge Penadés eabb71834f fix: refs #7119 rollback
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-29 18:31:53 +01:00
Jorge Penadés ceb0c1fc75 fix: refs #7119 rollback
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-29 18:25:34 +01:00
Jorge Penadés 03bef91066 test: refs #7119 improve PIT completion by adding API interception
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-29 18:02:25 +01:00
Jorge Penadés 2ee2002876 test: refs #7119 await fetching data
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-29 17:46:33 +01:00
Jorge Penadés a3beba5906 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 7119-createVehicle
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-29 16:40:20 +01:00
Javier Segarra 68d1e1662e Merge pull request '#7826 - Fix' (!1285) from 7826_fix into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1285
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
2025-01-29 15:40:16 +00:00
Javier Segarra dd3059b609 Merge branch 'dev' into 7826_fix
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-29 15:19:55 +00:00
Javier Segarra ae0f08b2c6 Merge pull request '#7405 vueDocs' (!1284) from 7405-vueDocs into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1284
Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
2025-01-29 15:19:32 +00:00
Javier Segarra 96b05de066 Merge branch 'dev' into 7826_fix
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-29 15:18:03 +00:00
Javier Segarra 973209abed feat: refs #6321 updates 2025-01-29 16:15:37 +01:00
Javier Segarra dc65f7ad20 Merge branch 'dev' into 7826_fix
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-29 15:14:34 +00:00
Jorge Penadés 1e2c86c74f feat: refs #7119 enable model usage and disable right search in VehicleList component
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-29 16:07:34 +01:00
Jorge Penadés 5e89b773ff fix: refs #7119 update import for VnCard component and enhance VehicleDescriptor URL binding
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-29 15:58:54 +01:00
Jorge Penadés ed73a1459b Merge branch '7119-createVehicle' of https://gitea.verdnatura.es/verdnatura/salix-front into 7119-createVehicle
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-29 14:49:16 +01:00
Jorge Penadés 4d4598adf8 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 7119-createVehicle 2025-01-29 14:48:50 +01:00
Jorge Penadés ef129eb542 fix: refs #8198 correct date comparison in getBadgeAttrs function
gitea/salix-front/pipeline/pr-master This commit looks good Details
2025-01-29 14:38:58 +01:00
Jon Elias b55ddf4cec feat: refs #6242 added e2e to verify the icons shown 2025-01-29 14:37:41 +01:00
Jon Elias 264881274d Merge branch 'dev' of https: refs #6242//gitea.verdnatura.es/verdnatura/salix-front into 6242-AddHasRoundingField 2025-01-29 12:34:28 +01:00
Javier Segarra a28b2183ad fix: refs #6321 change i18n 2025-01-29 12:27:29 +01:00
Jorge Penadés 8660b1bea4 fix: refs #8198 ensure warehouseFk is a number when set from query
gitea/salix-front/pipeline/pr-master This commit looks good Details
2025-01-29 12:24:26 +01:00
Alex Moreno 4050c2d3d0 Merge branch '7119-createVehicle' of https://gitea.verdnatura.es/verdnatura/salix-front into 7119-createVehicle
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-29 12:08:45 +01:00
Alex Moreno 6ff774f1b0 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 7119-createVehicle 2025-01-29 12:08:40 +01:00
Jon Elias 8ada6bd3e3 Merge branch 'dev' into 8409-VnSelectSupplier
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-29 10:59:52 +00:00
PAU ROVIRA ROSALENY c104240b1e Merge branch 'dev' into 7065-testUserPanel
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-29 10:58:24 +00:00
Jon Elias 613ebc0eb4 refactor: refs #8409 use defineModel instead or defineProps
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-29 11:58:19 +01:00
Alex Moreno 0a88479a9e Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 7119-createVehicle 2025-01-29 11:56:57 +01:00
Jorge Penadés d3cc62d910 Merge branch 'dev' of https: refs #7119//gitea.verdnatura.es/verdnatura/salix-front into 7119-createVehicle
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-29 11:52:04 +01:00
Jose Antonio Tubau 74a6b20590 feat: refs #8418 add data-cy attribute for print labels button in EntryBuysTableDialog
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-29 11:48:36 +01:00
PAU ROVIRA ROSALENY 8d2d73be46 Merge branch 'dev' into 8422-e2eItemTag
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-29 10:34:28 +00:00
Javier Segarra 3bf10aa32a Merge branch 'dev' into 6321_negative_tickets 2025-01-29 09:45:46 +01:00
Jose Antonio Tubau 3652e28a61 Merge branch '8418-fixTestMyEntry' of https://gitea.verdnatura.es/verdnatura/salix-front into 8418-fixTestMyEntry
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-29 08:49:44 +01:00
Jose Antonio Tubau 10c9bfe266 refactor: refs #8418 remove commented issue reference from myEntry.spec.js 2025-01-29 08:49:41 +01:00
Javier Segarra 45b9cffc10 Merge pull request 'warmfix_customerList_test' (!1293) from warmfix_customerList_test into test
gitea/salix-front/pipeline/pr-dev This commit looks good Details
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #1293
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
2025-01-29 07:44:35 +00:00
Javier Segarra 179c3daba8 Merge branch 'test' into warmfix_customerList_test
gitea/salix-front/pipeline/pr-test This commit looks good Details
2025-01-29 07:41:28 +00:00
Jose Antonio Tubau 990ed74fef Merge branch 'dev' into 8418-fixTestMyEntry
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-29 07:36:14 +00:00
Jose Antonio Tubau 5c280867e2 fix: refs #8418 adjusted route for button click
gitea/salix-front/pipeline/pr-dev Build queued... Details
2025-01-29 08:35:37 +01:00
PAU ROVIRA ROSALENY 9c790f734c Merge branch 'dev' into 8423-e2eZoneWarehouse
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-29 07:32:46 +00:00
PAU ROVIRA ROSALENY 2dbda38ae7 Merge branch '8423-e2eZoneWarehouse' of https://gitea.verdnatura.es/verdnatura/salix-front into 8423-e2eZoneWarehouse
gitea/salix-front/pipeline/pr-dev Build queued... Details
2025-01-29 08:32:07 +01:00
PAU ROVIRA ROSALENY 95f96d7ebd fix: refs #8423 removed data-cy usage 2025-01-29 08:31:40 +01:00
PAU ROVIRA ROSALENY a013152a09 Merge branch 'dev' into 8423-e2eZoneWarehouse
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-29 06:45:51 +00:00
Javier Segarra c86731d9e8 test: remove only
gitea/salix-front/pipeline/pr-test This commit looks good Details
2025-01-28 23:35:35 +01:00
Javier Segarra e156629775 feat: new command
gitea/salix-front/pipeline/pr-test This commit looks good Details
2025-01-28 23:33:39 +01:00
Javier Segarra f38e184ab9 Merge branch 'dev' into 7065-testUserPanel
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-28 22:28:59 +00:00
Javier Segarra bded06082a fix: refs #6321 user-filter 2025-01-28 22:58:13 +01:00
Jorge Penadés 53aff479e6 refactor: refs #6919 update imports in CustomerDescriptor component to include onMounted lifecycle hook
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-28 18:32:56 +01:00
Jorge Penadés a167c983d7 fix: refs #6919 reset form data correctly in FormModel component
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-28 18:22:11 +01:00
Jorge Penadés cc193ce160 refactor: refs #6919 update translation keys in ItemTypeCard and ShelvingList components
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-28 18:12:32 +01:00
Jorge Penadés 533f8cfa93 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6919-syncData 2025-01-28 18:07:36 +01:00
Jorge Penadés 1d80d75e6a fix: refs #6919 refactor FormModel component state management and data handling
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-28 18:01:20 +01:00
PAU ROVIRA ROSALENY e644eec1fa Merge branch 'dev' into 7065-testUserPanel
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-28 13:47:43 +00:00
PAU ROVIRA ROSALENY 1a3446dd07 Merge branch 'dev' into 8423-e2eZoneWarehouse
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-28 13:47:19 +00:00
Jon Elias a8b28de2a4 fix: fixed list and e2e
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-28 14:39:28 +01:00
Jon Elias db99a22254 fix: refs #8419 modified list and fixed e2e
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-28 14:36:47 +01:00
Jose Antonio Tubau c083eba66c Merge branch 'dev' into 7411-addInfoOnVnCheckboxAndVnInput
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-28 13:35:37 +00:00
Jorge Penadés abe894c8bd Merge branch 'dev' of https: refs #6919//gitea.verdnatura.es/verdnatura/salix-front into 6919-syncData
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-28 14:33:34 +01:00
Jose Antonio Tubau 2e0575052c refactor: refs #7411 update VnCheckbox component to use defineModel for modelValue binding
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-28 14:23:28 +01:00
Jose Antonio Tubau d0a0d19be2 feat: refs #7411 integrate VnCheckbox component across multiple forms with info support
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-28 14:16:59 +01:00
PAU ROVIRA ROSALENY 7748df1384 fix: refs #8423 fixed zoneWarehouse e2e test not working
gitea/salix-front/pipeline/pr-dev Build queued... Details
2025-01-28 14:09:35 +01:00
Javier Segarra a46e5b07f9 feat: refs #6321 updates 2025-01-28 14:04:56 +01:00
Javier Segarra 9e6b174ae6 Merge branch 'dev' into 6321_negative_tickets 2025-01-28 13:50:10 +01:00
Jorge Penadés 23aa972a85 feat: refs #7119 add vehicle routing and summary components
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-28 13:37:07 +01:00
Carlos Satorres 804fb28e11 Merge branch 'dev' into 6426-refactorConstants
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-28 12:16:49 +00:00
PAU ROVIRA ROSALENY d1a27126d8 Merge branch 'dev' into 8422-e2eItemTag
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-28 11:40:18 +00:00
PAU ROVIRA ROSALENY b8ffc8c26c fix: refs #8422 fixed ItemTag e2e test not working 2025-01-28 12:39:28 +01:00
Carlos Satorres 4034320ff7 fix: refs #6553 fix qScrollArea 2025-01-28 11:59:04 +01:00
Carlos Satorres c64aad02e1 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6553-workerBusiness 2025-01-28 11:55:37 +01:00
PAU ROVIRA ROSALENY fb43ff5b74 Merge branch 'dev' into 7065-testUserPanel
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-28 10:43:49 +00:00
Jorge Penadés 0a6c38f959 Merge branch 'dev' of https: refs #7119//gitea.verdnatura.es/verdnatura/salix-front into 7119-createVehicle
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-28 11:43:36 +01:00
PAU ROVIRA ROSALENY 5f45434d89 Merge branch 'dev' into 7065-testUserPanel
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-28 09:37:47 +00:00
PAU ROVIRA ROSALENY c8cd14f991 fix: refs #7065 made consts for repeated values
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-28 10:07:51 +01:00
Javier Segarra 08f73acc3e feat: refs #6321 updates 2025-01-28 08:41:04 +01:00
Jose Antonio Tubau f7c93c8416 refactor: refs #7411 remove unnecessary $props prefix
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-28 08:39:35 +01:00
Jose Antonio Tubau a337bdf474 feat: refs #7411 add VnCheckbox component with info support 2025-01-28 08:30:38 +01:00
PAU ROVIRA ROSALENY 8146aa5231 Merge branch 'dev' into 7065-testUserPanel
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-28 06:59:18 +00:00
Javier Segarra 755fd3a076 feat: refs #6321 handle promises 2025-01-27 23:01:44 +01:00
Javier Segarra 231f67df5c feat: refs #6321 style updates 2025-01-27 19:54:12 +01:00
Javier Segarra db2844efdb Merge branch 'test' into warmfix_customerList_test
gitea/salix-front/pipeline/pr-test This commit looks good Details
2025-01-27 19:01:21 +01:00
Javier Segarra a5adc7550c style: customerDescriptor
gitea/salix-front/pipeline/pr-test This commit looks good Details
2025-01-27 19:00:46 +01:00
Javier Segarra 0910425c5c feat: add addressFk 2025-01-27 19:00:27 +01:00
Javier Segarra ff61a5931b test: fix clientList spec 2025-01-27 19:00:07 +01:00
Jon Elias faacff875a Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 8246-ZoneAddressFk2 2025-01-27 13:39:47 +01:00
Jon Elias 9565f97c4f fix: deleted duplicate request
gitea/salix-front/pipeline/pr-master This commit looks good Details
2025-01-27 13:37:14 +01:00
Jon Elias 3aa8acf02a fix: refs #8409 deleted code due to merge
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-27 13:26:08 +01:00
Jon Elias 0db556a97b fix: refs #8409 deleted code of merge
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-27 13:21:38 +01:00
Jon Elias 8642089bc7 Merge branch 'dev' of https: refs #8409//gitea.verdnatura.es/verdnatura/salix-front into 8409-VnSelectSupplier 2025-01-27 13:21:27 +01:00
Javier Segarra 805e56b9d3 feat: refs #6321 changes 2025-01-27 12:04:14 +01:00
Carlos Satorres 822058b491 fix: refs #6426 constants
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-27 11:37:50 +01:00
Carlos Satorres e413acf85d Merge branch 'dev' of https: refs #6426//gitea.verdnatura.es/verdnatura/salix-front into 6426-refactorConstants
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-27 11:33:58 +01:00
Pablo Natek 84c92b8a98 refactor: refs #6897 clean up imports, update labels, and enhance localization entries in Entry components 2025-01-27 08:58:58 +01:00
Pablo Natek ece705b0ae Merge branch 'dev' of https: refs #6897//gitea.verdnatura.es/verdnatura/salix-front into 6897-entryBuyListRefactor 2025-01-27 08:21:06 +01:00
Pablo Natek f33c4d42bf refactor: refs #6897 clean up unused code, enhance input components, and add new localization entries 2025-01-27 08:11:28 +01:00
Javier Segarra 0aa9975535 perf: refs #7826 code onError
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-26 23:49:40 +01:00
Javier Segarra 24c62b4533 perf: refs #7826 improve condition
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-26 03:16:25 +01:00
Javier Segarra 94d471e20f Merge branch 'dev' into 7826_fix 2025-01-26 03:08:54 +01:00
Javier Segarra 36a67e4c73 perf: refs #6321 clean pr 2025-01-26 03:06:57 +01:00
Javier Segarra 100a380f95 test: refs #6321 itemProposal 2025-01-26 02:36:10 +01:00
Javier Segarra dea3535ad4 feat: refs #6321 itemProposal tags 2025-01-26 02:35:59 +01:00
Javier Segarra 0a4da26d3d feat: refs #6321 remove checkbox isFree 2025-01-26 02:35:13 +01:00
Javier Segarra fa83c2d49c test: refs #6321 improve 2025-01-26 00:37:30 +01:00
Javier Segarra c88be1c6a8 perf: refs #6321 clean code vntable detail 2025-01-26 00:35:27 +01:00
Javier Segarra ebca833d73 test: refs #6321 intercept 2025-01-25 20:24:10 +01:00
Javier Segarra db777bec72 feat: refs #6321 replace ItemProposal by dialog 2025-01-25 14:23:52 +01:00
Javier Segarra 3d18d2d652 feat: refs #6321 merge icon column 2025-01-25 14:23:38 +01:00
Javier Segarra d9237c4a38 feat: refs #6321 lactTable icons 2025-01-25 13:47:31 +01:00
Javier Segarra 85a0e328e3 feat: refs #6321 lackDetail actions 2025-01-25 13:27:29 +01:00
Javier Segarra 21ea6a278d feat: refs #6321 clean ticket lack list 2025-01-25 09:41:19 +01:00
Javier Segarra 266c3d26ad Merge branch 'dev' into 6321_negative_tickets 2025-01-25 09:23:16 +01:00
Javier Segarra 0c714d2c04 feat: refs #7826 add error handling and refresh icon to NavBar 2025-01-25 09:20:07 +01:00
Jorge Penadés 1069960d98 fix: refs #7119 rollback
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-24 16:39:32 +01:00
Jorge Penadés 5e5f1fe88b feat: refs #7119 disable column filter for description in VehicleList component
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-24 16:37:41 +01:00
Jorge Penadés cc0c73a91a feat: refs #7119 update VehicleList and routing for RouteCard with nested components
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-24 16:13:59 +01:00
Jorge Penadés a06696df01 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 7119-createVehicle
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-24 16:08:56 +01:00
Jose Antonio Tubau fceb5dd5fd refactor: refs #8304 improving attrs handling and simplify logic in VnNotes, VnSubToolbar, and WorkerCalendar
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-24 14:38:37 +01:00
Jorge Penadés aa1aaa98ff feat: refs #7119 add VehicleCard route with nested VehicleSummary and VehicleBasicData components
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-24 13:44:17 +01:00
Jon Elias 51c1e8a2e1 Merge branch 'dev' of https: refs #6242//gitea.verdnatura.es/verdnatura/salix-front into 6242-AddHasRoundingField 2025-01-24 13:35:35 +01:00
Jorge Penadés 9baa32f6d2 refactor: refs #7119 remove Vehicle module and update router configuration
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-24 13:08:56 +01:00
Jon Elias 13b0becb6e Merge branch 'dev' of https: refs #8409//gitea.verdnatura.es/verdnatura/salix-front into 8409-VnSelectSupplier
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-24 12:16:05 +01:00
Jorge Penadés 282ca08605 refactor: refs #7119 remove VehicleSearchbar component and update locale keys for search functionality
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-24 11:58:23 +01:00
Jose Antonio Tubau 559bf0db02 refactor: refs #8304 restore correct classes on QToolbar and add null safety in actions.value check
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-24 11:56:42 +01:00
Jose Antonio Tubau 74eb296285 fix: refs #8304 update VnSubToolbar to correctly toggle full-width class based on actionsChildCount
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-24 11:45:54 +01:00
Jorge Penadés cd82a208cc Merge branch 'dev' of https: refs #7119//gitea.verdnatura.es/verdnatura/salix-front into 7119-createVehicle
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-24 11:35:33 +01:00
Javier Segarra 5ec1d7d311 feat: refs #8304 workerCalendar remove extra VnNotes
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-24 11:11:52 +01:00
Javier Segarra d4d4bed74b feat: refs #8304 workerCalendar Teleport
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-24 11:11:02 +01:00
Javier Segarra eaaeb028e3 Merge branch '8304-workerChangesAndFixes' of https: refs #8304//gitea.verdnatura.es/verdnatura/salix-front into 8304-workerChangesAndFixes
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-24 11:09:45 +01:00
Javier Segarra 71967591d3 test: refs #8304 improve test 2025-01-24 11:07:53 +01:00
Javier Segarra 012b401414 feat: refs #8304 remove st-default 2025-01-24 11:07:39 +01:00
Jorge Penadés d86548f70e feat: refs #7119 add notification for successful vehicle removal and update locale files
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-24 11:06:45 +01:00
Jorge Penadés d40b6fb06b feat: refs #7119 implement async delete functionality for vehicle items
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-24 10:53:28 +01:00
Jorge Penadés 2e4610847d feat: refs #7119 add vehicle parameters and improve filter functionality
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-24 10:46:44 +01:00
Jorge Penadés 55ab885ef9 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 7119-createVehicle
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-24 09:36:58 +01:00
Jose Antonio Tubau 864e187a4e Merge branch 'dev' into 8304-workerChangesAndFixes
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-24 08:20:55 +00:00
Jose Antonio Tubau 686bacd38a refactor: refs #8304 replace Teleport with RightMenu for WorkerCalendarFilter component
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-24 08:36:20 +01:00
Javier Segarra 5161aaf53d Merge branch 'dev' into 6321_negative_tickets 2025-01-24 07:38:59 +01:00
Jorge Penadés 9f815937a5 feat: refs #7119 add delivery points fetching and selection to VehicleBasicData
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-23 18:10:50 +01:00
Jorge Penadés 01dd584028 feat: refs #7119 remove delivery point references from VehicleFilter and VehicleList
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-23 18:04:34 +01:00
Jorge Penadés 834f686475 feat: refs #7119 add delivery point localization and update vehicle forms
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-23 18:02:57 +01:00
Jose Antonio Tubau 6601e2e0ae fix: refs #8304 remove unnecessary v-if condition from VnDmsList component
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-23 15:33:19 +01:00
Jose Antonio Tubau d45bf43f6e Merge branch 'dev' into 8304-workerChangesAndFixes
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-23 15:05:24 +01:00
Jorge Penadés a53f41a0b7 feat: refs #7119 update VehicleSummary layout
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-23 14:23:31 +01:00
Jon Elias ac998d33aa feat: refs #8409 added VnSelectSupplier
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-23 14:03:47 +01:00
Javier Segarra 31a5dd653c fix: refs #7826 init 2025-01-23 13:49:21 +01:00
Jose Antonio Tubau 3a2fca110c test: refs #8304 enhance VnNotes.spec.js with additional test cases and refactor setup functions
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-23 13:38:19 +01:00
Jorge Penadés 39180c1b3a feat: refs #7119 update VehicleSummary layout
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-23 12:51:38 +01:00
PAU ROVIRA ROSALENY 6cba927ebc feat: refs #8410 added new feature to module searchbar
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-23 12:18:31 +01:00
Jorge Penadés 37d8cc1b49 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 7119-createVehicle
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-23 10:53:11 +01:00
Jorge Penadés 4836b14e3e feat: refs #7119 update vehicle components and localization, add vehicle type selection
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-23 10:52:50 +01:00
Carlos Satorres 1ee8b68fce fix: refs #6553 fix vnTable 2025-01-23 10:50:10 +01:00
Carlos Satorres b7e71044b0 Merge branch 'dev' of https: refs #6553//gitea.verdnatura.es/verdnatura/salix-front into 6553-workerBusiness 2025-01-23 10:27:57 +01:00
Carlos Satorres c8fe115fec fix: refs #6553 fix PR, fix vnTableCard 2025-01-23 10:25:07 +01:00
Jose Antonio Tubau adc9d1630b refactor: refs #8304 put year and contract selectors in the same line
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-22 16:32:41 +01:00
Jose Antonio Tubau 8599974437 feat: refs #8304 add required prop to VnNotes and update related components
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-22 16:29:04 +01:00
Jose Antonio Tubau 3b4af9c749 Merge branch 'dev' into 8304-workerChangesAndFixes
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-22 16:20:48 +01:00
Carlos Satorres 7144bb3871 fix: refs #6553 fix pr 2025-01-22 14:13:15 +01:00
Jorge Penadés 0c59ca8e49 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 7119-createVehicle 2025-01-22 12:42:15 +01:00
Javier Segarra 60e9346333 revert: refs #6321 restore some components 2025-01-22 07:04:22 +01:00
Javier Segarra f97bd98c00 revert: refs #6321 restore some components 2025-01-22 07:01:19 +01:00
Javier Segarra d4fecd8d85 Merge branch 'dev' into 6321_negative_tickets 2025-01-21 23:44:12 +01:00
Javier Segarra 1ba24b46db test: refs #7058 requested changes
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-21 23:37:58 +01:00
Javier Segarra 14ac4f7de6 Merge branch 'dev' into 7058_leftMenu_vitest 2025-01-21 23:21:01 +01:00
Jon Elias c6a20d80d6 refactor: refs #6242 added new icons and modified taxDataChecked 2025-01-21 16:26:38 +01:00
Jon Elias 8ff78a0a76 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6242-AddHasRoundingField 2025-01-21 16:22:31 +01:00
Jose Antonio Tubau 83064c3813 feat: refs #8304 add saveUrl prop to VnNotes and implement confirm update functionality
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-21 14:44:07 +01:00
PAU ROVIRA ROSALENY faf1d15283 Merge branch 'dev' into 7065-testUserPanel
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-21 13:37:15 +00:00
PAU ROVIRA ROSALENY 3340a16541 Merge branch 'dev' into 7065-testUserPanel
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-21 11:57:11 +00:00
PAU ROVIRA ROSALENY 5f75d3a0f1 feat: refs #7065 created unit tests for UserPanel 2025-01-21 12:56:30 +01:00
Jose Antonio Tubau f1b1163611 feat: refs #8304 add justInput prop to VnNotes for simplified note handling in workerCalendar
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-21 12:28:18 +01:00
Jorge Penadés 1cf9a46286 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 7119-createVehicle
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-21 10:47:48 +01:00
Javier Segarra 45caf8ac2f test: refs #7058 remove unnecesary tests
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-20 23:08:23 +01:00
Javier Segarra 29401f4d67 Merge branch 'dev' into 7058_leftMenu_vitest 2025-01-20 22:50:16 +01:00
Jorge Penadés 2a5942a9a9 feat: refs #7119 update vehicle selection to use active vehicles and refactor vehicle card component
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-20 18:05:32 +01:00
Jorge Penadés 365597e5cf refactor: refs #7119 remove vehicle deletion
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-20 17:31:54 +01:00
Javier Segarra 38d1beff5b feat: refs #6321 updates 2025-01-20 14:37:13 +01:00
Jorge Penadés d1a9e13a4b Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 7119-createVehicle
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-20 14:28:35 +01:00
Javier Segarra 24eaaacb19 feat: refs #6321 updates 2025-01-20 09:43:21 +01:00
Jon Elias 05a310d9af fix: refs #8246 fix list field and modified basic-data to adapt to requirements
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-17 13:04:14 +01:00
Jon Elias 907cb87c34 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 8246-ZoneAddressFk2 2025-01-17 11:36:32 +01:00
Jon Elias 2f3b0c59ad Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 8246-ZoneAddressFk2 2025-01-17 08:18:41 +01:00
Carlos Satorres 0338e0ea45 fix: refs #6426 create constants
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-16 10:42:58 +01:00
PAU ROVIRA ROSALENY 89947f96cd Merge branch 'dev' into 8322-Supplier
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-16 08:45:09 +00:00
Javier Segarra 442f74fce0 feat: refs #6321 tags 2025-01-16 07:02:13 +01:00
Javier Segarra 518dc56eb2 fix: refs #6321 solve conflicts 2025-01-15 13:19:30 +01:00
Carlos Satorres 46cdd9e62b fix: refs #6553 fix user-filter 2025-01-15 10:36:39 +01:00
Carlos Satorres 3fc7f34899 fix: refs #6553 clean pr 2025-01-15 10:34:08 +01:00
Carlos Satorres 38a180f92b fix: refs #6553 front advanced 2025-01-15 10:32:49 +01:00
Jon Elias 5b5dba868a fix: refs #6242 translation 2025-01-15 09:53:09 +01:00
Jon Elias b7061de689 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6242-AddHasRoundingField 2025-01-15 09:45:12 +01:00
Carlos Satorres 72f141315e fix: refs #6553 onBeforeMount 2025-01-15 09:21:16 +01:00
Carlos Satorres 55dda496f3 Merge branch 'dev' of https: refs #6553//gitea.verdnatura.es/verdnatura/salix-front into 6553-workerBusiness 2025-01-15 08:46:46 +01:00
PAU ROVIRA ROSALENY 656b736119 Merge branch 'dev' into 8322-Supplier
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-14 12:12:30 +00:00
PAU ROVIRA ROSALENY 8aaab2c25c refactor: refs #8322 changed supplier component to use VnSection/VnCardBeta 2025-01-14 13:12:04 +01:00
Javier Segarra 5c295ebd33 fix: refs #6321 ticket-router 2025-01-14 12:29:31 +01:00
Javier Segarra af56321377 Merge branch 'dev' into 6321_negative_tickets 2025-01-14 12:22:46 +01:00
Jon Elias 57e53e43c6 Merge branch '6242-AddHasRoundingField' of https://gitea.verdnatura.es/verdnatura/salix-front into 6242-AddHasRoundingField 2025-01-14 07:14:47 +01:00
Jon Elias 1f622317e7 refactor: refs #6242 deleted v-for 2025-01-14 07:14:46 +01:00
Javier Segarra 9d90d041ee Merge branch 'dev' into 7058_leftMenu_vitest
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-14 05:51:19 +01:00
Jorge Penadés 6c3a271ee2 fix: refs #6919 use same data-key 2025-01-13 16:46:26 +01:00
Jorge Penadés 58d2c21e5b fix: refs #6919 use same data-key 2025-01-13 16:28:35 +01:00
Jorge Penadés ee00f7f5b5 fix: refs #6919 use same data-key 2025-01-13 16:25:15 +01:00
Jorge Penadés 011344b761 fix: refs #6919 use right data-key 2025-01-13 16:20:09 +01:00
Jorge Penadés 9ba7fec42f Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6919-syncData 2025-01-13 15:47:16 +01:00
Jon Elias 4826b681ce refactor: refs #8246 modified addressFk field to use dashIfEmpty filter
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-13 14:58:47 +01:00
Jorge Penadés bf85a0f1c7 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6919-syncData
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-13 14:19:42 +01:00
Carlos Satorres 57aa38c84c fix: refs #6553 front 2025-01-13 13:56:31 +01:00
Jorge Penadés ae137e8244 fix: refs #6919 update model references
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-13 13:25:42 +01:00
Jorge Penadés 13490719c4 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6919-syncData
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-13 12:58:18 +01:00
Carlos Satorres f8428a5591 Merge branch '6553-workerBusiness' of https://gitea.verdnatura.es/verdnatura/salix-front into 6553-workerBusiness 2025-01-13 12:23:39 +01:00
Carlos Satorres 5a869f0722 fix: refs #6553 fix summary 2025-01-13 12:23:36 +01:00
Jon Elias 29e8bb6344 Merge branch 'dev' into 6242-AddHasRoundingField 2025-01-13 10:41:13 +00:00
Jon Elias 390dd05a06 Merge branch '6242-AddHasRoundingField' of https://gitea.verdnatura.es/verdnatura/salix-front into 6242-AddHasRoundingField 2025-01-13 11:38:46 +01:00
Jon Elias 21f0c80bc9 refactor: refs #6242 add TicketProblems component in descriptor 2025-01-13 11:38:45 +01:00
Jorge Penadés c1108945ff Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6919-syncData
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-13 11:38:13 +01:00
Jorge Penadés e98cc7a92a feat: refs #6919 keep filter
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-13 10:59:54 +01:00
Jorge Penadés 285ba4ef7b fix: refs #6919 data-key descriptor
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-13 10:41:23 +01:00
Jorge Penadés 3ad63ed354 Merge branch 'dev' of https: refs #6919//gitea.verdnatura.es/verdnatura/salix-front into 6919-syncData
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-13 10:35:49 +01:00
Carlos Satorres f904c8cfd2 Merge branch 'dev' into 6553-workerBusiness 2025-01-13 07:47:34 +00:00
Jorge Penadés b94df214ff Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6919-syncData
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-10 18:45:01 +01:00
Jorge Penadés ccb558f4e9 refactor: refs #6919 update reload default value and extract InvoiceIn filter to a separate file
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-10 17:29:31 +01:00
Jose Antonio Tubau 94d2fbb5ca fix: refs #8304 hide skeleton and table titles when no data is available
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-10 14:20:35 +01:00
Jose Antonio Tubau 628ed69bdb feat: refs #8304 added remove option to operator
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-10 13:07:01 +01:00
Jorge Penadés 3a8808452d fix: refs #6919 ticket
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-10 11:44:06 +01:00
Jorge Penadés 74f151800d chore: refs #6919 drop state
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-10 11:37:12 +01:00
Jorge Penadés 105f149503 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6919-syncData
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-10 11:24:20 +01:00
Carlos Satorres 8aba370063 Merge branch 'dev' into 6553-workerBusiness 2025-01-10 09:57:17 +00:00
Jorge Penadés 67b29c5d24 fix: refs #6919 roadmap
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-09 18:27:29 +01:00
Jorge Penadés caa50a16ce feat: refs #6919 sync basicdata agency
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-09 18:05:39 +01:00
Jorge Penadés 9084d918c0 fix: refs #6919 arrayData
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-09 17:32:57 +01:00
Jorge Penadés a46d3affde refactor: refs #6919 fine tunning vnCard
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-09 17:11:55 +01:00
Jorge Penadés 9e06a48841 refactor: refs #6919 fine tunning vnCard
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-09 17:10:21 +01:00
Jorge Penadés b7f2a320c7 fix: refs #6919 item
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-09 16:36:27 +01:00
Jorge Penadés ad8618a51b fix: refs #6919 arrayData
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-09 16:27:11 +01:00
Jorge Penadés 622c875dc5 fix: refs #6919 department
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-09 15:57:12 +01:00
Carlos Satorres b479ce83e0 fix: refs #6553 fix BeforeMount filters 2025-01-09 14:06:02 +01:00
Jorge Penadés 39f0873fb8 refactor: refs #6919 simplify WorkerBasicData component by removing unused imports and optimizing data fetching
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-09 12:41:24 +01:00
Carlos Satorres 3e16357878 fix: refs #6553 fix vnTable css 2025-01-09 12:37:02 +01:00
Jorge Penadés d23eb052f4 feat: refs #6919 add customUrl prop to VnCardBeta for flexible URL handling
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-09 11:01:48 +01:00
Jorge Penadés 2462b5f38e fix: refs #6919 customer
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-09 10:59:34 +01:00
Jorge Penadés c725dd446d Merge branch 'dev' of https: refs #6919//gitea.verdnatura.es/verdnatura/salix-front into 6919-syncData
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-09 10:28:59 +01:00
Jon Elias fe4a681894 Merge branch 'dev' into 6242-AddHasRoundingField
gitea/salix-front/pipeline/head This commit looks good Details
2025-01-09 09:17:02 +00:00
Jon Elias 4fe6b7584d Merge branch '6242-AddHasRoundingField' of https://gitea.verdnatura.es/verdnatura/salix-front into 6242-AddHasRoundingField 2025-01-09 10:15:50 +01:00
Jon Elias fd68e997c5 refactor: refs #6242 forgotten translations 2025-01-09 10:15:48 +01:00
Carlos Satorres 66db2f0bd7 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6553-workerBusiness 2025-01-09 09:59:30 +01:00
Jon Elias c379491df0 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6242-AddHasRoundingField 2025-01-09 09:37:40 +01:00
Jon Elias a4e415f0ab Merge branch 'dev' into 6242-AddHasRoundingField
gitea/salix-front/pipeline/head This commit looks good Details
2025-01-09 07:55:52 +00:00
Jon Elias 42c2401c24 refactor: refs #6242 modified ticket problems to display them in the same order 2025-01-09 08:54:10 +01:00
Carlos Satorres f139be4fcd fix: refs #6553 fix vnTable 2025-01-08 14:03:14 +01:00
Jorge Penadés 8c77f6fe40 refactor: refs #6919 update data-key and state references to use 'Customer'
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-08 11:58:19 +01:00
Jorge Penadés 74dd49ffe0 feat: refs #6919 add customUrl prop to VnCard for dynamic URL handling
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-08 11:47:41 +01:00
Jorge Penadés 52e1cfc828 chore: refs #6919 remove console logs
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-08 10:56:40 +01:00
Jorge Penadés 9ebb7b85b2 feat: refs #6919 add oneRecord opt
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-08 10:55:38 +01:00
Jorge Penadés 69a32231e2 refactor: refs #6919 simplify watch
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-08 10:52:57 +01:00
Jorge Penadés 7f8c8b07c4 fix: refs #6919 alias
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-08 10:49:41 +01:00
Jorge Penadés 618d358256 fix: refs #6919 roles
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-08 10:46:21 +01:00
Jorge Penadés d573389871 feat: refs #6919 add oneRecord option to data store and update related components
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2025-01-08 10:20:36 +01:00
Carlos Satorres 3dbace5336 Merge branch 'dev' of https: refs #6553//gitea.verdnatura.es/verdnatura/salix-front into 6553-workerBusiness 2025-01-08 10:17:40 +01:00
Jorge Penadés 43fc2e2312 refactor: refs #6919 update model naming and default values in Ticket components 2025-01-07 16:18:59 +01:00
Jorge Penadés 793084eb74 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6919-syncData 2025-01-07 15:48:04 +01:00
Jorge Penadés f4b1e18582 Merge branch 'dev' of https: refs #6919//gitea.verdnatura.es/verdnatura/salix-front into 6919-syncData 2025-01-07 14:05:21 +01:00
Carlos Satorres 63fb45b22d Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6553-workerBusiness 2025-01-07 12:48:15 +01:00
Carlos Satorres 916842ba93 fix: refs #6553 fix front and translations 2025-01-07 10:34:07 +01:00
Carlos Satorres 9ab6ac9718 Merge branch 'dev' of https: refs #6553//gitea.verdnatura.es/verdnatura/salix-front into 6553-workerBusiness 2025-01-07 06:44:19 +01:00
Javier Segarra 336a5ccafc feat: refs #7058 skip failed it to review
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2025-01-03 16:00:44 +01:00
Javier Segarra 42f113ccf6 test: refs #7058 getRoutes 2025-01-03 15:48:53 +01:00
Javier Segarra e5940ff785 revert: refs #7058 component changes 2024-12-31 18:14:01 +01:00
Javier Segarra 3c5b8d4fbf revert: refs #7058 component changes 2024-12-31 18:13:39 +01:00
Javier Segarra 072deeea5e test: refs #7058 addChildren 2024-12-31 17:48:53 +01:00
Javier Segarra b8856194c4 test: refs #7058 betaCard 2024-12-31 17:07:10 +01:00
Javier Segarra 94c9e1e84a test: refs #7058 getRoutes 2024-12-31 16:37:45 +01:00
Javier Segarra 4618ba87fa test: refs #7058 improve getRoutes
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-12-31 14:13:50 +01:00
Javier Segarra 12715adbdb test: refs #7058 improve methods
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-12-31 14:03:03 +01:00
Javier Segarra 710532bc4e test: refs #7058 improve 2024-12-31 09:49:29 +01:00
Jorge Penadés dd90af9b6c feat: refs #7119 add VehicleNotes component and update routing to include notes section
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-12-30 18:02:26 +01:00
Jorge Penadés 6f5aed2cbe fix: refs #7119 update VehicleList.vue to improve data formatting and add column filter for vehicle state
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-12-30 17:31:59 +01:00
Jorge Penadés f1f2b94747 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 7119-createVehicle
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-12-30 15:57:37 +01:00
Javier Segarra 2bfc6606f0 test: refs #7058 improve test with computed properties 2024-12-30 12:35:07 +01:00
Javier Segarra 4cc895b69c test: refs #7058 improve test 2024-12-30 12:34:13 +01:00
Javier Segarra 6f31eeeeec test: refs #7058 init test 2024-12-30 12:33:46 +01:00
Pablo Natek 0d146cb3bc Merge branch 'dev' of https: refs #6897//gitea.verdnatura.es/verdnatura/salix-front into 6897-entryBuyListRefactor 2024-12-30 11:33:54 +01:00
Jorge Penadés 9528f4572b Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 7119-createVehicle
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-12-30 09:30:50 +01:00
Jorge Penadés 5027b9a174 feat: refs #7119 update CardDescriptor streamline module navigation
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-12-27 17:11:56 +01:00
Jorge Penadés b61badc723 feat: refs #7119 add PPE selection to VehicleBasicData and update VehicleFilter for PPE relation
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-12-27 16:56:07 +01:00
Jorge Penadés be946a4f8b feat: refs #7119 add fuel and supplier-related fields
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-12-27 15:36:32 +01:00
Jorge Penadés 062c306cf4 feat: refs #7119 add VehicleBasicData
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-12-27 12:21:21 +01:00
Jorge Penadés 3807e74fe4 feat: refs #7119 enhance VehicleSummary and VehicleList components with summary view functionality
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-12-27 10:09:08 +01:00
Jorge Penadés 1e3aa0c8c0 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 7119-createVehicle
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-12-27 09:50:34 +01:00
Jorge Penadés 20ef8a5a12 refactor: refs #7119 remove auto-load attribute from VehicleList component
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-12-26 17:55:58 +01:00
Jorge Penadés 66555806f2 feat: refs #7119 add VehicleCard, VehicleDescriptor, and VehicleSummary
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-12-26 17:49:21 +01:00
Jorge Penadés 2851291a27 feat: refs #7119 add VehicleSearchbar component and update localization for vehicle search
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-12-26 17:02:41 +01:00
Jorge Penadés 458e48d4c6 refactor: refs #7119 update vehicle state column name and add filtering options in VehicleList
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-12-26 16:36:56 +01:00
Jorge Penadés d63941adca refactor: refs #7119 update vehicle list terminology and enhance data fetching for vehicle states
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-12-26 12:27:41 +01:00
Jorge Penadés d4f559f2c7 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 7119-createVehicle
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-12-26 12:15:33 +01:00
Jorge Penadés 9b037e77ff Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 7119-createVehicle
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-12-26 09:43:26 +01:00
Jorge Penadés f2ac15829d feat: refs #7119 add localization for vehicle fields and enhance VehicleList component
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-12-24 13:27:24 +01:00
Jorge Penadés 742fa231f1 feat: refs #7119 add vehicle list localization and update VehicleList component
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-12-24 13:00:59 +01:00
Jorge Penadés 88c2640ddc Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 7119-createVehicle 2024-12-24 11:48:44 +01:00
Jorge Penadés 9afa5df0c7 feat: refs #7119 add VehicleList page and routing configuration
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-12-24 10:31:37 +01:00
Carlos Satorres 950bd5f3a7 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6553-workerBusiness 2024-12-23 13:30:32 +01:00
Carlos Satorres 7619a5b4f5 fix: refs #6553 fix summary 2024-12-16 13:02:38 +01:00
Carlos Satorres 96e942af11 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6553-workerBusiness 2024-12-16 11:28:53 +01:00
Carlos Satorres 3a060c9c6a Merge branch 'dev' of https: refs #6553//gitea.verdnatura.es/verdnatura/salix-front into 6553-workerBusiness 2024-12-16 07:54:21 +01:00
Jon Elias 9d1c375d59 refactor: refs #6242 added TicketProblems like list to sale and summary 2024-12-12 08:22:31 +01:00
Javier Segarra e6c48ce468 fix: refs #6321 solver keys duplicated 2024-12-09 14:35:43 +01:00
Javier Segarra 6573b04dab Merge branch 'dev' into 6321_negative_tickets 2024-12-09 14:34:42 +01:00
Jorge Penadés ebcb356230 Merge branch 'dev' of https: refs #6919//gitea.verdnatura.es/verdnatura/salix-front into 6919-syncData
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-12-02 13:42:14 +01:00
Jon Elias cc464c631e fix: refs #6242 use $t in TicketProblems
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-11-29 11:55:27 +01:00
Jon Elias 35201cb2d3 fix: refs #6242 conflicts
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-11-29 10:41:17 +01:00
Jon Elias b590c91892 Merge branch 'dev' of https: refs #6242//gitea.verdnatura.es/verdnatura/salix-front into 6242-AddHasRoundingField 2024-11-29 10:41:05 +01:00
Jorge Penadés 386f2e3126 feat: refs #6919 sync account summary
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-11-19 12:15:58 +01:00
Jorge Penadés 06b61a52f6 chore: refs #6919 drop useless code
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-11-19 11:24:14 +01:00
Jorge Penadés 79d6f133a1 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6919-syncData
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-11-19 11:23:33 +01:00
Jorge Penadés 51b3283ff7 feat: refs #6919 sync zone
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-11-19 11:22:32 +01:00
Jorge Penadés fc247ae413 feat: refs #6919 sync worker
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-11-19 11:07:14 +01:00
Jorge Penadés efcf3be585 feat: refs #6919 sync ticket
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-11-19 10:11:33 +01:00
Jorge Penadés 5b9f9d38a2 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6919-syncData
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-11-19 09:34:11 +01:00
Jorge Penadés 96e7bf78c5 feat: refs #6919 sync supplier
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-11-18 17:30:23 +01:00
Jorge Penadés 96e9d1a00a feat: refs #6919 sync shelving
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-11-18 17:13:42 +01:00
Jorge Penadés 617af7b7cb feat: refs #6919 sync alias
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-11-18 16:38:58 +01:00
Jorge Penadés a44ea9384a Merge branch 'dev' of https: refs #6919//gitea.verdnatura.es/verdnatura/salix-front into 6919-syncData
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-11-18 16:25:51 +01:00
Jorge Penadés dcd681b656 feat: refs #6919 sync account
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-11-18 16:10:04 +01:00
Jorge Penadés 02a1554b21 feat: refs #6919 sync role
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-11-18 11:24:39 +01:00
Jorge Penadés 72ce3615d0 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6919-syncData
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-11-18 09:32:58 +01:00
Jorge Penadés 7962dbc26a feat: refs #6919 sync route
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-11-15 17:27:16 +01:00
Jorge Penadés 1c86c874e0 feat: refs #6919 sync account wip
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-11-15 16:59:02 +01:00
Jorge Penadés 4ecc8c213e feat: refs #6919 sync parking
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-11-15 16:22:16 +01:00
Jorge Penadés 3477b24c93 feat: refs #6919 sync order
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-11-15 16:03:30 +01:00
Jorge Penadés c2e4380f18 feat: refs #6919 sync item-type
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-11-15 13:01:47 +01:00
Jorge Penadés 71e469542a Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6919-syncData
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-11-15 12:51:30 +01:00
Jorge Penadés f20660839a feat: refs #6919 sync item
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-11-15 12:45:22 +01:00
Jorge Penadés 8af09d46ed feat: refs #6919 sync invoice out
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-11-15 12:33:47 +01:00
Jorge Penadés 00b7883aed feat: refs #6919 sync department
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-11-15 11:54:27 +01:00
Jorge Penadés 0f48b6fa4d refactor: refs #6919 drop useless code
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-11-15 11:49:58 +01:00
Jorge Penadés 94c8f538ea feat: refs #6919 sync customer
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-11-15 11:38:51 +01:00
Jorge Penadés fec9ef25bf fix: refs #6919 reactivity
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-11-15 11:14:19 +01:00
Jorge Penadés 84f22cfeb8 feat: refs #6919 replace url id wip
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-11-15 10:06:19 +01:00
Jorge Penadés b67489aae8 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6919-syncData 2024-11-15 09:29:04 +01:00
Jorge Penadés 565ec15589 feat: refs #6919 improve vn-card logic 2024-11-14 17:30:54 +01:00
Pablo Natek 11e570360d feat: refs #6897 add tabs and string checkbox
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-10-26 10:02:12 +02:00
Jon Elias e18d129b32 fix: refs #6242 merge conflicts
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-10-24 12:56:33 +02:00
Pablo Natek 54ace8c682 refactor: refs #6897 refactor vnTable for non input editable table
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-10-23 10:47:44 +02:00
Pablo Natek 6dd0b32389 feat: refs #6897 editable table on field click 2024-10-19 08:45:46 +02:00
Jon Elias f6051ae15c refactor: refs #6242 modified front to show ticket problems
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-10-17 07:32:06 +02:00
Pablo Natek 70decb68ea refactor: refs #6897 entryBuyList use vnTable 2024-10-08 12:33:48 +02:00
Jon Elias fdf6fd2bba feat: refs #6242 added rounding field
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-09-25 14:05:35 +02:00
Javier Segarra fea760d2f9 Merge branch 'dev' into 6321_negative_tickets
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-09-24 22:14:04 +02:00
Javier Segarra 38967931b9 feat: refs #6321 updates 2024-09-24 22:13:00 +02:00
Javier Segarra d7f37eff32 feat: refs #6321 updates 2024-09-24 22:11:41 +02:00
Javier Segarra 7da3f132ea feat: refs #6321 update 2024-09-24 13:54:58 +02:00
Javier Segarra d0eb1d97ac fet: updates 2024-09-18 13:10:11 +02:00
Javier Segarra 53b522c488 Merge branch 'dev' into 6321_negative_tickets 2024-09-18 09:15:36 +02:00
Javier Segarra 1c7bcc8902 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6321_negative_tickets
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-09-17 16:43:42 +02:00
Javier Segarra 01cc2d4e75 fet: updates
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-09-17 16:42:22 +02:00
Javier Segarra 71236c0a01 fix: remove slot 2024-09-17 14:29:26 +02:00
Javier Segarra 9379e80df7 fix: routing 2024-09-17 14:20:01 +02:00
Javier Segarra 8c6e399fd2 feat: remove comments 2024-09-17 14:06:14 +02:00
Javier Segarra 26eae51585 Merge branch 'dev' into 6321_negative_tickets
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-09-17 11:43:47 +02:00
Javier Segarra 2c81ddb4aa feat: updates 2024-09-17 11:41:29 +02:00
Javier Segarra b5db786b06 feat: upodates 2024-09-16 12:15:15 +02:00
Javier Segarra 0a3703532e feat: itemProposalProxy
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-09-16 10:47:41 +02:00
Javier Segarra 8be1a42c53 Merge branch 'dev' into 6321_negative_tickets 2024-09-16 09:48:22 +02:00
Carlos Satorres f903432e74 refs #6553 fix reactivateWorker
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-09-13 13:46:53 +02:00
Carlos Satorres 04d30186c2 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6553-workerBusiness 2024-09-13 13:06:59 +02:00
Javier Segarra d16786d3e1 feat: updates TicketTable 2024-09-12 08:40:19 +02:00
Javier Segarra ff918b8a1c feat: updates ItemProposal 2024-09-11 23:29:59 +02:00
Javier Segarra 9ec1c5ff4b feat: updates ItemProposal 2024-09-11 23:17:38 +02:00
Javier Segarra 373ca0b3f1 feat:TicketLackTable updates 2024-09-11 14:25:10 +02:00
Javier Segarra 5e89bbe19e fix: remove unnesed imports 2024-09-11 12:55:14 +02:00
Javier Segarra d6bb39236d feat: implement VnTable 2024-09-11 12:43:24 +02:00
Javier Segarra b0a439c26c fix: ticketLackList 2024-09-11 11:26:25 +02:00
Javier Segarra 78c5836431 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6321_negative_tickets
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-09-11 08:50:39 +02:00
Carlos Satorres f7fb18cf0a refs #6553 workerBusiness
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-09-10 15:02:21 +02:00
Carlos Satorres 02129591cf refs #6553 workerBusiness
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-09-10 08:42:56 +02:00
Carlos Satorres bf4d11545d
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-09-09 13:22:15 +02:00
Carlos Satorres 70847176ca refs #6553 fix business slot
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-09-06 07:15:25 +02:00
Carlos Satorres 97ce44242c refs #6553 fix business summary
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-09-03 13:58:14 +02:00
Carlos Satorres c75e4cbf95 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6553-workerBusiness
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-09-03 10:51:41 +02:00
Carlos Satorres 60e9accd99 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6553-workerBusiness
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-09-03 08:11:01 +02:00
Javier Segarra 437d70d415 perf: TransferSale and implementations 2024-07-23 12:33:11 +02:00
Javier Segarra a53f4bd957 feat: QPopupProxy updateNegativeOrigin 2024-07-22 20:22:32 +02:00
Javier Segarra 3979a328e9 WIP: 28213bcc minor i18n updates 2024-07-22 17:30:15 +02:00
Javier Segarra 28213bcce6 minor i18n updates
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-07-20 00:37:13 +02:00
Javier Segarra 7c8ddf9c2b Merge branch 'dev' into 6321_negative_tickets 2024-07-20 00:22:37 +02:00
Javier Segarra c45ff7009c Merge branch 'dev' into 6321_negative_tickets
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-07-18 22:04:30 +02:00
Javier Segarra a6cd75a210 feat: Julia icon proposal
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-07-04 17:27:59 +02:00
Javier Segarra 189784872f feat: substitution icons
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-07-04 09:39:27 +02:00
Javier Segarra 8714be1fa7 feat: define new CustomerDescriptorMenu action. Pending reactivity
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-07-03 23:07:50 +02:00
Javier Segarra 87928ea7b6 feat: add new icons. Pending to define icon name 2024-07-03 23:07:44 +02:00
Javier Segarra f52ba11f42 Merge remote-tracking branch 'origin/dev' into 6321_negative_tickets 2024-07-03 23:07:25 +02:00
Javier Segarra 9c8094a3d8 Merge branch 'dev' into 6321_negative_tickets
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-07-02 20:31:44 +02:00
Javier Segarra 32fe76aaab feat: Vndescriptor 2024-07-02 20:28:13 +02:00
Javier Segarra c3d97231d2 Merge branch 'dev' into 6321_negative_tickets 2024-07-02 12:20:58 +02:00
Carlos Satorres 00cd6feb12 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6553-workerBusiness
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-06-25 10:19:53 +02:00
Carlos Satorres 8f925401d5 refs #6553 fix VnTable
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-06-25 10:17:52 +02:00
Carlos Satorres 8363f813de Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6553-workerBusiness 2024-06-21 12:42:19 +02:00
Carlos Satorres 68d1d0dbb0 refs #6553 function
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-06-20 13:58:14 +02:00
Carlos Satorres 0e7abe5fa4 Merge branch '6825-vnTable' of https://gitea.verdnatura.es/verdnatura/salix-front into 6553-workerBusiness 2024-06-20 13:57:59 +02:00
Carlos Satorres 9c5620f340 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6553-workerBusiness
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-06-20 13:35:46 +02:00
Javier Segarra e76daac3be feat: cherryPick TicketTransfer
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-06-20 00:06:00 +02:00
Javier Segarra 3ff0d2139a feat: call latestBuysFilter 2024-06-20 00:01:33 +02:00
Javier Segarra bb92d75e00 test: #6321 boilerplate tests 2024-06-20 00:01:12 +02:00
Javier Segarra 1367c372e3 handle replaceItem 2024-06-19 15:25:57 +02:00
Javier Segarra 86cfbace72 feat: #6321 remove row 2024-06-19 13:18:32 +02:00
Carlos Satorres 41e1d365f3 refs #6553 fix relations
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-06-19 08:06:03 +02:00
Carlos Satorres b6836fc59e Merge branch '6825-vnTable' of https://gitea.verdnatura.es/verdnatura/salix-front into 6553-workerBusiness 2024-06-19 06:50:20 +02:00
Javier Segarra 185160aeba feat: use Popover instead dialog 2024-06-18 22:49:55 +02:00
Javier Segarra cd5a64fcc6 fat: #6321 handle events through components 2024-06-17 22:32:39 +02:00
Javier Segarra 20e439f31e feat: ItemProposal difference column
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-06-17 12:37:52 +02:00
Javier Segarra 6ef53e790a feat: itemProposal and LackDetail 2024-06-17 12:19:57 +02:00
Alex Moreno 81591b4f67 fix: use model
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-06-14 15:01:12 +02:00
Alex Moreno 83a0ec7eb8 Merge branch '6825-vnTable' of https://gitea.verdnatura.es/verdnatura/salix-front into 6553-workerBusiness
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-06-14 14:55:25 +02:00
Alex Moreno 8d60754682 fix(WorkerBusiness): fix card label
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-06-14 14:50:01 +02:00
Javier Segarra 7b047e1637 updates
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-06-14 13:44:33 +02:00
Alex Moreno ba57c2fcd9 Merge branch '6825-vnTable' of https://gitea.verdnatura.es/verdnatura/salix-front into 6553-workerBusiness
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-06-14 11:53:14 +02:00
Javier Segarra 679710eb4d updates 2024-06-13 14:55:49 +02:00
Javier Segarra bb58f72e3f updates 2024-06-13 09:37:39 +02:00
Javier Segarra 1641ad396c Merge branch 'dev' into 6321_negative_tickets 2024-06-12 23:07:14 +02:00
Javier Segarra f816cb9240 perf: TicketLackLit 2024-06-12 23:06:56 +02:00
Javier Segarra 4226c52fc5 perf: ItemProposal 2024-06-12 22:23:58 +02:00
Javier Segarra 8d9bfd8f1d Merge branch 'dev' into 6321_negative_tickets
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-06-11 13:52:48 +02:00
Javier Segarra b370fe673b updates 2024-06-10 17:06:20 +02:00
Carlos Satorres 8490f24438 refs #6553 fix reactivateWorker
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-06-10 09:23:33 +02:00
Carlos Satorres db3ff0416c refs #6553 fix names
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-06-05 14:31:08 +02:00
Carlos Satorres d7044cfdcc Merge branch '6825-vnTable' of https://gitea.verdnatura.es/verdnatura/salix-front into 6553-workerBusiness
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-06-05 10:39:35 +02:00
Carlos Satorres f4792d7921 fix: refs #6553 label css
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-06-05 10:35:14 +02:00
Javier Segarra fd4ff94f4c feat: #6321 Update handleSplitted form
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-06-04 14:14:16 +02:00
Javier Segarra 5b1819f7da Merge branch 'dev' into 6321_negative_tickets 2024-06-04 09:27:46 +02:00
Carlos Satorres 960129f86c Merge branch 'dev' into 6553-workerBusiness
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-06-03 13:52:40 +00:00
Carlos Satorres 6e261b7793 refs #6553 fix business summary traductions
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-06-03 14:38:48 +02:00
Carlos Satorres 4b44b9a979 Merge branch '6553-workerBusiness' of https://gitea.verdnatura.es/verdnatura/salix-front into 6553-workerBusiness
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-05-31 10:32:53 +02:00
Carlos Satorres 8f1ddb08b3 refs #6553 filterBusiness 2024-05-31 10:32:51 +02:00
Carlos Satorres 330b1c1ec2 Merge branch 'dev' into 6553-workerBusiness
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-05-30 11:48:56 +00:00
Javier Segarra 79548f5041 updates
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-05-30 06:46:30 +02:00
Carlos Satorres 6205feaca4 refs #6553 fix front ibject
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-05-29 16:37:05 +02:00
Carlos Satorres 0e691436e9 refs #6553 fix front trad
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-05-29 14:20:49 +02:00
Carlos Satorres 81e6870f71 refs #6553 front section trad
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-05-28 16:59:59 +02:00
Javier Segarra d3b93b710d updates 2024-05-28 13:07:22 +02:00
Javier Segarra 577c21e601 Merge branch 'dev' into 6321_negative_tickets
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-05-28 12:48:00 +02:00
Javier Segarra 36d166ab44 feat: #6321 Split tickets
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-05-24 13:52:51 +02:00
Javier Segarra 1eedb6f79b perf: #6321 updates 2024-05-24 11:54:31 +02:00
Javier Segarra ceae5eaa9e Merge branch 'dev' into 6321_negative_tickets 2024-05-24 11:21:06 +02:00
Javier Segarra f0333dfd01 feat: Refactor negativeDetail 2024-05-16 12:01:56 +02:00
Javier Segarra 372e797059 feat: recover split
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-05-15 16:25:25 +02:00
Javier Segarra b03578eb65 feat: header itemProposal dialog 2024-05-15 16:09:26 +02:00
Javier Segarra 1c15a02a5f perf: i18n ItemProposal 2024-05-15 15:45:24 +02:00
Javier Segarra bb6a8c0052 feat: remove alertLevelCode column 2024-05-15 15:45:08 +02:00
Javier Segarra 58597bdddf Merge branch 'dev' into 6321_negative_tickets
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-05-15 08:55:47 +02:00
Javier Segarra 1ca7420207 feat: replace item 2024-05-15 08:54:22 +02:00
Javier Segarra fffd662cee feat: reload ticket detail when update state/qty 2024-05-15 08:14:50 +02:00
Javier Segarra e07e62abb4 updates 2024-05-14 14:41:34 +02:00
Javier Segarra df911e0210 feat: itemProposal selection 2024-05-14 09:55:36 +02:00
Javier Segarra ad64ee4755 feat: change Qdialog sizing 2024-05-14 08:45:46 +02:00
Javier Segarra 3e39ab7fc2 Merge branch '6321_negative_tickets' of https://gitea.verdnatura.es/verdnatura/salix-front into 6321_negative_tickets
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-05-13 13:51:18 +02:00
Javier Segarra e6b360ee4b fix: vnfilterPanel 2024-05-13 13:51:15 +02:00
Jorge Penadés 99ea8e843c Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6321_negative_tickets
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-05-13 13:22:39 +02:00
Javier Segarra ebdc1e9906 updates
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-05-13 13:18:22 +02:00
Javier Segarra 0eab0a9a98 feat: #6321 Modals change qty and state
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-05-08 15:35:04 +02:00
Javier Segarra 881e059121 feat: #6321 Show Free lines 2024-05-08 14:06:23 +02:00
Javier Segarra 0984d05220 Merge branch 'fix_minor_styles' into 6321_negative_tickets 2024-05-08 13:44:40 +02:00
Javier Segarra 61519595a9 Merge branch 'dev' into 6321_negative_tickets
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-05-08 12:30:01 +02:00
Javier Segarra c03875838f feat: minor updates
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-05-02 15:18:14 +02:00
Javier Segarra 6323f165a0 perf: updates 2024-05-02 13:53:40 +02:00
Javier Segarra 1907301852 Merge branch 'dev' into 6321_negative_tickets 2024-05-02 12:48:45 +02:00
Javier Segarra 2c59e6acc3 Merge branch 'dev' into 6321_negative_tickets
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-04-30 15:25:10 +02:00
Javier Segarra 1929545e5b feat: itemProposal table
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-04-30 15:23:49 +02:00
Javier Segarra 0988936884 feat: frmItemProposal show 2024-04-30 14:51:49 +02:00
Javier Segarra 1d4549439c feat: remove agName
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-04-29 15:09:10 +02:00
Javier Segarra b7bfb4b056 feat: updates 2024-04-29 15:08:12 +02:00
Javier Segarra 56a6f24071 feat: family filter 2024-04-29 14:21:39 +02:00
Javier Segarra 1ccad36020 feat: remove unnused filters 2024-04-29 13:25:18 +02:00
Javier Segarra df29ad31fd minor changes 2024-04-29 13:22:31 +02:00
Javier Segarra 7108444a44 fix: 1. Warehouse default 2024-04-29 13:22:23 +02:00
Javier Segarra 5425902918 Merge branch 'dev' into 6321_negative_tickets
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-04-29 11:55:56 +02:00
Javier Segarra 4049fa5c4a feat: #6321 replace dialog into layout 2024-04-23 12:50:34 +02:00
Javier Segarra 46aefa67d1 Merge remote-tracking branch 'origin/dev' into 6321_negative_tickets 2024-04-23 11:45:00 +02:00
Javier Segarra cc241c6a4e feat: #6321 new route
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-04-22 14:24:23 +02:00
Javier Segarra 5779d37bbd feat: #6321 i18n to yml 2024-04-22 14:08:58 +02:00
Javier Segarra 91c5d7092d Merge remote-tracking branch 'origin/dev' into 6321_negative_tickets 2024-04-22 13:34:00 +02:00
Javier Segarra a5350f686d refs #6321 fix: comments
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-04-15 12:28:01 +02:00
Javier Segarra cf0454669a refs #6321 fix: split disabled 2024-04-15 12:24:45 +02:00
Javier Segarra 6804196dbb warnings
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-04-08 09:35:17 +02:00
Javier Segarra 6c2c3b8f60 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6321_negative_tickets 2024-04-08 09:22:52 +02:00
Javier Segarra f6eaa99aeb refs #6321 fix: warnings
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-04-03 10:04:47 +02:00
Javier Segarra 2951e69a6a refs #6321 feat updateQuantity
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-04-03 09:58:04 +02:00
Javier Segarra 85fa394be0 refs #6321 perf: i18n
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-04-03 09:49:09 +02:00
Javier Segarra 5a497289da refs #6321 perf: i18n
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-04-03 08:41:20 +02:00
Javier Segarra 75e02bf328 change icon 2024-04-03 08:33:14 +02:00
Javier Segarra 370e52f7c4 refs #6321 perf: i18n 2024-04-02 13:25:51 +02:00
Javier Segarra 6b4dea6bf9 refs #6321 fix: filter menu 2024-04-02 13:13:29 +02:00
Javier Segarra 648a98d49d refs #6321 remove bad files 2024-04-02 09:57:59 +02:00
Javier Segarra 207097fa98 refs #6321 remove bad files 2024-04-02 09:56:31 +02:00
Javier Segarra f56934fcc4 refs #6321 perf change response object 2024-04-02 09:44:09 +02:00
Javier Segarra 48f88b5871 refs #6321 remove comments
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-04-02 08:17:44 +02:00
Javier Segarra 130c98ef17 refs #6321 remove comments
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-04-02 08:14:11 +02:00
Javier Segarra c16cc78ce6 refs #6321 remove bad files 2024-04-02 08:08:50 +02:00
Javier Segarra 0c88efc291 refs #6321 feat: status response after split
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-03-29 01:29:45 +01:00
Javier Segarra 967fb4592b Merge branch 'dev' into 6321_negative_tickets 2024-03-29 00:56:23 +01:00
Javier Segarra 697c467006 refs #6321 i18n: buttons tooltip 2024-03-29 00:56:10 +01:00
Javier Segarra 737ab9e99b updates
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-03-28 11:54:47 +01:00
Javier Segarra 30a32ad17d refs #6321 updates
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-03-28 07:17:06 +01:00
Javier Segarra 3a024e81b5 refs #6321 updates
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-03-27 15:20:15 +01:00
Javier Segarra fe12968dd6 refs #6321 fix: rowsSelected 2024-03-27 14:08:25 +01:00
Javier Segarra 81436a1641 refs #6321 feat changeState 2024-03-27 12:02:57 +01:00
Javier Segarra d65caaad07 refs #6321 perf: rename files 2024-03-27 10:19:49 +01:00
Javier Segarra 48aa8dad79 refs #6321 perf: i18n 2024-03-27 10:12:10 +01:00
Javier Segarra 1e09e9e4bb refs #6321 perf: move dialogs to new files 2024-03-27 10:07:27 +01:00
Javier Segarra 6b564bb648 refs #6321 feat: use tokenMultimedia 2024-03-27 10:06:57 +01:00
Javier Segarra 41cf7d242b Merge branch 'dev' into 6321_negative_tickets 2024-03-27 09:53:14 +01:00
Javier Segarra 174d159d04 refs #6321 i18n 2024-03-22 11:46:40 +01:00
Javier Segarra 6e701bd455 refs #6321 updates 2024-03-21 10:14:44 +01:00
Javier Segarra 527c845356 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6321_negative_tickets 2024-03-21 07:48:07 +01:00
Javier Segarra c51feab746 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6321_negative_tickets 2024-03-15 12:22:01 +01:00
Javier Segarra b3cbc64efb refs #6321 perf: i18n
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-03-15 12:15:03 +01:00
Javier Segarra 92555f8ddb refs #6321 feat: negativeOrigin modal 2024-03-15 11:31:19 +01:00
Javier Segarra 674b8bb1dc refs #6321 perf: updates 2024-03-15 09:36:30 +01:00
Javier Segarra e264a13234 warnings 2024-03-15 09:36:15 +01:00
Javier Segarra 5326d9db88 refs #6321 perf: update
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details
2024-03-14 15:26:07 +01:00
Javier Segarra 79e2bddeea Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6321_negative_tickets 2024-03-14 15:01:58 +01:00
Javier Segarra 2436db1c28 refs #6321 perf: update 2024-03-14 14:21:02 +01:00
Javier Segarra bffc496965 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6321_negative_tickets 2024-03-14 13:04:05 +01:00
Javier Segarra 322c195175 refs #6321 feat: i18n improves 2024-03-13 14:27:21 +01:00
Javier Segarra 80b881edb5 refs #6321 fix: bug when retrieve token 2024-03-07 09:50:19 +01:00
Javier Segarra d10c04d4f2 refs #6321 feat: change dialog header
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-03-06 20:46:13 +01:00
Javier Segarra 0dd89ec3f0 refs #6321 perf: rename files 2024-03-06 20:45:53 +01:00
Javier Segarra 51b8667938 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6321_negative_tickets 2024-03-06 13:51:59 +01:00
Javier Segarra 7254f91645 refs #6321 feat: updates i18n dialog
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-03-05 12:59:59 +01:00
Javier Segarra 59e260d448 refs #6321 feat: updates dialog 2024-03-05 12:59:45 +01:00
Javier Segarra 3a7e092efe Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6321_negative_tickets
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-03-05 08:06:05 +01:00
Javier Segarra 67eb21b707 refs #6321 feat: updates 2024-03-05 08:05:16 +01:00
Javier Segarra f44643fc61 refs #6664 perf: show dialog
gitea/salix-front/pipeline/head This commit looks good Details
gitea/salix-front/pipeline/pr-dev Build started... Details
2024-01-26 13:22:23 +01:00
Javier Segarra 1c51faaff4 Merge branch '6321_negative_tickets' of https://gitea.verdnatura.es/verdnatura/salix-front into 6321_negative_tickets
gitea/salix-front/pipeline/head This commit looks good Details
2024-01-23 11:14:50 +01:00
Javier Segarra f6f84e191b refs #6321 feat dialog approach 2024-01-23 11:14:46 +01:00
Alex Moreno d78c20d14b Merge branch 'dev' into 6321_negative_tickets
gitea/salix-front/pipeline/head This commit looks good Details
2024-01-22 10:41:04 +00:00
Javier Segarra c95b738e0c refs #6321 feat: create new section for ticket module
gitea/salix-front/pipeline/head This commit looks good Details
2024-01-20 12:23:51 +01:00
377 changed files with 9897 additions and 4428 deletions

View File

@ -14,8 +14,8 @@ export default defineConfig({
downloadsFolder: 'test/cypress/downloads', downloadsFolder: 'test/cypress/downloads',
video: false, video: false,
specPattern: 'test/cypress/integration/**/*.spec.js', specPattern: 'test/cypress/integration/**/*.spec.js',
experimentalRunAllSpecs: true, experimentalRunAllSpecs: false,
watchForFileChanges: true, watchForFileChanges: false,
reporter: 'cypress-mochawesome-reporter', reporter: 'cypress-mochawesome-reporter',
reporterOptions: { reporterOptions: {
charts: true, charts: true,

View File

@ -1,74 +1,74 @@
{ {
"name": "salix-front", "name": "salix-front",
"version": "25.06.0", "version": "25.08.0",
"description": "Salix frontend", "description": "Salix frontend",
"productName": "Salix", "productName": "Salix",
"author": "Verdnatura", "author": "Verdnatura",
"private": true, "private": true,
"packageManager": "pnpm@8.15.1", "packageManager": "pnpm@8.15.1",
"type": "module", "type": "module",
"scripts": { "scripts": {
"resetDatabase": "cd ../salix && gulp docker", "resetDatabase": "cd ../salix && gulp docker",
"lint": "eslint --ext .js,.vue ./", "lint": "eslint --ext .js,.vue ./",
"format": "prettier --write \"**/*.{js,vue,scss,html,md,json}\" --ignore-path .gitignore", "format": "prettier --write \"**/*.{js,vue,scss,html,md,json}\" --ignore-path .gitignore",
"test:e2e": "cypress open", "test:e2e": "cypress open",
"test:e2e:ci": "npm run resetDatabase && cd ../salix-front && cypress run", "test:e2e:ci": "npm run resetDatabase && cd ../salix-front && cypress run",
"test": "echo \"See package.json => scripts for available tests.\" && exit 0", "test": "echo \"See package.json => scripts for available tests.\" && exit 0",
"test:unit": "vitest", "test:unit": "vitest",
"test:unit:ci": "vitest run", "test:unit:ci": "vitest run",
"commitlint": "commitlint --edit", "commitlint": "commitlint --edit",
"prepare": "npx husky install", "prepare": "npx husky install",
"addReferenceTag": "node .husky/addReferenceTag.js", "addReferenceTag": "node .husky/addReferenceTag.js",
"docs:dev": "vitepress dev docs", "docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs", "docs:build": "vitepress build docs",
"docs:preview": "vitepress preview docs" "docs:preview": "vitepress preview docs"
}, },
"dependencies": { "dependencies": {
"@quasar/cli": "^2.4.1", "@quasar/cli": "^2.4.1",
"@quasar/extras": "^1.16.16", "@quasar/extras": "^1.16.16",
"axios": "^1.4.0", "axios": "^1.4.0",
"chromium": "^3.0.3", "chromium": "^3.0.3",
"croppie": "^2.6.5", "croppie": "^2.6.5",
"moment": "^2.30.1", "moment": "^2.30.1",
"pinia": "^2.1.3", "pinia": "^2.1.3",
"quasar": "^2.17.7", "quasar": "^2.17.7",
"validator": "^13.9.0", "validator": "^13.9.0",
"vue": "^3.5.13", "vue": "^3.5.13",
"vue-i18n": "^9.3.0", "vue-i18n": "^9.3.0",
"vue-router": "^4.2.5" "vue-router": "^4.2.5"
}, },
"devDependencies": { "devDependencies": {
"@commitlint/cli": "^19.2.1", "@commitlint/cli": "^19.2.1",
"@commitlint/config-conventional": "^19.1.0", "@commitlint/config-conventional": "^19.1.0",
"@intlify/unplugin-vue-i18n": "^0.8.2", "@intlify/unplugin-vue-i18n": "^0.8.2",
"@pinia/testing": "^0.1.2", "@pinia/testing": "^0.1.2",
"@quasar/app-vite": "^2.0.8", "@quasar/app-vite": "^2.0.8",
"@quasar/quasar-app-extension-qcalendar": "^4.0.2", "@quasar/quasar-app-extension-qcalendar": "^4.0.2",
"@quasar/quasar-app-extension-testing-unit-vitest": "^0.4.0", "@quasar/quasar-app-extension-testing-unit-vitest": "^0.4.0",
"@vue/test-utils": "^2.4.4", "@vue/test-utils": "^2.4.4",
"autoprefixer": "^10.4.14", "autoprefixer": "^10.4.14",
"cypress": "^13.6.6", "cypress": "^13.6.6",
"cypress-mochawesome-reporter": "^3.8.2", "cypress-mochawesome-reporter": "^3.8.2",
"eslint": "^9.18.0", "eslint": "^9.18.0",
"eslint-config-prettier": "^10.0.1", "eslint-config-prettier": "^10.0.1",
"eslint-plugin-cypress": "^4.1.0", "eslint-plugin-cypress": "^4.1.0",
"eslint-plugin-vue": "^9.32.0", "eslint-plugin-vue": "^9.32.0",
"husky": "^8.0.0", "husky": "^8.0.0",
"postcss": "^8.4.23", "postcss": "^8.4.23",
"prettier": "^3.4.2", "prettier": "^3.4.2",
"sass": "^1.83.4", "sass": "^1.83.4",
"vitepress": "^1.6.3", "vitepress": "^1.6.3",
"vitest": "^0.34.0" "vitest": "^0.34.0"
}, },
"engines": { "engines": {
"node": "^20 || ^18 || ^16", "node": "^20 || ^18 || ^16",
"npm": ">= 8.1.2", "npm": ">= 8.1.2",
"yarn": ">= 1.21.1", "yarn": ">= 1.21.1",
"bun": ">= 1.0.25" "bun": ">= 1.0.25"
}, },
"overrides": { "overrides": {
"@vitejs/plugin-vue": "^5.2.1", "@vitejs/plugin-vue": "^5.2.1",
"vite": "^6.0.11", "vite": "^6.0.11",
"vitest": "^0.31.1" "vitest": "^0.31.1"
} }
} }

6
proxy-serve.js Normal file
View File

@ -0,0 +1,6 @@
export default [
{
path: '/api',
rule: { target: 'http://0.0.0.0:3000' },
},
];

View File

@ -30,7 +30,6 @@ export default configure(function (/* ctx */) {
// --> boot files are part of "main.js" // --> boot files are part of "main.js"
// https://v2.quasar.dev/quasar-cli/boot-files // https://v2.quasar.dev/quasar-cli/boot-files
boot: ['i18n', 'axios', 'vnDate', 'validations', 'quasar', 'quasar.defaults'], boot: ['i18n', 'axios', 'vnDate', 'validations', 'quasar', 'quasar.defaults'],
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#css // https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#css
css: ['app.scss'], css: ['app.scss'],
@ -179,7 +178,6 @@ export default configure(function (/* ctx */) {
'render', // keep this as last one 'render', // keep this as last one
], ],
}, },
// https://v2.quasar.dev/quasar-cli/developing-pwa/configuring-pwa // https://v2.quasar.dev/quasar-cli/developing-pwa/configuring-pwa
pwa: { pwa: {
workboxMode: 'generateSW', // or 'injectManifest' workboxMode: 'generateSW', // or 'injectManifest'

View File

@ -0,0 +1,2 @@
export const langs = ['en', 'es'];
export const decimalPlaces = 2;

View File

@ -1,6 +1,6 @@
export default { export default {
mounted: function (el, binding) { mounted(el, binding) {
const shortcut = binding.value ?? '+'; const shortcut = binding.value || '+';
const { key, ctrl, alt, callback } = const { key, ctrl, alt, callback } =
typeof shortcut === 'string' typeof shortcut === 'string'
@ -8,25 +8,24 @@ export default {
key: shortcut, key: shortcut,
ctrl: true, ctrl: true,
alt: true, alt: true,
callback: () => callback: () => el?.click(),
document
.querySelector(`button[shortcut="${shortcut}"]`)
?.click(),
} }
: binding.value; : binding.value;
if (!el.hasAttribute('shortcut')) {
el.setAttribute('shortcut', key);
}
const handleKeydown = (event) => { const handleKeydown = (event) => {
if (event.key === key && (!ctrl || event.ctrlKey) && (!alt || event.altKey)) { if (event.key === key && (!ctrl || event.ctrlKey) && (!alt || event.altKey)) {
callback(); callback();
} }
}; };
// Attach the event listener to the window
window.addEventListener('keydown', handleKeydown); window.addEventListener('keydown', handleKeydown);
el._handleKeydown = handleKeydown; el._handleKeydown = handleKeydown;
}, },
unmounted: function (el) { unmounted(el) {
if (el._handleKeydown) { if (el._handleKeydown) {
window.removeEventListener('keydown', el._handleKeydown); window.removeEventListener('keydown', el._handleKeydown);
} }

View File

@ -51,4 +51,5 @@ export default boot(({ app }) => {
await useCau(response, message); await useCau(response, message);
}; };
app.provide('app', app);
}); });

View File

@ -14,7 +14,7 @@ const { t } = useI18n();
const bicInputRef = ref(null); const bicInputRef = ref(null);
const state = useState(); const state = useState();
const customer = computed(() => state.get('customer')); const customer = computed(() => state.get('Customer'));
const countriesFilter = { const countriesFilter = {
fields: ['id', 'name', 'code'], fields: ['id', 'name', 'code'],

View File

@ -64,6 +64,10 @@ const $props = defineProps({
type: Function, type: Function,
default: null, default: null,
}, },
beforeSaveFn: {
type: Function,
default: null,
},
goTo: { goTo: {
type: String, type: String,
default: '', default: '',
@ -176,7 +180,11 @@ async function saveChanges(data) {
hasChanges.value = false; hasChanges.value = false;
return; return;
} }
const changes = data || getChanges(); let changes = data || getChanges();
if ($props.beforeSaveFn) {
changes = await $props.beforeSaveFn(changes, getChanges);
}
try { try {
await axios.post($props.saveUrl || $props.url + '/crud', changes); await axios.post($props.saveUrl || $props.url + '/crud', changes);
} finally { } finally {
@ -229,12 +237,12 @@ async function remove(data) {
componentProps: { componentProps: {
title: t('globals.confirmDeletion'), title: t('globals.confirmDeletion'),
message: t('globals.confirmDeletionMessage'), message: t('globals.confirmDeletionMessage'),
newData, data: { deletes: ids },
ids, ids,
promise: saveChanges,
}, },
}) })
.onOk(async () => { .onOk(async () => {
await saveChanges({ deletes: ids });
newData = newData.filter((form) => !ids.some((id) => id == form[pk])); newData = newData.filter((form) => !ids.some((id) => id == form[pk]));
fetch(newData); fetch(newData);
}); });
@ -374,6 +382,8 @@ watch(formUrl, async () => {
@click="onSubmit" @click="onSubmit"
:disable="!hasChanges" :disable="!hasChanges"
:title="t('globals.save')" :title="t('globals.save')"
v-shortcut="'s'"
shortcut="s"
data-cy="crudModelDefaultSaveBtn" data-cy="crudModelDefaultSaveBtn"
/> />
<slot name="moreAfterActions" /> <slot name="moreAfterActions" />

View File

@ -181,6 +181,7 @@ const selectTravel = ({ id }) => {
color="primary" color="primary"
:disabled="isLoading" :disabled="isLoading"
:loading="isLoading" :loading="isLoading"
data-cy="save-filter-travel-form"
/> />
</div> </div>
<QTable <QTable
@ -191,9 +192,10 @@ const selectTravel = ({ id }) => {
:no-data-label="t('Enter a new search')" :no-data-label="t('Enter a new search')"
class="q-mt-lg" class="q-mt-lg"
@row-click="(_, row) => selectTravel(row)" @row-click="(_, row) => selectTravel(row)"
data-cy="table-filter-travel-form"
> >
<template #body-cell-id="{ row }"> <template #body-cell-id="{ row }">
<QTd auto-width @click.stop> <QTd auto-width @click.stop data-cy="travelFk-travel-form">
<QBtn flat color="blue">{{ row.id }}</QBtn> <QBtn flat color="blue">{{ row.id }}</QBtn>
<TravelDescriptorProxy :id="row.id" /> <TravelDescriptorProxy :id="row.id" />
</QTd> </QTd>

View File

@ -84,7 +84,7 @@ const $props = defineProps({
}, },
reload: { reload: {
type: Boolean, type: Boolean,
default: false, default: true,
}, },
defaultTrim: { defaultTrim: {
type: Boolean, type: Boolean,
@ -97,7 +97,7 @@ const $props = defineProps({
}); });
const emit = defineEmits(['onFetch', 'onDataSaved']); const emit = defineEmits(['onFetch', 'onDataSaved']);
const modelValue = computed( const modelValue = computed(
() => $props.model ?? `formModel_${route?.meta?.title ?? route.name}` () => $props.model ?? `formModel_${route?.meta?.title ?? route.name}`,
).value; ).value;
const componentIsRendered = ref(false); const componentIsRendered = ref(false);
const arrayData = useArrayData(modelValue); const arrayData = useArrayData(modelValue);
@ -105,8 +105,8 @@ const isLoading = ref(false);
// Si elegimos observar los cambios del form significa que inicialmente las actions estaran deshabilitadas // Si elegimos observar los cambios del form significa que inicialmente las actions estaran deshabilitadas
const isResetting = ref(false); const isResetting = ref(false);
const hasChanges = ref(!$props.observeFormChanges); const hasChanges = ref(!$props.observeFormChanges);
const originalData = ref({}); const originalData = computed(() => state.get(modelValue));
const formData = computed(() => state.get(modelValue)); const formData = ref({});
const defaultButtons = computed(() => ({ const defaultButtons = computed(() => ({
save: { save: {
dataCy: 'saveDefaultBtn', dataCy: 'saveDefaultBtn',
@ -127,8 +127,6 @@ const defaultButtons = computed(() => ({
})); }));
onMounted(async () => { onMounted(async () => {
originalData.value = JSON.parse(JSON.stringify($props.formInitialData ?? {}));
nextTick(() => (componentIsRendered.value = true)); nextTick(() => (componentIsRendered.value = true));
// Podemos enviarle al form la estructura de data inicial sin necesidad de fetchearla // Podemos enviarle al form la estructura de data inicial sin necesidad de fetchearla
@ -148,7 +146,7 @@ onMounted(async () => {
JSON.stringify(newVal) !== JSON.stringify(originalData.value); JSON.stringify(newVal) !== JSON.stringify(originalData.value);
isResetting.value = false; isResetting.value = false;
}, },
{ deep: true } { deep: true },
); );
} }
}); });
@ -156,16 +154,24 @@ onMounted(async () => {
if (!$props.url) if (!$props.url)
watch( watch(
() => arrayData.store.data, () => arrayData.store.data,
(val) => updateAndEmit('onFetch', val) (val) => updateAndEmit('onFetch', val),
); );
watch(
originalData,
(val) => {
if (val) formData.value = JSON.parse(JSON.stringify(val));
},
{ immediate: true },
);
watch( watch(
() => [$props.url, $props.filter], () => [$props.url, $props.filter],
async () => { async () => {
originalData.value = null; state.set(modelValue, null);
reset(); reset();
await fetch(); await fetch();
} },
); );
onBeforeRouteLeave((to, from, next) => { onBeforeRouteLeave((to, from, next) => {
@ -197,7 +203,6 @@ async function fetch() {
updateAndEmit('onFetch', data); updateAndEmit('onFetch', data);
} catch (e) { } catch (e) {
state.set(modelValue, {}); state.set(modelValue, {});
originalData.value = {};
throw e; throw e;
} }
} }
@ -236,6 +241,7 @@ async function saveAndGo() {
} }
function reset() { function reset() {
formData.value = JSON.parse(JSON.stringify(originalData.value));
updateAndEmit('onFetch', originalData.value); updateAndEmit('onFetch', originalData.value);
if ($props.observeFormChanges) { if ($props.observeFormChanges) {
hasChanges.value = false; hasChanges.value = false;
@ -254,13 +260,12 @@ function filter(value, update, filterOptions) {
(ref) => { (ref) => {
ref.setOptionIndex(-1); ref.setOptionIndex(-1);
ref.moveOptionSelection(1, true); ref.moveOptionSelection(1, true);
} },
); );
} }
function updateAndEmit(evt, val, res) { function updateAndEmit(evt, val, res) {
state.set(modelValue, val); state.set(modelValue, val);
originalData.value = val && JSON.parse(JSON.stringify(val));
if (!$props.url) arrayData.store.data = val; if (!$props.url) arrayData.store.data = val;
emit(evt, state.get(modelValue), res); emit(evt, state.get(modelValue), res);

View File

@ -1,5 +1,5 @@
<script setup> <script setup>
import { ref, computed } from 'vue'; import { ref, computed, onMounted } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import FormModel from 'components/FormModel.vue'; import FormModel from 'components/FormModel.vue';
@ -15,23 +15,30 @@ defineProps({
type: String, type: String,
default: '', default: '',
}, },
showSaveAndContinueBtn: {
type: Boolean,
default: false,
},
}); });
const { t } = useI18n(); const { t } = useI18n();
const formModelRef = ref(null); const formModelRef = ref(null);
const closeButton = ref(null); const closeButton = ref(null);
const isSaveAndContinue = ref(false);
const onDataSaved = (formData, requestResponse) => { const onDataSaved = (formData, requestResponse) => {
if (closeButton.value) closeButton.value.click(); if (closeButton.value && isSaveAndContinue) closeButton.value.click();
emit('onDataSaved', formData, requestResponse); emit('onDataSaved', formData, requestResponse);
}; };
const isLoading = computed(() => formModelRef.value?.isLoading); const isLoading = computed(() => formModelRef.value?.isLoading);
const reset = computed(() => formModelRef.value?.reset);
defineExpose({ defineExpose({
isLoading, isLoading,
onDataSaved, onDataSaved,
isSaveAndContinue,
reset,
}); });
</script> </script>
@ -51,6 +58,19 @@ defineExpose({
<p>{{ subtitle }}</p> <p>{{ subtitle }}</p>
<slot name="form-inputs" :data="data" :validate="validate" /> <slot name="form-inputs" :data="data" :validate="validate" />
<div class="q-mt-lg row justify-end"> <div class="q-mt-lg row justify-end">
<QBtn
v-if="showSaveAndContinueBtn"
:label="t('globals.isSaveAndContinue')"
:title="t('globals.isSaveAndContinue')"
type="submit"
color="primary"
class="q-ml-sm"
:disabled="isLoading"
:loading="isLoading"
data-cy="FormModelPopup_isSaveAndContinue"
z-max
@click="() => (isSaveAndContinue = true)"
/>
<QBtn <QBtn
:label="t('globals.cancel')" :label="t('globals.cancel')"
:title="t('globals.cancel')" :title="t('globals.cancel')"
@ -59,10 +79,15 @@ defineExpose({
flat flat
:disabled="isLoading" :disabled="isLoading"
:loading="isLoading" :loading="isLoading"
@click="emit('onDataCanceled')"
v-close-popup
data-cy="FormModelPopup_cancel" data-cy="FormModelPopup_cancel"
v-close-popup
z-max z-max
@click="
() => {
isSaveAndContinue = false;
emit('onDataCanceled');
}
"
/> />
<QBtn <QBtn
:label="t('globals.save')" :label="t('globals.save')"
@ -74,6 +99,7 @@ defineExpose({
:loading="isLoading" :loading="isLoading"
data-cy="FormModelPopup_save" data-cy="FormModelPopup_save"
z-max z-max
@click="() => (isSaveAndContinue = false)"
/> />
</div> </div>
</template> </template>

View File

@ -31,7 +31,6 @@ const props = defineProps({
const route = useRoute(); const route = useRoute();
const itemTypesOptions = ref([]); const itemTypesOptions = ref([]);
const suppliersOptions = ref([]);
const tagOptions = ref([]); const tagOptions = ref([]);
const tagValues = ref([]); const tagValues = ref([]);
const categoryList = ref(null); const categoryList = ref(null);
@ -40,13 +39,13 @@ const selectedTypeFk = ref(getParamWhere(route.query.table, 'typeFk', false));
const selectedCategory = computed(() => { const selectedCategory = computed(() => {
return (categoryList.value || []).find( return (categoryList.value || []).find(
(category) => category?.id === selectedCategoryFk.value (category) => category?.id === selectedCategoryFk.value,
); );
}); });
const selectedType = computed(() => { const selectedType = computed(() => {
return (itemTypesOptions.value || []).find( return (itemTypesOptions.value || []).find(
(type) => type?.id === selectedTypeFk.value (type) => type?.id === selectedTypeFk.value,
); );
}); });
@ -134,13 +133,6 @@ const setCategoryList = (data) => {
<template> <template>
<FetchData url="ItemCategories" limit="30" auto-load @on-fetch="setCategoryList" /> <FetchData url="ItemCategories" limit="30" auto-load @on-fetch="setCategoryList" />
<FetchData
url="Suppliers"
limit="30"
auto-load
:filter="{ fields: ['id', 'name', 'nickname'], order: 'name ASC', limit: 30 }"
@on-fetch="(data) => (suppliersOptions = data)"
/>
<FetchData <FetchData
url="Tags" url="Tags"
:filter="{ fields: ['id', 'name', 'isFree'] }" :filter="{ fields: ['id', 'name', 'isFree'] }"
@ -290,7 +282,7 @@ const setCategoryList = (data) => {
<QItem class="q-mt-lg"> <QItem class="q-mt-lg">
<QBtn <QBtn
icon="add_circle" icon="add_circle"
shortcut="+" v-shortcut="'+'"
flat flat
class="fill-icon-on-hover q-px-xs" class="fill-icon-on-hover q-px-xs"
color="primary" color="primary"
@ -336,7 +328,6 @@ en:
active: Is active active: Is active
visible: Is visible visible: Is visible
floramondo: Is floramondo floramondo: Is floramondo
salesPersonFk: Buyer
categoryFk: Category categoryFk: Category
es: es:
@ -347,7 +338,6 @@ es:
active: Activo active: Activo
visible: Visible visible: Visible
floramondo: Floramondo floramondo: Floramondo
salesPersonFk: Comprador
categoryFk: Categoría categoryFk: Categoría
Plant: Planta natural Plant: Planta natural
Flower: Flor fresca Flower: Flor fresca

View File

@ -10,12 +10,13 @@ import routes from 'src/router/modules';
import LeftMenuItem from './LeftMenuItem.vue'; import LeftMenuItem from './LeftMenuItem.vue';
import LeftMenuItemGroup from './LeftMenuItemGroup.vue'; import LeftMenuItemGroup from './LeftMenuItemGroup.vue';
import VnInput from './common/VnInput.vue'; import VnInput from './common/VnInput.vue';
import { useRouter } from 'vue-router';
const { t } = useI18n(); const { t } = useI18n();
const route = useRoute(); const route = useRoute();
const quasar = useQuasar(); const quasar = useQuasar();
const navigation = useNavigationStore(); const navigation = useNavigationStore();
const router = useRouter();
const props = defineProps({ const props = defineProps({
source: { source: {
type: String, type: String,
@ -40,7 +41,6 @@ const filteredItems = computed(() => {
return locale.includes(normalizedSearch); return locale.includes(normalizedSearch);
}); });
}); });
const filteredPinnedModules = computed(() => { const filteredPinnedModules = computed(() => {
if (!search.value) return pinnedModules.value; if (!search.value) return pinnedModules.value;
const normalizedSearch = search.value const normalizedSearch = search.value
@ -71,7 +71,7 @@ watch(
items.value = []; items.value = [];
getRoutes(); getRoutes();
}, },
{ deep: true } { deep: true },
); );
function findMatches(search, item) { function findMatches(search, item) {
@ -103,33 +103,40 @@ function addChildren(module, route, parent) {
} }
function getRoutes() { function getRoutes() {
if (props.source === 'main') { const handleRoutes = {
const modules = Object.assign([], navigation.getModules().value); main: getMainRoutes,
card: getCardRoutes,
for (const item of modules) { };
const moduleDef = routes.find( try {
(route) => toLowerCamel(route.name) === item.module handleRoutes[props.source]();
); } catch (error) {
if (!moduleDef) continue; throw new Error(`Method is not defined`);
item.children = [];
addChildren(item.module, moduleDef, item.children);
}
items.value = modules;
} }
}
function getMainRoutes() {
const modules = Object.assign([], navigation.getModules().value);
if (props.source === 'card') { for (const item of modules) {
const currentRoute = route.matched[1]; const moduleDef = routes.find(
const currentModule = toLowerCamel(currentRoute.name); (route) => toLowerCamel(route.name) === item.module,
let moduleDef = routes.find(
(route) => toLowerCamel(route.name) === currentModule
); );
if (!moduleDef) continue;
item.children = [];
if (!moduleDef) return; addChildren(item.module, moduleDef, item.children);
if (!moduleDef?.menus) moduleDef = betaGetRoutes();
addChildren(currentModule, moduleDef, items.value);
} }
items.value = modules;
}
function getCardRoutes() {
const currentRoute = route.matched[1];
const currentModule = toLowerCamel(currentRoute.name);
let moduleDef = routes.find((route) => toLowerCamel(route.name) === currentModule);
if (!moduleDef) return;
if (!moduleDef?.menus) moduleDef = betaGetRoutes();
addChildren(currentModule, moduleDef, items.value);
} }
function betaGetRoutes() { function betaGetRoutes() {
@ -174,6 +181,10 @@ function normalize(text) {
.replace(/[\u0300-\u036f]/g, '') .replace(/[\u0300-\u036f]/g, '')
.toLowerCase(); .toLowerCase();
} }
const searchModule = () => {
const [item] = filteredItems.value;
if (item) router.push({ name: item.name });
};
</script> </script>
<template> <template>
@ -188,10 +199,11 @@ function normalize(text) {
filled filled
dense dense
autofocus autofocus
@keyup.enter.stop="searchModule()"
/> />
</QItem> </QItem>
<QSeparator /> <QSeparator />
<template v-if="filteredPinnedModules.size"> <template v-if="filteredPinnedModules.size && !search">
<LeftMenuItem <LeftMenuItem
v-for="[key, pinnedModule] of filteredPinnedModules" v-for="[key, pinnedModule] of filteredPinnedModules"
:key="key" :key="key"
@ -215,11 +227,18 @@ function normalize(text) {
</LeftMenuItem> </LeftMenuItem>
<QSeparator /> <QSeparator />
</template> </template>
<template v-for="item in filteredItems" :key="item.name"> <template v-for="(item, index) in filteredItems" :key="item.name">
<template <template
v-if="item.children && !filteredPinnedModules.has(item.name)" v-if="
search ||
(item.children && !filteredPinnedModules.has(item.name))
"
> >
<LeftMenuItem :item="item" group="modules"> <LeftMenuItem
:item="item"
group="modules"
:class="search && index === 0 ? 'searched' : ''"
>
<template #side> <template #side>
<QBtn <QBtn
v-if="item.isPinned === true" v-if="item.isPinned === true"
@ -336,6 +355,9 @@ function normalize(text) {
.header { .header {
color: var(--vn-label-color); color: var(--vn-label-color);
} }
.searched {
background-color: var(--vn-section-hover-color);
}
</style> </style>
<i18n> <i18n>
es: es:

View File

@ -26,6 +26,7 @@ const itemComputed = computed(() => {
:to="{ name: itemComputed.name }" :to="{ name: itemComputed.name }"
clickable clickable
v-ripple v-ripple
:data-cy="`${itemComputed.name}-menu-item`"
> >
<QItemSection avatar v-if="itemComputed.icon"> <QItemSection avatar v-if="itemComputed.icon">
<QIcon :name="itemComputed.icon" /> <QIcon :name="itemComputed.icon" />

View File

@ -20,6 +20,7 @@ const appName = 'Lilium';
const pinnedModulesRef = ref(); const pinnedModulesRef = ref();
onMounted(() => stateStore.setMounted()); onMounted(() => stateStore.setMounted());
const refresh = () => window.location.reload();
</script> </script>
<template> <template>
<QHeader color="white" elevated> <QHeader color="white" elevated>
@ -64,6 +65,13 @@ onMounted(() => stateStore.setMounted());
<QSpace /> <QSpace />
<div class="q-pl-sm q-gutter-sm row items-center no-wrap"> <div class="q-pl-sm q-gutter-sm row items-center no-wrap">
<div id="actions-prepend"></div> <div id="actions-prepend"></div>
<QIcon
name="refresh"
size="md"
color="red"
v-if="state.get('error')"
@click="refresh"
/>
<QBtn <QBtn
:class="{ 'q-pa-none': quasar.platform.is.mobile }" :class="{ 'q-pa-none': quasar.platform.is.mobile }"
id="pinnedModules" id="pinnedModules"

View File

@ -9,6 +9,7 @@ import VnSelect from 'components/common/VnSelect.vue';
import FormPopup from './FormPopup.vue'; import FormPopup from './FormPopup.vue';
import axios from 'axios'; import axios from 'axios';
import useNotify from 'src/composables/useNotify.js'; import useNotify from 'src/composables/useNotify.js';
import VnCheckbox from 'src/components/common/VnCheckbox.vue';
const $props = defineProps({ const $props = defineProps({
invoiceOutData: { invoiceOutData: {
@ -131,15 +132,11 @@ const refund = async () => {
:required="true" :required="true"
/> </VnRow /> </VnRow
><VnRow> ><VnRow>
<div> <VnCheckbox
<QCheckbox v-model="invoiceParams.inheritWarehouse"
:label="t('Inherit warehouse')" :label="t('Inherit warehouse')"
v-model="invoiceParams.inheritWarehouse" :info="t('Inherit warehouse tooltip')"
/> />
<QIcon name="info" class="cursor-info q-ml-sm" size="sm">
<QTooltip>{{ t('Inherit warehouse tooltip') }}</QTooltip>
</QIcon>
</div>
</VnRow> </VnRow>
</template> </template>
</FormPopup> </FormPopup>

View File

@ -2,26 +2,9 @@
defineProps({ row: { type: Object, required: true } }); defineProps({ row: { type: Object, required: true } });
</script> </script>
<template> <template>
<span> <span class="q-gutter-x-xs">
<QIcon <QIcon
v-if="row.isTaxDataChecked === 0" v-if="row?.risk"
name="vn:no036"
color="primary"
size="xs"
>
<QTooltip>{{ $t('salesTicketsTable.noVerifiedData') }}</QTooltip>
</QIcon>
<QIcon v-if="row.hasTicketRequest" name="vn:buyrequest" color="primary" size="xs">
<QTooltip>{{ $t('salesTicketsTable.purchaseRequest') }}</QTooltip>
</QIcon>
<QIcon v-if="row.itemShortage" name="vn:unavailable" color="primary" size="xs">
<QTooltip>{{ $t('salesTicketsTable.notVisible') }}</QTooltip>
</QIcon>
<QIcon v-if="row.isFreezed" name="vn:frozen" color="primary" size="xs">
<QTooltip>{{ $t('salesTicketsTable.clientFrozen') }}</QTooltip>
</QIcon>
<QIcon
v-if="row.risk"
name="vn:risk" name="vn:risk"
:color="row.hasHighRisk ? 'negative' : 'primary'" :color="row.hasHighRisk ? 'negative' : 'primary'"
size="xs" size="xs"
@ -30,10 +13,57 @@ defineProps({ row: { type: Object, required: true } });
{{ $t('salesTicketsTable.risk') }}: {{ row.risk - row.credit }} {{ $t('salesTicketsTable.risk') }}: {{ row.risk - row.credit }}
</QTooltip> </QTooltip>
</QIcon> </QIcon>
<QIcon v-if="row.hasComponentLack" name="vn:components" color="primary" size="xs"> <QIcon
v-if="row?.hasComponentLack"
name="vn:components"
color="primary"
size="xs"
>
<QTooltip>{{ $t('salesTicketsTable.componentLack') }}</QTooltip> <QTooltip>{{ $t('salesTicketsTable.componentLack') }}</QTooltip>
</QIcon> </QIcon>
<QIcon v-if="row.isTooLittle" name="vn:isTooLittle" color="primary" size="xs"> <QIcon v-if="row?.hasItemDelay" color="primary" size="xs" name="vn:hasItemDelay">
<QTooltip>
{{ $t('ticket.summary.hasItemDelay') }}
</QTooltip>
</QIcon>
<QIcon v-if="row?.hasItemLost" color="primary" size="xs" name="vn:hasItemLost">
<QTooltip>
{{ $t('salesTicketsTable.hasItemLost') }}
</QTooltip>
</QIcon>
<QIcon
v-if="row?.hasItemShortage"
name="vn:unavailable"
color="primary"
size="xs"
>
<QTooltip>{{ $t('salesTicketsTable.notVisible') }}</QTooltip>
</QIcon>
<QIcon v-if="row?.hasRounding" color="primary" name="sync_problem" size="xs">
<QTooltip>
{{ $t('ticketList.rounding') }}
</QTooltip>
</QIcon>
<QIcon
v-if="row?.hasTicketRequest"
name="vn:buyrequest"
color="primary"
size="xs"
>
<QTooltip>{{ $t('salesTicketsTable.purchaseRequest') }}</QTooltip>
</QIcon>
<QIcon
v-if="!row?.isTaxDataChecked === 0"
name="vn:no036"
color="primary"
size="xs"
>
<QTooltip>{{ $t('salesTicketsTable.noVerifiedData') }}</QTooltip>
</QIcon>
<QIcon v-if="row?.isFreezed" name="vn:frozen" color="primary" size="xs">
<QTooltip>{{ $t('salesTicketsTable.clientFrozen') }}</QTooltip>
</QIcon>
<QIcon v-if="row?.isTooLittle" name="vn:isTooLittle" color="primary" size="xs">
<QTooltip>{{ $t('salesTicketsTable.tooLittle') }}</QTooltip> <QTooltip>{{ $t('salesTicketsTable.tooLittle') }}</QTooltip>
</QIcon> </QIcon>
</span> </span>

View File

@ -10,6 +10,7 @@ import VnSelect from 'components/common/VnSelect.vue';
import FormPopup from './FormPopup.vue'; import FormPopup from './FormPopup.vue';
import axios from 'axios'; import axios from 'axios';
import useNotify from 'src/composables/useNotify.js'; import useNotify from 'src/composables/useNotify.js';
import VnCheckbox from './common/VnCheckbox.vue';
const $props = defineProps({ const $props = defineProps({
invoiceOutData: { invoiceOutData: {
@ -186,15 +187,11 @@ const makeInvoice = async () => {
/> />
</VnRow> </VnRow>
<VnRow> <VnRow>
<div> <VnCheckbox
<QCheckbox v-model="checked"
:label="t('Bill destination client')" :label="t('Bill destination client')"
v-model="checked" :info="t('transferInvoiceInfo')"
/> />
<QIcon name="info" class="cursor-info q-ml-sm" size="sm">
<QTooltip>{{ t('transferInvoiceInfo') }}</QTooltip>
</QIcon>
</div>
</VnRow> </VnRow>
</template> </template>
</FormPopup> </FormPopup>

View File

@ -1,9 +1,8 @@
<script setup> <script setup>
import { markRaw, computed } from 'vue'; import { markRaw, computed } from 'vue';
import { QIcon, QCheckbox } from 'quasar'; import { QIcon, QCheckbox, QToggle } from 'quasar';
import { dashIfEmpty } from 'src/filters'; import { dashIfEmpty } from 'src/filters';
/* basic input */
import VnSelect from 'components/common/VnSelect.vue'; import VnSelect from 'components/common/VnSelect.vue';
import VnSelectCache from 'components/common/VnSelectCache.vue'; import VnSelectCache from 'components/common/VnSelectCache.vue';
import VnInput from 'components/common/VnInput.vue'; import VnInput from 'components/common/VnInput.vue';
@ -12,8 +11,11 @@ import VnInputDate from 'components/common/VnInputDate.vue';
import VnInputTime from 'components/common/VnInputTime.vue'; import VnInputTime from 'components/common/VnInputTime.vue';
import VnComponent from 'components/common/VnComponent.vue'; import VnComponent from 'components/common/VnComponent.vue';
import VnUserLink from 'components/ui/VnUserLink.vue'; import VnUserLink from 'components/ui/VnUserLink.vue';
import VnSelectEnum from '../common/VnSelectEnum.vue';
import VnCheckbox from '../common/VnCheckbox.vue';
const model = defineModel(undefined, { required: true }); const model = defineModel(undefined, { required: true });
const emit = defineEmits(['blur']);
const $props = defineProps({ const $props = defineProps({
column: { column: {
type: Object, type: Object,
@ -39,10 +41,18 @@ const $props = defineProps({
type: Object, type: Object,
default: null, default: null,
}, },
autofocus: {
type: Boolean,
default: false,
},
showLabel: { showLabel: {
type: Boolean, type: Boolean,
default: null, default: null,
}, },
eventHandlers: {
type: Object,
default: null,
},
}); });
const defaultSelect = { const defaultSelect = {
@ -99,7 +109,8 @@ const defaultComponents = {
}, },
}, },
checkbox: { checkbox: {
component: markRaw(QCheckbox), ref: 'checkbox',
component: markRaw(VnCheckbox),
attrs: ({ model }) => { attrs: ({ model }) => {
const defaultAttrs = { const defaultAttrs = {
disable: !$props.isEditable, disable: !$props.isEditable,
@ -115,6 +126,10 @@ const defaultComponents = {
}, },
forceAttrs: { forceAttrs: {
label: $props.showLabel && $props.column.label, label: $props.showLabel && $props.column.label,
autofocus: true,
},
events: {
blur: () => emit('blur'),
}, },
}, },
select: { select: {
@ -125,12 +140,19 @@ const defaultComponents = {
component: markRaw(VnSelect), component: markRaw(VnSelect),
...defaultSelect, ...defaultSelect,
}, },
selectEnum: {
component: markRaw(VnSelectEnum),
...defaultSelect,
},
icon: { icon: {
component: markRaw(QIcon), component: markRaw(QIcon),
}, },
userLink: { userLink: {
component: markRaw(VnUserLink), component: markRaw(VnUserLink),
}, },
toggle: {
component: markRaw(QToggle),
},
}; };
const value = computed(() => { const value = computed(() => {
@ -160,7 +182,28 @@ const col = computed(() => {
return newColumn; return newColumn;
}); });
const components = computed(() => $props.components ?? defaultComponents); const components = computed(() => {
const sourceComponents = $props.components ?? defaultComponents;
return Object.keys(sourceComponents).reduce((acc, key) => {
const component = sourceComponents[key];
if (!component || typeof component !== 'object') {
acc[key] = component;
return acc;
}
acc[key] = {
...component,
attrs: {
...(component.attrs || {}),
autofocus: $props.autofocus,
},
event: { ...component?.event, ...$props?.eventHandlers },
};
return acc;
}, {});
});
</script> </script>
<template> <template>
<div class="row no-wrap"> <div class="row no-wrap">

View File

@ -1,14 +1,12 @@
<script setup> <script setup>
import { markRaw, computed } from 'vue'; import { markRaw, computed } from 'vue';
import { QCheckbox } from 'quasar'; import { QCheckbox, QToggle } from 'quasar';
import { useArrayData } from 'composables/useArrayData'; import { useArrayData } from 'composables/useArrayData';
/* basic input */
import VnSelect from 'components/common/VnSelect.vue'; import VnSelect from 'components/common/VnSelect.vue';
import VnInput from 'components/common/VnInput.vue'; import VnInput from 'components/common/VnInput.vue';
import VnInputDate from 'components/common/VnInputDate.vue'; import VnInputDate from 'components/common/VnInputDate.vue';
import VnInputTime from 'components/common/VnInputTime.vue'; import VnInputTime from 'components/common/VnInputTime.vue';
import VnTableColumn from 'components/VnTable/VnColumn.vue'; import VnColumn from 'components/VnTable/VnColumn.vue';
const $props = defineProps({ const $props = defineProps({
column: { column: {
@ -27,6 +25,10 @@ const $props = defineProps({
type: String, type: String,
default: 'table', default: 'table',
}, },
customClass: {
type: String,
default: '',
},
}); });
defineExpose({ addFilter, props: $props }); defineExpose({ addFilter, props: $props });
@ -34,7 +36,7 @@ defineExpose({ addFilter, props: $props });
const model = defineModel(undefined, { required: true }); const model = defineModel(undefined, { required: true });
const arrayData = useArrayData( const arrayData = useArrayData(
$props.dataKey, $props.dataKey,
$props.searchUrl ? { searchUrl: $props.searchUrl } : null $props.searchUrl ? { searchUrl: $props.searchUrl } : null,
); );
const columnFilter = computed(() => $props.column?.columnFilter); const columnFilter = computed(() => $props.column?.columnFilter);
@ -46,19 +48,18 @@ const enterEvent = {
const defaultAttrs = { const defaultAttrs = {
filled: !$props.showTitle, filled: !$props.showTitle,
class: 'q-px-xs q-pb-xs q-pt-none fit',
dense: true, dense: true,
}; };
const forceAttrs = { const forceAttrs = {
label: $props.showTitle ? '' : columnFilter.value?.label ?? $props.column.label, label: $props.showTitle ? '' : (columnFilter.value?.label ?? $props.column.label),
}; };
const selectComponent = { const selectComponent = {
component: markRaw(VnSelect), component: markRaw(VnSelect),
event: updateEvent, event: updateEvent,
attrs: { attrs: {
class: 'q-px-sm q-pb-xs q-pt-none fit', class: `q-pt-none fit ${$props.customClass}`,
dense: true, dense: true,
filled: !$props.showTitle, filled: !$props.showTitle,
}, },
@ -109,14 +110,24 @@ const components = {
component: markRaw(QCheckbox), component: markRaw(QCheckbox),
event: updateEvent, event: updateEvent,
attrs: { attrs: {
dense: true, class: $props.showTitle ? 'q-py-sm' : 'q-px-md q-py-xs fit',
class: $props.showTitle ? 'q-py-sm q-mt-md' : 'q-px-md q-py-xs fit',
'toggle-indeterminate': true, 'toggle-indeterminate': true,
size: 'sm',
}, },
forceAttrs, forceAttrs,
}, },
select: selectComponent, select: selectComponent,
rawSelect: selectComponent, rawSelect: selectComponent,
toggle: {
component: markRaw(QToggle),
event: updateEvent,
attrs: {
class: $props.showTitle ? 'q-py-sm' : 'q-px-md q-py-xs fit',
'toggle-indeterminate': true,
size: 'sm',
},
forceAttrs,
},
}; };
async function addFilter(value, name) { async function addFilter(value, name) {
@ -132,19 +143,8 @@ async function addFilter(value, name) {
await arrayData.addFilter({ params: { [field]: value } }); await arrayData.addFilter({ params: { [field]: value } });
} }
function alignRow() {
switch ($props.column.align) {
case 'left':
return 'justify-start items-start';
case 'right':
return 'justify-end items-end';
default:
return 'flex-center';
}
}
const showFilter = computed( const showFilter = computed(
() => $props.column?.columnFilter !== false && $props.column.name != 'tableActions' () => $props.column?.columnFilter !== false && $props.column.name != 'tableActions',
); );
const onTabPressed = async () => { const onTabPressed = async () => {
@ -152,13 +152,8 @@ const onTabPressed = async () => {
}; };
</script> </script>
<template> <template>
<div <div v-if="showFilter" class="full-width flex-center" style="overflow: hidden">
v-if="showFilter" <VnColumn
class="full-width"
:class="alignRow()"
style="max-height: 45px; overflow: hidden"
>
<VnTableColumn
:column="$props.column" :column="$props.column"
default="input" default="input"
v-model="model" v-model="model"
@ -168,3 +163,8 @@ const onTabPressed = async () => {
/> />
</div> </div>
</template> </template>
<style lang="scss" scoped>
label.vn-label-padding > .q-field__inner > .q-field__control {
padding: inherit !important;
}
</style>

View File

@ -41,6 +41,7 @@ async function orderBy(name, direction) {
break; break;
} }
if (!direction) return await arrayData.deleteOrder(name); if (!direction) return await arrayData.deleteOrder(name);
await arrayData.addOrder(name, direction); await arrayData.addOrder(name, direction);
} }
@ -51,45 +52,60 @@ defineExpose({ orderBy });
@mouseenter="hover = true" @mouseenter="hover = true"
@mouseleave="hover = false" @mouseleave="hover = false"
@click="orderBy(name, model?.direction)" @click="orderBy(name, model?.direction)"
class="row items-center no-wrap cursor-pointer" class="row items-center no-wrap cursor-pointer title"
> >
<span :title="label">{{ label }}</span> <span :title="label">{{ label }}</span>
<QChip <sup v-if="name && model?.index">
v-if="name" <QChip
:label="!vertical ? model?.index : ''" :label="!vertical ? model?.index : ''"
:icon=" :icon="
(model?.index || hover) && !vertical (model?.index || hover) && !vertical
? model?.direction == 'DESC' ? model?.direction == 'DESC'
? 'arrow_downward' ? 'arrow_downward'
: 'arrow_upward' : 'arrow_upward'
: undefined : undefined
" "
:size="vertical ? '' : 'sm'" :size="vertical ? '' : 'sm'"
:class="[ :class="[
model?.index ? 'color-vn-text' : 'bg-transparent', model?.index ? 'color-vn-text' : 'bg-transparent',
vertical ? 'q-px-none' : '', vertical ? 'q-px-none' : '',
]" ]"
class="no-box-shadow" class="no-box-shadow"
:clickable="true" :clickable="true"
style="min-width: 40px" style="min-width: 40px; max-height: 30px"
>
<div
class="column flex-center"
v-if="vertical"
:style="!model?.index && 'color: #5d5d5d'"
> >
{{ model?.index }} <div
<QIcon class="column flex-center"
:name=" v-if="vertical"
model?.index :style="!model?.index && 'color: #5d5d5d'"
? model?.direction == 'DESC' >
? 'arrow_downward' {{ model?.index }}
: 'arrow_upward' <QIcon
: 'swap_vert' :name="
" model?.index
size="xs" ? model?.direction == 'DESC'
/> ? 'arrow_downward'
</div> : 'arrow_upward'
</QChip> : 'swap_vert'
"
size="xs"
/>
</div>
</QChip>
</sup>
</div> </div>
</template> </template>
<style lang="scss" scoped>
.title {
display: flex;
justify-content: center;
align-items: center;
height: 30px;
width: 100%;
color: var(--vn-label-color);
}
sup {
vertical-align: super; /* Valor predeterminado */
/* También puedes usar otros valores como "baseline", "top", "text-top", etc. */
}
</style>

View File

@ -1,22 +1,37 @@
<script setup> <script setup>
import { ref, onBeforeMount, onMounted, computed, watch, useAttrs } from 'vue'; import {
ref,
onBeforeMount,
onMounted,
onUnmounted,
computed,
watch,
h,
render,
inject,
useAttrs,
} from 'vue';
import { useArrayData } from 'src/composables/useArrayData';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { useRoute, useRouter } from 'vue-router'; import { useRoute, useRouter } from 'vue-router';
import { useQuasar } from 'quasar'; import { useQuasar } from 'quasar';
import { useStateStore } from 'stores/useStateStore'; import { useStateStore } from 'stores/useStateStore';
import { useFilterParams } from 'src/composables/useFilterParams'; import { useFilterParams } from 'src/composables/useFilterParams';
import { dashIfEmpty } from 'src/filters';
import CrudModel from 'src/components/CrudModel.vue'; import CrudModel from 'src/components/CrudModel.vue';
import FormModelPopup from 'components/FormModelPopup.vue'; import FormModelPopup from 'components/FormModelPopup.vue';
import VnTableColumn from 'components/VnTable/VnColumn.vue'; import VnColumn from 'components/VnTable/VnColumn.vue';
import VnFilter from 'components/VnTable/VnFilter.vue'; import VnFilter from 'components/VnTable/VnFilter.vue';
import VnTableChip from 'components/VnTable/VnChip.vue'; import VnTableChip from 'components/VnTable/VnChip.vue';
import VnVisibleColumn from 'src/components/VnTable/VnVisibleColumn.vue'; import VnVisibleColumn from 'src/components/VnTable/VnVisibleColumn.vue';
import VnLv from 'components/ui/VnLv.vue'; import VnLv from 'components/ui/VnLv.vue';
import VnTableOrder from 'src/components/VnTable/VnOrder.vue'; import VnTableOrder from 'src/components/VnTable/VnOrder.vue';
import VnTableFilter from './VnTableFilter.vue'; import VnTableFilter from './VnTableFilter.vue';
import { getColAlign } from 'src/composables/getColAlign';
const arrayData = useArrayData(useAttrs()['data-key']);
const $props = defineProps({ const $props = defineProps({
columns: { columns: {
type: Array, type: Array,
@ -42,10 +57,6 @@ const $props = defineProps({
type: [Function, Boolean], type: [Function, Boolean],
default: null, default: null,
}, },
rowCtrlClick: {
type: [Function, Boolean],
default: null,
},
redirect: { redirect: {
type: String, type: String,
default: null, default: null,
@ -114,7 +125,19 @@ const $props = defineProps({
type: Boolean, type: Boolean,
default: false, default: false,
}, },
withFilters: {
type: Boolean,
default: true,
},
overlay: {
type: Boolean,
default: false,
},
createComplement: {
type: Object,
},
}); });
const { t } = useI18n(); const { t } = useI18n();
const stateStore = useStateStore(); const stateStore = useStateStore();
const route = useRoute(); const route = useRoute();
@ -132,10 +155,18 @@ const showForm = ref(false);
const splittedColumns = ref({ columns: [] }); const splittedColumns = ref({ columns: [] });
const columnsVisibilitySkipped = ref(); const columnsVisibilitySkipped = ref();
const createForm = ref(); const createForm = ref();
const createRef = ref(null);
const tableRef = ref(); const tableRef = ref();
const params = ref(useFilterParams($attrs['data-key']).params); const params = ref(useFilterParams($attrs['data-key']).params);
const orders = ref(useFilterParams($attrs['data-key']).orders); const orders = ref(useFilterParams($attrs['data-key']).orders);
const app = inject('app');
const editingRow = ref(null);
const editingField = ref(null);
const isTableMode = computed(() => mode.value == TABLE_MODE);
const showRightIcon = computed(() => $props.rightSearch || $props.rightSearchIcon);
const selectRegex = /select/;
const emit = defineEmits(['onFetch', 'update:selected', 'saveChanges']);
const tableModes = [ const tableModes = [
{ {
icon: 'view_column', icon: 'view_column',
@ -156,7 +187,8 @@ onBeforeMount(() => {
hasParams.value = urlParams && Object.keys(urlParams).length !== 0; hasParams.value = urlParams && Object.keys(urlParams).length !== 0;
}); });
onMounted(() => { onMounted(async () => {
if ($props.isEditable) document.addEventListener('click', clickHandler);
mode.value = mode.value =
quasar.platform.is.mobile && !$props.disableOption?.card quasar.platform.is.mobile && !$props.disableOption?.card
? CARD_MODE ? CARD_MODE
@ -178,14 +210,25 @@ onMounted(() => {
} }
}); });
onUnmounted(async () => {
if ($props.isEditable) document.removeEventListener('click', clickHandler);
});
watch( watch(
() => $props.columns, () => $props.columns,
(value) => splitColumns(value), (value) => splitColumns(value),
{ immediate: true }, { immediate: true },
); );
const isTableMode = computed(() => mode.value == TABLE_MODE); defineExpose({
const showRightIcon = computed(() => $props.rightSearch || $props.rightSearchIcon); create: createForm,
reload,
redirect: redirectFn,
selected,
CrudModelRef,
params,
tableRef,
});
function splitColumns(columns) { function splitColumns(columns) {
splittedColumns.value = { splittedColumns.value = {
@ -231,16 +274,6 @@ const rowClickFunction = computed(() => {
return () => {}; return () => {};
}); });
const rowCtrlClickFunction = computed(() => {
if ($props.rowCtrlClick != undefined) return $props.rowCtrlClick;
if ($props.redirect)
return (evt, { id }) => {
stopEventPropagation(evt);
window.open(`/#/${$props.redirect}/${id}`, '_blank');
};
return () => {};
});
function redirectFn(id) { function redirectFn(id) {
router.push({ path: `/${$props.redirect}/${id}` }); router.push({ path: `/${$props.redirect}/${id}` });
} }
@ -262,21 +295,6 @@ function columnName(col) {
return name; return name;
} }
function getColAlign(col) {
return 'text-' + (col.align ?? 'left');
}
const emit = defineEmits(['onFetch', 'update:selected', 'saveChanges']);
defineExpose({
create: createForm,
reload,
redirect: redirectFn,
selected,
CrudModelRef,
params,
tableRef,
});
function handleOnDataSaved(_) { function handleOnDataSaved(_) {
if (_.onDataSaved) _.onDataSaved({ CrudModelRef: CrudModelRef.value }); if (_.onDataSaved) _.onDataSaved({ CrudModelRef: CrudModelRef.value });
else $props.create.onDataSaved(_); else $props.create.onDataSaved(_);
@ -304,6 +322,214 @@ function handleSelection({ evt, added, rows: selectedRows }, rows) {
} }
} }
} }
function isEditableColumn(column) {
const isEditableCol = column?.isEditable ?? true;
const isVisible = column?.visible ?? true;
const hasComponent = column?.component;
return $props.isEditable && isVisible && hasComponent && isEditableCol;
}
function hasEditableFormat(column) {
if (isEditableColumn(column)) return 'editable-text';
}
const clickHandler = async (event) => {
const clickedElement = event.target.closest('td');
const isDateElement = event.target.closest('.q-date');
const isTimeElement = event.target.closest('.q-time');
if (isDateElement || isTimeElement) return;
if (clickedElement === null) {
destroyInput(editingRow.value, editingField.value);
return;
}
const rowIndex = clickedElement.getAttribute('data-row-index');
const colField = clickedElement.getAttribute('data-col-field');
const column = $props.columns.find((col) => col.name === colField);
if (editingRow.value !== null && editingField.value !== null) {
if (editingRow.value === rowIndex && editingField.value === colField) {
return;
}
destroyInput(editingRow.value, editingField.value);
}
if (isEditableColumn(column))
await renderInput(Number(rowIndex), colField, clickedElement);
};
async function handleTabKey(event, rowIndex, colField) {
if (editingRow.value == rowIndex && editingField.value == colField)
destroyInput(editingRow.value, editingField.value);
const direction = event.shiftKey ? -1 : 1;
const { nextRowIndex, nextColumnName } = await handleTabNavigation(
rowIndex,
colField,
direction,
);
if (nextRowIndex < 0 || nextRowIndex >= arrayData.store.data.length) return;
event.preventDefault();
await renderInput(nextRowIndex, nextColumnName, null);
}
async function renderInput(rowId, field, clickedElement) {
editingField.value = field;
editingRow.value = rowId;
const originalColumn = $props.columns.find((col) => col.name === field);
const column = { ...originalColumn, ...{ label: '' } };
const row = CrudModelRef.value.formData[rowId];
const oldValue = CrudModelRef.value.formData[rowId][column?.name];
if (!clickedElement)
clickedElement = document.querySelector(
`[data-row-index="${rowId}"][data-col-field="${field}"]`,
);
Array.from(clickedElement.childNodes).forEach((child) => {
child.style.visibility = 'hidden';
child.style.position = 'relative';
});
const isSelect = selectRegex.test(column?.component);
if (isSelect) column.attrs = { ...column.attrs, 'emit-value': false };
const node = h(VnColumn, {
row: row,
class: 'temp-input',
column: column,
modelValue: row[column.name],
componentProp: 'columnField',
autofocus: true,
focusOnMount: true,
eventHandlers: {
'update:modelValue': async (value) => {
if (isSelect) {
row[column.name] = value[column.attrs?.optionValue ?? 'id'];
row[column?.name + 'TextValue'] =
value[column.attrs?.optionLabel ?? 'name'];
await column?.cellEvent?.['update:modelValue']?.(
value,
oldValue,
row,
);
} else row[column.name] = value;
await column?.cellEvent?.['update:modelValue']?.(value, oldValue, row);
},
keyup: async (event) => {
if (event.key === 'Enter') handleBlur(rowId, field, clickedElement);
},
keydown: async (event) => {
switch (event.key) {
case 'Tab':
await handleTabKey(event, rowId, field);
event.stopPropagation();
break;
case 'Escape':
destroyInput(rowId, field, clickedElement);
break;
default:
break;
}
},
click: (event) => {
column?.cellEvent?.['click']?.(event, row);
},
},
});
node.appContext = app._context;
render(node, clickedElement);
if (['checkbox', 'toggle', undefined].includes(column?.component))
node.el?.querySelector('span > div').focus();
}
function destroyInput(rowIndex, field, clickedElement) {
if (!clickedElement)
clickedElement = document.querySelector(
`[data-row-index="${rowIndex}"][data-col-field="${field}"]`,
);
if (clickedElement) {
render(null, clickedElement);
Array.from(clickedElement.childNodes).forEach((child) => {
child.style.visibility = 'visible';
child.style.position = '';
});
}
if (editingRow.value !== rowIndex || editingField.value !== field) return;
editingRow.value = null;
editingField.value = null;
}
function handleBlur(rowIndex, field, clickedElement) {
destroyInput(rowIndex, field, clickedElement);
}
async function handleTabNavigation(rowIndex, colName, direction) {
const columns = $props.columns;
const totalColumns = columns.length;
let currentColumnIndex = columns.findIndex((col) => col.name === colName);
let iterations = 0;
let newColumnIndex = currentColumnIndex;
do {
iterations++;
newColumnIndex = (newColumnIndex + direction + totalColumns) % totalColumns;
if (isEditableColumn(columns[newColumnIndex])) break;
} while (iterations < totalColumns);
if (iterations >= totalColumns) {
return;
}
if (direction === 1 && newColumnIndex <= currentColumnIndex) {
rowIndex++;
} else if (direction === -1 && newColumnIndex >= currentColumnIndex) {
rowIndex--;
}
return { nextRowIndex: rowIndex, nextColumnName: columns[newColumnIndex].name };
}
function getCheckboxIcon(value) {
switch (typeof value) {
case 'boolean':
return value ? 'check' : 'close';
case 'number':
return value === 0 ? 'close' : 'check';
case 'undefined':
return 'indeterminate_check_box';
default:
return 'indeterminate_check_box';
}
}
function getToggleIcon(value) {
if (value === null) return 'help_outline';
return value ? 'toggle_on' : 'toggle_off';
}
function formatColumnValue(col, row, dashIfEmpty) {
if (col?.format) {
if (selectRegex.test(col?.component) && row[col?.name + 'TextValue']) {
return dashIfEmpty(row[col?.name + 'TextValue']);
} else {
return col.format(row, dashIfEmpty);
}
} else {
return dashIfEmpty(row[col?.name]);
}
}
const checkbox = ref(null);
</script> </script>
<template> <template>
<QDrawer <QDrawer
@ -311,7 +537,7 @@ function handleSelection({ evt, added, rows: selectedRows }, rows) {
v-model="stateStore.rightDrawer" v-model="stateStore.rightDrawer"
side="right" side="right"
:width="256" :width="256"
show-if-above :overlay="$props.overlay"
> >
<QScrollArea class="fit"> <QScrollArea class="fit">
<VnTableFilter <VnTableFilter
@ -332,7 +558,7 @@ function handleSelection({ evt, added, rows: selectedRows }, rows) {
<CrudModel <CrudModel
v-bind="$attrs" v-bind="$attrs"
:class="$attrs['class'] ?? 'q-px-md'" :class="$attrs['class'] ?? 'q-px-md'"
:limit="$attrs['limit'] ?? 20" :limit="$attrs['limit'] ?? 100"
ref="CrudModelRef" ref="CrudModelRef"
@on-fetch="(...args) => emit('onFetch', ...args)" @on-fetch="(...args) => emit('onFetch', ...args)"
:search-url="searchUrl" :search-url="searchUrl"
@ -348,8 +574,12 @@ function handleSelection({ evt, added, rows: selectedRows }, rows) {
<QTable <QTable
ref="tableRef" ref="tableRef"
v-bind="table" v-bind="table"
class="vnTable" :class="[
:class="{ 'last-row-sticky': $props.footer }" 'vnTable',
table ? 'selection-cell' : '',
$props.footer ? 'last-row-sticky' : '',
]"
wrap-cells
:columns="splittedColumns.columns" :columns="splittedColumns.columns"
:rows="rows" :rows="rows"
v-model:selected="selected" v-model:selected="selected"
@ -365,9 +595,10 @@ function handleSelection({ evt, added, rows: selectedRows }, rows) {
@selection="(details) => handleSelection(details, rows)" @selection="(details) => handleSelection(details, rows)"
> >
<template #top-left v-if="!$props.withoutHeader"> <template #top-left v-if="!$props.withoutHeader">
<slot name="top-left"></slot> <slot name="top-left"> </slot>
</template> </template>
<template #top-right v-if="!$props.withoutHeader"> <template #top-right v-if="!$props.withoutHeader">
<slot name="top-right"></slot>
<VnVisibleColumn <VnVisibleColumn
v-if="isTableMode" v-if="isTableMode"
v-model="splittedColumns.columns" v-model="splittedColumns.columns"
@ -381,6 +612,7 @@ function handleSelection({ evt, added, rows: selectedRows }, rows) {
dense dense
:options="tableModes.filter((mode) => !mode.disable)" :options="tableModes.filter((mode) => !mode.disable)"
/> />
<QBtn <QBtn
v-if="showRightIcon" v-if="showRightIcon"
icon="filter_alt" icon="filter_alt"
@ -392,32 +624,38 @@ function handleSelection({ evt, added, rows: selectedRows }, rows) {
<template #header-cell="{ col }"> <template #header-cell="{ col }">
<QTh <QTh
v-if="col.visible ?? true" v-if="col.visible ?? true"
:style="col.headerStyle" class="body-cell"
:class="col.headerClass" :style="col?.width ? `max-width: ${col?.width}` : ''"
style="padding: inherit"
> >
<div <div
class="column ellipsis" class="no-padding"
:class="`text-${col?.align ?? 'left'}`" :style="
:style="$props.columnSearch ? 'height: 75px' : ''" withFilters && $props.columnSearch ? 'height: 75px' : ''
"
> >
<div class="row items-center no-wrap" style="height: 30px"> <div class="text-center" style="height: 30px">
<QTooltip v-if="col.toolTip">{{ col.toolTip }}</QTooltip> <QTooltip v-if="col.toolTip">{{ col.toolTip }}</QTooltip>
<VnTableOrder <VnTableOrder
v-model="orders[col.orderBy ?? col.name]" v-model="orders[col.orderBy ?? col.name]"
:name="col.orderBy ?? col.name" :name="col.orderBy ?? col.name"
:label="col?.label" :label="col?.labelAbbreviation ?? col?.label"
:data-key="$attrs['data-key']" :data-key="$attrs['data-key']"
:search-url="searchUrl" :search-url="searchUrl"
/> />
</div> </div>
<VnFilter <VnFilter
v-if="$props.columnSearch" v-if="
$props.columnSearch &&
col.columnSearch !== false &&
withFilters
"
:column="col" :column="col"
:show-title="true" :show-title="true"
:data-key="$attrs['data-key']" :data-key="$attrs['data-key']"
v-model="params[columnName(col)]" v-model="params[columnName(col)]"
:search-url="searchUrl" :search-url="searchUrl"
class="full-width" customClass="header-filter"
/> />
</div> </div>
</QTh> </QTh>
@ -435,32 +673,63 @@ function handleSelection({ evt, added, rows: selectedRows }, rows) {
</QTd> </QTd>
</template> </template>
<template #body-cell="{ col, row, rowIndex }"> <template #body-cell="{ col, row, rowIndex }">
<!-- Columns -->
<QTd <QTd
auto-width class="no-margin q-px-xs"
class="no-margin"
:class="[getColAlign(col), col.columnClass]"
:style="col.style"
v-if="col.visible ?? true" v-if="col.visible ?? true"
@click.ctrl=" :style="{
($event) => 'max-width': col?.width ?? false,
rowCtrlClickFunction && rowCtrlClickFunction($event, row) position: 'relative',
" }"
:class="[
col.columnClass,
'body-cell no-margin no-padding',
getColAlign(col),
]"
:data-row-index="rowIndex"
:data-col-field="col?.name"
> >
<slot <div
:name="`column-${col.name}`" class="no-padding no-margin peter"
:col="col" style="
:row="row" overflow: hidden;
:row-index="rowIndex" text-overflow: ellipsis;
white-space: nowrap;
"
> >
<VnTableColumn <slot
:column="col" :name="`column-${col.name}`"
:col="col"
:row="row" :row="row"
:is-editable="col.isEditable ?? isEditable" :row-index="rowIndex"
v-model="row[col.name]" >
component-prop="columnField" <QIcon
/> v-if="col?.component === 'toggle'"
</slot> :name="
col?.getIcon
? col.getIcon(row[col?.name])
: getToggleIcon(row[col?.name])
"
style="color: var(--vn-text-color)"
:class="hasEditableFormat(col)"
size="14px"
/>
<QIcon
v-else-if="col?.component === 'checkbox'"
:name="getCheckboxIcon(row[col?.name])"
style="color: var(--vn-text-color)"
:class="hasEditableFormat(col)"
size="14px"
/>
<span
v-else
:class="hasEditableFormat(col)"
:style="col?.style ? col.style(row) : null"
style="bottom: 0"
>
{{ formatColumnValue(col, row, dashIfEmpty) }}
</span>
</slot>
</div>
</QTd> </QTd>
</template> </template>
<template #body-cell-tableActions="{ col, row }"> <template #body-cell-tableActions="{ col, row }">
@ -500,7 +769,7 @@ function handleSelection({ evt, added, rows: selectedRows }, rows) {
<QCard <QCard
bordered bordered
flat flat
class="row no-wrap justify-between cursor-pointer" class="row no-wrap justify-between cursor-pointer q-pa-sm"
@click=" @click="
(_, row) => { (_, row) => {
$props.rowClick && $props.rowClick(row); $props.rowClick && $props.rowClick(row);
@ -563,7 +832,7 @@ function handleSelection({ evt, added, rows: selectedRows }, rows) {
:row="row" :row="row"
:row-index="index" :row-index="index"
> >
<VnTableColumn <VnColumn
:column="col" :column="col"
:row="row" :row="row"
:is-editable="false" :is-editable="false"
@ -581,7 +850,6 @@ function handleSelection({ evt, added, rows: selectedRows }, rows) {
<!-- Actions --> <!-- Actions -->
<QCardSection <QCardSection
v-if="colsMap.tableActions" v-if="colsMap.tableActions"
class="column flex-center w-10 no-margin q-pa-xs q-gutter-y-xs"
@click="stopEventPropagation($event)" @click="stopEventPropagation($event)"
> >
<QBtn <QBtn
@ -604,14 +872,17 @@ function handleSelection({ evt, added, rows: selectedRows }, rows) {
</component> </component>
</template> </template>
<template #bottom-row="{ cols }" v-if="$props.footer"> <template #bottom-row="{ cols }" v-if="$props.footer">
<QTr v-if="rows.length" style="height: 30px"> <QTr v-if="rows.length" style="height: 45px">
<QTh v-if="table.selection" />
<QTh <QTh
v-for="col of cols.filter((cols) => cols.visible ?? true)" v-for="col of cols.filter((cols) => cols.visible ?? true)"
:key="col?.id" :key="col?.id"
class="text-center"
:class="getColAlign(col)" :class="getColAlign(col)"
> >
<slot :name="`column-footer-${col.name}`" /> <slot
:name="`column-footer-${col.name}`"
:isEditableColumn="isEditableColumn(col)"
/>
</QTh> </QTh>
</QTr> </QTr>
</template> </template>
@ -630,7 +901,7 @@ function handleSelection({ evt, added, rows: selectedRows }, rows) {
size="md" size="md"
round round
flat flat
shortcut="+" v-shortcut="'+'"
:disabled="!disabledAttr" :disabled="!disabledAttr"
/> />
<QTooltip> <QTooltip>
@ -648,39 +919,60 @@ function handleSelection({ evt, added, rows: selectedRows }, rows) {
color="primary" color="primary"
fab fab
icon="add" icon="add"
shortcut="+" v-shortcut="'+'"
data-cy="vnTableCreateBtn" data-cy="vnTableCreateBtn"
/> />
<QTooltip self="top right"> <QTooltip self="top right">
{{ createForm?.title }} {{ createForm?.title }}
</QTooltip> </QTooltip>
</QPageSticky> </QPageSticky>
<QDialog v-model="showForm" transition-show="scale" transition-hide="scale"> <QDialog
v-model="showForm"
transition-show="scale"
transition-hide="scale"
:full-width="createComplement?.isFullWidth ?? false"
@before-hide="
() => {
if (createRef.isSaveAndContinue) {
showForm = true;
createForm.formInitialData = { ...create.formInitialData };
}
}
"
data-cy="vn-table-create-dialog"
>
<FormModelPopup <FormModelPopup
ref="createRef"
v-bind="createForm" v-bind="createForm"
:model="$attrs['data-key'] + 'Create'" :model="$attrs['data-key'] + 'Create'"
@on-data-saved="(_, res) => createForm.onDataSaved(res)" @on-data-saved="(_, res) => createForm.onDataSaved(res)"
> >
<template #form-inputs="{ data }"> <template #form-inputs="{ data }">
<div class="grid-create"> <div :style="createComplement?.containerStyle">
<slot <div>
v-for="column of splittedColumns.create" <slot name="previous-create-dialog" :data="data" />
:key="column.name" </div>
:name="`column-create-${column.name}`" <div class="grid-create" :style="createComplement?.columnGridStyle">
:data="data" <slot
:column-name="column.name" v-for="column of splittedColumns.create"
:label="column.label" :key="column.name"
> :name="`column-create-${column.name}`"
<VnTableColumn :data="data"
:column="column" :column-name="column.name"
:row="{}" :label="column.label"
default="input" >
v-model="data[column.name]" <VnColumn
:show-label="true" :column="column"
component-prop="columnCreate" :row="{}"
/> default="input"
</slot> v-model="data[column.name]"
<slot name="more-create-dialog" :data="data" /> :show-label="true"
component-prop="columnCreate"
:data-cy="`${column.name}-create-popup`"
/>
</slot>
<slot name="more-create-dialog" :data="data" />
</div>
</div> </div>
</template> </template>
</FormModelPopup> </FormModelPopup>
@ -698,6 +990,42 @@ es:
</i18n> </i18n>
<style lang="scss"> <style lang="scss">
.selection-cell {
table td:first-child {
padding: 0px;
}
}
.side-padding {
padding-left: 1px;
padding-right: 1px;
}
.editable-text:hover {
border-bottom: 1px dashed var(--q-primary);
@extend .side-padding;
}
.editable-text {
border-bottom: 1px dashed var(--vn-label-color);
@extend .side-padding;
}
.cell-input {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
padding-top: 0px !important;
}
.q-field--labeled .q-field__native,
.q-field--labeled .q-field__prefix,
.q-field--labeled .q-field__suffix {
padding-top: 20px;
}
.body-cell {
padding-left: 2px !important;
padding-right: 2px !important;
position: relative;
}
.bg-chip-secondary { .bg-chip-secondary {
background-color: var(--vn-page-color); background-color: var(--vn-page-color);
color: var(--vn-text-color); color: var(--vn-text-color);
@ -714,7 +1042,7 @@ es:
.grid-three { .grid-three {
display: grid; display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, max-content)); grid-template-columns: repeat(auto-fit, minmax(150px, max-content));
max-width: 100%; max-width: 100%;
grid-gap: 20px; grid-gap: 20px;
margin: 0 auto; margin: 0 auto;
@ -723,7 +1051,6 @@ es:
.grid-create { .grid-create {
display: grid; display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, max-content)); grid-template-columns: repeat(auto-fit, minmax(150px, max-content));
max-width: 100%;
grid-gap: 20px; grid-gap: 20px;
margin: 0 auto; margin: 0 auto;
} }
@ -739,7 +1066,9 @@ es:
} }
} }
} }
.q-table tbody tr td {
position: relative;
}
.q-table { .q-table {
th { th {
padding: 0; padding: 0;
@ -807,12 +1136,15 @@ es:
.grid-two { .grid-two {
display: grid; display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, max-content)); grid-template-columns: 2fr 2fr;
max-width: 100%; .vn-label-value {
margin: 0 auto; flex-direction: column;
overflow: scroll; white-space: nowrap;
white-space: wrap; .fields {
width: 100%; display: flex;
}
}
white-space: nowrap;
} }
.w-80 { .w-80 {
@ -836,4 +1168,15 @@ es:
.q-table__middle.q-virtual-scroll.q-virtual-scroll--vertical.scroll { .q-table__middle.q-virtual-scroll.q-virtual-scroll--vertical.scroll {
background-color: var(--vn-section-color); background-color: var(--vn-section-color);
} }
.temp-input {
top: 0;
position: absolute;
width: 100%;
height: 100%;
display: flex;
}
label.header-filter > .q-field__inner > .q-field__control {
padding: inherit;
}
</style> </style>

View File

@ -27,31 +27,36 @@ function columnName(col) {
</script> </script>
<template> <template>
<VnFilterPanel v-bind="$attrs" :search-button="true" :disable-submit-event="true"> <VnFilterPanel v-bind="$attrs" :search-button="true" :disable-submit-event="true">
<template #body="{ params, orders }"> <template #body="{ params, orders, searchFn }">
<div <div
class="row no-wrap flex-center" class="container"
v-for="col of columns.filter((c) => c.columnFilter ?? true)" v-for="col of columns.filter((c) => c.columnFilter ?? true)"
:key="col.id" :key="col.id"
> >
<VnFilter <div class="filter">
ref="tableFilterRef" <VnFilter
:column="col" ref="tableFilterRef"
:data-key="$attrs['data-key']" :column="col"
v-model="params[columnName(col)]" :data-key="$attrs['data-key']"
:search-url="searchUrl" v-model="params[columnName(col)]"
/> :search-url="searchUrl"
<VnTableOrder />
v-if="col?.columnFilter !== false && col?.name !== 'tableActions'" </div>
v-model="orders[col.orderBy ?? col.name]" <div class="order">
:name="col.orderBy ?? col.name" <VnTableOrder
:data-key="$attrs['data-key']" v-if="col?.columnFilter !== false && col?.name !== 'tableActions'"
:search-url="searchUrl" v-model="orders[col.orderBy ?? col.name]"
:vertical="true" :name="col.orderBy ?? col.name"
/> :data-key="$attrs['data-key']"
:search-url="searchUrl"
:vertical="true"
/>
</div>
</div> </div>
<slot <slot
name="moreFilterPanel" name="moreFilterPanel"
:params="params" :params="params"
:search-fn="searchFn"
:orders="orders" :orders="orders"
:columns="columns" :columns="columns"
/> />
@ -67,3 +72,21 @@ function columnName(col) {
</template> </template>
</VnFilterPanel> </VnFilterPanel>
</template> </template>
<style lang="scss" scoped>
.container {
display: flex;
justify-content: center;
align-items: center;
height: 45px;
gap: 10px;
}
.filter {
width: 70%;
height: 40px;
text-align: center;
}
.order {
width: 10%;
}
</style>

View File

@ -32,16 +32,21 @@ const areAllChecksMarked = computed(() => {
function setUserConfigViewData(data, isLocal) { function setUserConfigViewData(data, isLocal) {
if (!data) return; if (!data) return;
// Importante: El name de las columnas de la tabla debe conincidir con el name de las variables que devuelve la view config
if (!isLocal) localColumns.value = []; if (!isLocal) localColumns.value = [];
// Array to Object
const skippeds = $props.skip.reduce((a, v) => ({ ...a, [v]: v }), {}); const skippeds = $props.skip.reduce((a, v) => ({ ...a, [v]: v }), {});
for (let column of columns.value) { for (let column of columns.value) {
const { label, name } = column; const { label, name, labelAbbreviation } = column;
if (skippeds[name]) continue; if (skippeds[name]) continue;
column.visible = data[name] ?? true; column.visible = data[name] ?? true;
if (!isLocal) localColumns.value.push({ name, label, visible: column.visible }); if (!isLocal)
localColumns.value.push({
name,
label,
labelAbbreviation,
visible: column.visible,
});
} }
} }
@ -152,7 +157,11 @@ onMounted(async () => {
<QCheckbox <QCheckbox
v-for="col in localColumns" v-for="col in localColumns"
:key="col.name" :key="col.name"
:label="col.label ?? col.name" :label="
col?.labelAbbreviation
? col.labelAbbreviation + ` (${col.label ?? col.name})`
: (col.label ?? col.name)
"
v-model="col.visible" v-model="col.visible"
/> />
</div> </div>

View File

@ -93,7 +93,7 @@ describe('FormModel', () => {
it('should call axios.patch with the right data', async () => { it('should call axios.patch with the right data', async () => {
const spy = vi.spyOn(axios, 'patch').mockResolvedValue({ data: {} }); const spy = vi.spyOn(axios, 'patch').mockResolvedValue({ data: {} });
const { vm } = mount({ propsData: { url, model, formInitialData } }); const { vm } = mount({ propsData: { url, model } });
vm.formData.mockKey = 'newVal'; vm.formData.mockKey = 'newVal';
await vm.$nextTick(); await vm.$nextTick();
await vm.save(); await vm.save();
@ -106,6 +106,7 @@ describe('FormModel', () => {
const { vm } = mount({ const { vm } = mount({
propsData: { url, model, formInitialData, urlCreate: 'mockUrlCreate' }, propsData: { url, model, formInitialData, urlCreate: 'mockUrlCreate' },
}); });
await vm.$nextTick();
vm.formData.mockKey = 'newVal'; vm.formData.mockKey = 'newVal';
await vm.$nextTick(); await vm.$nextTick();
await vm.save(); await vm.save();
@ -119,7 +120,7 @@ describe('FormModel', () => {
}); });
const spyPatch = vi.spyOn(axios, 'patch').mockResolvedValue({ data: {} }); const spyPatch = vi.spyOn(axios, 'patch').mockResolvedValue({ data: {} });
const spySaveFn = vi.spyOn(vm.$props, 'saveFn'); const spySaveFn = vi.spyOn(vm.$props, 'saveFn');
await vm.$nextTick();
vm.formData.mockKey = 'newVal'; vm.formData.mockKey = 'newVal';
await vm.$nextTick(); await vm.$nextTick();
await vm.save(); await vm.save();

View File

@ -1,9 +1,12 @@
import { vi, describe, expect, it, beforeAll } from 'vitest'; import { vi, describe, expect, it, beforeAll, beforeEach, afterEach } from 'vitest';
import { createWrapper, axios } from 'app/test/vitest/helper'; import { createWrapper, axios } from 'app/test/vitest/helper';
import Leftmenu from 'components/LeftMenu.vue'; import Leftmenu from 'components/LeftMenu.vue';
import * as vueRouter from 'vue-router';
import { useNavigationStore } from 'src/stores/useNavigationStore'; import { useNavigationStore } from 'src/stores/useNavigationStore';
let vm;
let navigation;
vi.mock('src/router/modules', () => ({ vi.mock('src/router/modules', () => ({
default: [ default: [
{ {
@ -21,6 +24,16 @@ vi.mock('src/router/modules', () => ({
{ {
path: '', path: '',
name: 'CustomerMain', name: 'CustomerMain',
meta: {
menu: 'Customer',
menuChildren: [
{
name: 'CustomerCreditContracts',
title: 'creditContracts',
icon: 'vn:solunion',
},
],
},
children: [ children: [
{ {
path: 'list', path: 'list',
@ -28,6 +41,13 @@ vi.mock('src/router/modules', () => ({
meta: { meta: {
title: 'list', title: 'list',
icon: 'view_list', icon: 'view_list',
menuChildren: [
{
name: 'CustomerCreditContracts',
title: 'creditContracts',
icon: 'vn:solunion',
},
],
}, },
}, },
{ {
@ -44,51 +64,325 @@ vi.mock('src/router/modules', () => ({
}, },
], ],
})); }));
vi.spyOn(vueRouter, 'useRoute').mockReturnValue({
describe('Leftmenu', () => { matched: [
let vm; {
let navigation; path: '/',
beforeAll(() => { redirect: {
vi.spyOn(axios, 'get').mockResolvedValue({ name: 'Dashboard',
data: [],
});
vm = createWrapper(Leftmenu, {
propsData: {
source: 'main',
}, },
}).vm; name: 'Main',
meta: {},
navigation = useNavigationStore(); props: {
navigation.fetchPinned = vi.fn().mockReturnValue(Promise.resolve(true)); default: false,
navigation.getModules = vi.fn().mockReturnValue({ },
value: [ children: [
{ {
name: 'customer', path: '/dashboard',
title: 'customer.pageTitles.customers', name: 'Dashboard',
icon: 'vn:customer', meta: {
module: 'customer', title: 'dashboard',
icon: 'dashboard',
},
}, },
], ],
},
{
path: '/customer',
redirect: {
name: 'CustomerMain',
},
name: 'Customer',
meta: {
title: 'customers',
icon: 'vn:client',
moduleName: 'Customer',
keyBinding: 'c',
menu: 'customer',
},
},
],
query: {},
params: {},
meta: { moduleName: 'mockName' },
path: 'mockName/1',
name: 'Customer',
});
function mount(source = 'main') {
vi.spyOn(axios, 'get').mockResolvedValue({
data: [],
});
const wrapper = createWrapper(Leftmenu, {
propsData: {
source,
},
});
navigation = useNavigationStore();
navigation.fetchPinned = vi.fn().mockReturnValue(Promise.resolve(true));
navigation.getModules = vi.fn().mockReturnValue({
value: [
{
name: 'customer',
title: 'customer.pageTitles.customers',
icon: 'vn:customer',
module: 'customer',
},
],
});
return wrapper;
}
describe('getRoutes', () => {
afterEach(() => vi.clearAllMocks());
const getRoutes = vi.fn().mockImplementation((props, getMethodA, getMethodB) => {
const handleRoutes = {
methodA: getMethodA,
methodB: getMethodB,
};
try {
handleRoutes[props.source]();
} catch (error) {
throw Error('Method not defined');
}
});
const getMethodA = vi.fn();
const getMethodB = vi.fn();
const fn = (props) => getRoutes(props, getMethodA, getMethodB);
it('should call getMethodB when source is card', () => {
let props = { source: 'methodB' };
fn(props);
expect(getMethodB).toHaveBeenCalled();
expect(getMethodA).not.toHaveBeenCalled();
});
it('should call getMethodA when source is main', () => {
let props = { source: 'methodA' };
fn(props);
expect(getMethodA).toHaveBeenCalled();
expect(getMethodB).not.toHaveBeenCalled();
});
it('should call getMethodA when source is not exists or undefined', () => {
let props = { source: 'methodC' };
expect(() => fn(props)).toThrowError('Method not defined');
expect(getMethodA).not.toHaveBeenCalled();
expect(getMethodB).not.toHaveBeenCalled();
});
});
describe('Leftmenu as card', () => {
beforeAll(() => {
vm = mount('card').vm;
});
it('should get routes for card source', async () => {
vm.getRoutes();
});
});
describe('Leftmenu as main', () => {
beforeEach(() => {
vm = mount().vm;
});
it('should initialize with default props', () => {
expect(vm.source).toBe('main');
});
it('should filter items based on search input', async () => {
vm.search = 'cust';
await vm.$nextTick();
expect(vm.filteredItems[0].name).toEqual('customer');
expect(vm.filteredItems[0].module).toEqual('customer');
});
it('should filter items based on search input', async () => {
vm.search = 'Rou';
await vm.$nextTick();
expect(vm.filteredItems).toEqual([]);
});
it('should return pinned items', () => {
vm.items = [
{ name: 'Item 1', isPinned: false },
{ name: 'Item 2', isPinned: true },
];
expect(vm.pinnedModules).toEqual(
new Map([['Item 2', { name: 'Item 2', isPinned: true }]]),
);
});
it('should find matches in routes', () => {
const search = 'child1';
const item = {
children: [
{ name: 'child1', children: [] },
{ name: 'child2', children: [] },
],
};
const matches = vm.findMatches(search, item);
expect(matches).toEqual([{ name: 'child1', children: [] }]);
});
it('should not proceed if event is already prevented', async () => {
const item = { module: 'testModule', isPinned: false };
const event = {
preventDefault: vi.fn(),
stopPropagation: vi.fn(),
defaultPrevented: true,
};
await vm.togglePinned(item, event);
expect(event.preventDefault).not.toHaveBeenCalled();
expect(event.stopPropagation).not.toHaveBeenCalled();
});
it('should call quasar.notify with success message', async () => {
const item = { module: 'testModule', isPinned: false };
const event = {
preventDefault: vi.fn(),
stopPropagation: vi.fn(),
defaultPrevented: false,
};
const response = { data: { id: 1 } };
vi.spyOn(axios, 'post').mockResolvedValue(response);
vi.spyOn(vm.quasar, 'notify');
await vm.togglePinned(item, event);
expect(vm.quasar.notify).toHaveBeenCalledWith({
message: 'Data saved',
type: 'positive',
}); });
}); });
it('should return a proper formated object with two child items', async () => { it('should handle a single matched route with a menu', () => {
const expectedMenuItem = [ const route = {
{ matched: [{ meta: { menu: 'customer' } }],
children: null, };
name: 'CustomerList',
title: 'globals.pageTitles.list', const result = vm.betaGetRoutes();
icon: 'view_list',
}, expect(result.meta.menu).toEqual(route.matched[0].meta.menu);
{ });
children: null, it('should get routes for main source', () => {
name: 'CustomerCreate', vm.props.source = 'main';
title: 'globals.pageTitles.createCustomer', vm.getRoutes();
icon: 'vn:addperson', expect(navigation.getModules).toHaveBeenCalled();
}, });
];
const firstMenuItem = vm.items[0]; it('should find direct child matches', () => {
expect(firstMenuItem.children).toEqual(expect.arrayContaining(expectedMenuItem)); const search = 'child1';
const item = {
children: [{ name: 'child1' }, { name: 'child2' }],
};
const result = vm.findMatches(search, item);
expect(result).toEqual([{ name: 'child1' }]);
});
it('should find nested child matches', () => {
const search = 'child3';
const item = {
children: [
{ name: 'child1' },
{
name: 'child2',
children: [{ name: 'child3' }],
},
],
};
const result = vm.findMatches(search, item);
expect(result).toEqual([{ name: 'child3' }]);
});
});
describe('normalize', () => {
beforeAll(() => {
vm = mount('card').vm;
});
it('should normalize and lowercase text', () => {
const input = 'ÁÉÍÓÚáéíóú';
const expected = 'aeiouaeiou';
expect(vm.normalize(input)).toBe(expected);
});
it('should handle empty string', () => {
const input = '';
const expected = '';
expect(vm.normalize(input)).toBe(expected);
});
it('should handle text without diacritics', () => {
const input = 'hello';
const expected = 'hello';
expect(vm.normalize(input)).toBe(expected);
});
it('should handle mixed text', () => {
const input = 'Héllo Wórld!';
const expected = 'hello world!';
expect(vm.normalize(input)).toBe(expected);
});
});
describe('addChildren', () => {
const module = 'testModule';
beforeEach(() => {
vm = mount().vm;
vi.clearAllMocks();
});
it('should add menu items to parent if matches are found', () => {
const parent = 'testParent';
const route = {
meta: {
menu: 'testMenu',
},
children: [{ name: 'child1' }, { name: 'child2' }],
};
vm.addChildren(module, route, parent);
expect(navigation.addMenuItem).toHaveBeenCalled();
});
it('should handle routes with no meta menu', () => {
const route = {
meta: {},
menus: {},
};
const parent = [];
vm.addChildren(module, route, parent);
expect(navigation.addMenuItem).toHaveBeenCalled();
});
it('should handle empty parent array', () => {
const parent = [];
const route = {
meta: {
menu: 'child11',
},
children: [
{
name: 'child1',
meta: {
menuChildren: [
{
name: 'CustomerCreditContracts',
title: 'creditContracts',
icon: 'vn:solunion',
},
],
},
},
],
};
vm.addChildren(module, route, parent);
expect(navigation.addMenuItem).toHaveBeenCalled();
}); });
}); });

View File

@ -0,0 +1,61 @@
import { vi, describe, expect, it, beforeEach, beforeAll, afterEach } from 'vitest';
import { createWrapper } from 'app/test/vitest/helper';
import UserPanel from 'src/components/UserPanel.vue';
import axios from 'axios';
import { useState } from 'src/composables/useState';
describe('UserPanel', () => {
let wrapper;
let vm;
let state;
beforeEach(() => {
wrapper = createWrapper(UserPanel, {});
state = useState();
state.setUser({
id: 115,
name: 'itmanagement',
nickname: 'itManagementNick',
lang: 'en',
darkMode: false,
companyFk: 442,
warehouseFk: 1,
});
wrapper = wrapper.wrapper;
vm = wrapper.vm;
});
afterEach(() => {
vi.clearAllMocks();
});
it('should fetch warehouses data on mounted', async () => {
const fetchData = wrapper.findComponent({ name: 'FetchData' });
expect(fetchData.props('url')).toBe('Warehouses');
expect(fetchData.props('autoLoad')).toBe(true);
});
it('should toggle dark mode correctly and update preferences', async () => {
await vm.saveDarkMode(true);
expect(axios.patch).toHaveBeenCalledWith('/UserConfigs/115', { darkMode: true });
expect(vm.user.darkMode).toBe(true);
vm.updatePreferences();
expect(vm.darkMode).toBe(true);
});
it('should change user language and update preferences', async () => {
const userLanguage = 'es';
await vm.saveLanguage(userLanguage);
expect(axios.patch).toHaveBeenCalledWith('/VnUsers/115', { lang: userLanguage });
expect(vm.user.lang).toBe(userLanguage);
vm.updatePreferences();
expect(vm.locale).toBe(userLanguage);
});
it('should update user data', async () => {
const key = 'name';
const value = 'itboss';
await vm.saveUserData(key, value);
expect(axios.post).toHaveBeenCalledWith('UserConfigs/setUserConfig', { [key]: value });
});
});

View File

@ -10,11 +10,11 @@ import LeftMenu from 'components/LeftMenu.vue';
import RightMenu from 'components/common/RightMenu.vue'; import RightMenu from 'components/common/RightMenu.vue';
const props = defineProps({ const props = defineProps({
dataKey: { type: String, required: true }, dataKey: { type: String, required: true },
baseUrl: { type: String, default: undefined }, url: { type: String, default: undefined },
customUrl: { type: String, default: undefined },
filter: { type: Object, default: () => {} }, filter: { type: Object, default: () => {} },
descriptor: { type: Object, required: true }, descriptor: { type: Object, required: true },
filterPanel: { type: Object, default: undefined }, filterPanel: { type: Object, default: undefined },
idInWhere: { type: Boolean, default: false },
searchDataKey: { type: String, default: undefined }, searchDataKey: { type: String, default: undefined },
searchbarProps: { type: Object, default: undefined }, searchbarProps: { type: Object, default: undefined },
redirectOnError: { type: Boolean, default: false }, redirectOnError: { type: Boolean, default: false },
@ -23,25 +23,20 @@ const props = defineProps({
const stateStore = useStateStore(); const stateStore = useStateStore();
const route = useRoute(); const route = useRoute();
const router = useRouter(); const router = useRouter();
const url = computed(() => {
if (props.baseUrl) {
return `${props.baseUrl}/${route.params.id}`;
}
return props.customUrl;
});
const searchRightDataKey = computed(() => { const searchRightDataKey = computed(() => {
if (!props.searchDataKey) return route.name; if (!props.searchDataKey) return route.name;
return props.searchDataKey; return props.searchDataKey;
}); });
const arrayData = useArrayData(props.dataKey, { const arrayData = useArrayData(props.dataKey, {
url: url.value, url: props.url,
filter: props.filter, userFilter: props.filter,
oneRecord: true,
}); });
onBeforeMount(async () => { onBeforeMount(async () => {
try { try {
if (!props.baseUrl) arrayData.store.filter.where = { id: route.params.id }; await fetch(route.params.id);
await arrayData.fetch({ append: false, updateRouter: false });
} catch { } catch {
const { matched: matches } = router.currentRoute.value; const { matched: matches } = router.currentRoute.value;
const { path } = matches.at(-1); const { path } = matches.at(-1);
@ -49,13 +44,17 @@ onBeforeMount(async () => {
} }
}); });
if (props.baseUrl) { onBeforeRouteUpdate(async (to, from) => {
onBeforeRouteUpdate(async (to, from) => { const id = to.params.id;
if (to.params.id !== from.params.id) { if (id !== from.params.id) await fetch(id, true);
arrayData.store.url = `${props.baseUrl}/${to.params.id}`; });
await arrayData.fetch({ append: false, updateRouter: false });
} async function fetch(id, append = false) {
}); const regex = /\/(\d+)/;
if (props.idInWhere) arrayData.store.filter.where = { id };
else if (!regex.test(props.url)) arrayData.store.url = `${props.url}/${id}`;
else arrayData.store.url = props.url.replace(regex, `/${id}`);
await arrayData.fetch({ append, updateRouter: false });
} }
</script> </script>
<template> <template>
@ -83,7 +82,7 @@ if (props.baseUrl) {
<QPage> <QPage>
<VnSubToolbar /> <VnSubToolbar />
<div :class="[useCardSize(), $attrs.class]"> <div :class="[useCardSize(), $attrs.class]">
<RouterView :key="route.path" /> <RouterView :key="$route.path" />
</div> </div>
</QPage> </QPage>
</QPageContainer> </QPageContainer>

View File

@ -1,6 +1,6 @@
<script setup> <script setup>
import { onBeforeMount, computed } from 'vue'; import { onBeforeMount } from 'vue';
import { useRoute, useRouter, onBeforeRouteUpdate } from 'vue-router'; import { useRouter, onBeforeRouteUpdate } from 'vue-router';
import { useArrayData } from 'src/composables/useArrayData'; import { useArrayData } from 'src/composables/useArrayData';
import { useStateStore } from 'stores/useStateStore'; import { useStateStore } from 'stores/useStateStore';
import useCardSize from 'src/composables/useCardSize'; import useCardSize from 'src/composables/useCardSize';
@ -9,10 +9,9 @@ import VnSubToolbar from '../ui/VnSubToolbar.vue';
const props = defineProps({ const props = defineProps({
dataKey: { type: String, required: true }, dataKey: { type: String, required: true },
baseUrl: { type: String, default: undefined }, url: { type: String, default: undefined },
customUrl: { type: String, default: undefined }, idInWhere: { type: Boolean, default: false },
filter: { type: Object, default: () => {} }, filter: { type: Object, default: () => {} },
userFilter: { type: Object, default: () => {} },
descriptor: { type: Object, required: true }, descriptor: { type: Object, required: true },
filterPanel: { type: Object, default: undefined }, filterPanel: { type: Object, default: undefined },
searchDataKey: { type: String, default: undefined }, searchDataKey: { type: String, default: undefined },
@ -21,39 +20,35 @@ const props = defineProps({
}); });
const stateStore = useStateStore(); const stateStore = useStateStore();
const route = useRoute();
const router = useRouter(); const router = useRouter();
const url = computed(() => {
if (props.baseUrl) {
return `${props.baseUrl}/${route.params.id}`;
}
return props.customUrl;
});
const arrayData = useArrayData(props.dataKey, { const arrayData = useArrayData(props.dataKey, {
url: url.value, url: props.url,
filter: props.filter, userFilter: props.filter,
userFilter: props.userFilter, oneRecord: true,
}); });
onBeforeMount(async () => { onBeforeMount(async () => {
const route = router.currentRoute.value;
try { try {
if (!props.baseUrl) arrayData.store.filter.where = { id: route.params.id }; await fetch(route.params.id);
await arrayData.fetch({ append: false, updateRouter: false });
} catch { } catch {
const { matched: matches } = router.currentRoute.value; const { matched: matches } = route;
const { path } = matches.at(-1); const { path } = matches.at(-1);
router.push({ path: path.replace(/:id.*/, '') }); router.push({ path: path.replace(/:id.*/, '') });
} }
}); });
if (props.baseUrl) { onBeforeRouteUpdate(async (to, from) => {
onBeforeRouteUpdate(async (to, from) => { const id = to.params.id;
if (to.params.id !== from.params.id) { if (id !== from.params.id) await fetch(id, true);
arrayData.store.url = `${props.baseUrl}/${to.params.id}`; });
await arrayData.fetch({ append: false, updateRouter: false });
} async function fetch(id, append = false) {
}); const regex = /\/(\d+)/;
if (props.idInWhere) arrayData.store.filter.where = { id };
else if (!regex.test(props.url)) arrayData.store.url = `${props.url}/${id}`;
else arrayData.store.url = props.url.replace(regex, `/${id}`);
await arrayData.fetch({ append, updateRouter: false });
} }
</script> </script>
<template> <template>
@ -64,6 +59,6 @@ if (props.baseUrl) {
</Teleport> </Teleport>
<VnSubToolbar /> <VnSubToolbar />
<div :class="[useCardSize(), $attrs.class]"> <div :class="[useCardSize(), $attrs.class]">
<RouterView :key="route.path" /> <RouterView :key="$route.path" />
</div> </div>
</template> </template>

View File

@ -0,0 +1,43 @@
<script setup>
import { computed } from 'vue';
const model = defineModel({ type: [Number, Boolean] });
const $props = defineProps({
info: {
type: String,
default: null,
},
});
const checkboxModel = computed({
get() {
if (typeof model.value === 'number') {
return model.value !== 0;
}
return model.value;
},
set(value) {
if (typeof model.value === 'number') {
model.value = value ? 1 : 0;
} else {
model.value = value;
}
},
});
</script>
<template>
<div>
<QCheckbox v-bind="$attrs" v-on="$attrs" v-model="checkboxModel" />
<QIcon
v-if="info"
v-bind="$attrs"
class="cursor-info q-ml-sm"
name="info"
size="sm"
>
<QTooltip>
{{ info }}
</QTooltip>
</QIcon>
</div>
</template>

View File

@ -0,0 +1,32 @@
<script setup>
const $props = defineProps({
colors: {
type: String,
default: '{"value":[]}',
},
});
const colorArray = JSON.parse($props.colors)?.value;
const maxHeight = 30;
const colorHeight = maxHeight / colorArray?.length;
</script>
<template>
<div class="color-div" :style="{ height: `${maxHeight}px` }">
<div
v-for="(color, index) in colorArray"
:key="index"
:style="{
backgroundColor: `#${color}`,
height: `${colorHeight}px`,
}"
>
&nbsp;
</div>
</div>
</template>
<style scoped>
.color-div {
display: flex;
flex-direction: column;
}
</style>

View File

@ -17,6 +17,8 @@ const $props = defineProps({
}, },
}); });
const emit = defineEmits(['blur']);
const componentArray = computed(() => { const componentArray = computed(() => {
if (typeof $props.prop === 'object') return [$props.prop]; if (typeof $props.prop === 'object') return [$props.prop];
return $props.prop; return $props.prop;
@ -54,6 +56,7 @@ function toValueAttrs(attrs) {
v-bind="mix(toComponent).attrs" v-bind="mix(toComponent).attrs"
v-on="mix(toComponent).event ?? {}" v-on="mix(toComponent).event ?? {}"
v-model="model" v-model="model"
@blur="emit('blur')"
/> />
</span> </span>
</template> </template>

View File

@ -17,7 +17,7 @@ import { useSession } from 'src/composables/useSession';
const route = useRoute(); const route = useRoute();
const quasar = useQuasar(); const quasar = useQuasar();
const { t } = useI18n(); const { t } = useI18n();
const rows = ref(); const rows = ref([]);
const dmsRef = ref(); const dmsRef = ref();
const formDialog = ref({}); const formDialog = ref({});
const token = useSession().getTokenMultimedia(); const token = useSession().getTokenMultimedia();
@ -389,6 +389,14 @@ defineExpose({
</div> </div>
</template> </template>
</QTable> </QTable>
<div
v-else
class="info-row q-pa-md text-center"
>
<h5>
{{ t('No data to display') }}
</h5>
</div>
</template> </template>
</VnPaginate> </VnPaginate>
<QDialog v-model="formDialog.show"> <QDialog v-model="formDialog.show">
@ -405,7 +413,7 @@ defineExpose({
fab fab
color="primary" color="primary"
icon="add" icon="add"
shortcut="+" v-shortcut
@click="showFormDialog()" @click="showFormDialog()"
class="fill-icon" class="fill-icon"
> >

View File

@ -11,6 +11,7 @@ const emit = defineEmits([
'update:options', 'update:options',
'keyup.enter', 'keyup.enter',
'remove', 'remove',
'blur',
]); ]);
const $props = defineProps({ const $props = defineProps({
@ -136,6 +137,7 @@ const handleUppercase = () => {
:type="$attrs.type" :type="$attrs.type"
:class="{ required: isRequired }" :class="{ required: isRequired }"
@keyup.enter="emit('keyup.enter')" @keyup.enter="emit('keyup.enter')"
@blur="emit('blur')"
@keydown="handleKeydown" @keydown="handleKeydown"
:clearable="false" :clearable="false"
:rules="mixinRules" :rules="mixinRules"
@ -143,7 +145,7 @@ const handleUppercase = () => {
hide-bottom-space hide-bottom-space
:data-cy="$attrs.dataCy ?? $attrs.label + '_input'" :data-cy="$attrs.dataCy ?? $attrs.label + '_input'"
> >
<template #prepend> <template #prepend v-if="$slots.prepend">
<slot name="prepend" /> <slot name="prepend" />
</template> </template>
<template #append> <template #append>
@ -168,11 +170,11 @@ const handleUppercase = () => {
} }
" "
></QIcon> ></QIcon>
<QIcon <QIcon
name="match_case" name="match_case"
size="xs" size="xs"
v-if="!$attrs.disabled && !($attrs.readonly) && $props.uppercase" v-if="!$attrs.disabled && !$attrs.readonly && $props.uppercase"
@click="handleUppercase" @click="handleUppercase"
class="uppercase-icon" class="uppercase-icon"
> >
@ -180,7 +182,7 @@ const handleUppercase = () => {
{{ t('Convert to uppercase') }} {{ t('Convert to uppercase') }}
</QTooltip> </QTooltip>
</QIcon> </QIcon>
<slot name="append" v-if="$slots.append && !$attrs.disabled" /> <slot name="append" v-if="$slots.append && !$attrs.disabled" />
<QIcon v-if="info" name="info"> <QIcon v-if="info" name="info">
<QTooltip max-width="350px"> <QTooltip max-width="350px">
@ -194,13 +196,15 @@ const handleUppercase = () => {
<style> <style>
.uppercase-icon { .uppercase-icon {
transition: color 0.3s, transform 0.2s; transition:
cursor: pointer; color 0.3s,
transform 0.2s;
cursor: pointer;
} }
.uppercase-icon:hover { .uppercase-icon:hover {
color: #ed9937; color: #ed9937;
transform: scale(1.2); transform: scale(1.2);
} }
</style> </style>
<i18n> <i18n>
@ -214,4 +218,4 @@ const handleUppercase = () => {
maxLength: El valor excede los {value} carácteres maxLength: El valor excede los {value} carácteres
inputMax: Debe ser menor a {value} inputMax: Debe ser menor a {value}
Convert to uppercase: Convertir a mayúsculas Convert to uppercase: Convertir a mayúsculas
</i18n> </i18n>

View File

@ -42,7 +42,7 @@ const formattedDate = computed({
if (value.at(2) == '/') value = value.split('/').reverse().join('/'); if (value.at(2) == '/') value = value.split('/').reverse().join('/');
value = date.formatDate( value = date.formatDate(
new Date(value).toISOString(), new Date(value).toISOString(),
'YYYY-MM-DDTHH:mm:ss.SSSZ' 'YYYY-MM-DDTHH:mm:ss.SSSZ',
); );
} }
const [year, month, day] = value.split('-').map((e) => parseInt(e)); const [year, month, day] = value.split('-').map((e) => parseInt(e));
@ -55,7 +55,7 @@ const formattedDate = computed({
orgDate.getHours(), orgDate.getHours(),
orgDate.getMinutes(), orgDate.getMinutes(),
orgDate.getSeconds(), orgDate.getSeconds(),
orgDate.getMilliseconds() orgDate.getMilliseconds(),
); );
} }
} }
@ -64,7 +64,7 @@ const formattedDate = computed({
}); });
const popupDate = computed(() => const popupDate = computed(() =>
model.value ? date.formatDate(new Date(model.value), 'YYYY/MM/DD') : model.value model.value ? date.formatDate(new Date(model.value), 'YYYY/MM/DD') : model.value,
); );
onMounted(() => { onMounted(() => {
// fix quasar bug // fix quasar bug
@ -73,7 +73,7 @@ onMounted(() => {
watch( watch(
() => model.value, () => model.value,
(val) => (formattedDate.value = val), (val) => (formattedDate.value = val),
{ immediate: true } { immediate: true },
); );
const styleAttrs = computed(() => { const styleAttrs = computed(() => {

View File

@ -8,6 +8,7 @@ defineProps({
}); });
const model = defineModel({ type: [Number, String] }); const model = defineModel({ type: [Number, String] });
const emit = defineEmits(['blur']);
</script> </script>
<template> <template>
<VnInput <VnInput
@ -24,5 +25,6 @@ const model = defineModel({ type: [Number, String] });
model = parseFloat(val).toFixed(decimalPlaces); model = parseFloat(val).toFixed(decimalPlaces);
} }
" "
@blur="emit('blur')"
/> />
</template> </template>

View File

@ -268,7 +268,7 @@ async function applyFilter() {
filter.where.and.push(selectedFilters.value); filter.where.and.push(selectedFilters.value);
} }
paginate.value.fetch(filter); paginate.value.fetch({ filter });
} }
function setDate(type) { function setDate(type) {
@ -404,7 +404,7 @@ watch(
ref="paginate" ref="paginate"
:data-key="`${model}Log`" :data-key="`${model}Log`"
:url="`${model}Logs`" :url="`${model}Logs`"
:filter="filter" :user-filter="filter"
:skeleton="false" :skeleton="false"
auto-load auto-load
@on-fetch="setLogTree" @on-fetch="setLogTree"

View File

@ -0,0 +1,38 @@
<script setup>
import { ref } from 'vue';
defineProps({
label: {
type: String,
default: '',
},
icon: {
type: String,
required: true,
default: null,
},
color: {
type: String,
default: 'primary',
},
tooltip: {
type: String,
default: null,
},
});
const popupProxyRef = ref(null);
</script>
<template>
<QBtn :color="$props.color" :icon="$props.icon" :label="$t($props.label)">
<template #default>
<slot name="extraIcon"></slot>
<QPopupProxy ref="popupProxyRef" style="max-width: none">
<QCard>
<slot :popup="popupProxyRef"></slot>
</QCard>
</QPopupProxy>
<QTooltip>{{ $t($props.tooltip) }}</QTooltip>
</template>
</QBtn>
</template>

View File

@ -106,7 +106,14 @@ function checkIsMain() {
:data-key="dataKey" :data-key="dataKey"
:array-data="arrayData" :array-data="arrayData"
:columns="columns" :columns="columns"
/> >
<template #moreFilterPanel="{ params, orders, searchFn }">
<slot
name="moreFilterPanel"
v-bind="{ params, orders, searchFn }"
/>
</template>
</VnTableFilter>
</slot> </slot>
</template> </template>
</RightAdvancedMenu> </RightAdvancedMenu>

View File

@ -171,7 +171,8 @@ onMounted(() => {
}); });
const arrayDataKey = const arrayDataKey =
$props.dataKey ?? ($props.url?.length > 0 ? $props.url : $attrs.name ?? $attrs.label); $props.dataKey ??
($props.url?.length > 0 ? $props.url : ($attrs.name ?? $attrs.label));
const arrayData = useArrayData(arrayDataKey, { const arrayData = useArrayData(arrayDataKey, {
url: $props.url, url: $props.url,
@ -220,7 +221,7 @@ async function fetchFilter(val) {
optionFilterValue.value ?? optionFilterValue.value ??
(new RegExp(/\d/g).test(val) (new RegExp(/\d/g).test(val)
? optionValue.value ? optionValue.value
: optionFilter.value ?? optionLabel.value); : (optionFilter.value ?? optionLabel.value));
let defaultWhere = {}; let defaultWhere = {};
if ($props.filterOptions.length) { if ($props.filterOptions.length) {
@ -239,7 +240,7 @@ async function fetchFilter(val) {
const { data } = await arrayData.applyFilter( const { data } = await arrayData.applyFilter(
{ filter: filterOptions }, { filter: filterOptions },
{ updateRouter: false } { updateRouter: false },
); );
setOptions(data); setOptions(data);
return data; return data;
@ -272,7 +273,7 @@ async function filterHandler(val, update) {
ref.setOptionIndex(-1); ref.setOptionIndex(-1);
ref.moveOptionSelection(1, true); ref.moveOptionSelection(1, true);
} }
} },
); );
} }
@ -308,7 +309,7 @@ function handleKeyDown(event) {
if (inputValue) { if (inputValue) {
const matchingOption = myOptions.value.find( const matchingOption = myOptions.value.find(
(option) => (option) =>
option[optionLabel.value].toLowerCase() === inputValue.toLowerCase() option[optionLabel.value].toLowerCase() === inputValue.toLowerCase(),
); );
if (matchingOption) { if (matchingOption) {
@ -320,11 +321,11 @@ function handleKeyDown(event) {
} }
const focusableElements = document.querySelectorAll( const focusableElements = document.querySelectorAll(
'a:not([disabled]), button:not([disabled]), input:not([disabled]), textarea:not([disabled]), select:not([disabled]), details:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled])' 'a:not([disabled]), button:not([disabled]), input:not([disabled]), textarea:not([disabled]), select:not([disabled]), details:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled])',
); );
const currentIndex = Array.prototype.indexOf.call( const currentIndex = Array.prototype.indexOf.call(
focusableElements, focusableElements,
event.target event.target,
); );
if (currentIndex >= 0 && currentIndex < focusableElements.length - 1) { if (currentIndex >= 0 && currentIndex < focusableElements.length - 1) {
focusableElements[currentIndex + 1].focus(); focusableElements[currentIndex + 1].focus();

View File

@ -14,7 +14,7 @@ const $props = defineProps({
}, },
}); });
const options = ref([]); const options = ref([]);
const emit = defineEmits(['blur']);
onBeforeMount(async () => { onBeforeMount(async () => {
const { url, optionValue, optionLabel } = useAttrs(); const { url, optionValue, optionLabel } = useAttrs();
const findBy = $props.find ?? url?.charAt(0)?.toLocaleLowerCase() + url?.slice(1, -1); const findBy = $props.find ?? url?.charAt(0)?.toLocaleLowerCase() + url?.slice(1, -1);
@ -35,5 +35,5 @@ onBeforeMount(async () => {
}); });
</script> </script>
<template> <template>
<VnSelect v-bind="$attrs" :options="$attrs.options ?? options" /> <VnSelect v-bind="$attrs" :options="$attrs.options ?? options" @blur="emit('blur')" />
</template> </template>

View File

@ -37,7 +37,6 @@ const isAllowedToCreate = computed(() => {
defineExpose({ vnSelectDialogRef: select }); defineExpose({ vnSelectDialogRef: select });
</script> </script>
<template> <template>
<VnSelect <VnSelect
ref="select" ref="select"
@ -67,7 +66,6 @@ defineExpose({ vnSelectDialogRef: select });
</template> </template>
</VnSelect> </VnSelect>
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
.default-icon { .default-icon {
cursor: pointer; cursor: pointer;

View File

@ -0,0 +1,35 @@
<script setup>
import VnSelect from 'components/common/VnSelect.vue';
const model = defineModel({ type: [String, Number, Object] });
</script>
<template>
<VnSelect
:label="$t('globals.supplier')"
v-bind="$attrs"
v-model="model"
url="Suppliers"
option-value="id"
option-label="nickname"
:fields="['id', 'name', 'nickname', 'nif']"
:filter-options="['id', 'name', 'nickname', 'nif']"
sort-by="name ASC"
data-cy="vnSupplierSelect"
>
<template #option="scope">
<QItem v-bind="scope.itemProps">
<QItemSection>
<QItemLabel>
{{ scope.opt?.name }}
</QItemLabel>
<QItemLabel caption>
{{
`#${scope.opt?.id} , ${scope.opt?.nickname} (${scope.opt?.nif})`
}}
</QItemLabel>
</QItemSection>
</QItem>
</template>
</VnSelect>
</template>

View File

@ -0,0 +1,50 @@
<script setup>
import VnSelectDialog from './VnSelectDialog.vue';
import FilterTravelForm from 'src/components/FilterTravelForm.vue';
import { useI18n } from 'vue-i18n';
import { toDate } from 'src/filters';
const { t } = useI18n();
const $props = defineProps({
data: {
type: Object,
required: true,
},
onFilterTravelSelected: {
type: Function,
required: true,
},
});
</script>
<template>
<VnSelectDialog
:label="t('entry.basicData.travel')"
v-bind="$attrs"
url="Travels/filter"
:fields="['id', 'warehouseInName']"
option-value="id"
option-label="warehouseInName"
map-options
hide-selected
:required="true"
action-icon="filter_alt"
:roles-allowed-to-create="['buyer']"
>
<template #form>
<FilterTravelForm @travel-selected="onFilterTravelSelected(data, $event)" />
</template>
<template #option="scope">
<QItem v-bind="scope.itemProps">
<QItemSection>
<QItemLabel>
{{ scope.opt?.agencyModeName }} -
{{ scope.opt?.warehouseInName }}
({{ toDate(scope.opt?.shipped) }})
{{ scope.opt?.warehouseOutName }}
({{ toDate(scope.opt?.landed) }})
</QItemLabel>
</QItemSection>
</QItem>
</template>
</VnSelectDialog>
</template>

View File

@ -53,6 +53,7 @@ const url = computed(() => {
:fields="['id', 'name', 'nickname', 'code']" :fields="['id', 'name', 'nickname', 'code']"
:filter-options="['id', 'name', 'nickname', 'code']" :filter-options="['id', 'name', 'nickname', 'code']"
sort-by="nickname ASC" sort-by="nickname ASC"
data-cy="vnWorkerSelect"
> >
<template #prepend v-if="$props.hasAvatar"> <template #prepend v-if="$props.hasAvatar">
<VnAvatar :worker-id="value" color="primary" v-bind="$attrs" /> <VnAvatar :worker-id="value" color="primary" v-bind="$attrs" />

View File

@ -1,51 +1,78 @@
import { describe, it, expect, vi, beforeAll, afterEach, beforeEach } from 'vitest'; import {
describe,
it,
expect,
vi,
beforeAll,
afterEach,
beforeEach,
afterAll,
} from 'vitest';
import { createWrapper, axios } from 'app/test/vitest/helper'; import { createWrapper, axios } from 'app/test/vitest/helper';
import VnNotes from 'src/components/ui/VnNotes.vue'; import VnNotes from 'src/components/ui/VnNotes.vue';
import vnDate from 'src/boot/vnDate';
describe('VnNotes', () => { describe('VnNotes', () => {
let vm; let vm;
let wrapper; let wrapper;
let spyFetch; let spyFetch;
let postMock; let postMock;
let expectedBody; let patchMock;
const mockData= {name: 'Tony', lastName: 'Stark', text: 'Test Note', observationTypeFk: 1}; let expectedInsertBody;
let expectedUpdateBody;
function generateExpectedBody() { const defaultOptions = {
expectedBody = {...vm.$props.body, ...{ text: vm.newNote.text, observationTypeFk: vm.newNote.observationTypeFk }}; url: '/test',
} body: { name: 'Tony', lastName: 'Stark' },
selectType: false,
async function setTestParams(text, observationType, type){ saveUrl: null,
vm.newNote.text = text; justInput: false,
vm.newNote.observationTypeFk = observationType; };
wrapper.setProps({ selectType: type }); function generateWrapper(
} options = defaultOptions,
text = null,
beforeAll(async () => { observationType = null,
vi.spyOn(axios, 'get').mockReturnValue({ data: [] }); ) {
vi.spyOn(axios, 'get').mockResolvedValue({ data: [] });
wrapper = createWrapper(VnNotes, { wrapper = createWrapper(VnNotes, {
propsData: { propsData: options,
url: '/test',
body: { name: 'Tony', lastName: 'Stark' },
}
}); });
wrapper = wrapper.wrapper; wrapper = wrapper.wrapper;
vm = wrapper.vm; vm = wrapper.vm;
}); vm.newNote.text = text;
vm.newNote.observationTypeFk = observationType;
}
function createSpyFetch() {
spyFetch = vi.spyOn(vm.$refs.vnPaginateRef, 'fetch');
}
function generateExpectedBody() {
expectedInsertBody = {
...vm.$props.body,
...{ text: vm.newNote.text, observationTypeFk: vm.newNote.observationTypeFk },
};
expectedUpdateBody = { ...vm.$props.body, ...{ notes: vm.newNote.text } };
}
beforeEach(() => { beforeEach(() => {
postMock = vi.spyOn(axios, 'post').mockResolvedValue(mockData); postMock = vi.spyOn(axios, 'post');
spyFetch = vi.spyOn(vm.vnPaginateRef, 'fetch').mockImplementation(() => vi.fn()); patchMock = vi.spyOn(axios, 'patch');
}); });
afterEach(() => { afterEach(() => {
vi.clearAllMocks(); vi.clearAllMocks();
expectedBody = {}; expectedInsertBody = {};
expectedUpdateBody = {};
});
afterAll(() => {
vi.restoreAllMocks();
}); });
describe('insert', () => { describe('insert', () => {
it('should not call axios.post and vnPaginateRef.fetch if newNote.text is null', async () => { it('should not call axios.post and vnPaginateRef.fetch when newNote.text is null', async () => {
await setTestParams( null, null, true ); generateWrapper({ selectType: true });
createSpyFetch();
await vm.insert(); await vm.insert();
@ -53,8 +80,9 @@ describe('VnNotes', () => {
expect(spyFetch).not.toHaveBeenCalled(); expect(spyFetch).not.toHaveBeenCalled();
}); });
it('should not call axios.post and vnPaginateRef.fetch if newNote.text is empty', async () => { it('should not call axios.post and vnPaginateRef.fetch when newNote.text is empty', async () => {
await setTestParams( "", null, false ); generateWrapper(null, '');
createSpyFetch();
await vm.insert(); await vm.insert();
@ -62,8 +90,9 @@ describe('VnNotes', () => {
expect(spyFetch).not.toHaveBeenCalled(); expect(spyFetch).not.toHaveBeenCalled();
}); });
it('should not call axios.post and vnPaginateRef.fetch if observationTypeFk is missing and selectType is true', async () => { it('should not call axios.post and vnPaginateRef.fetch when observationTypeFk is null and selectType is true', async () => {
await setTestParams( "Test Note", null, true ); generateWrapper({ selectType: true }, 'Test Note');
createSpyFetch();
await vm.insert(); await vm.insert();
@ -71,37 +100,57 @@ describe('VnNotes', () => {
expect(spyFetch).not.toHaveBeenCalled(); expect(spyFetch).not.toHaveBeenCalled();
}); });
it('should call axios.post and vnPaginateRef.fetch if observationTypeFk is missing and selectType is false', async () => { it('should call axios.post and vnPaginateRef.fetch when observationTypeFk is missing and selectType is false', async () => {
await setTestParams( "Test Note", null, false ); generateWrapper(null, 'Test Note');
createSpyFetch();
generateExpectedBody(); generateExpectedBody();
await vm.insert(); await vm.insert();
expect(postMock).toHaveBeenCalledWith(vm.$props.url, expectedBody); expect(postMock).toHaveBeenCalledWith(vm.$props.url, expectedInsertBody);
expect(spyFetch).toHaveBeenCalled();
});
it('should call axios.post and vnPaginateRef.fetch if observationTypeFk is setted and selectType is false', async () => {
await setTestParams( "Test Note", 1, false );
generateExpectedBody();
await vm.insert();
expect(postMock).toHaveBeenCalledWith(vm.$props.url, expectedBody);
expect(spyFetch).toHaveBeenCalled(); expect(spyFetch).toHaveBeenCalled();
}); });
it('should call axios.post and vnPaginateRef.fetch when newNote is valid', async () => { it('should call axios.post and vnPaginateRef.fetch when newNote is valid', async () => {
await setTestParams( "Test Note", 1, true ); generateWrapper({ selectType: true }, 'Test Note', 1);
createSpyFetch();
generateExpectedBody(); generateExpectedBody();
await vm.insert(); await vm.insert();
expect(postMock).toHaveBeenCalledWith(vm.$props.url, expectedBody); expect(postMock).toHaveBeenCalledWith(vm.$props.url, expectedInsertBody);
expect(spyFetch).toHaveBeenCalled(); expect(spyFetch).toHaveBeenCalled();
}); });
}); });
});
describe('update', () => {
it('should call axios.patch with saveUrl when saveUrl is set and justInput is true', async () => {
generateWrapper({
url: '/business',
justInput: true,
saveUrl: '/saveUrlTest',
});
generateExpectedBody();
await vm.update();
expect(patchMock).toHaveBeenCalledWith(vm.$props.saveUrl, expectedUpdateBody);
});
it('should call axios.patch with url when saveUrl is not set and justInput is true', async () => {
generateWrapper({
url: '/business',
body: { workerFk: 1110 },
justInput: true,
});
generateExpectedBody();
await vm.update();
expect(patchMock).toHaveBeenCalledWith(
`${vm.$props.url}/${vm.$props.body.workerFk}`,
expectedUpdateBody,
);
});
});
});

View File

@ -57,12 +57,13 @@ defineExpose({ getData });
onBeforeMount(async () => { onBeforeMount(async () => {
arrayData = useArrayData($props.dataKey, { arrayData = useArrayData($props.dataKey, {
url: $props.url, url: $props.url,
filter: $props.filter, userFilter: $props.filter,
skip: 0, skip: 0,
oneRecord: true,
}); });
store = arrayData.store; store = arrayData.store;
entity = computed(() => { entity = computed(() => {
const data = (Array.isArray(store.data) ? store.data[0] : store.data) ?? {}; const data = store.data ?? {};
if (data) emit('onFetch', data); if (data) emit('onFetch', data);
return data; return data;
}); });
@ -73,7 +74,7 @@ onBeforeMount(async () => {
() => [$props.url, $props.filter], () => [$props.url, $props.filter],
async () => { async () => {
if (!isSameDataKey.value) await getData(); if (!isSameDataKey.value) await getData();
} },
); );
}); });
@ -84,7 +85,7 @@ async function getData() {
try { try {
const { data } = await arrayData.fetch({ append: false, updateRouter: false }); const { data } = await arrayData.fetch({ append: false, updateRouter: false });
state.set($props.dataKey, data); state.set($props.dataKey, data);
emit('onFetch', Array.isArray(data) ? data[0] : data); emit('onFetch', data);
} finally { } finally {
isLoading.value = false; isLoading.value = false;
} }
@ -108,7 +109,7 @@ const iconModule = computed(() => route.matched[1].meta.icon);
const toModule = computed(() => const toModule = computed(() =>
route.matched[1].path.split('/').length > 2 route.matched[1].path.split('/').length > 2
? route.matched[1].redirect ? route.matched[1].redirect
: route.matched[1].children[0].redirect : route.matched[1].children[0].redirect,
); );
</script> </script>

View File

@ -15,6 +15,10 @@ const props = defineProps({
type: Object, type: Object,
default: null, default: null,
}, },
userFilter: {
type: Object,
default: null,
},
entityId: { entityId: {
type: [Number, String], type: [Number, String],
default: null, default: null,
@ -34,10 +38,12 @@ const isSummary = ref();
const arrayData = useArrayData(props.dataKey, { const arrayData = useArrayData(props.dataKey, {
url: props.url, url: props.url,
filter: props.filter, filter: props.filter,
userFilter: props.userFilter,
skip: 0, skip: 0,
oneRecord: true,
}); });
const { store } = arrayData; const { store } = arrayData;
const entity = computed(() => (Array.isArray(store.data) ? store.data[0] : store.data)); const entity = computed(() => store.data);
const isLoading = ref(false); const isLoading = ref(false);
defineExpose({ defineExpose({
@ -56,7 +62,7 @@ async function fetch() {
store.filter = props.filter ?? {}; store.filter = props.filter ?? {};
isLoading.value = true; isLoading.value = true;
const { data } = await arrayData.fetch({ append: false, updateRouter: false }); const { data } = await arrayData.fetch({ append: false, updateRouter: false });
emit('onFetch', Array.isArray(data) ? data[0] : data); emit('onFetch', data);
isLoading.value = false; isLoading.value = false;
} }
</script> </script>
@ -203,4 +209,13 @@ async function fetch() {
.summaryHeader { .summaryHeader {
color: $white; color: $white;
} }
.cardSummary :deep(.q-card__section[content]) {
display: flex;
flex-wrap: wrap;
padding: 0;
> * {
flex: 1;
}
}
</style> </style>

View File

@ -1,53 +1,32 @@
<script setup>
defineProps({
hasImage: {
type: Boolean,
default: false,
},
});
</script>
<template> <template>
<div id="descriptor-skeleton"> <div id="descriptor-skeleton" class="bg-vn-page">
<div class="row justify-between q-pa-sm"> <div class="row justify-between q-pa-sm">
<QSkeleton square size="40px" /> <QSkeleton square size="30px" v-for="i in 3" :key="i" />
<QSkeleton square size="40px" />
<QSkeleton square height="40px" width="20px" />
</div> </div>
<div class="col justify-between q-pa-sm q-gutter-y-xs"> <div class="q-pa-xs" v-if="hasImage">
<QSkeleton square height="40px" width="150px" /> <QSkeleton square height="200px" width="100%" />
<QSkeleton square height="30px" width="70px" />
</div> </div>
<div class="col q-pl-sm q-pa-sm q-mb-md"> <div class="col justify-between q-pa-md q-gutter-y-xs">
<div class="row justify-between"> <QSkeleton square height="25px" width="150px" />
<QSkeleton type="text" square height="30px" width="20%" /> <QSkeleton square height="15px" width="70px" />
<QSkeleton type="text" square height="30px" width="60%" /> </div>
</div> <div class="q-pl-sm q-pa-sm q-mb-md">
<div class="row justify-between"> <div class="row q-gutter-x-sm q-pa-none q-ma-none" v-for="i in 5" :key="i">
<QSkeleton type="text" square height="30px" width="20%" /> <QSkeleton type="text" square height="20px" width="30%" />
<QSkeleton type="text" square height="30px" width="60%" /> <QSkeleton type="text" square height="20px" width="60%" />
</div>
<div class="row justify-between">
<QSkeleton type="text" square height="30px" width="20%" />
<QSkeleton type="text" square height="30px" width="60%" />
</div>
<div class="row justify-between">
<QSkeleton type="text" square height="30px" width="20%" />
<QSkeleton type="text" square height="30px" width="60%" />
</div>
<div class="row justify-between">
<QSkeleton type="text" square height="30px" width="20%" />
<QSkeleton type="text" square height="30px" width="60%" />
</div>
<div class="row justify-between">
<QSkeleton type="text" square height="30px" width="20%" />
<QSkeleton type="text" square height="30px" width="60%" />
</div> </div>
</div> </div>
<QCardActions> <QCardActions class="q-gutter-x-sm justify-between">
<QSkeleton size="40px" /> <QSkeleton size="40px" v-for="i in 5" :key="i" />
<QSkeleton size="40px" />
<QSkeleton size="40px" />
<QSkeleton size="40px" />
<QSkeleton size="40px" />
</QCardActions> </QCardActions>
</div> </div>
</template> </template>
<style lang="scss" scoped>
#descriptor-skeleton .q-card__actions {
justify-content: space-between;
}
</style>

View File

@ -82,7 +82,7 @@ function cancel() {
@click="cancel()" @click="cancel()"
/> />
</QCardSection> </QCardSection>
<QCardSection class="q-pb-none"> <QCardSection class="q-pb-none" data-cy="VnConfirm_message">
<span v-if="message !== false" v-html="message" /> <span v-if="message !== false" v-html="message" />
</QCardSection> </QCardSection>
<QCardSection class="row items-center q-pt-none"> <QCardSection class="row items-center q-pt-none">
@ -95,6 +95,7 @@ function cancel() {
:disable="isLoading" :disable="isLoading"
flat flat
@click="cancel()" @click="cancel()"
data-cy="VnConfirm_cancel"
/> />
<QBtn <QBtn
:label="t('globals.confirm')" :label="t('globals.confirm')"

View File

@ -114,7 +114,7 @@ async function clearFilters() {
arrayData.resetPagination(); arrayData.resetPagination();
// Filtrar los params no removibles // Filtrar los params no removibles
const removableFilters = Object.keys(userParams.value).filter((param) => const removableFilters = Object.keys(userParams.value).filter((param) =>
$props.unremovableParams.includes(param) $props.unremovableParams.includes(param),
); );
const newParams = {}; const newParams = {};
// Conservar solo los params que no son removibles // Conservar solo los params que no son removibles
@ -162,13 +162,13 @@ const formatTags = (tags) => {
const tags = computed(() => { const tags = computed(() => {
const filteredTags = tagsList.value.filter( const filteredTags = tagsList.value.filter(
(tag) => !($props.customTags || []).includes(tag.label) (tag) => !($props.customTags || []).includes(tag.label),
); );
return formatTags(filteredTags); return formatTags(filteredTags);
}); });
const customTags = computed(() => const customTags = computed(() =>
tagsList.value.filter((tag) => ($props.customTags || []).includes(tag.label)) tagsList.value.filter((tag) => ($props.customTags || []).includes(tag.label)),
); );
async function remove(key) { async function remove(key) {
@ -188,10 +188,13 @@ function formatValue(value) {
const getLocale = (label) => { const getLocale = (label) => {
const param = label.split('.').at(-1); const param = label.split('.').at(-1);
const globalLocale = `globals.params.${param}`; const globalLocale = `globals.params.${param}`;
const moduleName = route.meta.moduleName;
const moduleLocale = `${moduleName.toLowerCase()}.${param}`;
if (te(globalLocale)) return t(globalLocale); if (te(globalLocale)) return t(globalLocale);
else if (te(t(`params.${param}`))); else if (te(moduleLocale)) return t(moduleLocale);
else { else {
const camelCaseModuleName = route.meta.moduleName.charAt(0).toLowerCase() + route.meta.moduleName.slice(1); const camelCaseModuleName =
moduleName.charAt(0).toLowerCase() + moduleName.slice(1);
return t(`${camelCaseModuleName}.params.${param}`); return t(`${camelCaseModuleName}.params.${param}`);
} }
}; };
@ -290,6 +293,9 @@ const getLocale = (label) => {
/> />
</template> </template>
<style scoped lang="scss"> <style scoped lang="scss">
.q-field__label.no-pointer-events.absolute.ellipsis {
margin-left: 6px !important;
}
.list { .list {
width: 256px; width: 256px;
} }

View File

@ -11,7 +11,7 @@
<QTooltip> <QTooltip>
{{ $t('components.cardDescriptor.moreOptions') }} {{ $t('components.cardDescriptor.moreOptions') }}
</QTooltip> </QTooltip>
<QMenu ref="menuRef"> <QMenu ref="menuRef" data-cy="descriptor-more-opts-menu">
<QList> <QList>
<slot name="menu" :menu-ref="$refs.menuRef" /> <slot name="menu" :menu-ref="$refs.menuRef" />
</QList> </QList>

View File

@ -1,6 +1,6 @@
<script setup> <script setup>
import axios from 'axios'; import axios from 'axios';
import { ref, reactive } from 'vue'; import { ref, reactive, useAttrs, computed } from 'vue';
import { onBeforeRouteLeave } from 'vue-router'; import { onBeforeRouteLeave } from 'vue-router';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { useQuasar } from 'quasar'; import { useQuasar } from 'quasar';
@ -16,12 +16,27 @@ import VnSelect from 'components/common/VnSelect.vue';
import FetchData from 'components/FetchData.vue'; import FetchData from 'components/FetchData.vue';
import VnInput from 'components/common/VnInput.vue'; import VnInput from 'components/common/VnInput.vue';
const emit = defineEmits(['onFetch']);
const originalAttrs = useAttrs();
const $attrs = computed(() => {
const { style, ...rest } = originalAttrs;
return rest;
});
const isRequired = computed(() => {
return Object.keys($attrs).includes('required')
});
const $props = defineProps({ const $props = defineProps({
url: { type: String, default: null }, url: { type: String, default: null },
saveUrl: {type: String, default: null},
filter: { type: Object, default: () => {} }, filter: { type: Object, default: () => {} },
body: { type: Object, default: () => {} }, body: { type: Object, default: () => {} },
addNote: { type: Boolean, default: false }, addNote: { type: Boolean, default: false },
selectType: { type: Boolean, default: false }, selectType: { type: Boolean, default: false },
justInput: { type: Boolean, default: false },
}); });
const { t } = useI18n(); const { t } = useI18n();
@ -29,6 +44,13 @@ const quasar = useQuasar();
const newNote = reactive({ text: null, observationTypeFk: null }); const newNote = reactive({ text: null, observationTypeFk: null });
const observationTypes = ref([]); const observationTypes = ref([]);
const vnPaginateRef = ref(); const vnPaginateRef = ref();
let originalText;
function handleClick(e) {
if (e.shiftKey && e.key === 'Enter') return;
if ($props.justInput) confirmAndUpdate();
else insert();
}
async function insert() { async function insert() {
if (!newNote.text || ($props.selectType && !newNote.observationTypeFk)) return; if (!newNote.text || ($props.selectType && !newNote.observationTypeFk)) return;
@ -41,8 +63,36 @@ async function insert() {
await axios.post($props.url, newBody); await axios.post($props.url, newBody);
await vnPaginateRef.value.fetch(); await vnPaginateRef.value.fetch();
} }
function confirmAndUpdate() {
if(!newNote.text && originalText)
quasar
.dialog({
component: VnConfirm,
componentProps: {
title: t('New note is empty'),
message: t('Are you sure remove this note?'),
},
})
.onOk(update)
.onCancel(() => {
newNote.text = originalText;
});
else update();
}
async function update() {
originalText = newNote.text;
const body = $props.body;
const newBody = {
...body,
...{ notes: newNote.text },
};
await axios.patch(`${$props.saveUrl ?? `${$props.url}/${$props.body.workerFk}`}`, newBody);
}
onBeforeRouteLeave((to, from, next) => { onBeforeRouteLeave((to, from, next) => {
if (newNote.text) if ((newNote.text && !$props.justInput) || (newNote.text !== originalText) && $props.justInput)
quasar.dialog({ quasar.dialog({
component: VnConfirm, component: VnConfirm,
componentProps: { componentProps: {
@ -53,6 +103,13 @@ onBeforeRouteLeave((to, from, next) => {
}); });
else next(); else next();
}); });
function fetchData([ data ]) {
newNote.text = data?.notes;
originalText = data?.notes;
emit('onFetch', data);
}
</script> </script>
<template> <template>
<FetchData <FetchData
@ -62,8 +119,19 @@ onBeforeRouteLeave((to, from, next) => {
auto-load auto-load
@on-fetch="(data) => (observationTypes = data)" @on-fetch="(data) => (observationTypes = data)"
/> />
<QCard class="q-pa-xs q-mb-lg full-width" v-if="$props.addNote"> <FetchData
<QCardSection horizontal> v-if="justInput"
:url="url"
:filter="filter"
@on-fetch="fetchData"
auto-load
/>
<QCard
class="q-pa-xs q-mb-lg full-width"
:class="{ 'just-input': $props.justInput }"
v-if="$props.addNote || $props.justInput"
>
<QCardSection horizontal v-if="!$props.justInput">
{{ t('New note') }} {{ t('New note') }}
</QCardSection> </QCardSection>
<QCardSection class="q-px-xs q-my-none q-py-none"> <QCardSection class="q-px-xs q-my-none q-py-none">
@ -75,19 +143,19 @@ onBeforeRouteLeave((to, from, next) => {
v-model="newNote.observationTypeFk" v-model="newNote.observationTypeFk"
option-label="description" option-label="description"
style="flex: 0.15" style="flex: 0.15"
:required="true" :required="isRequired"
@keyup.enter.stop="insert" @keyup.enter.stop="insert"
/> />
<VnInput <VnInput
v-model.trim="newNote.text" v-model.trim="newNote.text"
type="textarea" type="textarea"
:label="t('Add note here...')" :label="$props.justInput && newNote.text ? '' : t('Add note here...')"
filled filled
size="lg" size="lg"
autogrow autogrow
@keyup.enter.stop="insert" @keyup.enter.stop="handleClick"
:required="isRequired"
clearable clearable
:required="true"
> >
<template #append> <template #append>
<QBtn <QBtn
@ -95,7 +163,7 @@ onBeforeRouteLeave((to, from, next) => {
icon="save" icon="save"
color="primary" color="primary"
flat flat
@click="insert" @click="handleClick"
class="q-mb-xs" class="q-mb-xs"
dense dense
data-cy="saveNote" data-cy="saveNote"
@ -106,6 +174,7 @@ onBeforeRouteLeave((to, from, next) => {
</QCardSection> </QCardSection>
</QCard> </QCard>
<VnPaginate <VnPaginate
v-if="!$props.justInput"
:data-key="$props.url" :data-key="$props.url"
:url="$props.url" :url="$props.url"
order="created DESC" order="created DESC"
@ -198,6 +267,11 @@ onBeforeRouteLeave((to, from, next) => {
} }
} }
} }
.just-input {
padding-right: 18px;
margin-bottom: 2px;
box-shadow: none;
}
</style> </style>
<i18n> <i18n>
es: es:
@ -205,4 +279,6 @@ onBeforeRouteLeave((to, from, next) => {
New note: Nueva nota New note: Nueva nota
Save (Enter): Guardar (Intro) Save (Enter): Guardar (Intro)
Observation type: Tipo de observación Observation type: Tipo de observación
New note is empty: La nueva nota esta vacia
Are you sure remove this note?: Estas seguro de quitar esta nota?
</i18n> </i18n>

View File

@ -123,7 +123,7 @@ watch(
() => props.data, () => props.data,
() => { () => {
store.data = props.data; store.data = props.data;
} },
); );
watch( watch(
@ -132,12 +132,12 @@ watch(
if (!mounted.value) return; if (!mounted.value) return;
emit('onChange', data); emit('onChange', data);
}, },
{ immediate: true } { immediate: true },
); );
watch( watch(
() => [props.url, props.filter], () => [props.url, props.filter],
([url, filter]) => mounted.value && fetch({ url, filter }) ([url, filter]) => mounted.value && fetch({ url, filter }),
); );
const addFilter = async (filter, params) => { const addFilter = async (filter, params) => {
await arrayData.addFilter({ filter, params }); await arrayData.addFilter({ filter, params });
@ -198,7 +198,7 @@ function endPagination() {
async function onLoad(index, done) { async function onLoad(index, done) {
if (!store.data || !mounted.value) return done(); if (!store.data || !mounted.value) return done();
if (store.data.length === 0 || !props.url) return done(false); if (store.data.length === 0 || !arrayData.store.url) return done(false);
pagination.value.page = pagination.value.page + 1; pagination.value.page = pagination.value.page + 1;

View File

@ -49,7 +49,7 @@ function formatNumber(number) {
<VnPaginate <VnPaginate
:data-key="$props.url" :data-key="$props.url"
:url="$props.url" :url="$props.url"
:filter="filter" :user-filter="filter"
order="smsFk DESC" order="smsFk DESC"
:offset="100" :offset="100"
:limit="5" :limit="5"

View File

@ -0,0 +1,41 @@
<script setup>
import { toPercentage } from 'filters/index';
import { computed } from 'vue';
const props = defineProps({
value: {
type: Number,
required: true,
},
});
const valueClass = computed(() =>
props.value === 0 ? 'neutral' : props.value > 0 ? 'positive' : 'negative',
);
const iconName = computed(() =>
props.value === 0 ? 'equal' : props.value > 0 ? 'arrow_upward' : 'arrow_downward',
);
const formattedValue = computed(() => props.value);
</script>
<template>
<span :class="valueClass">
<QIcon :name="iconName" size="sm" class="value-icon" />
{{ toPercentage(formattedValue) }}
</span>
</template>
<style lang="scss" scoped>
.positive {
color: $secondary;
}
.negative {
color: $negative;
}
.neutral {
color: $primary;
}
.value-icon {
margin-right: 4px;
}
</style>

View File

@ -19,23 +19,26 @@ onMounted(() => {
const observer = new MutationObserver( const observer = new MutationObserver(
() => () =>
(hasContent.value = (hasContent.value =
actions.value?.childNodes?.length + data.value?.childNodes?.length) actions.value?.childNodes?.length + data.value?.childNodes?.length),
); );
if (actions.value) observer.observe(actions.value, opts); if (actions.value) observer.observe(actions.value, opts);
if (data.value) observer.observe(data.value, opts); if (data.value) observer.observe(data.value, opts);
}); });
onBeforeUnmount(() => stateStore.toggleSubToolbar()); const actionsChildCount = () => !!actions.value?.childNodes?.length;
onBeforeUnmount(() => stateStore.toggleSubToolbar() && hasSubToolbar);
</script> </script>
<template> <template>
<QToolbar <QToolbar
id="subToolbar" id="subToolbar"
class="justify-end sticky"
v-show="hasContent || $slots['st-actions'] || $slots['st-data']" v-show="hasContent || $slots['st-actions'] || $slots['st-data']"
class="justify-end sticky"
> >
<slot name="st-data"> <slot name="st-data">
<div id="st-data"></div> <div id="st-data" :class="{ 'full-width': !actionsChildCount() }">
</div>
</slot> </slot>
<QSpace /> <QSpace />
<slot name="st-actions"> <slot name="st-actions">

View File

@ -51,16 +51,6 @@ describe('CardSummary', () => {
expect(vm.store.filter).toEqual('cardFilter'); expect(vm.store.filter).toEqual('cardFilter');
}); });
it('should compute entity correctly from store data', () => {
vm.store.data = [{ id: 1, name: 'Entity 1' }];
expect(vm.entity).toEqual({ id: 1, name: 'Entity 1' });
});
it('should handle empty data gracefully', () => {
vm.store.data = [];
expect(vm.entity).toBeUndefined();
});
it('should respond to prop changes and refetch data', async () => { it('should respond to prop changes and refetch data', async () => {
const newUrl = 'CardSummary/35'; const newUrl = 'CardSummary/35';
const newKey = 'cardSummaryKey/35'; const newKey = 'cardSummaryKey/35';
@ -72,7 +62,7 @@ describe('CardSummary', () => {
expect(vm.store.filter).toEqual({ key: newKey }); expect(vm.store.filter).toEqual({ key: newKey });
}); });
it('should return true if route path ends with /summary' , () => { it('should return true if route path ends with /summary', () => {
expect(vm.isSummary).toBe(true); expect(vm.isSummary).toBe(true);
}); });
}); });

View File

@ -16,7 +16,7 @@ describe('useArrayData', () => {
vi.clearAllMocks(); vi.clearAllMocks();
}); });
it('should fetch and repalce url with new params', async () => { it('should fetch and replace url with new params', async () => {
vi.spyOn(axios, 'get').mockReturnValueOnce({ data: [] }); vi.spyOn(axios, 'get').mockReturnValueOnce({ data: [] });
const arrayData = useArrayData('ArrayData', { url: 'mockUrl' }); const arrayData = useArrayData('ArrayData', { url: 'mockUrl' });
@ -33,11 +33,11 @@ describe('useArrayData', () => {
}); });
expect(routerReplace.path).toEqual('mockSection/list'); expect(routerReplace.path).toEqual('mockSection/list');
expect(JSON.parse(routerReplace.query.params)).toEqual( expect(JSON.parse(routerReplace.query.params)).toEqual(
expect.objectContaining(params) expect.objectContaining(params),
); );
}); });
it('Should get data and send new URL without keeping parameters, if there is only one record', async () => { it('should get data and send new URL without keeping parameters, if there is only one record', async () => {
vi.spyOn(axios, 'get').mockReturnValueOnce({ data: [{ id: 1 }] }); vi.spyOn(axios, 'get').mockReturnValueOnce({ data: [{ id: 1 }] });
const arrayData = useArrayData('ArrayData', { url: 'mockUrl', navigate: {} }); const arrayData = useArrayData('ArrayData', { url: 'mockUrl', navigate: {} });
@ -56,7 +56,7 @@ describe('useArrayData', () => {
expect(routerPush.query).toBeUndefined(); expect(routerPush.query).toBeUndefined();
}); });
it('Should get data and send new URL keeping parameters, if you have more than one record', async () => { it('should get data and send new URL keeping parameters, if you have more than one record', async () => {
vi.spyOn(axios, 'get').mockReturnValueOnce({ data: [{ id: 1 }, { id: 2 }] }); vi.spyOn(axios, 'get').mockReturnValueOnce({ data: [{ id: 1 }, { id: 2 }] });
vi.spyOn(vueRouter, 'useRoute').mockReturnValue({ vi.spyOn(vueRouter, 'useRoute').mockReturnValue({
@ -95,4 +95,25 @@ describe('useArrayData', () => {
expect(routerPush.path).toEqual('mockName/'); expect(routerPush.path).toEqual('mockName/');
expect(routerPush.query.params).toBeDefined(); expect(routerPush.query.params).toBeDefined();
}); });
it('should return one record', async () => {
vi.spyOn(axios, 'get').mockReturnValueOnce({
data: [
{ id: 1, name: 'Entity 1' },
{ id: 2, name: 'Entity 2' },
],
});
const arrayData = useArrayData('ArrayData', { url: 'mockUrl', oneRecord: true });
await arrayData.fetch({});
expect(arrayData.store.data).toEqual({ id: 1, name: 'Entity 1' });
});
it('should handle empty data gracefully if has to return one record', async () => {
vi.spyOn(axios, 'get').mockReturnValueOnce({ data: [] });
const arrayData = useArrayData('ArrayData', { url: 'mockUrl', oneRecord: true });
await arrayData.fetch({});
expect(arrayData.store.data).toBeUndefined();
});
}); });

View File

@ -0,0 +1,65 @@
import { useQuasar } from 'quasar';
import { useI18n } from 'vue-i18n';
import { useRouter } from 'vue-router';
import axios from 'axios';
import VnConfirm from 'components/ui/VnConfirm.vue';
export async function checkEntryLock(entryFk, userFk) {
const { t } = useI18n();
const quasar = useQuasar();
const { push } = useRouter();
const { data } = await axios.get(`Entries/${entryFk}`, {
params: {
filter: JSON.stringify({
fields: ['id', 'locked', 'lockerUserFk'],
include: { relation: 'user', scope: { fields: ['id', 'nickname'] } },
}),
},
});
const entryConfig = await axios.get('EntryConfigs/findOne');
if (data?.lockerUserFk && data?.locked) {
const now = new Date(Date.vnNow()).getTime();
const lockedTime = new Date(data.locked).getTime();
const timeDiff = (now - lockedTime) / 1000;
const isMaxTimeLockExceeded = entryConfig.data.maxLockTime > timeDiff;
if (data?.lockerUserFk !== userFk && isMaxTimeLockExceeded) {
quasar
.dialog({
component: VnConfirm,
componentProps: {
'data-cy': 'entry-lock-confirm',
title: t('entry.lock.title'),
message: t('entry.lock.message', {
userName: data?.user?.nickname,
time: timeDiff / 60,
}),
},
})
.onOk(
async () =>
await axios.patch(`Entries/${entryFk}`, {
locked: Date.vnNow(),
lockerUserFk: userFk,
}),
)
.onCancel(() => {
push({ path: `summary` });
});
}
} else {
await axios
.patch(`Entries/${entryFk}`, {
locked: Date.vnNow(),
lockerUserFk: userFk,
})
.then(
quasar.notify({
message: t('entry.lock.success'),
color: 'positive',
group: false,
}),
);
}
}

View File

@ -0,0 +1,21 @@
export function getColAlign(col) {
let align;
switch (col.component) {
case 'select':
align = 'left';
break;
case 'number':
align = 'right';
break;
case 'date':
case 'checkbox':
align = 'center';
break;
default:
align = col?.align;
}
if (/^is[A-Z]/.test(col.name) || /^has[A-Z]/.test(col.name)) align = 'center';
return 'text-' + (align ?? 'center');
}

View File

@ -57,6 +57,7 @@ export function useArrayData(key, userOptions) {
'navigate', 'navigate',
'mapKey', 'mapKey',
'keepData', 'keepData',
'oneRecord',
]; ];
if (typeof userOptions === 'object') { if (typeof userOptions === 'object') {
for (const option in userOptions) { for (const option in userOptions) {
@ -93,6 +94,9 @@ export function useArrayData(key, userOptions) {
if (params.filter.where || exprFilter) if (params.filter.where || exprFilter)
params.filter.where = { ...params.filter.where, ...exprFilter }; params.filter.where = { ...params.filter.where, ...exprFilter };
if (!params?.filter?.order?.length) delete params?.filter?.order;
params.filter = JSON.stringify(params.filter); params.filter = JSON.stringify(params.filter);
store.isLoading = true; store.isLoading = true;
@ -109,7 +113,11 @@ export function useArrayData(key, userOptions) {
store.isLoading = false; store.isLoading = false;
canceller = null; canceller = null;
processData(response.data, { map: !!store.mapKey, append }); processData(response.data, {
map: !!store.mapKey,
append,
oneRecord: store.oneRecord,
});
return response; return response;
} }
@ -311,7 +319,11 @@ export function useArrayData(key, userOptions) {
return { params, limit }; return { params, limit };
} }
function processData(data, { map = true, append = true }) { function processData(data, { map = true, append = true, oneRecord = false }) {
if (oneRecord) {
store.data = Array.isArray(data) ? data[0] : data;
return;
}
if (!append) { if (!append) {
store.data = []; store.data = [];
store.map = new Map(); store.map = new Map();

View File

@ -27,6 +27,15 @@ export function useRole() {
return false; return false;
} }
function likeAny(roles) {
const roleStore = state.getRoles();
for (const role of roles) {
if (!roleStore.value.findIndex((rs) => rs.startsWith(role)) !== -1)
return true;
}
return false;
}
function isEmployee() { function isEmployee() {
return hasAny(['employee']); return hasAny(['employee']);
} }
@ -35,6 +44,7 @@ export function useRole() {
isEmployee, isEmployee,
fetch, fetch,
hasAny, hasAny,
likeAny,
state, state,
}; };
} }

View File

@ -21,7 +21,10 @@ body.body--light {
.q-header .q-toolbar { .q-header .q-toolbar {
color: var(--vn-text-color); color: var(--vn-text-color);
} }
--vn-color-negative: $negative;
} }
body.body--dark { body.body--dark {
--vn-header-color: #5d5d5d; --vn-header-color: #5d5d5d;
--vn-page-color: #222; --vn-page-color: #222;
@ -37,6 +40,8 @@ body.body--dark {
--vn-text-color-contrast: black; --vn-text-color-contrast: black;
background-color: var(--vn-page-color); background-color: var(--vn-page-color);
--vn-color-negative: $negative;
} }
a { a {
@ -75,7 +80,6 @@ a {
text-decoration: underline; text-decoration: underline;
} }
// Removes chrome autofill background
input:-webkit-autofill, input:-webkit-autofill,
select:-webkit-autofill { select:-webkit-autofill {
color: var(--vn-text-color); color: var(--vn-text-color);
@ -149,11 +153,6 @@ select:-webkit-autofill {
cursor: pointer; cursor: pointer;
} }
.vn-table-separation-row {
height: 16px !important;
background-color: var(--vn-section-color) !important;
}
/* Estilo para el asterisco en campos requeridos */ /* Estilo para el asterisco en campos requeridos */
.q-field.required .q-field__label:after { .q-field.required .q-field__label:after {
content: ' *'; content: ' *';
@ -212,6 +211,10 @@ select:-webkit-autofill {
justify-content: center; justify-content: center;
} }
.q-card__section[dense] {
padding: 0;
}
input[type='number'] { input[type='number'] {
-moz-appearance: textfield; -moz-appearance: textfield;
} }
@ -226,10 +229,12 @@ input::-webkit-inner-spin-button {
max-width: 100%; max-width: 100%;
} }
.q-table__container { .remove-bg {
/* ===== Scrollbar CSS ===== / filter: brightness(1.1);
/ Firefox */ mix-blend-mode: multiply;
}
.q-table__container {
* { * {
scrollbar-width: auto; scrollbar-width: auto;
scrollbar-color: var(--vn-label-color) transparent; scrollbar-color: var(--vn-label-color) transparent;
@ -270,8 +275,6 @@ input::-webkit-inner-spin-button {
font-size: 11pt; font-size: 11pt;
} }
td { td {
font-size: 11pt;
border-top: 1px solid var(--vn-page-color);
border-collapse: collapse; border-collapse: collapse;
} }
} }
@ -315,9 +318,6 @@ input::-webkit-inner-spin-button {
max-width: fit-content; max-width: fit-content;
} }
.row > .column:has(.q-checkbox) {
max-width: fit-content;
}
.q-field__inner { .q-field__inner {
.q-field__control { .q-field__control {
min-height: auto !important; min-height: auto !important;

Binary file not shown.

View File

@ -127,6 +127,7 @@
<glyph unicode="&#xe975;" glyph-name="stowaway" d="M1006.933 452.267l-260.267 106.667 29.867 29.867c4.267 4.267 4.267 12.8 4.267 17.067-4.267 4.267-8.533 8.533-12.8 8.533h-157.867c0 93.867 76.8 157.867 174.933 157.867 4.267 0 8.533 4.267 12.8 8.533s4.267 8.533 0 17.067l-81.067 153.6c-4.267 0-12.8 4.267-17.067 4.267-46.933 0-93.867-17.067-132.267-42.667-21.333-17.067-42.667-38.4-55.467-59.733-12.8 21.333-29.867 42.667-55.467 59.733-34.133 12.8-81.067 34.133-128 34.133-4.267 0-12.8-4.267-12.8-8.533l-85.333-153.6c-4.267-4.267-4.267-4.267 0-12.8 4.267-4.267 8.533-8.533 12.8-8.533 98.133 0 174.933-59.733 174.933-153.6v0h-140.8c-4.267 0-12.8-4.267-12.8-8.533-8.533-4.267-4.267-17.067 0-21.333l21.333-21.333-277.333-110.933c-8.533-8.533-12.8-12.8-8.533-21.333 0-8.533 8.533-12.8 17.067-12.8v0l98.133 4.267-81.067-85.333c0-4.267-4.267-8.533 0-12.8 0-4.267 4.267-8.533 8.533-8.533l85.333-34.133v-179.2c0-8.533 4.267-12.8 8.533-12.8l358.4-145.067h8.533l358.4 145.067c4.267 4.267 8.533 8.533 8.533 12.8v179.2l85.333 34.133c4.267 0 8.533 4.267 8.533 8.533s0 8.533-4.267 12.8l-68.267 98.133 102.4-4.267c8.533 0 12.8 4.267 17.067 12.8 8.533 0 4.267 4.267-4.267 12.8zM110.933 456.533l196.267 76.8 8.533-8.533-166.4-64-38.4-4.267zM153.6 285.867v0l-68.267 34.133 68.267 98.133 328.533-132.267-68.267-98.133-260.267 98.133zM490.667-29.867l-328.533 132.267v153.6l243.2-98.133h12.8c0 0 0 0 4.267 0v0c0 0 4.267 0 4.267 4.267l64 85.333c0-4.267 0-277.333 0-277.333zM490.667 324.267l-298.667 115.2 149.333 64 153.6-157.867v-17.067h-4.267zM529.067 337.067l157.867 157.867 140.8-55.467-298.667-115.2c0 0 0 12.8 0 12.8zM849.067 102.4l-328.533-132.267v281.6l64-85.333c0 0 0-4.267 4.267-4.267v0h17.067l243.2 98.133v-157.867zM938.667 324.267l-324.267-132.267-68.267 98.133 328.533 132.267 64-98.133zM870.4 460.8l-157.867 64 12.8 8.533 187.733-76.8-42.667 4.267z" /> <glyph unicode="&#xe975;" glyph-name="stowaway" d="M1006.933 452.267l-260.267 106.667 29.867 29.867c4.267 4.267 4.267 12.8 4.267 17.067-4.267 4.267-8.533 8.533-12.8 8.533h-157.867c0 93.867 76.8 157.867 174.933 157.867 4.267 0 8.533 4.267 12.8 8.533s4.267 8.533 0 17.067l-81.067 153.6c-4.267 0-12.8 4.267-17.067 4.267-46.933 0-93.867-17.067-132.267-42.667-21.333-17.067-42.667-38.4-55.467-59.733-12.8 21.333-29.867 42.667-55.467 59.733-34.133 12.8-81.067 34.133-128 34.133-4.267 0-12.8-4.267-12.8-8.533l-85.333-153.6c-4.267-4.267-4.267-4.267 0-12.8 4.267-4.267 8.533-8.533 12.8-8.533 98.133 0 174.933-59.733 174.933-153.6v0h-140.8c-4.267 0-12.8-4.267-12.8-8.533-8.533-4.267-4.267-17.067 0-21.333l21.333-21.333-277.333-110.933c-8.533-8.533-12.8-12.8-8.533-21.333 0-8.533 8.533-12.8 17.067-12.8v0l98.133 4.267-81.067-85.333c0-4.267-4.267-8.533 0-12.8 0-4.267 4.267-8.533 8.533-8.533l85.333-34.133v-179.2c0-8.533 4.267-12.8 8.533-12.8l358.4-145.067h8.533l358.4 145.067c4.267 4.267 8.533 8.533 8.533 12.8v179.2l85.333 34.133c4.267 0 8.533 4.267 8.533 8.533s0 8.533-4.267 12.8l-68.267 98.133 102.4-4.267c8.533 0 12.8 4.267 17.067 12.8 8.533 0 4.267 4.267-4.267 12.8zM110.933 456.533l196.267 76.8 8.533-8.533-166.4-64-38.4-4.267zM153.6 285.867v0l-68.267 34.133 68.267 98.133 328.533-132.267-68.267-98.133-260.267 98.133zM490.667-29.867l-328.533 132.267v153.6l243.2-98.133h12.8c0 0 0 0 4.267 0v0c0 0 4.267 0 4.267 4.267l64 85.333c0-4.267 0-277.333 0-277.333zM490.667 324.267l-298.667 115.2 149.333 64 153.6-157.867v-17.067h-4.267zM529.067 337.067l157.867 157.867 140.8-55.467-298.667-115.2c0 0 0 12.8 0 12.8zM849.067 102.4l-328.533-132.267v281.6l64-85.333c0 0 0-4.267 4.267-4.267v0h17.067l243.2 98.133v-157.867zM938.667 324.267l-324.267-132.267-68.267 98.133 328.533 132.267 64-98.133zM870.4 460.8l-157.867 64 12.8 8.533 187.733-76.8-42.667 4.267z" />
<glyph unicode="&#xe976;" glyph-name="supplier" d="M797.867 405.333l98.133 34.133 21.333-59.733-98.133-34.133-21.333 59.733zM1019.733 341.333c-4.267-8.533-8.533-12.8-17.067-17.067l-332.8-119.467c4.267-4.267 8.533-12.8 12.8-17.067l277.333 102.4 21.333-59.733-277.333-102.4c0-8.533 4.267-12.8 4.267-21.333 0-85.333-68.267-157.867-157.867-157.867-85.333 0-157.867 68.267-157.867 157.867 0 55.467 29.867 106.667 72.533 132.267l-217.6 610.133c-8.533 25.6-38.4 42.667-68.267 29.867l-157.867-55.467-21.333 59.733 157.867 59.733c59.733 17.067 123.733-12.8 149.333-72.533l221.867-614.4c8.533 0 12.8 0 21.333 4.267l-119.467 332.8c-4.267 17.067 4.267 34.133 17.067 38.4l136.533 51.2c0 0 0 0 0 0l115.2 42.667c0 0 0 0 0 0l136.533 51.2c8.533 4.267 17.067 4.267 25.6 0s12.8-8.533 17.067-17.067l145.067-396.8c0-4.267 0-12.8-4.267-21.333zM695.467 657.067l-59.733-21.333 8.533-21.333 59.733 21.333-8.533 21.333zM644.267 106.667c0 51.2-42.667 93.867-93.867 93.867s-93.867-42.667-93.867-93.867c0-51.2 42.667-93.867 93.867-93.867s93.867 38.4 93.867 93.867zM951.467 371.2l-119.467 332.8-76.8-29.867 17.067-51.2c4.267-8.533 4.267-17.067 0-25.6s-8.533-12.8-17.067-17.067l-115.2-42.667c-4.267 0-8.533 0-12.8 0-12.8 0-25.6 8.533-29.867 21.333l-17.067 51.2-76.8-29.867 119.467-332.8 328.533 123.733z" /> <glyph unicode="&#xe976;" glyph-name="supplier" d="M797.867 405.333l98.133 34.133 21.333-59.733-98.133-34.133-21.333 59.733zM1019.733 341.333c-4.267-8.533-8.533-12.8-17.067-17.067l-332.8-119.467c4.267-4.267 8.533-12.8 12.8-17.067l277.333 102.4 21.333-59.733-277.333-102.4c0-8.533 4.267-12.8 4.267-21.333 0-85.333-68.267-157.867-157.867-157.867-85.333 0-157.867 68.267-157.867 157.867 0 55.467 29.867 106.667 72.533 132.267l-217.6 610.133c-8.533 25.6-38.4 42.667-68.267 29.867l-157.867-55.467-21.333 59.733 157.867 59.733c59.733 17.067 123.733-12.8 149.333-72.533l221.867-614.4c8.533 0 12.8 0 21.333 4.267l-119.467 332.8c-4.267 17.067 4.267 34.133 17.067 38.4l136.533 51.2c0 0 0 0 0 0l115.2 42.667c0 0 0 0 0 0l136.533 51.2c8.533 4.267 17.067 4.267 25.6 0s12.8-8.533 17.067-17.067l145.067-396.8c0-4.267 0-12.8-4.267-21.333zM695.467 657.067l-59.733-21.333 8.533-21.333 59.733 21.333-8.533 21.333zM644.267 106.667c0 51.2-42.667 93.867-93.867 93.867s-93.867-42.667-93.867-93.867c0-51.2 42.667-93.867 93.867-93.867s93.867 38.4 93.867 93.867zM951.467 371.2l-119.467 332.8-76.8-29.867 17.067-51.2c4.267-8.533 4.267-17.067 0-25.6s-8.533-12.8-17.067-17.067l-115.2-42.667c-4.267 0-8.533 0-12.8 0-12.8 0-25.6 8.533-29.867 21.333l-17.067 51.2-76.8-29.867 119.467-332.8 328.533 123.733z" />
<glyph unicode="&#xe977;" glyph-name="supplierfalse" d="M198.827 882.773c22.187 0.427 41.813-14.080 48.64-34.133l8.107-22.187 105.813-105.813-54.187 149.333c-25.6 59.733-89.6 89.6-149.333 72.533l-13.653-5.12 54.613-54.613zM708.693 129.28l-173.653 173.653 15.36-43.093c-8.533-4.267-12.8-4.267-21.333-4.267l-29.867 83.2-108.373 108.373 74.24-208.64c-42.667-25.6-72.533-76.8-72.533-132.267 0-89.6 72.533-157.867 157.867-157.867 89.6 0 157.867 72.533 157.867 157.867 0 8.533-4.267 12.8-4.267 21.333l4.693 1.707zM550.4 12.373c-51.2 0-93.867 42.667-93.867 93.867s42.667 93.867 93.867 93.867 93.867-42.667 93.867-93.867c0-55.467-42.667-93.867-93.867-93.867zM960 289.707l-122.453-45.227 49.493-49.067 94.293 34.56zM504.32 577.707l-0.853 2.133 76.8 29.867 17.067-51.2c4.267-12.8 17.067-21.333 29.867-21.333 4.267 0 8.533 0 12.8 0l115.2 42.667c8.533 4.267 12.8 8.533 17.067 17.067s4.267 17.067 0 25.6l-17.067 51.2 76.8 29.867 119.467-332.8-174.507-65.707 45.653-45.653 180.053 64.427c8.533 4.267 12.8 8.533 17.067 17.067s4.267 17.067 4.267 21.333l-145.067 396.8c-4.267 8.533-8.533 12.8-17.067 17.067s-17.067 4.267-25.6 0l-136.533-51.2-115.2-42.667-134.4-50.347 54.187-54.187zM695.467 656.64l8.533-21.333-59.733-21.333-8.533 21.333 59.733 21.333zM896 439.040l-98.133-34.133 21.333-59.733 98.133 34.133zM39.253 960c-9.813 0-20.053-3.84-27.733-11.52-15.36-15.787-15.36-40.533 0-55.893l945.493-945.067c7.68-7.68 17.493-11.52 27.733-11.52 9.813 0 20.053 3.84 27.733 11.52 15.36 15.787 15.36 40.533 0 55.893l-945.493 945.067c-7.68 7.68-17.493 11.52-27.733 11.52z" /> <glyph unicode="&#xe977;" glyph-name="supplierfalse" d="M198.827 882.773c22.187 0.427 41.813-14.080 48.64-34.133l8.107-22.187 105.813-105.813-54.187 149.333c-25.6 59.733-89.6 89.6-149.333 72.533l-13.653-5.12 54.613-54.613zM708.693 129.28l-173.653 173.653 15.36-43.093c-8.533-4.267-12.8-4.267-21.333-4.267l-29.867 83.2-108.373 108.373 74.24-208.64c-42.667-25.6-72.533-76.8-72.533-132.267 0-89.6 72.533-157.867 157.867-157.867 89.6 0 157.867 72.533 157.867 157.867 0 8.533-4.267 12.8-4.267 21.333l4.693 1.707zM550.4 12.373c-51.2 0-93.867 42.667-93.867 93.867s42.667 93.867 93.867 93.867 93.867-42.667 93.867-93.867c0-55.467-42.667-93.867-93.867-93.867zM960 289.707l-122.453-45.227 49.493-49.067 94.293 34.56zM504.32 577.707l-0.853 2.133 76.8 29.867 17.067-51.2c4.267-12.8 17.067-21.333 29.867-21.333 4.267 0 8.533 0 12.8 0l115.2 42.667c8.533 4.267 12.8 8.533 17.067 17.067s4.267 17.067 0 25.6l-17.067 51.2 76.8 29.867 119.467-332.8-174.507-65.707 45.653-45.653 180.053 64.427c8.533 4.267 12.8 8.533 17.067 17.067s4.267 17.067 4.267 21.333l-145.067 396.8c-4.267 8.533-8.533 12.8-17.067 17.067s-17.067 4.267-25.6 0l-136.533-51.2-115.2-42.667-134.4-50.347 54.187-54.187zM695.467 656.64l8.533-21.333-59.733-21.333-8.533 21.333 59.733 21.333zM896 439.040l-98.133-34.133 21.333-59.733 98.133 34.133zM39.253 960c-9.813 0-20.053-3.84-27.733-11.52-15.36-15.787-15.36-40.533 0-55.893l945.493-945.067c7.68-7.68 17.493-11.52 27.733-11.52 9.813 0 20.053 3.84 27.733 11.52 15.36 15.787 15.36 40.533 0 55.893l-945.493 945.067c-7.68 7.68-17.493 11.52-27.733 11.52z" />
<glyph unicode="&#xe978;" glyph-name="inactive-car" d="M1024 900.267l-59.733 59.733-964.267-964.267 59.733-59.733 964.267 964.267zM0 55.893v448.853l119.467 341.333c5.547 17.067 15.787 30.72 30.72 41.387 14.507 10.24 31.147 15.787 49.067 15.787h625.92c6.827 0 13.653-0.853 20.053-2.133l-111.36-111.36h-514.987l-59.733-170.667h403.2l-113.92-113.92h-334.507v-284.587h50.773l-164.693-164.693zM316.587 423.253c8.96-8.96 15.787-19.627 19.627-30.72l-110.080-110.080c-11.52 4.267-21.76 10.667-30.72 19.627-16.64 16.64-24.747 36.693-24.747 60.587s8.107 43.947 24.747 60.587c16.64 16.64 36.693 24.747 60.587 24.747s43.947-8.107 60.587-24.747zM768 277.333c-23.893 0-43.947 8.107-60.587 24.747s-24.747 36.693-24.747 60.587 8.107 43.947 24.747 60.587c16.64 16.64 36.693 24.747 60.587 24.747s43.947-8.107 60.587-24.747c16.64-16.64 24.747-36.693 24.747-60.587s-8.107-43.947-24.747-60.587c-16.64-16.64-36.693-24.747-60.587-24.747zM936.96 753.067l87.040-248.32v-455.253c0-16.213-5.547-29.44-16.213-40.533s-24.32-16.213-40.533-16.213h-56.747c-16.213 0-29.44 5.547-40.533 16.213s-16.213 24.32-16.213 40.533v56.747h-563.2l113.92 113.92h505.6v284.587h-221.44l113.92 113.92h61.867l-16.213 46.080 88.32 88.32z" />
<glyph unicode="&#xe979;" glyph-name="tags" d="M729.6 960c-42.667 0-89.6 0-132.267 0-21.333 0-38.4-8.533-51.2-21.333-140.8-140.8-281.6-281.6-422.4-422.4-25.6-25.6-25.6-51.2 0-76.8 93.867-93.867 187.733-187.733 281.6-281.6 25.6-25.6 51.2-25.6 76.8 0 140.8 140.8 281.6 281.6 422.4 422.4 17.067 12.8 21.333 29.867 21.333 51.2 0 93.867 0 183.467 0 277.333 0 34.133-17.067 51.2-51.2 51.2-51.2 0-98.133 0-145.067 0zM682.667 763.733c0 25.6 17.067 46.933 42.667 46.933s46.933-21.333 46.933-46.933c0-25.6-21.333-46.933-46.933-46.933-21.333 0-42.667 21.333-42.667 46.933zM878.933 482.133c4.267-12.8 0-21.333-8.533-29.867-34.133-51.2-64-98.133-98.133-149.333-76.8-115.2-153.6-234.667-230.4-349.867-12.8-17.067-21.333-21.333-38.4-8.533-115.2 76.8-226.133 149.333-337.067 226.133-17.067 8.533-17.067 21.333-8.533 38.4 12.8 21.333 29.867 46.933 42.667 68.267 8.533 12.8 8.533 12.8 17.067 0 55.467-55.467 115.2-115.2 170.667-170.667 8.533-8.533 17.067-17.067 29.867-21.333 29.867-12.8 55.467-4.267 76.8 21.333 123.733 123.733 247.467 247.467 371.2 371.2 4.267 4.267 4.267 8.533 8.533 12.8 0-8.533 0-8.533 4.267-8.533z" /> <glyph unicode="&#xe979;" glyph-name="tags" d="M729.6 960c-42.667 0-89.6 0-132.267 0-21.333 0-38.4-8.533-51.2-21.333-140.8-140.8-281.6-281.6-422.4-422.4-25.6-25.6-25.6-51.2 0-76.8 93.867-93.867 187.733-187.733 281.6-281.6 25.6-25.6 51.2-25.6 76.8 0 140.8 140.8 281.6 281.6 422.4 422.4 17.067 12.8 21.333 29.867 21.333 51.2 0 93.867 0 183.467 0 277.333 0 34.133-17.067 51.2-51.2 51.2-51.2 0-98.133 0-145.067 0zM682.667 763.733c0 25.6 17.067 46.933 42.667 46.933s46.933-21.333 46.933-46.933c0-25.6-21.333-46.933-46.933-46.933-21.333 0-42.667 21.333-42.667 46.933zM878.933 482.133c4.267-12.8 0-21.333-8.533-29.867-34.133-51.2-64-98.133-98.133-149.333-76.8-115.2-153.6-234.667-230.4-349.867-12.8-17.067-21.333-21.333-38.4-8.533-115.2 76.8-226.133 149.333-337.067 226.133-17.067 8.533-17.067 21.333-8.533 38.4 12.8 21.333 29.867 46.933 42.667 68.267 8.533 12.8 8.533 12.8 17.067 0 55.467-55.467 115.2-115.2 170.667-170.667 8.533-8.533 17.067-17.067 29.867-21.333 29.867-12.8 55.467-4.267 76.8 21.333 123.733 123.733 247.467 247.467 371.2 371.2 4.267 4.267 4.267 8.533 8.533 12.8 0-8.533 0-8.533 4.267-8.533z" />
<glyph unicode="&#xe97a;" glyph-name="tax" d="M448 192c0 174.933 145.067 320 320 320 76.8 0 145.067-25.6 196.267-68.267v324.267c4.267 51.2-38.4 98.133-93.867 98.133h-204.8c-21.333 55.467-72.533 93.867-136.533 93.867s-115.2-38.4-136.533-98.133h-209.067c-55.467 0-98.133-42.667-98.133-93.867v-674.133c0-51.2 42.667-98.133 98.133-98.133h332.8c-42.667 55.467-68.267 123.733-68.267 196.267zM529.067 861.867c29.867 0 46.933-21.333 46.933-46.933 0-29.867-25.6-46.933-46.933-46.933-29.867 0-46.933 21.333-46.933 46.933-4.267 29.867 17.067 46.933 46.933 46.933zM708.267 247.467c-8.533 0-12.8 4.267-17.067 8.533s-8.533 8.533-8.533 17.067v17.067c0 8.533 0 12.8 4.267 17.067s8.533 8.533 17.067 8.533c8.533 0 12.8-4.267 17.067-8.533s4.267-12.8 4.267-17.067v-12.8c4.267-21.333-4.267-29.867-17.067-29.867zM870.4 132.267c4.267-4.267 4.267-12.8 4.267-17.067v-21.333c0-12.8-8.533-21.333-21.333-21.333-8.533 0-12.8 4.267-17.067 8.533s-8.533 12.8-8.533 17.067v17.067c0 8.533 4.267 12.8 8.533 17.067s8.533 8.533 17.067 8.533c8.533 0 12.8-4.267 17.067-8.533zM768 448c-140.8 0-256-115.2-256-256s115.2-256 256-256 256 115.2 256 256-115.2 256-256 256zM635.733 273.067v17.067c0 21.333 4.267 34.133 17.067 46.933s29.867 17.067 51.2 17.067c21.333 0 38.4-4.267 51.2-17.067s17.067-29.867 17.067-46.933v-17.067c0-21.333-4.267-34.133-17.067-46.933s-29.867-17.067-51.2-17.067-38.4 4.267-51.2 17.067c-8.533 12.8-17.067 29.867-17.067 46.933zM721.067 59.733l-34.133 17.067 153.6 243.2 34.133-17.067-153.6-243.2zM925.867 98.133c0-21.333-4.267-34.133-17.067-46.933s-29.867-17.067-51.2-17.067-38.4 4.267-51.2 17.067c-12.8 12.8-21.333 25.6-21.333 46.933v17.067c0 21.333 4.267 34.133 17.067 46.933s29.867 17.067 51.2 17.067 38.4-4.267 51.2-17.067c12.8-12.8 17.067-29.867 17.067-46.933v-17.067h4.267z" /> <glyph unicode="&#xe97a;" glyph-name="tax" d="M448 192c0 174.933 145.067 320 320 320 76.8 0 145.067-25.6 196.267-68.267v324.267c4.267 51.2-38.4 98.133-93.867 98.133h-204.8c-21.333 55.467-72.533 93.867-136.533 93.867s-115.2-38.4-136.533-98.133h-209.067c-55.467 0-98.133-42.667-98.133-93.867v-674.133c0-51.2 42.667-98.133 98.133-98.133h332.8c-42.667 55.467-68.267 123.733-68.267 196.267zM529.067 861.867c29.867 0 46.933-21.333 46.933-46.933 0-29.867-25.6-46.933-46.933-46.933-29.867 0-46.933 21.333-46.933 46.933-4.267 29.867 17.067 46.933 46.933 46.933zM708.267 247.467c-8.533 0-12.8 4.267-17.067 8.533s-8.533 8.533-8.533 17.067v17.067c0 8.533 0 12.8 4.267 17.067s8.533 8.533 17.067 8.533c8.533 0 12.8-4.267 17.067-8.533s4.267-12.8 4.267-17.067v-12.8c4.267-21.333-4.267-29.867-17.067-29.867zM870.4 132.267c4.267-4.267 4.267-12.8 4.267-17.067v-21.333c0-12.8-8.533-21.333-21.333-21.333-8.533 0-12.8 4.267-17.067 8.533s-8.533 12.8-8.533 17.067v17.067c0 8.533 4.267 12.8 8.533 17.067s8.533 8.533 17.067 8.533c8.533 0 12.8-4.267 17.067-8.533zM768 448c-140.8 0-256-115.2-256-256s115.2-256 256-256 256 115.2 256 256-115.2 256-256 256zM635.733 273.067v17.067c0 21.333 4.267 34.133 17.067 46.933s29.867 17.067 51.2 17.067c21.333 0 38.4-4.267 51.2-17.067s17.067-29.867 17.067-46.933v-17.067c0-21.333-4.267-34.133-17.067-46.933s-29.867-17.067-51.2-17.067-38.4 4.267-51.2 17.067c-8.533 12.8-17.067 29.867-17.067 46.933zM721.067 59.733l-34.133 17.067 153.6 243.2 34.133-17.067-153.6-243.2zM925.867 98.133c0-21.333-4.267-34.133-17.067-46.933s-29.867-17.067-51.2-17.067-38.4 4.267-51.2 17.067c-12.8 12.8-21.333 25.6-21.333 46.933v17.067c0 21.333 4.267 34.133 17.067 46.933s29.867 17.067 51.2 17.067 38.4-4.267 51.2-17.067c12.8-12.8 17.067-29.867 17.067-46.933v-17.067h4.267z" />
<glyph unicode="&#xe97b;" glyph-name="thermometer" d="M641.567 326.792v35.527h64.784v25.078h-64.784v119.118h64.784v25.078h-64.784v119.118h64.784v25.078h-64.784v121.208h64.784v25.078h-64.784v8.359c0 71.053-58.514 129.567-129.567 129.567s-129.567-58.514-129.567-129.567v-503.641c-54.335-39.706-87.771-104.49-87.771-173.453 0-119.118 96.131-217.339 217.339-217.339 119.118 0 217.339 96.131 217.339 217.339 0 66.873-33.437 131.657-87.771 173.453zM512-28.473c-100.31 0-179.722 81.502-179.722 179.722 0 64.784 33.437 123.298 87.771 154.645v524.539c0 50.155 41.796 91.951 91.951 91.951s91.951-41.796 91.951-91.951v-522.449c54.335-31.347 87.771-89.861 87.771-154.645 0-100.31-79.412-181.812-179.722-181.812zM652.016 435.461v25.078h35.527v-25.078h-35.527zM652.016 579.657v25.078h35.527v-25.078h-35.527zM652.016 723.853v25.078h35.527v-25.078h-35.527zM568.424 284.996v543.347c0 0 0 0 0 0s0 0 0 0v0 0c0 31.347-25.078 56.424-56.424 56.424s-56.424-25.078-56.424-56.424v0-543.347c-52.245-20.898-87.771-73.143-87.771-131.657 0-79.412 64.784-144.196 144.196-144.196s144.196 64.784 144.196 144.196c0 58.514-35.527 108.669-87.771 131.657zM470.204 824.163v4.18c0 22.988 18.808 41.796 41.796 41.796s41.796-18.808 41.796-41.796v-219.429h-85.682v215.249z" /> <glyph unicode="&#xe97b;" glyph-name="thermometer" d="M641.567 326.792v35.527h64.784v25.078h-64.784v119.118h64.784v25.078h-64.784v119.118h64.784v25.078h-64.784v121.208h64.784v25.078h-64.784v8.359c0 71.053-58.514 129.567-129.567 129.567s-129.567-58.514-129.567-129.567v-503.641c-54.335-39.706-87.771-104.49-87.771-173.453 0-119.118 96.131-217.339 217.339-217.339 119.118 0 217.339 96.131 217.339 217.339 0 66.873-33.437 131.657-87.771 173.453zM512-28.473c-100.31 0-179.722 81.502-179.722 179.722 0 64.784 33.437 123.298 87.771 154.645v524.539c0 50.155 41.796 91.951 91.951 91.951s91.951-41.796 91.951-91.951v-522.449c54.335-31.347 87.771-89.861 87.771-154.645 0-100.31-79.412-181.812-179.722-181.812zM652.016 435.461v25.078h35.527v-25.078h-35.527zM652.016 579.657v25.078h35.527v-25.078h-35.527zM652.016 723.853v25.078h35.527v-25.078h-35.527zM568.424 284.996v543.347c0 0 0 0 0 0s0 0 0 0v0 0c0 31.347-25.078 56.424-56.424 56.424s-56.424-25.078-56.424-56.424v0-543.347c-52.245-20.898-87.771-73.143-87.771-131.657 0-79.412 64.784-144.196 144.196-144.196s144.196 64.784 144.196 144.196c0 58.514-35.527 108.669-87.771 131.657zM470.204 824.163v4.18c0 22.988 18.808 41.796 41.796 41.796s41.796-18.808 41.796-41.796v-219.429h-85.682v215.249z" />

Before

Width:  |  Height:  |  Size: 185 KiB

After

Width:  |  Height:  |  Size: 186 KiB

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -1,10 +1,10 @@
@font-face { @font-face {
font-family: 'icon'; font-family: 'icon';
src: url('fonts/icon.eot?7j3xju'); src: url('fonts/icon.eot?uocffs');
src: url('fonts/icon.eot?7j3xju#iefix') format('embedded-opentype'), src: url('fonts/icon.eot?uocffs#iefix') format('embedded-opentype'),
url('fonts/icon.ttf?7j3xju') format('truetype'), url('fonts/icon.ttf?uocffs') format('truetype'),
url('fonts/icon.woff?7j3xju') format('woff'), url('fonts/icon.woff?uocffs') format('woff'),
url('fonts/icon.svg?7j3xju#icon') format('svg'); url('fonts/icon.svg?uocffs#icon') format('svg');
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
font-display: block; font-display: block;
@ -25,6 +25,9 @@
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
.icon-inactive-car:before {
content: "\e978";
}
.icon-hasItemLost:before { .icon-hasItemLost:before {
content: "\e957"; content: "\e957";
} }

View File

@ -13,7 +13,7 @@
// Tip: Use the "Theme Builder" on Quasar's documentation website. // Tip: Use the "Theme Builder" on Quasar's documentation website.
// Tip: to add new colors https://quasar.dev/style/color-palette/#adding-your-own-colors // Tip: to add new colors https://quasar.dev/style/color-palette/#adding-your-own-colors
$primary: #ec8916; $primary: #ec8916;
$secondary: $primary; $secondary: #89be34;
$positive: #c8e484; $positive: #c8e484;
$negative: #fb5252; $negative: #fb5252;
$info: #84d0e2; $info: #84d0e2;
@ -30,7 +30,9 @@ $color-spacer: #7979794d;
$border-thin-light: 1px solid $color-spacer-light; $border-thin-light: 1px solid $color-spacer-light;
$primary-light: #f5b351; $primary-light: #f5b351;
$dark-shadow-color: black; $dark-shadow-color: black;
$layout-shadow-dark: 0 0 10px 2px #00000033, 0 0px 10px #0000003d; $layout-shadow-dark:
0 0 10px 2px #00000033,
0 0px 10px #0000003d;
$spacing-md: 16px; $spacing-md: 16px;
$color-font-secondary: #777; $color-font-secondary: #777;
$width-xs: 400px; $width-xs: 400px;

View File

@ -33,6 +33,7 @@ globals:
reset: Reset reset: Reset
close: Close close: Close
cancel: Cancel cancel: Cancel
isSaveAndContinue: Save and continue
clone: Clone clone: Clone
confirm: Confirm confirm: Confirm
assign: Assign assign: Assign
@ -167,6 +168,7 @@ globals:
workCenters: Work centers workCenters: Work centers
modes: Modes modes: Modes
zones: Zones zones: Zones
negative: Negative
zonesList: List zonesList: List
deliveryDays: Delivery days deliveryDays: Delivery days
upcomingDeliveries: Upcoming deliveries upcomingDeliveries: Upcoming deliveries
@ -174,6 +176,7 @@ globals:
alias: Alias alias: Alias
aliasUsers: Users aliasUsers: Users
subRoles: Subroles subRoles: Subroles
myAccount: Mi cuenta
inheritedRoles: Inherited Roles inheritedRoles: Inherited Roles
customers: Customers customers: Customers
customerCreate: New customer customerCreate: New customer
@ -326,15 +329,19 @@ globals:
ticketsMonitor: Tickets monitor ticketsMonitor: Tickets monitor
clientsActionsMonitor: Clients and actions clientsActionsMonitor: Clients and actions
serial: Serial serial: Serial
business: Business
medical: Mutual medical: Mutual
pit: IRPF pit: IRPF
wasteRecalc: Waste recaclulate wasteRecalc: Waste recaclulate
operator: Operator operator: Operator
parking: Parking parking: Parking
vehicleList: Vehicles
vehicle: Vehicle
unsavedPopup: unsavedPopup:
title: Unsaved changes will be lost title: Unsaved changes will be lost
subtitle: Are you sure exit without saving? subtitle: Are you sure exit without saving?
params: params:
description: Description
clientFk: Client id clientFk: Client id
salesPersonFk: Sales person salesPersonFk: Sales person
warehouseFk: Warehouse warehouseFk: Warehouse
@ -357,7 +364,13 @@ globals:
correctingFk: Rectificative correctingFk: Rectificative
daysOnward: Days onward daysOnward: Days onward
countryFk: Country countryFk: Country
countryCodeFk: Country
companyFk: Company companyFk: Company
model: Model
fuel: Fuel
active: Active
inactive: Inactive
deliveryPoint: Delivery point
errors: errors:
statusUnauthorized: Access denied statusUnauthorized: Access denied
statusInternalServerError: An internal server error has ocurred statusInternalServerError: An internal server error has ocurred
@ -377,7 +390,7 @@ login:
loginError: Invalid username or password loginError: Invalid username or password
fieldRequired: This field is required fieldRequired: This field is required
twoFactorRequired: Two-factor verification required twoFactorRequired: Two-factor verification required
twoFactorRequired: twoFactor:
validate: Validate validate: Validate
insert: Enter the verification code insert: Enter the verification code
explanation: >- explanation: >-
@ -396,6 +409,106 @@ cau:
subtitle: By sending this ticket, all the data related to the error, the section, the user, etc., are already sent. subtitle: By sending this ticket, all the data related to the error, the section, the user, etc., are already sent.
inputLabel: Explain why this error should not appear inputLabel: Explain why this error should not appear
askPrivileges: Ask for privileges askPrivileges: Ask for privileges
entry:
list:
newEntry: New entry
tableVisibleColumns:
isExcludedFromAvailable: Exclude from inventory
isOrdered: Ordered
isConfirmed: Ready to label
isReceived: Received
isRaid: Raid
landed: Date
supplierFk: Supplier
reference: Ref/Alb/Guide
invoiceNumber: Invoice
agencyModeId: Agency
isBooked: Booked
companyFk: Company
evaNotes: Notes
warehouseOutFk: Origin
warehouseInFk: Destiny
entryTypeDescription: Entry type
invoiceAmount: Import
travelFk: Travel
summary:
invoiceAmount: Amount
commission: Commission
currency: Currency
invoiceNumber: Invoice number
ordered: Ordered
booked: Booked
excludedFromAvailable: Inventory
travelReference: Reference
travelAgency: Agency
travelShipped: Shipped
travelDelivered: Delivered
travelLanded: Landed
travelReceived: Received
buys: Buys
stickers: Stickers
package: Package
packing: Pack.
grouping: Group.
buyingValue: Buying value
import: Import
pvp: PVP
basicData:
travel: Travel
currency: Currency
commission: Commission
observation: Observation
booked: Booked
excludedFromAvailable: Inventory
buys:
observations: Observations
packagingFk: Box
color: Color
printedStickers: Printed stickers
notes:
observationType: Observation type
latestBuys:
tableVisibleColumns:
image: Picture
itemFk: Item ID
weightByPiece: Weight/Piece
isActive: Active
family: Family
entryFk: Entry
freightValue: Freight value
comissionValue: Commission value
packageValue: Package value
isIgnored: Is ignored
price2: Grouping
price3: Packing
minPrice: Min
ektFk: Ekt
packingOut: Package out
landing: Landing
isExcludedFromAvailable: Exclude from inventory
isRaid: Raid
invoiceNumber: Invoice
reference: Ref/Alb/Guide
params:
isExcludedFromAvailable: Excluir del inventario
isOrdered: Pedida
isConfirmed: Lista para etiquetar
isReceived: Recibida
isRaid: Redada
landed: Fecha
supplierFk: Proveedor
invoiceNumber: Nº Factura
reference: Ref/Alb/Guía
agencyModeId: Agencia
isBooked: Asentado
companyFk: Empresa
travelFk: Envio
evaNotes: Notas
warehouseOutFk: Origen
warehouseInFk: Destino
entryTypeDescription: Tipo entrada
invoiceAmount: Importe
dated: Fecha
ticket: ticket:
params: params:
ticketFk: Ticket ID ticketFk: Ticket ID
@ -456,48 +569,6 @@ ticket:
consigneeStreet: Street consigneeStreet: Street
create: create:
address: Address address: Address
invoiceOut:
card:
issued: Issued
customerCard: Customer card
ticketList: Ticket List
summary:
issued: Issued
dued: Due
booked: Booked
taxBreakdown: Tax breakdown
taxableBase: Taxable base
rate: Rate
fee: Fee
tickets: Tickets
totalWithVat: Amount
globalInvoices:
errors:
chooseValidClient: Choose a valid client
chooseValidCompany: Choose a valid company
chooseValidPrinter: Choose a valid printer
chooseValidSerialType: Choose a serial type
fillDates: Invoice date and the max date should be filled
invoiceDateLessThanMaxDate: Invoice date can not be less than max date
invoiceWithFutureDate: Exists an invoice with a future date
noTicketsToInvoice: There are not tickets to invoice
criticalInvoiceError: 'Critical invoicing error, process stopped'
invalidSerialTypeForAll: The serial type must be global when invoicing all clients
table:
addressId: Address id
streetAddress: Street
statusCard:
percentageText: '{getPercentage}% {getAddressNumber} of {getNAddresses}'
pdfsNumberText: '{nPdfs} of {totalPdfs} PDFs'
negativeBases:
clientId: Client Id
base: Base
active: Active
hasToInvoice: Has to Invoice
verifiedData: Verified Data
comercial: Comercial
errors:
downloadCsvFailed: CSV download failed
department: department:
chat: Chat chat: Chat
bossDepartment: Boss Department bossDepartment: Boss Department
@ -509,6 +580,24 @@ department:
hasToSendMail: Send check-ins by email hasToSendMail: Send check-ins by email
departmentRemoved: Department removed departmentRemoved: Department removed
worker: worker:
pageTitles:
workers: Workers
list: List
basicData: Basic data
summary: Summary
notifications: Notifications
workerCreate: New worker
department: Department
pda: PDA
notes: Notas
dms: My documentation
pbx: Private Branch Exchange
log: Log
calendar: Calendar
timeControl: Time control
locker: Locker
balance: Balance
medical: Medical
list: list:
department: Department department: Department
schedule: Schedule schedule: Schedule
@ -524,15 +613,24 @@ worker:
role: Role role: Role
sipExtension: Extension sipExtension: Extension
locker: Locker locker: Locker
fiDueDate: FI due date fiDueDate: DNI expiration date
sex: Sex sex: Sex
seniority: Seniority seniority: Antiquity
fi: DNI/NIE/NIF fi: DNI/NIE/NIF
birth: Birth birth: Birth
isFreelance: Freelance isFreelance: Freelance
isSsDiscounted: SS Bonification isSsDiscounted: SS Bonification
hasMachineryAuthorized: Machinery authorized hasMachineryAuthorized: Machinery authorized
isDisable: Disable isDisable: Disable
business: Business
started: Started
ended: Ended
reasonEnd: Reason End
department: Departament
workerBusinessCategory: Worker Business Category
notes: Notes
workCenter: Center
professionalCategory: Professional Category
notificationsManager: notificationsManager:
activeNotifications: Active notifications activeNotifications: Active notifications
availableNotifications: Available notifications availableNotifications: Available notifications
@ -591,6 +689,23 @@ worker:
sizeLimit: Size limit sizeLimit: Size limit
isOnReservationMode: Reservation mode isOnReservationMode: Reservation mode
machine: Machine machine: Machine
business:
tableVisibleColumns:
started: Start Date
ended: End Date
company: Company
reasonEnd: Reason for Termination
department: Department
professionalCategory: Professional Category
calendarType: Work Calendar
workCenter: Work Center
payrollCategories: Contract Category
occupationCode: Contribution Code
rate: Rate
businessType: Contract Type
amount: Salary
basicSalary: Transport Workers Salary
notes: Notes
wagon: wagon:
type: type:
submit: Submit submit: Submit
@ -623,6 +738,8 @@ wagon:
name: Name name: Name
supplier: supplier:
search: Search supplier
searchInfo: Search supplier by id or name
list: list:
payMethod: Pay method payMethod: Pay method
account: Account account: Account

View File

@ -33,9 +33,11 @@ globals:
reset: Restaurar reset: Restaurar
close: Cerrar close: Cerrar
cancel: Cancelar cancel: Cancelar
isSaveAndContinue: Guardar y continuar
clone: Clonar clone: Clonar
confirm: Confirmar confirm: Confirmar
assign: Asignar assign: Asignar
replace: Sustituir
back: Volver back: Volver
yes: Si yes: Si
no: No no: No
@ -48,6 +50,7 @@ globals:
rowRemoved: Fila eliminada rowRemoved: Fila eliminada
pleaseWait: Por favor espera... pleaseWait: Por favor espera...
noPinnedModules: No has fijado ningún módulo noPinnedModules: No has fijado ningún módulo
split: Split
summary: summary:
basicData: Datos básicos basicData: Datos básicos
daysOnward: Días adelante daysOnward: Días adelante
@ -55,8 +58,8 @@ globals:
today: Hoy today: Hoy
yesterday: Ayer yesterday: Ayer
dateFormat: es-ES dateFormat: es-ES
microsip: Abrir en MicroSIP
noSelectedRows: No tienes ninguna línea seleccionada noSelectedRows: No tienes ninguna línea seleccionada
microsip: Abrir en MicroSIP
downloadCSVSuccess: Descarga de CSV exitosa downloadCSVSuccess: Descarga de CSV exitosa
reference: Referencia reference: Referencia
agency: Agencia agency: Agencia
@ -76,8 +79,10 @@ globals:
requiredField: Campo obligatorio requiredField: Campo obligatorio
class: clase class: clase
type: Tipo type: Tipo
reason: motivo reason: Motivo
removeSelection: Eliminar selección
noResults: Sin resultados noResults: Sin resultados
results: resultados
system: Sistema system: Sistema
notificationSent: Notificación enviada notificationSent: Notificación enviada
warehouse: Almacén warehouse: Almacén
@ -166,6 +171,7 @@ globals:
agency: Agencia agency: Agencia
workCenters: Centros de trabajo workCenters: Centros de trabajo
modes: Modos modes: Modos
negative: Tickets negativos
zones: Zonas zones: Zonas
zonesList: Listado zonesList: Listado
deliveryDays: Días de entrega deliveryDays: Días de entrega
@ -286,9 +292,9 @@ globals:
buyRequest: Peticiones de compra buyRequest: Peticiones de compra
wasteBreakdown: Deglose de mermas wasteBreakdown: Deglose de mermas
itemCreate: Nuevo artículo itemCreate: Nuevo artículo
tax: 'IVA' tax: IVA
botanical: 'Botánico' botanical: Botánico
barcode: 'Código de barras' barcode: Código de barras
itemTypeCreate: Nueva familia itemTypeCreate: Nueva familia
family: Familia family: Familia
lastEntries: Últimas entradas lastEntries: Últimas entradas
@ -326,15 +332,19 @@ globals:
ticketsMonitor: Monitor de tickets ticketsMonitor: Monitor de tickets
clientsActionsMonitor: Clientes y acciones clientsActionsMonitor: Clientes y acciones
serial: Facturas por serie serial: Facturas por serie
business: Contratos
medical: Mutua medical: Mutua
pit: IRPF pit: IRPF
wasteRecalc: Recalcular mermas wasteRecalc: Recalcular mermas
operator: Operario operator: Operario
parking: Parking parking: Parking
vehicleList: Vehículos
vehicle: Vehículo
unsavedPopup: unsavedPopup:
title: Los cambios que no haya guardado se perderán title: Los cambios que no haya guardado se perderán
subtitle: ¿Seguro que quiere salir sin guardar? subtitle: ¿Seguro que quiere salir sin guardar?
params: params:
description: Descripción
clientFk: Id cliente clientFk: Id cliente
salesPersonFk: Comercial salesPersonFk: Comercial
warehouseFk: Almacén warehouseFk: Almacén
@ -348,13 +358,14 @@ globals:
from: Desde from: Desde
to: Hasta to: Hasta
supplierFk: Proveedor supplierFk: Proveedor
supplierRef: Ref. proveedor supplierRef: Nº factura
serial: Serie serial: Serie
amount: Importe amount: Importe
awbCode: AWB awbCode: AWB
daysOnward: Días adelante daysOnward: Días adelante
packing: ITP packing: ITP
countryFk: País countryFk: País
countryCodeFk: País
companyFk: Empresa companyFk: Empresa
errors: errors:
statusUnauthorized: Acceso denegado statusUnauthorized: Acceso denegado
@ -392,6 +403,87 @@ cau:
subtitle: Al enviar este cau ya se envían todos los datos relacionados con el error, la sección, el usuario, etc subtitle: Al enviar este cau ya se envían todos los datos relacionados con el error, la sección, el usuario, etc
inputLabel: Explique el motivo por el que no deberia aparecer este fallo inputLabel: Explique el motivo por el que no deberia aparecer este fallo
askPrivileges: Solicitar permisos askPrivileges: Solicitar permisos
entry:
list:
newEntry: Nueva entrada
tableVisibleColumns:
isExcludedFromAvailable: Excluir del inventario
isOrdered: Pedida
isConfirmed: Lista para etiquetar
isReceived: Recibida
isRaid: Redada
landed: Fecha
supplierFk: Proveedor
invoiceNumber: Nº Factura
reference: Ref/Alb/Guía
agencyModeId: Agencia
isBooked: Asentado
companyFk: Empresa
travelFk: Envio
evaNotes: Notas
warehouseOutFk: Origen
warehouseInFk: Destino
entryTypeDescription: Tipo entrada
invoiceAmount: Importe
summary:
invoiceAmount: Importe
commission: Comisión
currency: Moneda
invoiceNumber: Núm. factura
ordered: Pedida
booked: Contabilizada
excludedFromAvailable: Inventario
travelReference: Referencia
travelAgency: Agencia
travelShipped: F. envio
travelWarehouseOut: Alm. salida
travelDelivered: Enviada
travelLanded: F. entrega
travelReceived: Recibida
buys: Compras
stickers: Etiquetas
package: Embalaje
packing: Pack.
grouping: Group.
buyingValue: Coste
import: Importe
pvp: PVP
basicData:
travel: Envío
currency: Moneda
observation: Observación
commission: Comisión
booked: Asentado
excludedFromAvailable: Inventario
buys:
observations: Observaciónes
packagingFk: Embalaje
color: Color
printedStickers: Etiquetas impresas
notes:
observationType: Tipo de observación
latestBuys:
tableVisibleColumns:
image: Foto
itemFk: Id Artículo
weightByPiece: Peso (gramos)/tallo
isActive: Activo
family: Familia
entryFk: Entrada
freightValue: Porte
comissionValue: Comisión
packageValue: Embalaje
isIgnored: Ignorado
price2: Grouping
price3: Packing
minPrice: Min
ektFk: Ekt
packingOut: Embalaje envíos
landing: Llegada
isExcludedFromAvailable: Excluir del inventario
isRaid: Redada
invoiceNumber: Nº Factura
reference: Ref/Alb/Guía
ticket: ticket:
params: params:
ticketFk: ID de ticket ticketFk: ID de ticket
@ -405,6 +497,38 @@ ticket:
freightItemName: Nombre freightItemName: Nombre
packageItemName: Embalaje packageItemName: Embalaje
longName: Descripción longName: Descripción
pageTitles:
tickets: Tickets
list: Listado
ticketCreate: Nuevo ticket
summary: Resumen
basicData: Datos básicos
boxing: Encajado
sms: Sms
notes: Notas
sale: Lineas del pedido
dms: Gestión documental
negative: Tickets negativos
volume: Volumen
observation: Notas
ticketAdvance: Adelantar tickets
futureTickets: Tickets a futuro
expedition: Expedición
purchaseRequest: Petición de compra
weeklyTickets: Tickets programados
saleTracking: Líneas preparadas
services: Servicios
tracking: Estados
components: Componentes
pictures: Fotos
packages: Bultos
list:
nickname: Alias
state: Estado
shipped: Enviado
landed: Entregado
salesPerson: Comercial
total: Total
card: card:
customerId: ID cliente customerId: ID cliente
customerCard: Ficha del cliente customerCard: Ficha del cliente
@ -451,15 +575,11 @@ ticket:
consigneeStreet: Dirección consigneeStreet: Dirección
create: create:
address: Dirección address: Dirección
order: invoiceOut:
field: card:
salesPersonFk: Comercial issued: Fecha emisión
form: customerCard: Ficha del cliente
clientFk: Cliente ticketList: Listado de tickets
addressFk: Dirección
agencyModeFk: Agencia
list:
newOrder: Nuevo Pedido
summary: summary:
issued: Fecha issued: Fecha
dued: Fecha límite dued: Fecha límite
@ -470,6 +590,71 @@ order:
fee: Cuota fee: Cuota
tickets: Tickets tickets: Tickets
totalWithVat: Importe totalWithVat: Importe
globalInvoices:
errors:
chooseValidClient: Selecciona un cliente válido
chooseValidCompany: Selecciona una empresa válida
chooseValidPrinter: Selecciona una impresora válida
chooseValidSerialType: Selecciona una tipo de serie válida
fillDates: La fecha de la factura y la fecha máxima deben estar completas
invoiceDateLessThanMaxDate: La fecha de la factura no puede ser menor que la fecha máxima
invoiceWithFutureDate: Existe una factura con una fecha futura
noTicketsToInvoice: No existen tickets para facturar
criticalInvoiceError: Error crítico en la facturación proceso detenido
invalidSerialTypeForAll: El tipo de serie debe ser global cuando se facturan todos los clientes
table:
addressId: Id dirección
streetAddress: Dirección fiscal
statusCard:
percentageText: '{getPercentage}% {getAddressNumber} de {getNAddresses}'
pdfsNumberText: '{nPdfs} de {totalPdfs} PDFs'
negativeBases:
clientId: Id cliente
base: Base
active: Activo
hasToInvoice: Facturar
verifiedData: Datos comprobados
comercial: Comercial
errors:
downloadCsvFailed: Error al descargar CSV
order:
field:
salesPersonFk: Comercial
form:
clientFk: Cliente
addressFk: Dirección
agencyModeFk: Agencia
list:
newOrder: Nuevo Pedido
summary:
basket: Cesta
notConfirmed: No confirmada
created: Creado
createdFrom: Creado desde
address: Dirección
total: Total
vat: IVA
state: Estado
alias: Alias
items: Artículos
orderTicketList: Tickets del pedido
amount: Monto
confirm: Confirmar
confirmLines: Confirmar lineas
shelving:
list:
parking: Parking
priority: Prioridad
newShelving: Nuevo Carro
summary:
recyclable: Reciclable
parking:
pickingOrder: Orden de recogida
row: Fila
column: Columna
searchBar:
info: Puedes buscar por código de parking
label: Buscar parking...
department: department:
chat: Chat chat: Chat
bossDepartment: Jefe de departamento bossDepartment: Jefe de departamento
@ -481,6 +666,26 @@ department:
hasToSendMail: Enviar fichadas por mail hasToSendMail: Enviar fichadas por mail
departmentRemoved: Departamento eliminado departmentRemoved: Departamento eliminado
worker: worker:
pageTitles:
workers: Trabajadores
list: Listado
basicData: Datos básicos
summary: Resumen
notifications: Notificaciones
workerCreate: Nuevo trabajador
department: Departamentos
pda: PDA
notes: Notas
dms: Mi documentación
pbx: Centralita
log: Historial
calendar: Calendario
timeControl: Control de horario
locker: Taquilla
balance: Balance
business: Contrato
formation: Formación
medical: Mutua
list: list:
department: Departamento department: Departamento
schedule: Horario schedule: Horario
@ -505,6 +710,15 @@ worker:
isSsDiscounted: Bonificación SS isSsDiscounted: Bonificación SS
hasMachineryAuthorized: Autorizado para maquinaria hasMachineryAuthorized: Autorizado para maquinaria
isDisable: Deshabilitado isDisable: Deshabilitado
business: Contrato
started: Antigüedad
ended: Fin
reasonEnd: Motivo finalización
department: Departamento
workerBusinessCategory: Categoria profesional
notes: Notas
workCenter: Centro
professionalCategory: Categoria profesional
notificationsManager: notificationsManager:
activeNotifications: Notificaciones activas activeNotifications: Notificaciones activas
availableNotifications: Notificaciones disponibles availableNotifications: Notificaciones disponibles
@ -551,6 +765,23 @@ worker:
debit: Debe debit: Debe
credit: Haber credit: Haber
concept: Concepto concept: Concepto
business:
tableVisibleColumns:
started: Fecha inicio
ended: Fecha fin
company: Empresa
reasonEnd: Motivo finalización
department: Departamento
professionalCategory: Categoria profesional
calendarType: Calendario laboral
workCenter: Centro
payrollCategories: Categoria contrato
occupationCode: Cotización
rate: Tarifa
businessType: Contrato
amount: Salario
basicSalary: Salario transportistas
notes: Notas
operator: operator:
numberOfWagons: Número de vagones numberOfWagons: Número de vagones
train: tren train: tren
@ -563,7 +794,6 @@ worker:
sizeLimit: Tamaño límite sizeLimit: Tamaño límite
isOnReservationMode: Modo de reserva isOnReservationMode: Modo de reserva
machine: Máquina machine: Máquina
wagon: wagon:
type: type:
submit: Guardar submit: Guardar
@ -585,8 +815,8 @@ wagon:
volumeNotEmpty: El volumen no puede estar vacío volumeNotEmpty: El volumen no puede estar vacío
typeNotEmpty: El tipo no puede estar vacío typeNotEmpty: El tipo no puede estar vacío
maxTrays: Has alcanzado el número máximo de bandejas maxTrays: Has alcanzado el número máximo de bandejas
minHeightBetweenTrays: 'La distancia mínima entre bandejas es ' minHeightBetweenTrays: La distancia mínima entre bandejas es
maxWagonHeight: 'La altura máxima del vagón es ' maxWagonHeight: La altura máxima del vagón es
uncompleteTrays: Hay bandejas sin completar uncompleteTrays: Hay bandejas sin completar
params: params:
label: Etiqueta label: Etiqueta
@ -594,6 +824,8 @@ wagon:
volume: Volumen volume: Volumen
name: Nombre name: Nombre
supplier: supplier:
search: Buscar proveedor
searchInfo: Buscar proveedor por id o nombre
list: list:
payMethod: Método de pago payMethod: Método de pago
account: Cuenta account: Cuenta
@ -731,7 +963,7 @@ components:
cardDescriptor: cardDescriptor:
mainList: Listado principal mainList: Listado principal
summary: Resumen summary: Resumen
moreOptions: 'Más opciones' moreOptions: Más opciones
leftMenu: leftMenu:
addToPinned: Añadir a fijados addToPinned: Añadir a fijados
removeFromPinned: Eliminar de fijados removeFromPinned: Eliminar de fijados

View File

@ -2,7 +2,7 @@
import Navbar from 'src/components/NavBar.vue'; import Navbar from 'src/components/NavBar.vue';
</script> </script>
<template> <template>
<QLayout view="hHh LpR fFf" v-shortcut> <QLayout view="hHh LpR fFf">
<Navbar /> <Navbar />
<RouterView></RouterView> <RouterView></RouterView>
<QFooter v-if="$q.platform.is.mobile"></QFooter> <QFooter v-if="$q.platform.is.mobile"></QFooter>

View File

@ -1,12 +1,12 @@
<script setup> <script setup>
import { Dark, Quasar } from 'quasar'; import { Dark, Quasar } from 'quasar';
import { computed } from 'vue'; import { computed, onMounted } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { localeEquivalence } from 'src/i18n/index'; import { localeEquivalence } from 'src/i18n/index';
import quasarLang from 'src/utils/quasarLang'; import quasarLang from 'src/utils/quasarLang';
import { langs } from 'src/boot/defaults/constants.js';
const { t, locale } = useI18n(); const { t, locale } = useI18n();
const userLocale = computed({ const userLocale = computed({
get() { get() {
return locale.value; return locale.value;
@ -28,7 +28,6 @@ const darkMode = computed({
Dark.set(value); Dark.set(value);
}, },
}); });
const langs = ['en', 'es'];
</script> </script>
<template> <template>

View File

@ -3,6 +3,7 @@ import { useI18n } from 'vue-i18n';
import { ref, computed } from 'vue'; import { ref, computed } from 'vue';
import VnTable from 'components/VnTable/VnTable.vue'; import VnTable from 'components/VnTable/VnTable.vue';
import VnSection from 'src/components/common/VnSection.vue'; import VnSection from 'src/components/common/VnSection.vue';
import exprBuilder from './Alias/AliasExprBuilder';
const tableRef = ref(); const tableRef = ref();
const { t } = useI18n(); const { t } = useI18n();
@ -31,15 +32,6 @@ const columns = computed(() => [
create: true, create: true,
}, },
]); ]);
const exprBuilder = (param, value) => {
switch (param) {
case 'search':
return /^\d+$/.test(value)
? { id: value }
: { alias: { like: `%${value}%` } };
}
};
</script> </script>
<template> <template>

View File

@ -46,7 +46,7 @@ const killSession = async ({ userId, created }) => {
<VnPaginate <VnPaginate
:data-key="urlPath" :data-key="urlPath"
ref="paginateRef" ref="paginateRef"
:filter="filter" :user-filter="filter"
:url="urlPath" :url="urlPath"
order="created DESC" order="created DESC"
auto-load auto-load

View File

@ -0,0 +1,18 @@
export default (param, value) => {
switch (param) {
case 'search':
return /^\d+$/.test(value)
? { id: value }
: {
or: [
{ name: { like: `%${value}%` } },
{ nickname: { like: `%${value}%` } },
],
};
case 'name':
case 'nickname':
return { [param]: { like: `%${value}%` } };
case 'roleFk':
return { [param]: value };
}
};

View File

@ -4,15 +4,16 @@ import { computed, ref } from 'vue';
import VnTable from 'components/VnTable/VnTable.vue'; import VnTable from 'components/VnTable/VnTable.vue';
import AccountSummary from './Card/AccountSummary.vue'; import AccountSummary from './Card/AccountSummary.vue';
import { useSummaryDialog } from 'src/composables/useSummaryDialog'; import { useSummaryDialog } from 'src/composables/useSummaryDialog';
import exprBuilder from './AccountExprBuilder.js';
import filter from './Card/AccountFilter.js';
import VnSection from 'src/components/common/VnSection.vue'; import VnSection from 'src/components/common/VnSection.vue';
import FetchData from 'src/components/FetchData.vue'; import FetchData from 'src/components/FetchData.vue';
import VnInputPassword from 'src/components/common/VnInputPassword.vue'; import VnInputPassword from 'src/components/common/VnInputPassword.vue';
const { t } = useI18n(); const { t } = useI18n();
const { viewSummary } = useSummaryDialog(); const { viewSummary } = useSummaryDialog();
const filter = { const tableRef = ref();
include: { relation: 'role', scope: { fields: ['id', 'name'] } },
};
const dataKey = 'AccountList'; const dataKey = 'AccountList';
const roles = ref([]); const roles = ref([]);
const columns = computed(() => [ const columns = computed(() => [
@ -117,25 +118,6 @@ const columns = computed(() => [
], ],
}, },
]); ]);
function exprBuilder(param, value) {
switch (param) {
case 'search':
return /^\d+$/.test(value)
? { id: value }
: {
or: [
{ name: { like: `%${value}%` } },
{ nickname: { like: `%${value}%` } },
],
};
case 'name':
case 'nickname':
return { [param]: { like: `%${value}%` } };
case 'roleFk':
return { [param]: value };
}
}
</script> </script>
<template> <template>
<FetchData url="VnRoles" @on-fetch="(data) => (roles = data)" auto-load /> <FetchData url="VnRoles" @on-fetch="(data) => (roles = data)" auto-load />

View File

@ -0,0 +1,8 @@
export default (param, value) => {
switch (param) {
case 'search':
return /^\d+$/.test(value)
? { id: value }
: { alias: { like: `%${value}%` } };
}
};

View File

@ -1,21 +1,13 @@
<script setup> <script setup>
import { useI18n } from 'vue-i18n';
import VnCardBeta from 'components/common/VnCardBeta.vue'; import VnCardBeta from 'components/common/VnCardBeta.vue';
import AliasDescriptor from './AliasDescriptor.vue'; import AliasDescriptor from './AliasDescriptor.vue';
const { t } = useI18n();
</script> </script>
<template> <template>
<VnCardBeta <VnCardBeta
data-key="Alias" data-key="Alias"
base-url="MailAliases" url="MailAliases"
:descriptor="AliasDescriptor" :descriptor="AliasDescriptor"
search-data-key="AccountAliasList" search-data-key="AccountAliasList"
:searchbar-props="{
url: 'MailAliases',
info: t('mailAlias.searchInfo'),
label: t('mailAlias.search'),
searchUrl: 'table',
}"
/> />
</template> </template>

View File

@ -7,7 +7,6 @@ import { useQuasar } from 'quasar';
import CardDescriptor from 'components/ui/CardDescriptor.vue'; import CardDescriptor from 'components/ui/CardDescriptor.vue';
import VnLv from 'src/components/ui/VnLv.vue'; import VnLv from 'src/components/ui/VnLv.vue';
import useCardDescription from 'src/composables/useCardDescription';
import axios from 'axios'; import axios from 'axios';
import useNotify from 'src/composables/useNotify.js'; import useNotify from 'src/composables/useNotify.js';
@ -29,9 +28,6 @@ const entityId = computed(() => {
return $props.id || route.params.id; return $props.id || route.params.id;
}); });
const data = ref(useCardDescription());
const setData = (entity) => (data.value = useCardDescription(entity.alias, entity.id));
const removeAlias = () => { const removeAlias = () => {
quasar quasar
.dialog({ .dialog({
@ -56,10 +52,8 @@ const removeAlias = () => {
ref="descriptor" ref="descriptor"
:url="`MailAliases/${entityId}`" :url="`MailAliases/${entityId}`"
module="Alias" module="Alias"
@on-fetch="setData" data-key="Alias"
data-key="aliasData" title="alias"
:title="data.title"
:subtitle="data.subtitle"
> >
<template #menu> <template #menu>
<QItem v-ripple clickable @click="removeAlias()"> <QItem v-ripple clickable @click="removeAlias()">

View File

@ -1,13 +1,11 @@
<script setup> <script setup>
import { ref, computed } from 'vue'; import { computed } from 'vue';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import CardSummary from 'components/ui/CardSummary.vue'; import CardSummary from 'components/ui/CardSummary.vue';
import VnLv from 'src/components/ui/VnLv.vue'; import VnLv from 'src/components/ui/VnLv.vue';
import { useArrayData } from 'src/composables/useArrayData';
const route = useRoute(); const route = useRoute();
const { t } = useI18n(); const { t } = useI18n();
@ -18,20 +16,15 @@ const $props = defineProps({
}, },
}); });
const { store } = useArrayData('Alias');
const alias = ref(store.data);
const entityId = computed(() => $props.id || route.params.id); const entityId = computed(() => $props.id || route.params.id);
</script> </script>
<template> <template>
<CardSummary <CardSummary ref="summary" :url="`MailAliases/${entityId}`" data-key="Alias">
ref="summary" <template #header="{ entity: alias }">
:url="`MailAliases/${entityId}`" {{ alias.id }} - {{ alias.alias }}
@on-fetch="(data) => (alias = data)" </template>
data-key="MailAliasesSummary" <template #body="{ entity: alias }">
>
<template #header> {{ alias.id }} - {{ alias.alias }} </template>
<template #body>
<QCard class="vn-one"> <QCard class="vn-one">
<QCardSection class="q-pa-none"> <QCardSection class="q-pa-none">
<router-link <router-link

View File

@ -69,7 +69,7 @@ const fetchAliases = () => paginateRef.value.fetch();
<VnPaginate <VnPaginate
ref="paginateRef" ref="paginateRef"
data-key="AliasUsers" data-key="AliasUsers"
:filter="filter" :user-filter="filter"
:url="urlPath" :url="urlPath"
:limit="0" :limit="0"
auto-load auto-load

View File

@ -1,46 +1,20 @@
<script setup> <script setup>
import { useRoute } from 'vue-router';
import { useI18n } from 'vue-i18n';
import VnSelect from 'src/components/common/VnSelect.vue'; import VnSelect from 'src/components/common/VnSelect.vue';
import VnSelectEnum from 'src/components/common/VnSelectEnum.vue'; import VnSelectEnum from 'src/components/common/VnSelectEnum.vue';
import FormModel from 'components/FormModel.vue'; import FormModel from 'components/FormModel.vue';
import VnInput from 'src/components/common/VnInput.vue'; import VnInput from 'src/components/common/VnInput.vue';
import { ref, watch } from 'vue';
const route = useRoute();
const { t } = useI18n();
const formModelRef = ref(null);
const accountFilter = {
where: { id: route.params.id },
fields: ['id', 'email', 'nickname', 'name', 'accountStateFk', 'packages', 'pickup'],
include: [],
};
watch(
() => route.params.id,
() => formModelRef.value.reset()
);
</script> </script>
<template> <template>
<FormModel <FormModel :url-update="`VnUsers/${$route.params.id}/update-user`" model="Account">
ref="formModelRef"
url="VnUsers/preview"
:url-update="`VnUsers/${route.params.id}/update-user`"
:filter="accountFilter"
model="Accounts"
auto-load
@on-data-saved="formModelRef.fetch()"
>
<template #form="{ data }"> <template #form="{ data }">
<div class="q-gutter-y-sm"> <div class="q-gutter-y-sm">
<VnInput v-model="data.name" :label="t('account.card.nickname')" /> <VnInput v-model="data.name" :label="$t('account.card.nickname')" />
<VnInput v-model="data.nickname" :label="t('account.card.alias')" /> <VnInput v-model="data.nickname" :label="$t('account.card.alias')" />
<VnInput v-model="data.email" :label="t('globals.params.email')" /> <VnInput v-model="data.email" :label="$t('globals.params.email')" />
<VnSelect <VnSelect
url="Languages" url="Languages"
v-model="data.lang" v-model="data.lang"
:label="t('account.card.lang')" :label="$t('account.card.lang')"
option-value="code" option-value="code"
option-label="code" option-label="code"
/> />
@ -49,7 +23,7 @@ watch(
table="user" table="user"
column="twoFactor" column="twoFactor"
v-model="data.twoFactor" v-model="data.twoFactor"
:label="t('account.card.twoFactor')" :label="$t('account.card.twoFactor')"
option-value="code" option-value="code"
option-label="code" option-label="code"
/> />

View File

@ -1,8 +1,14 @@
<script setup> <script setup>
import VnCardBeta from 'components/common/VnCardBeta.vue'; import VnCardBeta from 'components/common/VnCardBeta.vue';
import AccountDescriptor from './AccountDescriptor.vue'; import AccountDescriptor from './AccountDescriptor.vue';
import filter from './AccountFilter.js';
</script> </script>
<template> <template>
<VnCardBeta data-key="AccountId" :descriptor="AccountDescriptor" /> <VnCardBeta
url="VnUsers/preview"
:id-in-where="true"
data-key="Account"
:descriptor="AccountDescriptor"
:filter="filter"
/>
</template> </template>

View File

@ -1,36 +1,18 @@
<script setup> <script setup>
import { ref, computed, onMounted } from 'vue'; import { ref, computed, onMounted } from 'vue';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import { useI18n } from 'vue-i18n';
import CardDescriptor from 'components/ui/CardDescriptor.vue'; import CardDescriptor from 'components/ui/CardDescriptor.vue';
import VnLv from 'src/components/ui/VnLv.vue'; import VnLv from 'src/components/ui/VnLv.vue';
import useCardDescription from 'src/composables/useCardDescription';
import AccountDescriptorMenu from './AccountDescriptorMenu.vue'; import AccountDescriptorMenu from './AccountDescriptorMenu.vue';
import VnImg from 'src/components/ui/VnImg.vue'; import VnImg from 'src/components/ui/VnImg.vue';
import filter from './AccountFilter.js';
import useHasAccount from 'src/composables/useHasAccount.js'; import useHasAccount from 'src/composables/useHasAccount.js';
const $props = defineProps({ const $props = defineProps({ id: { type: Number, default: null } });
id: {
type: Number,
required: false,
default: null,
},
});
const route = useRoute(); const route = useRoute();
const { t } = useI18n(); const entityId = computed(() => $props.id || route.params.id);
const entityId = computed(() => {
return $props.id || route.params.id;
});
const data = ref(useCardDescription());
const hasAccount = ref(); const hasAccount = ref();
const setData = (entity) => (data.value = useCardDescription(entity.nickname, entity.id));
const filter = {
where: { id: entityId },
fields: ['id', 'nickname', 'name', 'role'],
include: { relation: 'role', scope: { fields: ['id', 'name'] } },
};
onMounted(async () => { onMounted(async () => {
hasAccount.value = await useHasAccount(entityId.value); hasAccount.value = await useHasAccount(entityId.value);
@ -41,12 +23,10 @@ onMounted(async () => {
<CardDescriptor <CardDescriptor
ref="descriptor" ref="descriptor"
:url="`VnUsers/preview`" :url="`VnUsers/preview`"
:filter="filter" :filter="{ ...filter, where: { id: entityId } }"
module="Account" module="Account"
@on-fetch="setData" data-key="Account"
data-key="AccountId" title="nickname"
:title="data.title"
:subtitle="data.subtitle"
> >
<template #menu> <template #menu>
<AccountDescriptorMenu :entity-id="entityId" /> <AccountDescriptorMenu :entity-id="entityId" />
@ -62,7 +42,7 @@ onMounted(async () => {
<QIcon name="vn:claims" /> <QIcon name="vn:claims" />
</div> </div>
<div class="text-grey-5" style="opacity: 0.4"> <div class="text-grey-5" style="opacity: 0.4">
{{ t('account.imageNotFound') }} {{ $t('account.imageNotFound') }}
</div> </div>
</div> </div>
</div> </div>
@ -70,8 +50,8 @@ onMounted(async () => {
</VnImg> </VnImg>
</template> </template>
<template #body="{ entity }"> <template #body="{ entity }">
<VnLv :label="t('account.card.nickname')" :value="entity.name" /> <VnLv :label="$t('account.card.nickname')" :value="entity.name" />
<VnLv :label="t('account.card.role')" :value="entity.role.name" /> <VnLv :label="$t('account.card.role')" :value="entity.role?.name" />
</template> </template>
<template #actions="{ entity }"> <template #actions="{ entity }">
<QCardActions class="q-gutter-x-md"> <QCardActions class="q-gutter-x-md">
@ -84,7 +64,7 @@ onMounted(async () => {
size="sm" size="sm"
class="fill-icon" class="fill-icon"
> >
<QTooltip>{{ t('account.card.deactivated') }}</QTooltip> <QTooltip>{{ $t('account.card.deactivated') }}</QTooltip>
</QIcon> </QIcon>
<QIcon <QIcon
color="primary" color="primary"
@ -95,7 +75,7 @@ onMounted(async () => {
size="sm" size="sm"
class="fill-icon" class="fill-icon"
> >
<QTooltip>{{ t('account.card.enabled') }}</QTooltip> <QTooltip>{{ $t('account.card.enabled') }}</QTooltip>
</QIcon> </QIcon>
</QCardActions> </QCardActions>
</template> </template>

View File

@ -12,6 +12,7 @@ import VnInputPassword from 'src/components/common/VnInputPassword.vue';
import VnChangePassword from 'src/components/common/VnChangePassword.vue'; import VnChangePassword from 'src/components/common/VnChangePassword.vue';
import { useQuasar } from 'quasar'; import { useQuasar } from 'quasar';
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import VnCheckbox from 'src/components/common/VnCheckbox.vue';
const $props = defineProps({ const $props = defineProps({
hasAccount: { hasAccount: {
@ -29,7 +30,7 @@ const router = useRouter();
const state = useState(); const state = useState();
const user = state.getUser(); const user = state.getUser();
const { notify } = useQuasar(); const { notify } = useQuasar();
const account = computed(() => useArrayData('AccountId').store.data[0]); const account = computed(() => useArrayData('Account').store.data[0]);
account.value.hasAccount = hasAccount.value; account.value.hasAccount = hasAccount.value;
const entityId = computed(() => +route.params.id); const entityId = computed(() => +route.params.id);
const hasitManagementAccess = ref(); const hasitManagementAccess = ref();
@ -121,18 +122,14 @@ onMounted(() => {
:promise="sync" :promise="sync"
> >
<template #customHTML> <template #customHTML>
{{ shouldSyncPassword }} <VnCheckbox
<QCheckbox
:label="t('account.card.actions.sync.checkbox')"
v-model="shouldSyncPassword" v-model="shouldSyncPassword"
class="full-width" :label="t('account.card.actions.sync.checkbox')"
:info="t('account.card.actions.sync.tooltip')"
clearable clearable
clear-icon="close" clear-icon="close"
> color="primary"
<QIcon style="padding-left: 10px" color="primary" name="info" size="sm"> />
<QTooltip>{{ t('account.card.actions.sync.tooltip') }}</QTooltip>
</QIcon></QCheckbox
>
<VnInputPassword <VnInputPassword
v-if="shouldSyncPassword" v-if="shouldSyncPassword"
:label="t('login.password')" :label="t('login.password')"
@ -152,7 +149,7 @@ onMounted(() => {
openConfirmationModal( openConfirmationModal(
t('account.card.actions.disableAccount.title'), t('account.card.actions.disableAccount.title'),
t('account.card.actions.disableAccount.subtitle'), t('account.card.actions.disableAccount.subtitle'),
() => deleteAccount() () => deleteAccount(),
) )
" "
> >
@ -177,7 +174,7 @@ onMounted(() => {
openConfirmationModal( openConfirmationModal(
t('account.card.actions.enableAccount.title'), t('account.card.actions.enableAccount.title'),
t('account.card.actions.enableAccount.subtitle'), t('account.card.actions.enableAccount.subtitle'),
() => updateStatusAccount(true) () => updateStatusAccount(true),
) )
" "
> >
@ -191,7 +188,7 @@ onMounted(() => {
openConfirmationModal( openConfirmationModal(
t('account.card.actions.disableAccount.title'), t('account.card.actions.disableAccount.title'),
t('account.card.actions.disableAccount.subtitle'), t('account.card.actions.disableAccount.subtitle'),
() => updateStatusAccount(false) () => updateStatusAccount(false),
) )
" "
> >
@ -206,7 +203,7 @@ onMounted(() => {
openConfirmationModal( openConfirmationModal(
t('account.card.actions.activateUser.title'), t('account.card.actions.activateUser.title'),
t('account.card.actions.activateUser.title'), t('account.card.actions.activateUser.title'),
() => updateStatusUser(true) () => updateStatusUser(true),
) )
" "
> >
@ -220,7 +217,7 @@ onMounted(() => {
openConfirmationModal( openConfirmationModal(
t('account.card.actions.deactivateUser.title'), t('account.card.actions.deactivateUser.title'),
t('account.card.actions.deactivateUser.title'), t('account.card.actions.deactivateUser.title'),
() => updateStatusUser(false) () => updateStatusUser(false),
) )
" "
> >

View File

@ -0,0 +1,3 @@
export default {
include: { relation: 'role', scope: { fields: ['id', 'name'] } },
};

View File

@ -86,7 +86,7 @@ watch(
() => route.params.id, () => route.params.id,
() => { () => {
getAccountData(); getAccountData();
} },
); );
onMounted(async () => await getAccountData(false)); onMounted(async () => await getAccountData(false));
@ -99,7 +99,7 @@ onMounted(async () => await getAccountData(false));
<VnPaginate <VnPaginate
ref="paginateRef" ref="paginateRef"
data-key="AccountMailAliases" data-key="AccountMailAliases"
:filter="filter" :user-filter="filter"
:url="urlPath" :url="urlPath"
auto-load auto-load
> >
@ -130,7 +130,8 @@ onMounted(async () => await getAccountData(false));
openConfirmationModal( openConfirmationModal(
t('User will be removed from alias'), t('User will be removed from alias'),
t('¿Seguro que quieres continuar?'), t('¿Seguro que quieres continuar?'),
() => deleteMailAlias(row, rows, rowIndex) () =>
deleteMailAlias(row, rows, rowIndex),
) )
" "
> >
@ -157,7 +158,7 @@ onMounted(async () => await getAccountData(false));
icon="add" icon="add"
color="primary" color="primary"
@click="openCreateMailAliasForm()" @click="openCreateMailAliasForm()"
shortcut="+" v-shortcut="'+'"
> >
<QTooltip>{{ t('warehouses.add') }}</QTooltip> <QTooltip>{{ t('warehouses.add') }}</QTooltip>
</QBtn> </QBtn>

View File

@ -1,58 +1,41 @@
<script setup> <script setup>
import { ref, computed } from 'vue'; import { computed } from 'vue';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import { useI18n } from 'vue-i18n';
import CardSummary from 'components/ui/CardSummary.vue'; import CardSummary from 'components/ui/CardSummary.vue';
import VnLv from 'src/components/ui/VnLv.vue'; import VnLv from 'src/components/ui/VnLv.vue';
import filter from './AccountFilter.js';
import { useArrayData } from 'src/composables/useArrayData';
import AccountDescriptorMenu from './AccountDescriptorMenu.vue'; import AccountDescriptorMenu from './AccountDescriptorMenu.vue';
const $props = defineProps({ id: { type: Number, default: 0 } });
const route = useRoute(); const route = useRoute();
const { t } = useI18n();
const $props = defineProps({
id: {
type: Number,
default: 0,
},
});
const { store } = useArrayData('Account');
const account = ref(store.data);
const entityId = computed(() => $props.id || route.params.id); const entityId = computed(() => $props.id || route.params.id);
const filter = {
where: { id: entityId },
fields: ['id', 'nickname', 'name', 'role'],
include: { relation: 'role', scope: { fields: ['id', 'name'] } },
};
</script> </script>
<template> <template>
<CardSummary <CardSummary
data-key="AccountId" data-key="Account"
ref="AccountSummary"
url="VnUsers/preview" url="VnUsers/preview"
:filter="filter" :filter="filter"
@on-fetch="(data) => (account = data)"
> >
<template #header>{{ account.id }} - {{ account.nickname }}</template> <template #header="{ entity }">{{ entity.id }} - {{ entity.nickname }}</template>
<template #menu=""> <template #menu>
<AccountDescriptorMenu :entity-id="entityId" /> <AccountDescriptorMenu :entity-id="entityId" />
</template> </template>
<template #body> <template #body="{ entity }">
<QCard class="vn-one"> <QCard class="vn-one">
<QCardSection class="q-pa-none"> <QCardSection class="q-pa-none">
<router-link <router-link
:to="{ name: 'AccountBasicData', params: { id: entityId } }" :to="{ name: 'AccountBasicData', params: { id: entityId } }"
class="header header-link" class="header header-link"
> >
{{ t('globals.pageTitles.basicData') }} {{ $t('globals.pageTitles.basicData') }}
<QIcon name="open_in_new" /> <QIcon name="open_in_new" />
</router-link> </router-link>
</QCardSection> </QCardSection>
<VnLv :label="t('account.card.nickname')" :value="account.name" /> <VnLv :label="$t('account.card.nickname')" :value="entity.name" />
<VnLv :label="t('account.card.role')" :value="account.role.name" /> <VnLv :label="$t('account.card.role')" :value="entity.role?.name" />
</QCard> </QCard>
</template> </template>
</CardSummary> </CardSummary>

View File

@ -59,7 +59,7 @@ const redirectToRoleSummary = (id) =>
<VnPaginate <VnPaginate
ref="paginateRef" ref="paginateRef"
:data-key="dataKey" :data-key="dataKey"
:filter="filter" :user-filter="filter"
:url="urlPath" :url="urlPath"
:limit="0" :limit="0"
auto-load auto-load

View File

@ -5,6 +5,7 @@ import VnTable from 'components/VnTable/VnTable.vue';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import { useSummaryDialog } from 'src/composables/useSummaryDialog'; import { useSummaryDialog } from 'src/composables/useSummaryDialog';
import RoleSummary from './Card/RoleSummary.vue'; import RoleSummary from './Card/RoleSummary.vue';
import exprBuilder from './RoleExprBuilder.js';
import VnSection from 'src/components/common/VnSection.vue'; import VnSection from 'src/components/common/VnSection.vue';
const route = useRoute(); const route = useRoute();
@ -66,24 +67,7 @@ const columns = computed(() => [
], ],
}, },
]); ]);
const exprBuilder = (param, value) => {
switch (param) {
case 'search':
return /^\d+$/.test(value)
? { id: value }
: {
or: [
{ name: { like: `%${value}%` } },
{ nickname: { like: `%${value}%` } },
],
};
case 'name':
case 'description':
return { [param]: { like: `%${value}%` } };
}
};
</script> </script>
<template> <template>
<VnSection <VnSection
:data-key="dataKey" :data-key="dataKey"

View File

@ -58,7 +58,7 @@ const redirectToRoleSummary = (id) =>
<VnPaginate <VnPaginate
ref="paginateRef" ref="paginateRef"
data-key="InheritedRoles" data-key="InheritedRoles"
:filter="filter" :user-filter="filter"
:url="urlPath" :url="urlPath"
:limit="0" :limit="0"
auto-load auto-load

View File

@ -1,24 +1,16 @@
<script setup> <script setup>
import { useRoute } from 'vue-router';
import { useI18n } from 'vue-i18n';
import FormModel from 'components/FormModel.vue'; import FormModel from 'components/FormModel.vue';
import VnRow from 'components/ui/VnRow.vue'; import VnRow from 'components/ui/VnRow.vue';
import VnInput from 'src/components/common/VnInput.vue'; import VnInput from 'src/components/common/VnInput.vue';
const route = useRoute();
const { t } = useI18n();
</script> </script>
<template> <template>
<FormModel :url="`VnRoles/${route.params.id}`" model="VnRole" auto-load> <FormModel model="Role" auto-load>
<template #form="{ data }"> <template #form="{ data }">
<VnRow> <VnRow>
<div class="col"> <VnInput v-model="data.name" :label="$t('globals.name')" />
<VnInput v-model="data.name" :label="t('globals.name')" />
</div>
</VnRow> </VnRow>
<VnRow> <VnRow>
<div class="col"> <VnInput v-model="data.description" :label="$t('role.description')" />
<VnInput v-model="data.description" :label="t('role.description')" />
</div>
</VnRow> </VnRow>
</template> </template>
</FormModel> </FormModel>

View File

@ -3,5 +3,10 @@ import VnCardBeta from 'components/common/VnCardBeta.vue';
import RoleDescriptor from './RoleDescriptor.vue'; import RoleDescriptor from './RoleDescriptor.vue';
</script> </script>
<template> <template>
<VnCardBeta data-key="Role" :descriptor="RoleDescriptor" /> <VnCardBeta
url="VnRoles"
data-key="Role"
:id-in-where="true"
:descriptor="RoleDescriptor"
/>
</template> </template>

View File

@ -1,10 +1,9 @@
<script setup> <script setup>
import { ref, computed } from 'vue'; import { computed } from 'vue';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import CardDescriptor from 'components/ui/CardDescriptor.vue'; import CardDescriptor from 'components/ui/CardDescriptor.vue';
import VnLv from 'src/components/ui/VnLv.vue'; import VnLv from 'src/components/ui/VnLv.vue';
import useCardDescription from 'src/composables/useCardDescription';
import axios from 'axios'; import axios from 'axios';
import useNotify from 'src/composables/useNotify.js'; import useNotify from 'src/composables/useNotify.js';
const $props = defineProps({ const $props = defineProps({
@ -26,11 +25,6 @@ const { t } = useI18n();
const entityId = computed(() => { const entityId = computed(() => {
return $props.id || route.params.id; return $props.id || route.params.id;
}); });
const data = ref(useCardDescription());
const setData = (entity) => (data.value = useCardDescription(entity.name, entity.id));
const filter = {
where: { id: entityId },
};
const removeRole = async () => { const removeRole = async () => {
await axios.delete(`VnRoles/${entityId.value}`); await axios.delete(`VnRoles/${entityId.value}`);
notify(t('Role removed'), 'positive'); notify(t('Role removed'), 'positive');
@ -39,13 +33,10 @@ const removeRole = async () => {
<template> <template>
<CardDescriptor <CardDescriptor
:url="`VnRoles/${entityId}`" url="VnRoles"
:filter="filter" :filter="{ where: { id: entityId } }"
module="Role" module="Role"
@on-fetch="setData"
data-key="Role" data-key="Role"
:title="data.title"
:subtitle="data.subtitle"
:summary="$props.summary" :summary="$props.summary"
> >
<template #menu> <template #menu>

View File

@ -1,10 +1,9 @@
<script setup> <script setup>
import { ref, computed } from 'vue'; import { computed } from 'vue';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import CardSummary from 'components/ui/CardSummary.vue'; import CardSummary from 'components/ui/CardSummary.vue';
import VnLv from 'src/components/ui/VnLv.vue'; import VnLv from 'src/components/ui/VnLv.vue';
import { useArrayData } from 'src/composables/useArrayData';
const route = useRoute(); const route = useRoute();
const { t } = useI18n(); const { t } = useI18n();
@ -16,24 +15,18 @@ const $props = defineProps({
}, },
}); });
const { store } = useArrayData('Role');
const role = ref(store.data);
const entityId = computed(() => $props.id || route.params.id); const entityId = computed(() => $props.id || route.params.id);
const filter = {
where: { id: entityId },
};
</script> </script>
<template> <template>
<CardSummary <CardSummary
ref="summary" ref="summary"
:url="`VnRoles/${entityId}`" url="VnRoles"
:filter="filter" :filter="{ where: { id: entityId } }"
@on-fetch="(data) => (role = data)"
data-key="Role" data-key="Role"
> >
<template #header> {{ role.id }} - {{ role.name }} </template> <template #header="{ entity }"> {{ entity.id }} - {{ entity.name }} </template>
<template #body> <template #body="{ entity }">
<QCard class="vn-one"> <QCard class="vn-one">
<QCardSection class="q-pa-none"> <QCardSection class="q-pa-none">
<a <a
@ -44,9 +37,9 @@ const filter = {
<QIcon name="open_in_new" /> <QIcon name="open_in_new" />
</a> </a>
</QCardSection> </QCardSection>
<VnLv :label="t('role.id')" :value="role.id" /> <VnLv :label="t('role.id')" :value="entity.id" />
<VnLv :label="t('globals.name')" :value="role.name" /> <VnLv :label="t('globals.name')" :value="entity.name" />
<VnLv :label="t('role.description')" :value="role.description" /> <VnLv :label="t('role.description')" :value="entity.description" />
</QCard> </QCard>
</template> </template>
</CardSummary> </CardSummary>

View File

@ -63,7 +63,7 @@ watch(
store.url = urlPath.value; store.url = urlPath.value;
store.filter = filter.value; store.filter = filter.value;
fetchSubRoles(); fetchSubRoles();
} },
); );
const fetchSubRoles = () => paginateRef.value.fetch(); const fetchSubRoles = () => paginateRef.value.fetch();
@ -80,7 +80,7 @@ const redirectToRoleSummary = (id) =>
<VnPaginate <VnPaginate
ref="paginateRef" ref="paginateRef"
data-key="SubRoles" data-key="SubRoles"
:filter="filter" :user-filter="filter"
:url="urlPath" :url="urlPath"
auto-load auto-load
> >
@ -109,7 +109,7 @@ const redirectToRoleSummary = (id) =>
openConfirmationModal( openConfirmationModal(
t('El rol va a ser eliminado'), t('El rol va a ser eliminado'),
t('¿Seguro que quieres continuar?'), t('¿Seguro que quieres continuar?'),
() => deleteSubRole(row, rows, rowIndex) () => deleteSubRole(row, rows, rowIndex),
) )
" "
> >
@ -131,7 +131,7 @@ const redirectToRoleSummary = (id) =>
<QBtn <QBtn
fab fab
icon="add" icon="add"
shortcut="+" v-shortcut="'+'"
color="primary" color="primary"
@click="openCreateSubRoleForm()" @click="openCreateSubRoleForm()"
> >

Some files were not shown because too many files have changed in this diff Show More