refactor: refs #8606 clear some warnings
gitea/salix-front/pipeline/pr-dev This commit is unstable Details

This commit is contained in:
Jon Elias 2025-03-06 13:49:32 +01:00
parent 6ffb62497b
commit ac84537e19
6 changed files with 6 additions and 10 deletions

View File

@ -87,7 +87,7 @@ const makeInvoice = async () => {
(data) => ( (data) => (
(rectificativeTypeOptions = data), (rectificativeTypeOptions = data),
(transferInvoiceParams.cplusRectificationTypeFk = data.filter( (transferInvoiceParams.cplusRectificationTypeFk = data.filter(
(type) => type.description == 'I Por diferencias' (type) => type.description == 'I Por diferencias',
)[0].id) )[0].id)
) )
" "
@ -100,7 +100,7 @@ const makeInvoice = async () => {
(data) => ( (data) => (
(siiTypeInvoiceOutsOptions = data), (siiTypeInvoiceOutsOptions = data),
(transferInvoiceParams.siiTypeInvoiceOutFk = data.filter( (transferInvoiceParams.siiTypeInvoiceOutFk = data.filter(
(type) => type.code == 'R4' (type) => type.code == 'R4',
)[0].id) )[0].id)
) )
" "
@ -122,7 +122,6 @@ const makeInvoice = async () => {
<VnRow> <VnRow>
<VnSelect <VnSelect
:label="t('Client')" :label="t('Client')"
:options="clientsOptions"
hide-selected hide-selected
option-label="name" option-label="name"
option-value="id" option-value="id"

View File

@ -185,7 +185,7 @@ watchEffect(selectedRows);
prefix="invoiceOut" prefix="invoiceOut"
:array-data-props="{ :array-data-props="{
url: 'InvoiceOuts/filter', url: 'InvoiceOuts/filter',
order: ['id DESC'], order: 'id DESC',
}" }"
> >
<template #advanced-menu> <template #advanced-menu>
@ -396,7 +396,6 @@ watchEffect(selectedRows);
:label=" :label="
t('invoiceOutList.tableVisibleColumns.taxArea') t('invoiceOutList.tableVisibleColumns.taxArea')
" "
:options="taxAreasOptions"
option-label="code" option-label="code"
option-value="code" option-value="code"
/> />

View File

@ -20,7 +20,7 @@ const props = defineProps({
<VnFilterPanel <VnFilterPanel
:data-key="props.dataKey" :data-key="props.dataKey"
:search-button="true" :search-button="true"
:un-removable-params="['from', 'to']" :unremovable-params="['from', 'to']"
:hidden-tags="['from', 'to']" :hidden-tags="['from', 'to']"
> >
<template #tags="{ tag, formatFn }"> <template #tags="{ tag, formatFn }">

View File

@ -18,7 +18,6 @@ import axios from 'axios';
const props = defineProps({ const props = defineProps({
date: { date: {
type: Date, type: Date,
required: true,
default: null, default: null,
}, },
event: { event: {

View File

@ -14,12 +14,10 @@ import { useVnConfirm } from 'composables/useVnConfirm';
const props = defineProps({ const props = defineProps({
firstDay: { firstDay: {
type: Date, type: Date,
required: true,
default: null, default: null,
}, },
lastDay: { lastDay: {
type: Date, type: Date,
required: true,
default: null, default: null,
}, },
events: { events: {
@ -49,6 +47,7 @@ const params = computed(() => ({
started: props.firstDay, started: props.firstDay,
ended: props.lastDay, ended: props.lastDay,
})); }));
console.log('params: ', params);
const arrayData = useArrayData('ZoneEvents', { const arrayData = useArrayData('ZoneEvents', {
params: params, params: params,
url: `Zones/getEventsFiltered`, url: `Zones/getEventsFiltered`,

View File

@ -89,7 +89,7 @@ watch(
v-model="formData.geoFk" v-model="formData.geoFk"
url="Postcodes/location" url="Postcodes/location"
:fields="['geoFk', 'code', 'townFk', 'countryFk']" :fields="['geoFk', 'code', 'townFk', 'countryFk']"
:sort-by="['code ASC']" :sort-by="'code ASC'"
option-value="geoFk" option-value="geoFk"
option-label="code" option-label="code"
:filter-options="['code']" :filter-options="['code']"