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

This commit is contained in:
Pau Rovira 2025-04-17 10:52:34 +00:00
commit f6759da796
8 changed files with 22 additions and 21 deletions

View File

@ -152,6 +152,16 @@ const value = computed({
},
});
const arrayDataKey =
$props.dataKey ??
($props.url?.length > 0 ? $props.url : ($attrs.name ?? $attrs.label));
const arrayData = useArrayData(arrayDataKey, {
url: $props.url,
searchUrl: false,
mapKey: $attrs['map-key'],
});
const computedSortBy = computed(() => {
return $props.sortBy || $props.optionLabel + ' ASC';
});
@ -176,16 +186,7 @@ onMounted(() => {
if ($props.focusOnMount) setTimeout(() => vnSelectRef.value.showPopup(), 300);
});
const arrayDataKey =
$props.dataKey ??
($props.url?.length > 0 ? $props.url : ($attrs.name ?? $attrs.label));
const arrayData = useArrayData(arrayDataKey, {
url: $props.url,
searchUrl: false,
mapKey: $attrs['map-key'],
});
const someIsLoading = computed(() => isLoading.value || arrayData.isLoading);
const someIsLoading = computed(() => isLoading.value || arrayData?.isLoading?.value);
function findKeyInOptions() {
if (!$props.options) return;
return filter($props.modelValue, $props.options)?.length;

View File

@ -33,7 +33,7 @@ onUnmounted(() => {
stateStore.rightDrawer = true;
});
const entityId = computed(() => route.params.id);
const entityId = computed(() => route.params.itemFk);
const item = ref({});
const itemProposalSelected = ref(null);

View File

@ -7,7 +7,6 @@ import { onBeforeMount } from 'vue';
import { dashIfEmpty, toDate, toHour } from 'src/filters';
import { useRouter } from 'vue-router';
import { useState } from 'src/composables/useState';
import { useRole } from 'src/composables/useRole';
import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue';
import RightMenu from 'src/components/common/RightMenu.vue';
import TicketLackFilter from './TicketLackFilter.vue';
@ -25,10 +24,11 @@ const negativeParams = reactive({
availabled: Date.getCurrentDateTimeFormatted(),
});
const redirectToCreateView = ({ itemFk }) => {
router.push({
const route = {
name: 'NegativeDetail',
params: { id: itemFk },
});
params: { itemFk },
};
router.push(route);
};
const columns = computed(() => [
{

View File

@ -38,7 +38,7 @@ const filterLack = ref({
const selectedRows = ref([]);
const { t } = useI18n();
const { notify } = useNotify();
const entityId = computed(() => route.params.id);
const entityId = computed(() => route.params.itemFk);
const item = ref({});
const route = useRoute();
const columns = computed(() => [

View File

@ -251,7 +251,7 @@ export default {
},
{
name: 'NegativeDetail',
path: ':id',
path: ':itemFk',
meta: {
title: 'summary',
icon: 'launch',

View File

@ -28,7 +28,7 @@ describe('InvoiceOut list', () => {
cy.dataCy('InvoiceOutDownloadPdfBtn').click();
});
it.skip('should open the invoice descriptor from table icon', () => {
it('should open the invoice descriptor from table icon', () => {
cy.get(firstSummaryIcon).click();
cy.get('.cardSummary').should('be.visible');
cy.get('.summaryHeader > div').should('include.text', 'V10100001');

View File

@ -15,7 +15,7 @@ describe('InvoiceOut summary', () => {
cy.login('developer');
cy.visit(`/#/invoice-out/1/summary`);
});
it.skip('open the descriptors', () => {
it('open the descriptors', () => {
cy.get(firstRowDescriptors(1)).click();
cy.get('.descriptor').should('be.visible');
cy.get('.q-item > .q-item__label').should('include.text', '1');
@ -30,7 +30,7 @@ describe('InvoiceOut summary', () => {
cy.get('.q-item > .q-item__label').should('include.text', '1101');
});
it.skip('should open the ticket list', () => {
it('should open the ticket list', () => {
cy.get(toTicketList).click();
cy.get('[data-col-field="stateFk"]').each(($el) => {
cy.wrap($el).contains('T1111111');

View File

@ -2,7 +2,7 @@
const firstRow = 'tbody > :nth-child(1)';
describe('TicketSale', () => {
describe.skip('Ticket #23', () => {
describe('Ticket #23', () => {
beforeEach(() => {
cy.login('claimManager');
cy.viewport(1920, 1080);