Merge branch 'dev' into 8602-refatorAndCreateEntry
gitea/salix-front/pipeline/pr-dev This commit is unstable Details

This commit is contained in:
Pablo Natek 2025-03-18 07:40:23 +00:00
commit 90c07d36cd
5 changed files with 20 additions and 19 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "salix-front", "name": "salix-front",
"version": "25.12.0", "version": "25.14.0",
"description": "Salix frontend", "description": "Salix frontend",
"productName": "Salix", "productName": "Salix",
"author": "Verdnatura", "author": "Verdnatura",

View File

@ -1,5 +1,6 @@
<script setup> <script setup>
import { ref, nextTick } from 'vue'; import { ref, nextTick, onMounted } from 'vue';
import { useRoute } from 'vue-router';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import VnInputDate from 'src/components/common/VnInputDate.vue'; import VnInputDate from 'src/components/common/VnInputDate.vue';
import FetchData from 'components/FetchData.vue'; import FetchData from 'components/FetchData.vue';
@ -17,12 +18,12 @@ const maritalStatus = [
{ code: 'M', name: t('Married') }, { code: 'M', name: t('Married') },
{ code: 'S', name: t('Single') }, { code: 'S', name: t('Single') },
]; ];
async function setAdvancedSummary(data) {
const advanced = (await useAdvancedSummary('Workers', data.id)) ?? {}; onMounted(async () => {
const advanced = await useAdvancedSummary('Workers', useRoute().params.id);
Object.assign(form.value.formData, advanced); Object.assign(form.value.formData, advanced);
await nextTick(); nextTick(() => (form.value.hasChanges = false));
if (form.value) form.value.hasChanges = false; });
}
</script> </script>
<template> <template>
<FetchData <FetchData
@ -42,7 +43,6 @@ async function setAdvancedSummary(data) {
:url-update="`Workers/${$route.params.id}`" :url-update="`Workers/${$route.params.id}`"
auto-load auto-load
model="Worker" model="Worker"
@on-fetch="setAdvancedSummary"
> >
<template #form="{ data }"> <template #form="{ data }">
<VnRow> <VnRow>

View File

@ -1,7 +1,15 @@
<script setup> <script setup>
import VnCard from 'src/components/common/VnCard.vue'; import VnCard from 'src/components/common/VnCard.vue';
import ZoneDescriptor from './ZoneDescriptor.vue'; import ZoneDescriptor from './ZoneDescriptor.vue';
import filter from 'src/pages/Zone/Card/ZoneFilter.js';
import { useRoute } from 'vue-router';
const route = useRoute();
</script> </script>
<template> <template>
<VnCard data-key="Zone" url="Zones" :descriptor="ZoneDescriptor" /> <VnCard
data-key="Zone"
:url="`Zones/${route.params.id}`"
:descriptor="ZoneDescriptor"
:filter="filter"
/>
</template> </template>

View File

@ -8,13 +8,10 @@ export default {
icon: 'grid_view', icon: 'grid_view',
moduleName: 'Monitor', moduleName: 'Monitor',
keyBinding: 'm', keyBinding: 'm',
menu: ['MonitorTickets', 'MonitorClientsActions'],
}, },
component: RouterView, component: RouterView,
redirect: { name: 'MonitorMain' }, redirect: { name: 'MonitorMain' },
menus: {
main: ['MonitorTickets', 'MonitorClientsActions'],
card: [],
},
children: [ children: [
{ {
path: '', path: '',

View File

@ -23,7 +23,6 @@ describe('ClaimDevelopment', () => {
cy.selectOption(firstLineReason, newReason); cy.selectOption(firstLineReason, newReason);
cy.saveCard(); cy.saveCard();
cy.login('developer');
cy.visit(`/#/claim/${claimId}/development`); cy.visit(`/#/claim/${claimId}/development`);
cy.getValue(firstLineReason).should('equal', newReason); cy.getValue(firstLineReason).should('equal', newReason);
@ -49,12 +48,9 @@ describe('ClaimDevelopment', () => {
cy.fillRow(thirdRow, rowData); cy.fillRow(thirdRow, rowData);
cy.saveCard(); cy.saveCard();
cy.login('developer');
cy.visit(`/#/claim/${claimId}/development`);
cy.validateRow(thirdRow, rowData); cy.validateRow(thirdRow, rowData);
cy.reload(); cy.visit(`/#/claim/${claimId}/development`);
cy.validateRow(thirdRow, rowData); cy.validateRow(thirdRow, rowData);
//remove row //remove row
@ -63,7 +59,7 @@ describe('ClaimDevelopment', () => {
cy.clickConfirm(); cy.clickConfirm();
cy.get(thirdRow).should('not.exist'); cy.get(thirdRow).should('not.exist');
cy.reload(); cy.visit(`/#/claim/${claimId}/development`);
cy.get(thirdRow).should('not.exist'); cy.get(thirdRow).should('not.exist');
}); });
}); });