Merge branch 'dev' into 8721-addBtnToTicketsListOfRoute
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
commit
47ec11e880
184
CHANGELOG.md
184
CHANGELOG.md
|
@ -1,3 +1,187 @@
|
||||||
|
# Version 25.10 - 2025-03-11
|
||||||
|
|
||||||
|
### Added 🆕
|
||||||
|
|
||||||
|
- chore: refs #6695 empty commit by:alexm
|
||||||
|
- chore: refs #6695 get docker compose version by:alexm
|
||||||
|
- chore: refs #6695 try use docker compose by:alexm
|
||||||
|
- feat: add --browser chromium by:Javier Segarra
|
||||||
|
- feat: docker pull back image by:alexm
|
||||||
|
- feat(jenkinsE2E): refs #6695 new image by:alexm
|
||||||
|
- feat(jenkinsE2E): refs #6695 try fix db by:alexm
|
||||||
|
- feat(jenkinsE2E): refs #6695 try new sintax by:alexm
|
||||||
|
- feat(Jenkinsfile): refs #8714 add CHANGE_TARGET environment variable logging (origin/8714-devToTest, 8714-devToTest) by:alexm
|
||||||
|
- feat: refs #6695 add additional test directories for Cypress integration tests in Jenkinsfile by:alexm
|
||||||
|
- feat: refs #6695 add cypress-cache volume to docker-compose.e2e.yml by:alexm
|
||||||
|
- feat: refs #6695 add Dockerfile for Cypress setup and update Jenkinsfile for installation steps by:alexm
|
||||||
|
- feat: refs #6695 add setup and e2e testing by:alexm
|
||||||
|
- feat: refs #6695 better stages for e2e by:alexm
|
||||||
|
- feat: refs #6695 better stages for e2e rollback by:alexm
|
||||||
|
- feat: refs #6695 install Cypress during Jenkins pipeline setup by:alexm
|
||||||
|
- feat: refs #6695 jenkins run e2e by:alexm
|
||||||
|
- feat: refs #6695 jenkins run e2e front deteach by:alexm
|
||||||
|
- feat: refs #6695 jenkins run e2e rebuild by:alexm
|
||||||
|
- feat: refs #6695 jenkins run e2e remove ports by:alexm
|
||||||
|
- feat: refs #6695 jenkins run e2e try down and rm by:alexm
|
||||||
|
- feat: refs #6695 jenkins run e2e try fix db by:alexm
|
||||||
|
- feat: refs #6695 jenkins run e2e whitout rebuild by:alexm
|
||||||
|
- feat: refs #6695 pull salix-back image and use by:alexm
|
||||||
|
- feat: refs #6695 run e2e in docker by:alexm
|
||||||
|
- feat: refs #6695 run front by:alexm
|
||||||
|
- feat: refs #6695 run front quasar build by:alexm
|
||||||
|
- feat: refs #6695 run parallel e2e in local by:alexm
|
||||||
|
- feat: refs #6695 update cypress cache path command in Jenkinsfile by:alexm
|
||||||
|
- feat: refs #6695 update cypress-cache volume path in docker-compose.e2e.yml by:alexm
|
||||||
|
- feat: refs #6695 update cypress command in Jenkinsfile and docker-compose.e2e.yml by:alexm
|
||||||
|
- feat: refs #6695 update Docker configurations and Cypress settings for improved local development (origin/6695-docker_push_2, 6695-docker_push_2) by:alexm
|
||||||
|
- feat: refs #6695 when failure, clean by:alexm
|
||||||
|
- feat: refs #7937 add import claim button to ClaimAction component by:jgallego
|
||||||
|
- feat: refs #7937 add shelving selection to claim actions with data fetching by:jgallego
|
||||||
|
- feat: refs #8348 Added grouping by:guillermo
|
||||||
|
- feat: refs #8402 added lost filters from Salix by:Jon
|
||||||
|
- feat: refs #8484 add addressId to createForm in CustomerDescriptor by:jorgep
|
||||||
|
- feat: refs #8484 overwrite Cypress visit command to ensure main element exists by:jorgep
|
||||||
|
- feat: refs #8555 added new filter field and translations by:Jon
|
||||||
|
- feat: refs #8593 added summary button & modified e2e tests by:provira
|
||||||
|
- feat: refs #8593 changed parking to VnTable and modified e2e tests by:provira
|
||||||
|
- feat: refs #8599 added new test and translations by:Jon
|
||||||
|
- feat: refs #8599 modified tests to be more complete and added new ones by:Jon
|
||||||
|
- feat: refs #8697 enable data-cy attribute for VnTable, update test cases to remove skips and adjust selectors by:pablone
|
||||||
|
- feat: rename test:unit by test:front by:Javier Segarra
|
||||||
|
- feat: try run salix back by:alexm
|
||||||
|
- fix: style w-80 by:Javier Segarra
|
||||||
|
- Merge pull request 'fix: style' (!1425) from warmfix_vntable_card_style into test by:Javier Segarra
|
||||||
|
|
||||||
|
### Changed 📦
|
||||||
|
|
||||||
|
- ci: refs #6695 Docker & Jenkinsfile fixes/refactor by:Juan Ferrer Toribio
|
||||||
|
- ci: refs #6695 refactor Cypress setup in Jenkinsfile and replace local docker-compose with new configuration by:alexm
|
||||||
|
- perf: refs #6695 only necessary by:alexm
|
||||||
|
- refactor: adjust translation to standardize it by:Jon
|
||||||
|
- refactor: refs #6695 comment out vnComponent tests in Jenkinsfile by:alexm
|
||||||
|
- refactor: refs #6695 improve group size calculation for parallel test execution in Jenkinsfile by:alexm
|
||||||
|
- refactor: refs #6695 improve parallel test execution logic in Jenkinsfile by:alexm
|
||||||
|
- refactor: refs #6695 simplify Docker cleanup commands in Jenkinsfile by:alexm
|
||||||
|
- refactor: refs #6695 update Docker setup for Cypress and remove obsolete files by:alexm
|
||||||
|
- refactor: refs #6695 update E2E test execution to support parallel groups and improve by:alexm
|
||||||
|
- refactor: refs #6695 update Jenkinsfile and Dockerfile to use 'developer' by:alexm
|
||||||
|
- refactor: refs #6695 update Jenkinsfile to run E2E tests in parallel and simplify docker-compose command by:alexm
|
||||||
|
- refactor: refs #6897 clean up Cypress configuration and improve entry list filtering (origin/6897-fixEntryE2e) by:pablone
|
||||||
|
- refactor: refs #7414 update VnLog component to change display order value changes on update action by:jtubau
|
||||||
|
- refactor: refs #7937 align columns to the right and add shelvingCode to ClaimSummaryAction by:jgallego
|
||||||
|
- refactor: refs #8484 add data-cy attribute for claim photo image and update test to use it by:jorgep
|
||||||
|
- refactor: refs #8484 clean up test files by removing commented issue references and updating test cases by:jorgep
|
||||||
|
- refactor: refs #8484 enhance login command with session management and clean up unused commands by:jtubau
|
||||||
|
- refactor: refs #8484 improve search input behavior and enhance visit command with DOM content load by:jtubau
|
||||||
|
- refactor: refs #8484 improve selectOption command with retry logic for visibility checks by:jtubau
|
||||||
|
- refactor: refs #8484 remove comment in wagonCreate.spec.js by:jtubau
|
||||||
|
- refactor: refs #8484 remove redundant visit command overwrite by:jorgep
|
||||||
|
- refactor: refs #8484 remove unnecessary domContentLoad calls from client tests by:jorgep
|
||||||
|
- refactor: refs #8484 remove unnecessary intercepts and waits in ticket and zone tests by:jorgep
|
||||||
|
- refactor: refs #8484 simplify image dialog test by using aliases for elements by:jorgep
|
||||||
|
- refactor: refs #8484 streamline assertions in ClaimNotes test by:jorgep
|
||||||
|
- refactor: refs #8484 streamline login command and remove commented code by:jorgep
|
||||||
|
- refactor: refs #8484 update specPattern to include all spec files and remove data-cy attribute by:jorgep
|
||||||
|
- refactor: refs #8594 update vehicle summary tests to use expected variable for consistency by:jtubau
|
||||||
|
- refactor: refs #8599 corrected it name by:Jon
|
||||||
|
- refactor: refs #8599 invoice out list e2e by:Jon
|
||||||
|
- refactor: refs #8599 requested changes by:Jon
|
||||||
|
- refactor: refs #8606 modified table height and deleted void file by:Jon
|
||||||
|
- refactor: refs #8606 modified table width and order by:Jon
|
||||||
|
- refactor: refs #8606 modified upcoming deliveries view by:Jon
|
||||||
|
- refactor: refs #8606 translations by:Jon
|
||||||
|
- refactor: refs #8618 simplify selectors and improve test readability in routeExtendedList.spec.js by:jtubau
|
||||||
|
- refactor: refs #8620 update RouteAutonomous to notify on data save and change invoice reference display by:jtubau
|
||||||
|
- refactor: remove default browser setting from Cypress configuration by:alexm
|
||||||
|
- refactor: remove unused variables by:alexm
|
||||||
|
- refactor: skip claimNotes by:alexm
|
||||||
|
- refactor: update labels and conditions in Claim components by:jgallego
|
||||||
|
- refactor: use constant for account input selector in VnAccountNumber tests by:alexm
|
||||||
|
|
||||||
|
### Fixed 🛠️
|
||||||
|
|
||||||
|
- build: refs #6695 cypress-setup fix volume by:alexm
|
||||||
|
- build: refs #6695 cypress-setup fix volume (origin/6695-docker_push, 6695-docker_push) by:alexm
|
||||||
|
- ci: refs #6695 cypress reporter fix by:Juan Ferrer Toribio
|
||||||
|
- ci: refs #6695 Docker & Jenkinsfile fixes/refactor by:Juan Ferrer Toribio
|
||||||
|
- ci: refs #6695 JUnit report fixes by:Juan Ferrer Toribio
|
||||||
|
- ci: refs #6695 vitest junit file fix by:Juan Ferrer Toribio
|
||||||
|
- feat(jenkinsE2E): refs #6695 try fix db by:alexm
|
||||||
|
- feat: refs #6695 jenkins run e2e try fix db by:alexm
|
||||||
|
- fix: add data-cy attribute to card button for improved testing by:jtubau
|
||||||
|
- fix: added lost code by:Jon
|
||||||
|
- fix: add --init flag to Cypress Docker container for improved stability by:alexm
|
||||||
|
- fix: add mapper before Save by:Javier Segarra
|
||||||
|
- fix: cy.domContentLoad(); not exist by:alexm
|
||||||
|
- fix: elements position by:Javier Segarra
|
||||||
|
- fix: fixed select not filtering when typing by:Jon
|
||||||
|
- fix: fixed wagonTypeCreate test (origin/wagonTypeTestFix) by:PAU ROVIRA ROSALENY
|
||||||
|
- fix: fix sctions by:carlossa
|
||||||
|
- fix(Jenkinsfile): enhance Docker registry credentials handling with dynamic URL (origin/warmFix_use_withDockerRegistry, warmFix_use_withDockerRegistry) by:alexm
|
||||||
|
- fix(Jenkinsfile): update Docker registry credentials handling in E2E stage by:alexm
|
||||||
|
- fix: junit report by:alexm
|
||||||
|
- fix: merge revert by:alexm
|
||||||
|
- fix: merge test to dev by:alexm
|
||||||
|
- fix: prevent 'cypress run' error to show junit by:alexm
|
||||||
|
- fix: refs #6695 add --volumes flag to docker-compose down command by:alexm
|
||||||
|
- fix: refs #6695 checkErrors(folderName) by:alexm
|
||||||
|
- fix: refs #6695 clientBasicData by:alexm
|
||||||
|
- fix: refs #6695 dockerFile by:alexm
|
||||||
|
- fix: refs #6695 e2e.sh by:alexm
|
||||||
|
- fix: refs #6695 e2e stockBought by:alexm
|
||||||
|
- fix: refs #6695 fix e2e's by:alexm
|
||||||
|
- fix: refs #6695 storage by:alexm
|
||||||
|
- fix: refs #6695 try by:alexm
|
||||||
|
- fix: refs #6695 try parallel by:alexm
|
||||||
|
- fix: refs #6695 update Cypress cache handling and increase wait timeout for elements by:alexm
|
||||||
|
- fix: refs #6695 update Cypress configuration and Docker setup for improved testing by:alexm
|
||||||
|
- fix: refs #6695 update E2E stages to run tests in parallel for specific folders by:alexm
|
||||||
|
- fix: refs #6695 update remove Cypress installation by:alexm
|
||||||
|
- fix: refs #6695 zoneWarehouse est by:alexm
|
||||||
|
- fix: refs #6943 e2e clientList, formModel by:carlossa
|
||||||
|
- fix: refs #6943 formModel workerDepartment by:carlossa
|
||||||
|
- fix: refs #7323 e2e (origin/7323-fixe2e) by:carlossa
|
||||||
|
- fix: refs #7323 notification manager by:carlossa
|
||||||
|
- fix: refs #7414 updated default value rendering for non-update scenarios by:jtubau
|
||||||
|
- fix: refs #7414 update VnLog.vue to correctly display log actions and values by:jtubau
|
||||||
|
- fix: refs #7937 update claimId in ClaimAction test to reflect correct value (origin/7937-claimAgile) by:jgallego
|
||||||
|
- fix: refs #8484 ensure document is fully loaded before visiting pages in tests by:jorgep
|
||||||
|
- fix: refs #8484 fixed some tests to enable previously skipped cases and enhance functionality by:jtubau
|
||||||
|
- fix: refs #8484 remove unused addressId from createForm in CustomerDescriptor.vue by:jtubau
|
||||||
|
- fix: refs #8484 rollback by:jorgep
|
||||||
|
- fix: refs #8484 update Boss field type to 'selectWorker' and add selectWorkerOption command by:jtubau
|
||||||
|
- fix: refs #8484 update Boss type from 'selectWorker' to 'select' by:jorgep
|
||||||
|
- fix: refs #8484 update parking list URL to correct shelving path in integration test by:jtubau
|
||||||
|
- fix: refs #8484 update selector for buyLabel button in myEntry test by:jtubau
|
||||||
|
- fix: refs #8484 update selector for removing wagon type in wagonCreate.spec.js by:jtubau
|
||||||
|
- fix: refs #8484 update wagon type deletion selector and clean up unused code in commands.js by:jtubau
|
||||||
|
- fix: refs #8593 fixed parking e2e tests by:provira
|
||||||
|
- fix: refs #8606 fixed list e2e test by:Jon
|
||||||
|
- fix: refs #8620 add module name to InvoiceInSummary by:jtubau
|
||||||
|
- fix: refs #8623 fixed different errors by:Jon
|
||||||
|
- fix: remove info by:carlossa
|
||||||
|
- fix: remove old end-to-end test files before building Docker image by:alexm
|
||||||
|
- fix: revert cypress.config by:alexm
|
||||||
|
- fix: style w-80 by:Javier Segarra
|
||||||
|
- fix: unnecessary function by:alexm
|
||||||
|
- fix: update docker-compose command to remove volumes on teardown by:alexm
|
||||||
|
- fix: update Jenkinsfile to remove specific end-to-end test files by:alexm
|
||||||
|
- fix: update Jenkinsfile to use environment variable for Docker registry credentials by:alexm
|
||||||
|
- fix: warmFix vnInput dataCy by:alexm
|
||||||
|
- Merge pull request 'fix: style' (!1425) from warmfix_vntable_card_style into test by:Javier Segarra
|
||||||
|
- revert: browser chromium package.json by:Javier Segarra
|
||||||
|
- Revert "revert 1015acefb7e400be2d8b5958dba69b4d98276b34" by:alexm
|
||||||
|
- test: refs #6695 e2e fix allowedHosts by:alexm
|
||||||
|
- test: refs #6695 e2e fix back image by:alexm
|
||||||
|
- test: refs #6695 e2e fix base urls by:alexm
|
||||||
|
- test: refs #6695 e2e fix command by:alexm
|
||||||
|
- test: refs #6695 e2e fix connection db by:alexm
|
||||||
|
- test: refs #6695 e2e fix network by:alexm
|
||||||
|
- test: refs #6695 e2e fix sequential by:alexm
|
||||||
|
- test: refs #6695 fix e2e by:alexm
|
||||||
|
- test: refs #6695 fix e2e command by:alexm
|
||||||
|
- test: refs #6695 fix selectOption command by:alexm
|
||||||
|
|
||||||
# Version 25.08 - 2025-03-04
|
# Version 25.08 - 2025-03-04
|
||||||
|
|
||||||
### Added 🆕
|
### Added 🆕
|
||||||
|
|
|
@ -188,7 +188,7 @@ const selectItem = ({ id }) => {
|
||||||
>
|
>
|
||||||
<template #body-cell-id="{ row }">
|
<template #body-cell-id="{ row }">
|
||||||
<QTd auto-width @click.stop>
|
<QTd auto-width @click.stop>
|
||||||
<QBtn flat color="blue">{{ row.id }}</QBtn>
|
<QBtn flat class="link">{{ row.id }}</QBtn>
|
||||||
<ItemDescriptorProxy :id="row.id" />
|
<ItemDescriptorProxy :id="row.id" />
|
||||||
</QTd>
|
</QTd>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -196,7 +196,7 @@ const selectTravel = ({ id }) => {
|
||||||
>
|
>
|
||||||
<template #body-cell-id="{ row }">
|
<template #body-cell-id="{ row }">
|
||||||
<QTd auto-width @click.stop data-cy="travelFk-travel-form">
|
<QTd auto-width @click.stop data-cy="travelFk-travel-form">
|
||||||
<QBtn flat color="blue">{{ row.id }}</QBtn>
|
<QBtn flat class="link">{{ row.id }}</QBtn>
|
||||||
<TravelDescriptorProxy :id="row.id" />
|
<TravelDescriptorProxy :id="row.id" />
|
||||||
</QTd>
|
</QTd>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -77,6 +77,7 @@ watch(
|
||||||
function findMatches(search, item) {
|
function findMatches(search, item) {
|
||||||
const matches = [];
|
const matches = [];
|
||||||
function findRoute(search, item) {
|
function findRoute(search, item) {
|
||||||
|
if (!item?.children) return;
|
||||||
for (const child of item.children) {
|
for (const child of item.children) {
|
||||||
if (search?.indexOf(child.name) > -1) {
|
if (search?.indexOf(child.name) > -1) {
|
||||||
matches.push(child);
|
matches.push(child);
|
||||||
|
@ -92,7 +93,7 @@ function findMatches(search, item) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function addChildren(module, route, parent) {
|
function addChildren(module, route, parent) {
|
||||||
const menus = route?.meta?.menu ?? route?.menus?.[props.source]; //backwards compatible
|
const menus = route?.meta?.menu;
|
||||||
if (!menus) return;
|
if (!menus) return;
|
||||||
|
|
||||||
const matches = findMatches(menus, route);
|
const matches = findMatches(menus, route);
|
||||||
|
@ -107,11 +108,7 @@ function getRoutes() {
|
||||||
main: getMainRoutes,
|
main: getMainRoutes,
|
||||||
card: getCardRoutes,
|
card: getCardRoutes,
|
||||||
};
|
};
|
||||||
try {
|
handleRoutes[props.source]();
|
||||||
handleRoutes[props.source]();
|
|
||||||
} catch (error) {
|
|
||||||
throw new Error(`Method is not defined`);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
function getMainRoutes() {
|
function getMainRoutes() {
|
||||||
const modules = Object.assign([], navigation.getModules().value);
|
const modules = Object.assign([], navigation.getModules().value);
|
||||||
|
@ -122,7 +119,6 @@ function getMainRoutes() {
|
||||||
);
|
);
|
||||||
if (!moduleDef) continue;
|
if (!moduleDef) continue;
|
||||||
item.children = [];
|
item.children = [];
|
||||||
|
|
||||||
addChildren(item.module, moduleDef, item.children);
|
addChildren(item.module, moduleDef, item.children);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -132,21 +128,16 @@ function getMainRoutes() {
|
||||||
function getCardRoutes() {
|
function getCardRoutes() {
|
||||||
const currentRoute = route.matched[1];
|
const currentRoute = route.matched[1];
|
||||||
const currentModule = toLowerCamel(currentRoute.name);
|
const currentModule = toLowerCamel(currentRoute.name);
|
||||||
let moduleDef = routes.find((route) => toLowerCamel(route.name) === currentModule);
|
let moduleDef;
|
||||||
|
|
||||||
if (!moduleDef) return;
|
|
||||||
if (!moduleDef?.menus) moduleDef = betaGetRoutes();
|
|
||||||
addChildren(currentModule, moduleDef, items.value);
|
|
||||||
}
|
|
||||||
|
|
||||||
function betaGetRoutes() {
|
|
||||||
let menuRoute;
|
|
||||||
let index = route.matched.length - 1;
|
let index = route.matched.length - 1;
|
||||||
while (!menuRoute && index > 0) {
|
while (!moduleDef && index > 0) {
|
||||||
if (route.matched[index]?.meta?.menu) menuRoute = route.matched[index];
|
if (route.matched[index]?.meta?.menu) moduleDef = route.matched[index];
|
||||||
index--;
|
index--;
|
||||||
}
|
}
|
||||||
return menuRoute;
|
|
||||||
|
if (!moduleDef) return;
|
||||||
|
addChildren(currentModule, moduleDef, items.value);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function togglePinned(item, event) {
|
async function togglePinned(item, event) {
|
||||||
|
|
|
@ -6,6 +6,7 @@ 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 VnCheckbox from 'components/common/VnCheckbox.vue';
|
||||||
import VnColumn from 'components/VnTable/VnColumn.vue';
|
import VnColumn from 'components/VnTable/VnColumn.vue';
|
||||||
|
|
||||||
const $props = defineProps({
|
const $props = defineProps({
|
||||||
|
@ -106,7 +107,7 @@ const components = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
checkbox: {
|
checkbox: {
|
||||||
component: markRaw(QCheckbox),
|
component: markRaw(VnCheckbox),
|
||||||
event: updateEvent,
|
event: updateEvent,
|
||||||
attrs: {
|
attrs: {
|
||||||
class: $props.showTitle ? 'q-py-sm' : 'q-px-md q-py-xs fit',
|
class: $props.showTitle ? 'q-py-sm' : 'q-px-md q-py-xs fit',
|
||||||
|
|
|
@ -15,10 +15,7 @@ vi.mock('src/router/modules', () => ({
|
||||||
meta: {
|
meta: {
|
||||||
title: 'customers',
|
title: 'customers',
|
||||||
icon: 'vn:client',
|
icon: 'vn:client',
|
||||||
},
|
menu: ['CustomerList', 'CustomerCreate'],
|
||||||
menus: {
|
|
||||||
main: ['CustomerList', 'CustomerCreate'],
|
|
||||||
card: ['CustomerBasicData'],
|
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
|
@ -98,7 +95,7 @@ vi.spyOn(vueRouter, 'useRoute').mockReturnValue({
|
||||||
icon: 'vn:client',
|
icon: 'vn:client',
|
||||||
moduleName: 'Customer',
|
moduleName: 'Customer',
|
||||||
keyBinding: 'c',
|
keyBinding: 'c',
|
||||||
menu: 'customer',
|
menu: ['customer'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -260,15 +257,6 @@ describe('Leftmenu as main', () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should handle a single matched route with a menu', () => {
|
|
||||||
const route = {
|
|
||||||
matched: [{ meta: { menu: 'customer' } }],
|
|
||||||
};
|
|
||||||
|
|
||||||
const result = vm.betaGetRoutes();
|
|
||||||
|
|
||||||
expect(result.meta.menu).toEqual(route.matched[0].meta.menu);
|
|
||||||
});
|
|
||||||
it('should get routes for main source', () => {
|
it('should get routes for main source', () => {
|
||||||
vm.props.source = 'main';
|
vm.props.source = 'main';
|
||||||
vm.getRoutes();
|
vm.getRoutes();
|
||||||
|
@ -351,8 +339,9 @@ describe('addChildren', () => {
|
||||||
|
|
||||||
it('should handle routes with no meta menu', () => {
|
it('should handle routes with no meta menu', () => {
|
||||||
const route = {
|
const route = {
|
||||||
meta: {},
|
meta: {
|
||||||
menus: {},
|
menu: [],
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const parent = [];
|
const parent = [];
|
||||||
|
|
|
@ -54,7 +54,7 @@ const $props = defineProps({
|
||||||
default: 'table',
|
default: 'table',
|
||||||
},
|
},
|
||||||
redirect: {
|
redirect: {
|
||||||
type: Boolean,
|
type: [String, Boolean],
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
arrayData: {
|
arrayData: {
|
||||||
|
|
|
@ -186,7 +186,7 @@ function fetchData([data]) {
|
||||||
ref="vnPaginateRef"
|
ref="vnPaginateRef"
|
||||||
class="show"
|
class="show"
|
||||||
v-bind="$attrs"
|
v-bind="$attrs"
|
||||||
search-url="notes"
|
:search-url="false"
|
||||||
@on-fetch="
|
@on-fetch="
|
||||||
newNote.text = '';
|
newNote.text = '';
|
||||||
newNote.observationTypeFk = null;
|
newNote.observationTypeFk = null;
|
||||||
|
|
|
@ -15,6 +15,7 @@ body.body--light {
|
||||||
--vn-empty-tag: #acacac;
|
--vn-empty-tag: #acacac;
|
||||||
--vn-black-text-color: black;
|
--vn-black-text-color: black;
|
||||||
--vn-text-color-contrast: white;
|
--vn-text-color-contrast: white;
|
||||||
|
--vn-link-color: #1e90ff;
|
||||||
|
|
||||||
background-color: var(--vn-page-color);
|
background-color: var(--vn-page-color);
|
||||||
|
|
||||||
|
@ -38,6 +39,7 @@ body.body--dark {
|
||||||
--vn-empty-tag: #2d2d2d;
|
--vn-empty-tag: #2d2d2d;
|
||||||
--vn-black-text-color: black;
|
--vn-black-text-color: black;
|
||||||
--vn-text-color-contrast: black;
|
--vn-text-color-contrast: black;
|
||||||
|
--vn-link-color: #66bfff;
|
||||||
|
|
||||||
background-color: var(--vn-page-color);
|
background-color: var(--vn-page-color);
|
||||||
|
|
||||||
|
@ -49,7 +51,7 @@ a {
|
||||||
}
|
}
|
||||||
|
|
||||||
.link {
|
.link {
|
||||||
color: $color-link;
|
color: var(--vn-link-color);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
&--white {
|
&--white {
|
||||||
|
@ -58,14 +60,14 @@ a {
|
||||||
}
|
}
|
||||||
|
|
||||||
.tx-color-link {
|
.tx-color-link {
|
||||||
color: $color-link !important;
|
color: var(--vn-link-color) !important;
|
||||||
}
|
}
|
||||||
.tx-color-font {
|
.tx-color-font {
|
||||||
color: $color-link !important;
|
color: var(--vn-link-color) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-link {
|
.header-link {
|
||||||
color: $color-link !important;
|
color: var(--vn-link-color) !important;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border-bottom: solid $primary;
|
border-bottom: solid $primary;
|
||||||
border-width: 2px;
|
border-width: 2px;
|
||||||
|
|
|
@ -24,7 +24,6 @@ $alert: $negative;
|
||||||
$white: #fff;
|
$white: #fff;
|
||||||
$dark: #3d3d3d;
|
$dark: #3d3d3d;
|
||||||
// custom
|
// custom
|
||||||
$color-link: #66bfff;
|
|
||||||
$color-spacer-light: #a3a3a31f;
|
$color-spacer-light: #a3a3a31f;
|
||||||
$color-spacer: #7979794d;
|
$color-spacer: #7979794d;
|
||||||
$border-thin-light: 1px solid $color-spacer-light;
|
$border-thin-light: 1px solid $color-spacer-light;
|
||||||
|
|
|
@ -531,6 +531,7 @@ ticket:
|
||||||
customerCard: Customer card
|
customerCard: Customer card
|
||||||
ticketList: Ticket List
|
ticketList: Ticket List
|
||||||
newOrder: New Order
|
newOrder: New Order
|
||||||
|
ticketClaimed: Claimed ticket
|
||||||
boxing:
|
boxing:
|
||||||
expedition: Expedition
|
expedition: Expedition
|
||||||
created: Created
|
created: Created
|
||||||
|
|
|
@ -538,6 +538,7 @@ ticket:
|
||||||
customerCard: Ficha del cliente
|
customerCard: Ficha del cliente
|
||||||
ticketList: Listado de tickets
|
ticketList: Listado de tickets
|
||||||
newOrder: Nuevo pedido
|
newOrder: Nuevo pedido
|
||||||
|
ticketClaimed: Ticket reclamado
|
||||||
boxing:
|
boxing:
|
||||||
expedition: Expedición
|
expedition: Expedición
|
||||||
created: Creado
|
created: Creado
|
||||||
|
|
|
@ -5,6 +5,7 @@ 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 VnTitle from 'src/components/common/VnTitle.vue';
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
@ -27,13 +28,10 @@ const entityId = computed(() => $props.id || route.params.id);
|
||||||
<template #body="{ entity: alias }">
|
<template #body="{ entity: alias }">
|
||||||
<QCard class="vn-one">
|
<QCard class="vn-one">
|
||||||
<QCardSection class="q-pa-none">
|
<QCardSection class="q-pa-none">
|
||||||
<router-link
|
<VnTitle
|
||||||
:to="{ name: 'AliasBasicData', params: { id: entityId } }"
|
:url="`#/account/alias/${entityId}/basic-data`"
|
||||||
class="header header-link"
|
:text="t('globals.summary.basicData')"
|
||||||
>
|
/>
|
||||||
{{ t('globals.summary.basicData') }}
|
|
||||||
<QIcon name="open_in_new" />
|
|
||||||
</router-link>
|
|
||||||
</QCardSection>
|
</QCardSection>
|
||||||
<VnLv :label="t('role.id')" :value="alias.id" />
|
<VnLv :label="t('role.id')" :value="alias.id" />
|
||||||
<VnLv :label="t('role.description')" :value="alias.description" />
|
<VnLv :label="t('role.description')" :value="alias.description" />
|
||||||
|
|
|
@ -5,6 +5,7 @@ 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 filter from './AccountFilter.js';
|
||||||
import AccountDescriptorMenu from './AccountDescriptorMenu.vue';
|
import AccountDescriptorMenu from './AccountDescriptorMenu.vue';
|
||||||
|
import VnTitle from 'src/components/common/VnTitle.vue';
|
||||||
|
|
||||||
const $props = defineProps({ id: { type: Number, default: 0 } });
|
const $props = defineProps({ id: { type: Number, default: 0 } });
|
||||||
|
|
||||||
|
@ -26,13 +27,10 @@ const entityId = computed(() => $props.id || route.params.id);
|
||||||
<template #body="{ entity }">
|
<template #body="{ entity }">
|
||||||
<QCard class="vn-one">
|
<QCard class="vn-one">
|
||||||
<QCardSection class="q-pa-none">
|
<QCardSection class="q-pa-none">
|
||||||
<router-link
|
<VnTitle
|
||||||
:to="{ name: 'AccountBasicData', params: { id: entityId } }"
|
:url="`#/account/${entityId}/basic-data`"
|
||||||
class="header header-link"
|
:text="$t('globals.pageTitles.basicData')"
|
||||||
>
|
/>
|
||||||
{{ $t('globals.pageTitles.basicData') }}
|
|
||||||
<QIcon name="open_in_new" />
|
|
||||||
</router-link>
|
|
||||||
</QCardSection>
|
</QCardSection>
|
||||||
<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" />
|
||||||
|
|
|
@ -4,6 +4,7 @@ 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 VnTitle from 'src/components/common/VnTitle.vue';
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
@ -29,13 +30,10 @@ const entityId = computed(() => $props.id || route.params.id);
|
||||||
<template #body="{ entity }">
|
<template #body="{ entity }">
|
||||||
<QCard class="vn-one">
|
<QCard class="vn-one">
|
||||||
<QCardSection class="q-pa-none">
|
<QCardSection class="q-pa-none">
|
||||||
<a
|
<VnTitle
|
||||||
class="header header-link"
|
:url="`#/account/role/${entityId}/basic-data`"
|
||||||
:href="`#/VnUser/${entityId}/basic-data`"
|
:text="$t('globals.pageTitles.basicData')"
|
||||||
>
|
/>
|
||||||
{{ t('globals.pageTitles.basicData') }}
|
|
||||||
<QIcon name="open_in_new" />
|
|
||||||
</a>
|
|
||||||
</QCardSection>
|
</QCardSection>
|
||||||
<VnLv :label="t('role.id')" :value="entity.id" />
|
<VnLv :label="t('role.id')" :value="entity.id" />
|
||||||
<VnLv :label="t('globals.name')" :value="entity.name" />
|
<VnLv :label="t('globals.name')" :value="entity.name" />
|
||||||
|
|
|
@ -328,7 +328,7 @@ async function post(query, params) {
|
||||||
<QTd>
|
<QTd>
|
||||||
<VnSelect
|
<VnSelect
|
||||||
v-model="row.shelvingFk"
|
v-model="row.shelvingFk"
|
||||||
:options="shelvings"
|
url="Shelvings"
|
||||||
option-label="code"
|
option-label="code"
|
||||||
option-value="id"
|
option-value="id"
|
||||||
style="width: 100px"
|
style="width: 100px"
|
||||||
|
|
|
@ -271,7 +271,7 @@ function claimUrl(section) {
|
||||||
</VnLv>
|
</VnLv>
|
||||||
<VnLv v-if="$route.name != 'ClaimSummary'" :label="t('claim.customer')">
|
<VnLv v-if="$route.name != 'ClaimSummary'" :label="t('claim.customer')">
|
||||||
<template #value>
|
<template #value>
|
||||||
<span class="link cursor-pointer">
|
<span class="link">
|
||||||
{{ claim.client?.name }}
|
{{ claim.client?.name }}
|
||||||
<CustomerDescriptorProxy :id="claim.clientFk" />
|
<CustomerDescriptorProxy :id="claim.clientFk" />
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -80,7 +80,7 @@ const columns = [
|
||||||
:right-search="false"
|
:right-search="false"
|
||||||
:column-search="false"
|
:column-search="false"
|
||||||
:disable-option="{ card: true, table: true }"
|
:disable-option="{ card: true, table: true }"
|
||||||
search-url="actions"
|
:search-url="false"
|
||||||
:filter="{ where: { claimFk: $props.id } }"
|
:filter="{ where: { claimFk: $props.id } }"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:limit="0"
|
:limit="0"
|
||||||
|
|
|
@ -86,12 +86,12 @@ const tableColumnComponents = {
|
||||||
},
|
},
|
||||||
file: {
|
file: {
|
||||||
component: QBtn,
|
component: QBtn,
|
||||||
props: () => ({ flat: true, color: 'blue' }),
|
props: () => ({ flat: true }),
|
||||||
event: ({ row }) => downloadFile(row.dmsFk),
|
event: ({ row }) => downloadFile(row.dmsFk),
|
||||||
},
|
},
|
||||||
employee: {
|
employee: {
|
||||||
component: QBtn,
|
component: QBtn,
|
||||||
props: () => ({ flat: true, color: 'blue' }),
|
props: () => ({ flat: true }),
|
||||||
event: () => {},
|
event: () => {},
|
||||||
},
|
},
|
||||||
created: {
|
created: {
|
||||||
|
@ -214,8 +214,17 @@ const toCustomerFileManagementCreate = () => {
|
||||||
v-bind="tableColumnComponents[props.col.name].props(props)"
|
v-bind="tableColumnComponents[props.col.name].props(props)"
|
||||||
>
|
>
|
||||||
<template v-if="props.col.name !== 'original'">
|
<template v-if="props.col.name !== 'original'">
|
||||||
{{ props.value }}
|
<span
|
||||||
|
:class="{
|
||||||
|
link:
|
||||||
|
props.col.name === 'employee' ||
|
||||||
|
props.col.name === 'file',
|
||||||
|
}"
|
||||||
|
>
|
||||||
|
{{ props.value }}
|
||||||
|
</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<WorkerDescriptorProxy
|
<WorkerDescriptorProxy
|
||||||
:id="props.row.dms.workerFk"
|
:id="props.row.dms.workerFk"
|
||||||
v-if="props.col.name === 'employee'"
|
v-if="props.col.name === 'employee'"
|
||||||
|
|
|
@ -7,6 +7,7 @@ import filter from './ItemTypeFilter.js';
|
||||||
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 VnToSummary from 'src/components/ui/VnToSummary.vue';
|
import VnToSummary from 'src/components/ui/VnToSummary.vue';
|
||||||
|
import VnTitle from 'src/components/common/VnTitle.vue';
|
||||||
|
|
||||||
onUpdated(() => summaryRef.value.fetch());
|
onUpdated(() => summaryRef.value.fetch());
|
||||||
|
|
||||||
|
@ -62,13 +63,10 @@ async function setItemTypeData(data) {
|
||||||
</template>
|
</template>
|
||||||
<template #body>
|
<template #body>
|
||||||
<QCard class="vn-one">
|
<QCard class="vn-one">
|
||||||
<router-link
|
<VnTitle
|
||||||
:to="{ name: 'ItemTypeBasicData', params: { id: entityId } }"
|
:url="`#/item/item-type/${entityId}/basic-data`"
|
||||||
class="header header-link"
|
:text="$t('globals.summary.basicData')"
|
||||||
>
|
/>
|
||||||
{{ t('globals.summary.basicData') }}
|
|
||||||
<QIcon name="open_in_new" />
|
|
||||||
</router-link>
|
|
||||||
<VnLv :label="t('itemType.summary.id')" :value="itemType.id" />
|
<VnLv :label="t('itemType.summary.id')" :value="itemType.id" />
|
||||||
<VnLv :label="t('itemType.shared.code')" :value="itemType.code" />
|
<VnLv :label="t('itemType.shared.code')" :value="itemType.code" />
|
||||||
<VnLv :label="t('itemType.shared.name')" :value="itemType.name" />
|
<VnLv :label="t('itemType.shared.name')" :value="itemType.name" />
|
||||||
|
|
|
@ -2,10 +2,13 @@
|
||||||
import { computed } from 'vue';
|
import { computed } from 'vue';
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
|
import { useSummaryDialog } from 'src/composables/useSummaryDialog';
|
||||||
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 AgencySummary from 'pages/Route/Agency/Card/AgencySummary.vue';
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
const { viewSummary } = useSummaryDialog();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const dataKey = 'AgencyList';
|
const dataKey = 'AgencyList';
|
||||||
function navigate(id) {
|
function navigate(id) {
|
||||||
|
@ -60,7 +63,8 @@ const columns = computed(() => [
|
||||||
{
|
{
|
||||||
title: t('Client ticket list'),
|
title: t('Client ticket list'),
|
||||||
icon: 'preview',
|
icon: 'preview',
|
||||||
action: (row) => navigate(row.id),
|
action: (row) => viewSummary(row?.id, AgencySummary),
|
||||||
|
isPrimary: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
@ -82,7 +86,7 @@ const columns = computed(() => [
|
||||||
<VnTable
|
<VnTable
|
||||||
:data-key
|
:data-key
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
is-editable="false"
|
:is-editable="false"
|
||||||
:right-search="false"
|
:right-search="false"
|
||||||
:use-model="true"
|
:use-model="true"
|
||||||
redirect="route/agency"
|
redirect="route/agency"
|
||||||
|
|
|
@ -21,7 +21,7 @@ const warehouses = ref([]);
|
||||||
@on-fetch="(data) => (warehouses = data)"
|
@on-fetch="(data) => (warehouses = data)"
|
||||||
auto-load
|
auto-load
|
||||||
/>
|
/>
|
||||||
<FormModel :update-url="`Agencies/${routeId}`" model="Agency" auto-load>
|
<FormModel :url-update="`Agencies/${routeId}`" model="Agency" auto-load>
|
||||||
<template #form="{ data }">
|
<template #form="{ data }">
|
||||||
<VnRow>
|
<VnRow>
|
||||||
<VnInput v-model="data.name" :label="t('globals.name')" />
|
<VnInput v-model="data.name" :label="t('globals.name')" />
|
||||||
|
|
|
@ -7,19 +7,20 @@ import CardSummary from 'components/ui/CardSummary.vue';
|
||||||
import VnLv from 'components/ui/VnLv.vue';
|
import VnLv from 'components/ui/VnLv.vue';
|
||||||
import VnTitle from 'src/components/common/VnTitle.vue';
|
import VnTitle from 'src/components/common/VnTitle.vue';
|
||||||
|
|
||||||
|
const route = useRoute();
|
||||||
const $props = defineProps({ id: { type: Number, default: 0 } });
|
const $props = defineProps({ id: { type: Number, default: 0 } });
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const entityId = computed(() => $props.id || useRoute().params.id);
|
const entityId = computed(() => $props.id || route.params.id);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="q-pa-md">
|
<div class="q-pa-md">
|
||||||
<CardSummary :url="`Agencies/${entityId}`" data-key="Agency">
|
<CardSummary :url="`Agencies/${entityId}`" data-key="Agency" module-name="Agency">
|
||||||
<template #header="{ entity: agency }">{{ agency.name }}</template>
|
<template #header="{ entity: agency }">{{ agency.name }}</template>
|
||||||
<template #body="{ entity: agency }">
|
<template #body="{ entity: agency }">
|
||||||
<QCard class="vn-one">
|
<QCard class="vn-one">
|
||||||
<VnTitle
|
<VnTitle
|
||||||
:url="`#/agency/${entityId}/basic-data`"
|
:url="`#/${route.meta.moduleName.toLowerCase()}/agency/${entityId}/basic-data`"
|
||||||
:text="t('globals.pageTitles.basicData')"
|
:text="t('globals.pageTitles.basicData')"
|
||||||
/>
|
/>
|
||||||
<VnLv :label="t('globals.name')" :value="agency.name" />
|
<VnLv :label="t('globals.name')" :value="agency.name" />
|
||||||
|
|
|
@ -135,7 +135,7 @@ const ticketColumns = ref([
|
||||||
<template #body="{ entity }">
|
<template #body="{ entity }">
|
||||||
<QCard class="vn-max">
|
<QCard class="vn-max">
|
||||||
<VnTitle
|
<VnTitle
|
||||||
:url="`#/route/${entityId}/basic-data`"
|
:url="`#/${route.meta.moduleName.toLowerCase()}/${entityId}/basic-data`"
|
||||||
:text="t('globals.pageTitles.basicData')"
|
:text="t('globals.pageTitles.basicData')"
|
||||||
/>
|
/>
|
||||||
</QCard>
|
</QCard>
|
||||||
|
@ -168,7 +168,7 @@ const ticketColumns = ref([
|
||||||
<VnLv
|
<VnLv
|
||||||
:label="t('route.summary.volume')"
|
:label="t('route.summary.volume')"
|
||||||
:value="`${dashIfEmpty(entity?.route?.m3)} / ${dashIfEmpty(
|
:value="`${dashIfEmpty(entity?.route?.m3)} / ${dashIfEmpty(
|
||||||
entity?.route?.vehicle?.m3
|
entity?.route?.vehicle?.m3,
|
||||||
)} m³`"
|
)} m³`"
|
||||||
/>
|
/>
|
||||||
<VnLv
|
<VnLv
|
||||||
|
@ -221,7 +221,7 @@ const ticketColumns = ref([
|
||||||
<template #body-cell-city="{ value, row }">
|
<template #body-cell-city="{ value, row }">
|
||||||
<QTd auto-width>
|
<QTd auto-width>
|
||||||
<span
|
<span
|
||||||
class="link cursor-pointer"
|
class="link"
|
||||||
@click="openBuscaman(entity?.route?.vehicleFk, [row])"
|
@click="openBuscaman(entity?.route?.vehicleFk, [row])"
|
||||||
>
|
>
|
||||||
{{ value }}
|
{{ value }}
|
||||||
|
@ -230,7 +230,7 @@ const ticketColumns = ref([
|
||||||
</template>
|
</template>
|
||||||
<template #body-cell-client="{ value, row }">
|
<template #body-cell-client="{ value, row }">
|
||||||
<QTd auto-width>
|
<QTd auto-width>
|
||||||
<span class="link cursor-pointer">
|
<span class="link">
|
||||||
{{ value }}
|
{{ value }}
|
||||||
<CustomerDescriptorProxy :id="row?.clientFk" />
|
<CustomerDescriptorProxy :id="row?.clientFk" />
|
||||||
</span>
|
</span>
|
||||||
|
@ -238,7 +238,7 @@ const ticketColumns = ref([
|
||||||
</template>
|
</template>
|
||||||
<template #body-cell-ticket="{ value, row }">
|
<template #body-cell-ticket="{ value, row }">
|
||||||
<QTd auto-width class="text-center">
|
<QTd auto-width class="text-center">
|
||||||
<span class="link cursor-pointer">
|
<span class="link">
|
||||||
{{ value }}
|
{{ value }}
|
||||||
<TicketDescriptorProxy :id="row?.id" />
|
<TicketDescriptorProxy :id="row?.id" />
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -2,28 +2,38 @@
|
||||||
import { onBeforeMount, onMounted, computed, ref } from 'vue';
|
import { onBeforeMount, onMounted, computed, ref } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import { Notify } from 'quasar';
|
import { Notify } from 'quasar';
|
||||||
|
import { useRoute } from 'vue-router';
|
||||||
import { useSession } from 'src/composables/useSession';
|
import { useSession } from 'src/composables/useSession';
|
||||||
import { toDateHourMin } from 'filters/index';
|
import { toDateHourMin } from 'filters/index';
|
||||||
import { useStateStore } from 'src/stores/useStateStore';
|
import { useStateStore } from 'src/stores/useStateStore';
|
||||||
|
|
||||||
import axios from 'axios';
|
|
||||||
import TicketDescriptorProxy from 'pages/Ticket/Card/TicketDescriptorProxy.vue';
|
import TicketDescriptorProxy from 'pages/Ticket/Card/TicketDescriptorProxy.vue';
|
||||||
import CustomerDescriptorProxy from 'pages/Customer/Card/CustomerDescriptorProxy.vue';
|
import CustomerDescriptorProxy from 'pages/Customer/Card/CustomerDescriptorProxy.vue';
|
||||||
|
|
||||||
import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue';
|
import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue';
|
||||||
import VnTable from 'components/VnTable/VnTable.vue';
|
import VnTable from 'components/VnTable/VnTable.vue';
|
||||||
|
import VnSearchbar from 'src/components/ui/VnSearchbar.vue';
|
||||||
|
|
||||||
|
const route = useRoute();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const { getTokenMultimedia } = useSession();
|
const { getTokenMultimedia } = useSession();
|
||||||
const token = getTokenMultimedia();
|
const token = getTokenMultimedia();
|
||||||
const state = useStateStore();
|
const state = useStateStore();
|
||||||
const warehouses = ref([]);
|
|
||||||
const selectedRows = ref([]);
|
const selectedRows = ref([]);
|
||||||
|
const dataKey = 'CmrList';
|
||||||
|
const shipped = Date.vnNew();
|
||||||
|
shipped.setHours(0, 0, 0, 0);
|
||||||
|
shipped.setDate(shipped.getDate() - 1);
|
||||||
|
const userParams = {
|
||||||
|
shipped: null,
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
const columns = computed(() => [
|
const columns = computed(() => [
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
name: 'cmrFk',
|
name: 'cmrFk',
|
||||||
label: t('route.cmr.list.cmrFk'),
|
label: t('route.cmr.params.cmrFk'),
|
||||||
chip: {
|
chip: {
|
||||||
condition: () => true,
|
condition: () => true,
|
||||||
},
|
},
|
||||||
|
@ -32,62 +42,67 @@ const columns = computed(() => [
|
||||||
{
|
{
|
||||||
align: 'center',
|
align: 'center',
|
||||||
name: 'hasCmrDms',
|
name: 'hasCmrDms',
|
||||||
label: t('route.cmr.list.hasCmrDms'),
|
label: t('route.cmr.params.hasCmrDms'),
|
||||||
component: 'checkbox',
|
component: 'checkbox',
|
||||||
cardVisible: true,
|
cardVisible: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('route.cmr.list.ticketFk'),
|
label: t('route.cmr.params.ticketFk'),
|
||||||
name: 'ticketFk',
|
name: 'ticketFk',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('route.cmr.list.routeFk'),
|
label: t('route.cmr.params.routeFk'),
|
||||||
name: 'routeFk',
|
name: 'routeFk',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('route.cmr.list.clientFk'),
|
label: t('route.cmr.params.clientFk'),
|
||||||
name: 'clientFk',
|
name: 'clientFk',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'right',
|
align: 'right',
|
||||||
label: t('route.cmr.list.country'),
|
label: t('route.cmr.params.countryFk'),
|
||||||
name: 'countryFk',
|
name: 'countryFk',
|
||||||
cardVisible: true,
|
component: 'select',
|
||||||
attrs: {
|
attrs: {
|
||||||
url: 'countries',
|
url: 'countries',
|
||||||
fields: ['id', 'name'],
|
fields: ['id', 'name'],
|
||||||
optionLabel: 'name',
|
|
||||||
optionValue: 'id',
|
|
||||||
},
|
},
|
||||||
columnFilter: {
|
columnFilter: {
|
||||||
inWhere: true,
|
name: 'countryFk',
|
||||||
component: 'select',
|
attrs: {
|
||||||
|
url: 'countries',
|
||||||
|
fields: ['id', 'name'],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
format: ({ countryName }) => countryName,
|
format: ({ countryName }) => countryName,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'right',
|
align: 'right',
|
||||||
label: t('route.cmr.list.shipped'),
|
label: t('route.cmr.params.shipped'),
|
||||||
name: 'shipped',
|
name: 'shipped',
|
||||||
cardVisible: true,
|
cardVisible: true,
|
||||||
columnFilter: {
|
component: 'date',
|
||||||
component: 'date',
|
|
||||||
inWhere: true,
|
|
||||||
},
|
|
||||||
format: ({ shipped }) => toDateHourMin(shipped),
|
format: ({ shipped }) => toDateHourMin(shipped),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'right',
|
align: 'right',
|
||||||
|
label: t('route.cmr.params.warehouseFk'),
|
||||||
name: 'warehouseFk',
|
name: 'warehouseFk',
|
||||||
label: t('globals.warehouse'),
|
component: 'select',
|
||||||
columnFilter: {
|
|
||||||
component: 'select',
|
|
||||||
},
|
|
||||||
attrs: {
|
attrs: {
|
||||||
options: warehouses.value,
|
url: 'warehouses',
|
||||||
|
fields: ['id', 'name'],
|
||||||
|
},
|
||||||
|
columnFilter: {
|
||||||
|
inWhere: true,
|
||||||
|
name: 'warehouseFk',
|
||||||
|
attrs: {
|
||||||
|
url: 'warehouses',
|
||||||
|
fields: ['id', 'name'],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
format: ({ warehouseName }) => warehouseName,
|
format: ({ warehouseName }) => warehouseName,
|
||||||
},
|
},
|
||||||
|
@ -96,7 +111,7 @@ const columns = computed(() => [
|
||||||
name: 'tableActions',
|
name: 'tableActions',
|
||||||
actions: [
|
actions: [
|
||||||
{
|
{
|
||||||
title: t('Ver cmr'),
|
title: t('route.cmr.params.viewCmr'),
|
||||||
icon: 'visibility',
|
icon: 'visibility',
|
||||||
isPrimary: true,
|
isPrimary: true,
|
||||||
action: (row) => window.open(getCmrUrl(row?.cmrFk), '_blank'),
|
action: (row) => window.open(getCmrUrl(row?.cmrFk), '_blank'),
|
||||||
|
@ -105,13 +120,17 @@ const columns = computed(() => [
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
onBeforeMount(async () => {
|
onBeforeMount(() => {
|
||||||
const { data } = await axios.get('Warehouses');
|
initializeFromQuery();
|
||||||
warehouses.value = data;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
onMounted(() => (state.rightDrawer = true));
|
onMounted(() => (state.rightDrawer = true));
|
||||||
|
|
||||||
|
const initializeFromQuery = () => {
|
||||||
|
const query = route.query.table ? JSON.parse(route.query.table) : {};
|
||||||
|
shipped.value = query.shipped || shipped.toISOString();
|
||||||
|
Object.assign(userParams, { shipped });
|
||||||
|
};
|
||||||
function getApiUrl() {
|
function getApiUrl() {
|
||||||
return new URL(window.location).origin;
|
return new URL(window.location).origin;
|
||||||
}
|
}
|
||||||
|
@ -133,6 +152,11 @@ function downloadPdfs() {
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
|
<VnSearchbar
|
||||||
|
:data-key
|
||||||
|
:label="t('route.cmr.search')"
|
||||||
|
:info="t('route.cmr.searchInfo')"
|
||||||
|
/>
|
||||||
<VnSubToolbar>
|
<VnSubToolbar>
|
||||||
<template #st-actions>
|
<template #st-actions>
|
||||||
<QBtn
|
<QBtn
|
||||||
|
@ -142,16 +166,16 @@ function downloadPdfs() {
|
||||||
:disable="!selectedRows?.length"
|
:disable="!selectedRows?.length"
|
||||||
@click="downloadPdfs"
|
@click="downloadPdfs"
|
||||||
>
|
>
|
||||||
<QTooltip>{{ t('route.cmr.list.downloadCmrs') }}</QTooltip>
|
<QTooltip>{{ t('route.cmr.params.downloadCmrs') }}</QTooltip>
|
||||||
</QBtn>
|
</QBtn>
|
||||||
</template>
|
</template>
|
||||||
</VnSubToolbar>
|
</VnSubToolbar>
|
||||||
<VnTable
|
<VnTable
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
data-key="CmrList"
|
:data-key
|
||||||
url="Cmrs/filter"
|
url="Cmrs/filter"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:right-search="true"
|
:user-params="userParams"
|
||||||
default-mode="table"
|
default-mode="table"
|
||||||
v-model:selected="selectedRows"
|
v-model:selected="selectedRows"
|
||||||
table-height="85vh"
|
table-height="85vh"
|
||||||
|
|
|
@ -17,7 +17,7 @@ const onSave = (data, response) => {
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<FormModel
|
<FormModel
|
||||||
:update-url="`Roadmaps/${$route.params?.id}`"
|
:url-update="`Roadmaps/${$route.params?.id}`"
|
||||||
:url="`Roadmaps/${$route.params?.id}`"
|
:url="`Roadmaps/${$route.params?.id}`"
|
||||||
observe-form-changes
|
observe-form-changes
|
||||||
model="Roadmap"
|
model="Roadmap"
|
||||||
|
|
|
@ -15,6 +15,10 @@ const $props = defineProps({
|
||||||
required: false,
|
required: false,
|
||||||
default: null,
|
default: null,
|
||||||
},
|
},
|
||||||
|
summary: {
|
||||||
|
type: Object,
|
||||||
|
default: null,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
@ -26,7 +30,12 @@ const entityId = computed(() => {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<CardDescriptor :url="`Roadmaps/${entityId}`" :filter="filter" data-key="Roadmap">
|
<CardDescriptor
|
||||||
|
:url="`Roadmaps/${entityId}`"
|
||||||
|
:filter="filter"
|
||||||
|
data-key="Roadmap"
|
||||||
|
:summary="summary"
|
||||||
|
>
|
||||||
<template #body="{ entity }">
|
<template #body="{ entity }">
|
||||||
<VnLv :label="t('Roadmap')" :value="entity?.name" />
|
<VnLv :label="t('Roadmap')" :value="entity?.name" />
|
||||||
<VnLv :label="t('ETD')" :value="toDateHourMin(entity?.etd)" />
|
<VnLv :label="t('ETD')" :value="toDateHourMin(entity?.etd)" />
|
||||||
|
|
|
@ -105,7 +105,7 @@ const columns = computed(() => [
|
||||||
label: t('route.hourStarted'),
|
label: t('route.hourStarted'),
|
||||||
cardVisible: true,
|
cardVisible: true,
|
||||||
columnFilter: false,
|
columnFilter: false,
|
||||||
format: (row) => toHour(row.started),
|
format: ({ started }) => toHour(started),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
@ -113,7 +113,7 @@ const columns = computed(() => [
|
||||||
label: t('route.hourFinished'),
|
label: t('route.hourFinished'),
|
||||||
cardVisible: true,
|
cardVisible: true,
|
||||||
columnFilter: false,
|
columnFilter: false,
|
||||||
format: (row) => toHour(row.started),
|
format: ({ finished }) => toHour(finished),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
|
|
@ -8,7 +8,6 @@ import { useSummaryDialog } from 'composables/useSummaryDialog';
|
||||||
import toCurrency from 'filters/toCurrency';
|
import toCurrency from 'filters/toCurrency';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
|
|
||||||
import VnSearchbar from 'components/ui/VnSearchbar.vue';
|
|
||||||
import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue';
|
import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue';
|
||||||
import VnTable from 'components/VnTable/VnTable.vue';
|
import VnTable from 'components/VnTable/VnTable.vue';
|
||||||
import RoadmapSummary from 'pages/Route/Roadmap/RoadmapSummary.vue';
|
import RoadmapSummary from 'pages/Route/Roadmap/RoadmapSummary.vue';
|
||||||
|
|
|
@ -11,7 +11,6 @@ const { notify } = useNotify();
|
||||||
:url="`Vehicles/${$route.params.id}`"
|
:url="`Vehicles/${$route.params.id}`"
|
||||||
data-key="Vehicle"
|
data-key="Vehicle"
|
||||||
title="numberPlate"
|
title="numberPlate"
|
||||||
:to-module="{ name: 'VehicleList' }"
|
|
||||||
>
|
>
|
||||||
<template #menu="{ entity }">
|
<template #menu="{ entity }">
|
||||||
<QItem
|
<QItem
|
||||||
|
|
|
@ -13,12 +13,13 @@ const props = defineProps({ id: { type: [Number, String], default: null } });
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const entityId = computed(() => props.id || +route.params.id);
|
const entityId = computed(() => props.id || +route.params.id);
|
||||||
|
const baseLink = `#/${route.meta.moduleName.toLowerCase()}/vehicle/${entityId.value}`;
|
||||||
const links = {
|
const links = {
|
||||||
'basic-data': `#/vehicle/${entityId.value}/basic-data`,
|
'basic-data': `${baseLink}/basic-data`,
|
||||||
notes: `#/vehicle/${entityId.value}/notes`,
|
notes: `${baseLink}/notes`,
|
||||||
dms: `#/vehicle/${entityId.value}/dms`,
|
dms: `${baseLink}/dms`,
|
||||||
'invoice-in': `#/vehicle/${entityId.value}/invoice-in`,
|
'invoice-in': `${baseLink}/invoice-in`,
|
||||||
events: `#/vehicle/${entityId.value}/events`,
|
events: `${baseLink}/events`,
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
|
@ -54,7 +55,10 @@ const links = {
|
||||||
<template #value>
|
<template #value>
|
||||||
<span class="link">
|
<span class="link">
|
||||||
{{ entity.supplier?.name }}
|
{{ entity.supplier?.name }}
|
||||||
<SupplierDescriptorProxy :id="entity.supplierFk" />
|
<SupplierDescriptorProxy
|
||||||
|
v-if="entity.supplierFk"
|
||||||
|
:id="entity.supplierFk"
|
||||||
|
/>
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</VnLv>
|
</VnLv>
|
||||||
|
@ -63,6 +67,7 @@ const links = {
|
||||||
<span class="link">
|
<span class="link">
|
||||||
{{ entity.supplierCooler?.name }}
|
{{ entity.supplierCooler?.name }}
|
||||||
<SupplierDescriptorProxy
|
<SupplierDescriptorProxy
|
||||||
|
v-if="entity.supplierCoolerFk"
|
||||||
:id="entity.supplierCoolerFk"
|
:id="entity.supplierCoolerFk"
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -116,6 +116,7 @@ const columns = computed(() => [
|
||||||
title: t('components.smartCard.openSummary'),
|
title: t('components.smartCard.openSummary'),
|
||||||
icon: 'preview',
|
icon: 'preview',
|
||||||
action: (row) => viewSummary(row.id, VehicleSummary),
|
action: (row) => viewSummary(row.id, VehicleSummary),
|
||||||
|
isPrimary: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
|
@ -3,16 +3,19 @@ route:
|
||||||
search: Search roadmap
|
search: Search roadmap
|
||||||
searchInfo: You can search by roadmap reference
|
searchInfo: You can search by roadmap reference
|
||||||
params:
|
params:
|
||||||
|
id: Id
|
||||||
|
name: Name
|
||||||
etd: ETD
|
etd: ETD
|
||||||
tractorPlate: Plate
|
tractorPlate: Plate
|
||||||
price: Price
|
price: Price
|
||||||
observations: Observations
|
observations: Observations
|
||||||
id: ID
|
|
||||||
name: Name
|
|
||||||
cmrFk: CMR id
|
cmrFk: CMR id
|
||||||
hasCmrDms: Attached in gestdoc
|
hasCmrDms: Attached in gestdoc
|
||||||
ticketFk: Ticketd id
|
ticketFk: Ticketd id
|
||||||
routeFk: Route id
|
routeFk: Route id
|
||||||
|
clientFk: Client id
|
||||||
|
countryFk: Country
|
||||||
|
warehouseFk: Warehouse
|
||||||
shipped: Shipped
|
shipped: Shipped
|
||||||
agencyAgreement: Agency agreement
|
agencyAgreement: Agency agreement
|
||||||
agencyModeName: Agency route
|
agencyModeName: Agency route
|
||||||
|
@ -42,7 +45,9 @@ route:
|
||||||
search: Search route
|
search: Search route
|
||||||
searchInfo: You can search by route reference
|
searchInfo: You can search by route reference
|
||||||
cmr:
|
cmr:
|
||||||
list:
|
search: Search Cmr
|
||||||
|
searchInfo: You can search Cmr by Id
|
||||||
|
params:
|
||||||
results: results
|
results: results
|
||||||
cmrFk: CMR id
|
cmrFk: CMR id
|
||||||
hasCmrDms: Attached in gestdoc
|
hasCmrDms: Attached in gestdoc
|
||||||
|
@ -50,8 +55,10 @@ route:
|
||||||
'false': 'No'
|
'false': 'No'
|
||||||
ticketFk: Ticketd id
|
ticketFk: Ticketd id
|
||||||
routeFk: Route id
|
routeFk: Route id
|
||||||
country: Country
|
countryFk: Country
|
||||||
clientFk: Client id
|
clientFk: Client id
|
||||||
|
warehouseFk: Warehouse
|
||||||
shipped: Preparation date
|
shipped: Preparation date
|
||||||
viewCmr: View CMR
|
viewCmr: View CMR
|
||||||
downloadCmrs: Download CMRs
|
downloadCmrs: Download CMRs
|
||||||
|
search: General search
|
||||||
|
|
|
@ -3,8 +3,6 @@ route:
|
||||||
search: Buscar troncales
|
search: Buscar troncales
|
||||||
searchInfo: Puedes buscar por referencia del troncal
|
searchInfo: Puedes buscar por referencia del troncal
|
||||||
params:
|
params:
|
||||||
agencyModeName: Agencia Ruta
|
|
||||||
agencyAgreement: Agencia Acuerdo
|
|
||||||
id: Id
|
id: Id
|
||||||
name: Troncal
|
name: Troncal
|
||||||
etd: ETD
|
etd: ETD
|
||||||
|
@ -13,9 +11,15 @@ route:
|
||||||
observations: Observaciones
|
observations: Observaciones
|
||||||
cmrFk: Id CMR
|
cmrFk: Id CMR
|
||||||
hasCmrDms: Gestdoc
|
hasCmrDms: Gestdoc
|
||||||
|
search: Búsqueda general
|
||||||
ticketFk: Id ticket
|
ticketFk: Id ticket
|
||||||
routeFK: Id ruta
|
routeFk: Id ruta
|
||||||
|
clientFk: Id cliente
|
||||||
|
countryFk: Pais
|
||||||
|
warehouseFk: Almacén
|
||||||
shipped: Fecha preparación
|
shipped: Fecha preparación
|
||||||
|
agencyModeName: Agencia Ruta
|
||||||
|
agencyAgreement: Agencia Acuerdo
|
||||||
Worker: Trabajador
|
Worker: Trabajador
|
||||||
Agency: Agencia
|
Agency: Agencia
|
||||||
Vehicle: Vehículo
|
Vehicle: Vehículo
|
||||||
|
@ -55,4 +59,4 @@ route:
|
||||||
clientFk: Id cliente
|
clientFk: Id cliente
|
||||||
shipped: Fecha preparación
|
shipped: Fecha preparación
|
||||||
viewCmr: Ver CMR
|
viewCmr: Ver CMR
|
||||||
downloadCmrs: Descargar CMRs
|
downloadCmrs: Descargar CMRs
|
||||||
|
|
|
@ -6,6 +6,7 @@ import VnLv from 'components/ui/VnLv.vue';
|
||||||
import VnUserLink from 'components/ui/VnUserLink.vue';
|
import VnUserLink from 'components/ui/VnUserLink.vue';
|
||||||
import filter from './ShelvingFilter.js';
|
import filter from './ShelvingFilter.js';
|
||||||
import ShelvingDescriptorMenu from './ShelvingDescriptorMenu.vue';
|
import ShelvingDescriptorMenu from './ShelvingDescriptorMenu.vue';
|
||||||
|
import VnTitle from 'src/components/common/VnTitle.vue';
|
||||||
|
|
||||||
const $props = defineProps({
|
const $props = defineProps({
|
||||||
id: {
|
id: {
|
||||||
|
@ -38,13 +39,10 @@ const entityId = computed(() => $props.id || route.params.id);
|
||||||
</template>
|
</template>
|
||||||
<template #body="{ entity }">
|
<template #body="{ entity }">
|
||||||
<QCard class="vn-one">
|
<QCard class="vn-one">
|
||||||
<RouterLink
|
<VnTitle
|
||||||
class="header header-link"
|
:url="`#/shelving/${entityId}/basic-data`"
|
||||||
:to="{ name: 'ShelvingBasicData', params: { id: entityId } }"
|
:text="$t('globals.pageTitles.basicData')"
|
||||||
>
|
/>
|
||||||
{{ $t('globals.pageTitles.basicData') }}
|
|
||||||
<QIcon name="open_in_new" />
|
|
||||||
</RouterLink>
|
|
||||||
<VnLv :label="$t('globals.code')" :value="entity.code" />
|
<VnLv :label="$t('globals.code')" :value="entity.code" />
|
||||||
<VnLv
|
<VnLv
|
||||||
:label="$t('shelving.list.parking')"
|
:label="$t('shelving.list.parking')"
|
||||||
|
|
|
@ -4,6 +4,7 @@ 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 'components/ui/VnLv.vue';
|
import VnLv from 'components/ui/VnLv.vue';
|
||||||
|
import VnTitle from 'src/components/common/VnTitle.vue';
|
||||||
|
|
||||||
const $props = defineProps({
|
const $props = defineProps({
|
||||||
id: {
|
id: {
|
||||||
|
@ -28,13 +29,10 @@ const filter = {
|
||||||
<template #body="{ entity }">
|
<template #body="{ entity }">
|
||||||
<QCard class="vn-one">
|
<QCard class="vn-one">
|
||||||
<QCardSection class="q-pa-none">
|
<QCardSection class="q-pa-none">
|
||||||
<a
|
<VnTitle
|
||||||
class="header header-link"
|
:url="`#/shelving/parking/${entityId}/basic-data`"
|
||||||
:href="`#/parking/${entityId}/basic-data`"
|
:text="$t('globals.pageTitles.basicData')"
|
||||||
>
|
/>
|
||||||
{{ t('globals.pageTitles.basicData') }}
|
|
||||||
<QIcon name="open_in_new" />
|
|
||||||
</a>
|
|
||||||
</QCardSection>
|
</QCardSection>
|
||||||
<VnLv :label="t('globals.code')" :value="entity.code" />
|
<VnLv :label="t('globals.code')" :value="entity.code" />
|
||||||
<VnLv
|
<VnLv
|
||||||
|
|
|
@ -203,7 +203,7 @@ onMounted(async () => {
|
||||||
</QTr>
|
</QTr>
|
||||||
<QTr v-for="(buy, index) in row.buys" :key="index">
|
<QTr v-for="(buy, index) in row.buys" :key="index">
|
||||||
<QTd no-hover>
|
<QTd no-hover>
|
||||||
<QBtn flat color="blue" dense no-caps>{{ buy.itemName }}</QBtn>
|
<QBtn flat class="link" dense no-caps>{{ buy.itemName }}</QBtn>
|
||||||
<ItemDescriptorProxy :id="buy.itemFk" />
|
<ItemDescriptorProxy :id="buy.itemFk" />
|
||||||
</QTd>
|
</QTd>
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,7 @@ import { toDateTimeFormat } from 'src/filters/date';
|
||||||
import filter from './TicketFilter.js';
|
import filter from './TicketFilter.js';
|
||||||
import FetchData from 'src/components/FetchData.vue';
|
import FetchData from 'src/components/FetchData.vue';
|
||||||
import TicketProblems from 'src/components/TicketProblems.vue';
|
import TicketProblems from 'src/components/TicketProblems.vue';
|
||||||
|
import axios from 'axios';
|
||||||
|
|
||||||
const $props = defineProps({
|
const $props = defineProps({
|
||||||
id: {
|
id: {
|
||||||
|
@ -31,23 +32,37 @@ const entityId = computed(() => {
|
||||||
return $props.id || route.params.id;
|
return $props.id || route.params.id;
|
||||||
});
|
});
|
||||||
const problems = ref({});
|
const problems = ref({});
|
||||||
|
const originalTicket = ref();
|
||||||
|
|
||||||
function ticketFilter(ticket) {
|
function ticketFilter(ticket) {
|
||||||
return JSON.stringify({ clientFk: ticket.clientFk });
|
return JSON.stringify({ clientFk: ticket.clientFk });
|
||||||
}
|
}
|
||||||
|
async function getClaims() {
|
||||||
|
const userFilter = { where: { refundTicketFk: entityId.value } };
|
||||||
|
const { data } = await axios.get(`TicketRefunds`, {
|
||||||
|
params: { filter: JSON.stringify(userFilter) },
|
||||||
|
});
|
||||||
|
if (!data) return;
|
||||||
|
originalTicket.value = data[0]?.originalTicketFk;
|
||||||
|
}
|
||||||
|
async function getProblems() {
|
||||||
|
const { data } = await axios.get(`Tickets/${entityId.value}/getTicketProblems`);
|
||||||
|
if (!data) return;
|
||||||
|
problems.value = data[0];
|
||||||
|
}
|
||||||
|
function getInfo() {
|
||||||
|
getClaims();
|
||||||
|
getProblems();
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<FetchData
|
|
||||||
:url="`Tickets/${entityId}/getTicketProblems`"
|
|
||||||
auto-load
|
|
||||||
@on-fetch="(data) => ([problems] = data)"
|
|
||||||
/>
|
|
||||||
<CardDescriptor
|
<CardDescriptor
|
||||||
:url="`Tickets/${entityId}`"
|
:url="`Tickets/${entityId}`"
|
||||||
:filter="filter"
|
:filter="filter"
|
||||||
data-key="Ticket"
|
data-key="Ticket"
|
||||||
:summary="$props.summary"
|
:summary="$props.summary"
|
||||||
|
@on-fetch="getInfo"
|
||||||
width="lg-width"
|
width="lg-width"
|
||||||
>
|
>
|
||||||
<template #menu="{ entity }">
|
<template #menu="{ entity }">
|
||||||
|
@ -129,6 +144,15 @@ function ticketFilter(ticket) {
|
||||||
>
|
>
|
||||||
<QTooltip>{{ t('ticket.card.newOrder') }}</QTooltip>
|
<QTooltip>{{ t('ticket.card.newOrder') }}</QTooltip>
|
||||||
</QBtn>
|
</QBtn>
|
||||||
|
<QBtn
|
||||||
|
v-if="originalTicket"
|
||||||
|
size="md"
|
||||||
|
icon="vn:claims"
|
||||||
|
color="primary"
|
||||||
|
:to="{ name: 'TicketCard', params: { id: originalTicket } }"
|
||||||
|
>
|
||||||
|
<QTooltip>{{ t('ticket.card.ticketClaimed') }}</QTooltip>
|
||||||
|
</QBtn>
|
||||||
</QCardActions>
|
</QCardActions>
|
||||||
</template>
|
</template>
|
||||||
</CardDescriptor>
|
</CardDescriptor>
|
||||||
|
|
|
@ -225,7 +225,7 @@ function onBuysFetched(data) {
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex column left" style="align-items: flex-start">
|
<div class="flex column left" style="align-items: flex-start">
|
||||||
<QBtn flat class="link text-blue">
|
<QBtn flat class="link">
|
||||||
{{ item?.longName ?? item.name }}
|
{{ item?.longName ?? item.name }}
|
||||||
<ItemDescriptorProxy :id="entityId" />
|
<ItemDescriptorProxy :id="entityId" />
|
||||||
<FetchedTags class="q-ml-md" :item="item" :columns="7" />
|
<FetchedTags class="q-ml-md" :item="item" :columns="7" />
|
||||||
|
|
|
@ -23,6 +23,10 @@ const $props = defineProps({
|
||||||
required: false,
|
required: false,
|
||||||
default: 'Worker',
|
default: 'Worker',
|
||||||
},
|
},
|
||||||
|
summary: {
|
||||||
|
type: Object,
|
||||||
|
default: null,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
const image = ref(null);
|
const image = ref(null);
|
||||||
|
|
||||||
|
@ -51,6 +55,7 @@ const handlePhotoUpdated = (evt = false) => {
|
||||||
<CardDescriptor
|
<CardDescriptor
|
||||||
ref="cardDescriptorRef"
|
ref="cardDescriptorRef"
|
||||||
:data-key="dataKey"
|
:data-key="dataKey"
|
||||||
|
:summary="$props.summary"
|
||||||
url="Workers/summary"
|
url="Workers/summary"
|
||||||
:filter="{ where: { id: entityId } }"
|
:filter="{ where: { id: entityId } }"
|
||||||
title="user.nickname"
|
title="user.nickname"
|
||||||
|
|
|
@ -220,7 +220,6 @@ export default {
|
||||||
path: '',
|
path: '',
|
||||||
name: 'RouteIndexMain',
|
name: 'RouteIndexMain',
|
||||||
redirect: { name: 'RouteList' },
|
redirect: { name: 'RouteList' },
|
||||||
component: () => import('src/pages/Route/RouteList.vue'),
|
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
name: 'RouteList',
|
name: 'RouteList',
|
||||||
|
@ -229,6 +228,7 @@ export default {
|
||||||
title: 'list',
|
title: 'list',
|
||||||
icon: 'view_list',
|
icon: 'view_list',
|
||||||
},
|
},
|
||||||
|
component: () => import('src/pages/Route/RouteList.vue'),
|
||||||
},
|
},
|
||||||
routeCard,
|
routeCard,
|
||||||
],
|
],
|
||||||
|
@ -268,7 +268,6 @@ export default {
|
||||||
title: 'RouteRoadmap',
|
title: 'RouteRoadmap',
|
||||||
icon: 'vn:troncales',
|
icon: 'vn:troncales',
|
||||||
},
|
},
|
||||||
component: () => import('src/pages/Route/RouteRoadmap.vue'),
|
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
name: 'RoadmapList',
|
name: 'RoadmapList',
|
||||||
|
@ -277,6 +276,7 @@ export default {
|
||||||
title: 'list',
|
title: 'list',
|
||||||
icon: 'view_list',
|
icon: 'view_list',
|
||||||
},
|
},
|
||||||
|
component: () => import('src/pages/Route/RouteRoadmap.vue'),
|
||||||
},
|
},
|
||||||
roadmapCard,
|
roadmapCard,
|
||||||
],
|
],
|
||||||
|
@ -298,7 +298,6 @@ export default {
|
||||||
title: 'agency',
|
title: 'agency',
|
||||||
icon: 'garage_home',
|
icon: 'garage_home',
|
||||||
},
|
},
|
||||||
component: () => import('src/pages/Route/Agency/AgencyList.vue'),
|
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
name: 'AgencyList',
|
name: 'AgencyList',
|
||||||
|
@ -307,6 +306,8 @@ export default {
|
||||||
title: 'list',
|
title: 'list',
|
||||||
icon: 'view_list',
|
icon: 'view_list',
|
||||||
},
|
},
|
||||||
|
component: () =>
|
||||||
|
import('src/pages/Route/Agency/AgencyList.vue'),
|
||||||
},
|
},
|
||||||
agencyCard,
|
agencyCard,
|
||||||
],
|
],
|
||||||
|
@ -319,7 +320,6 @@ export default {
|
||||||
title: 'vehicle',
|
title: 'vehicle',
|
||||||
icon: 'directions_car',
|
icon: 'directions_car',
|
||||||
},
|
},
|
||||||
component: () => import('src/pages/Route/Vehicle/VehicleList.vue'),
|
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: 'list',
|
path: 'list',
|
||||||
|
@ -328,6 +328,8 @@ export default {
|
||||||
title: 'vehicleList',
|
title: 'vehicleList',
|
||||||
icon: 'directions_car',
|
icon: 'directions_car',
|
||||||
},
|
},
|
||||||
|
component: () =>
|
||||||
|
import('src/pages/Route/Vehicle/VehicleList.vue'),
|
||||||
},
|
},
|
||||||
vehicleCard,
|
vehicleCard,
|
||||||
],
|
],
|
||||||
|
|
|
@ -5,13 +5,10 @@ describe('Client balance', () => {
|
||||||
cy.login('developer');
|
cy.login('developer');
|
||||||
cy.visit('#/customer/1101/balance');
|
cy.visit('#/customer/1101/balance');
|
||||||
});
|
});
|
||||||
it('Should load layout', () => {
|
|
||||||
cy.get('.q-page').should('be.visible');
|
|
||||||
});
|
|
||||||
it('Should create a mandate', () => {
|
it('Should create a mandate', () => {
|
||||||
cy.get('.q-page-sticky > div > .q-btn').click();
|
cy.get('.q-page-sticky > div > .q-btn').click();
|
||||||
cy.dataCy('paymentBank').type({ arroyDown });
|
cy.selectOption('[data-cy="paymentBank"]', 2);
|
||||||
cy.dataCy('paymentAmount').type('100');
|
cy.dataCy('paymentAmount_input').type('100');
|
||||||
cy.saveCard();
|
cy.saveCard();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,12 +1,74 @@
|
||||||
describe('RoadMap', () => {
|
describe('RoadMap', () => {
|
||||||
|
const getSelector = (colField) =>
|
||||||
|
`tr:last-child > [data-col-field="${colField}"] > .no-padding`;
|
||||||
|
|
||||||
|
const selectors = {
|
||||||
|
roadmap: getSelector('name'),
|
||||||
|
id: getSelector('id'),
|
||||||
|
etd: getSelector('etd'),
|
||||||
|
summaryHeader: '.summaryHeader > :nth-child(2)',
|
||||||
|
summaryGoToSummaryBtn: '.summaryHeader > a > .q-icon',
|
||||||
|
summaryBtn: 'tableAction-0',
|
||||||
|
inputRoadmap: 'Roadmap_input',
|
||||||
|
checkbox: '.q-virtual-scroll__content tr:last-child .q-checkbox',
|
||||||
|
cloneFormBtn: '.q-card__actions > .q-btn--standard',
|
||||||
|
cloneBtn: '#subToolbar > :nth-child(3)',
|
||||||
|
deleteBtn: ':nth-child(4) > .q-btn__content',
|
||||||
|
confirmBtn: 'VnConfirm_confirm',
|
||||||
|
inputEtd: 'ETD_inputDate',
|
||||||
|
};
|
||||||
|
|
||||||
|
const data = {
|
||||||
|
roadmap: 'TEST-ROADMAP',
|
||||||
|
etd: '01/01/2025',
|
||||||
|
};
|
||||||
|
|
||||||
|
const dataCreated = 'Data created';
|
||||||
|
const summaryUrl = '/summary';
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
cy.viewport(1920, 1080);
|
||||||
cy.login('developer');
|
cy.login('developer');
|
||||||
cy.visit(`/#/route/roadmap`);
|
cy.visit(`/#/route/roadmap`);
|
||||||
|
cy.typeSearchbar('{enter}');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('Should list roadmaps', () => {
|
||||||
|
cy.get('.q-table')
|
||||||
|
.children()
|
||||||
|
.should('be.visible')
|
||||||
|
.should('have.length.greaterThan', 0);
|
||||||
|
});
|
||||||
|
|
||||||
it('Route list create roadmap and redirect', () => {
|
it('Route list create roadmap and redirect', () => {
|
||||||
cy.addBtnClick();
|
cy.addBtnClick();
|
||||||
cy.get('input[name="name"]').type('roadMapTestOne{enter}');
|
cy.dataCy(selectors.inputRoadmap).type(`${data.roadmap}{enter}`);
|
||||||
cy.get('.q-notification__message').should('have.text', 'Data created');
|
cy.checkNotification(dataCreated);
|
||||||
cy.url().should('include', '/summary');
|
cy.url().should('include', summaryUrl);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('open summary', () => {
|
||||||
|
cy.dataCy(selectors.summaryBtn).last().click();
|
||||||
|
cy.get(selectors.summaryHeader).should('contain', data.roadmap);
|
||||||
|
cy.get(selectors.summaryGoToSummaryBtn).click();
|
||||||
|
cy.get(selectors.summaryHeader).should('contain', data.roadmap);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('Should clone selected roadmap with new ETD', () => {
|
||||||
|
cy.get(selectors.checkbox).click();
|
||||||
|
cy.get(selectors.cloneBtn).click();
|
||||||
|
cy.dataCy(selectors.inputEtd).click().type(`${data.etd}{enter}`);
|
||||||
|
cy.get(selectors.cloneFormBtn).click();
|
||||||
|
cy.get(selectors.etd).should('contain', data.etd);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('Should delete selected roadmap', () => {
|
||||||
|
cy.get(selectors.id).then(($el) => {
|
||||||
|
cy.get(selectors.checkbox).click();
|
||||||
|
cy.get(selectors.deleteBtn).click();
|
||||||
|
cy.dataCy(selectors.confirmBtn).click();
|
||||||
|
cy.typeSearchbar('{enter}');
|
||||||
|
cy.get(selectors.id).should('not.have.text', $el.text);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
describe('ParkingList', () => {
|
describe('ParkingList', () => {
|
||||||
const searchbar = '#searchbar input';
|
const searchbar = '#searchbar input';
|
||||||
const firstCard = ':nth-child(1) > .q-card > .no-margin > .q-py-none';
|
const firstCard = ':nth-child(1) > .q-card > .no-margin > .q-py-none';
|
||||||
const summaryHeader = '.summaryBody .header';
|
const summaryHeader = '.header-link';
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.viewport(1920, 1080);
|
cy.viewport(1920, 1080);
|
||||||
|
|
|
@ -16,8 +16,8 @@ describe('ShelvingList', () => {
|
||||||
it('should redirect from preview to basic-data', () => {
|
it('should redirect from preview to basic-data', () => {
|
||||||
cy.typeSearchbar('{enter}');
|
cy.typeSearchbar('{enter}');
|
||||||
cy.dataCy('cardBtn').eq(0).click();
|
cy.dataCy('cardBtn').eq(0).click();
|
||||||
cy.get('.q-card > .header').click();
|
cy.get('.summaryHeader > .header > .q-icon').click();
|
||||||
cy.url().should('include', '/shelving/1/basic-data');
|
cy.url().should('include', '/shelving/1/summary');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should filter and redirect if only one result', () => {
|
it('should filter and redirect if only one result', () => {
|
||||||
|
|
|
@ -138,8 +138,8 @@ describe.skip('Ticket Lack detail', () => {
|
||||||
cy.get('[data-cy="itemProposal"]').click();
|
cy.get('[data-cy="itemProposal"]').click();
|
||||||
cy.wait('@getItemGetSimilar');
|
cy.wait('@getItemGetSimilar');
|
||||||
});
|
});
|
||||||
describe('Replace item if', () => {
|
describe.skip('Replace item if', () => {
|
||||||
it.skip('Quantity is less than available', () => {
|
it('Quantity is less than available', () => {
|
||||||
cy.get(':nth-child(1) > .text-right > .q-btn').click();
|
cy.get(':nth-child(1) > .text-right > .q-btn').click();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
describe('WorkerBusiness', () => {
|
describe.skip('WorkerBusiness', () => {
|
||||||
const saveBtn = '.q-mt-lg > .q-btn--standard';
|
const saveBtn = '.q-mt-lg > .q-btn--standard';
|
||||||
const contributionCode = `Representantes de comercio`;
|
const contributionCode = `Representantes de comercio`;
|
||||||
const contractType = `INDEFINIDO A TIEMPO COMPLETO`;
|
const contractType = `INDEFINIDO A TIEMPO COMPLETO`;
|
||||||
|
|
Loading…
Reference in New Issue