Merge branch 'test' of https: refs #8246//gitea.verdnatura.es/verdnatura/salix-front into 8246-UseAddressFk
gitea/salix-front/pipeline/pr-test This commit looks good Details

This commit is contained in:
Jon Elias 2025-02-10 10:27:55 +01:00
commit 6ae6b86dbf
21 changed files with 30 additions and 26 deletions

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

@ -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

@ -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

@ -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

@ -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
> >

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

@ -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

@ -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
> >

View File

@ -117,7 +117,7 @@ const toCustomerAddressEdit = (addressId) => {
data-key="CustomerAddresses" data-key="CustomerAddresses"
order="id DESC" order="id DESC"
ref="vnPaginateRef" ref="vnPaginateRef"
:filter="addressFilter" :user-filter="addressFilter"
:url="`Clients/${route.params.id}/addresses`" :url="`Clients/${route.params.id}/addresses`"
/> />
<div class="full-width flex justify-center"> <div class="full-width flex justify-center">

View File

@ -75,7 +75,7 @@ const updateData = () => {
<div class="full-width flex justify-center"> <div class="full-width flex justify-center">
<QCard class="card-width q-pa-lg"> <QCard class="card-width q-pa-lg">
<VnPaginate <VnPaginate
:filter="filter" :user-filter="filter"
@on-fetch="fetch" @on-fetch="fetch"
auto-load auto-load
data-key="CustomerCreditContracts" data-key="CustomerCreditContracts"

View File

@ -54,8 +54,8 @@ const transferEntry = async () => {
<i18n> <i18n>
en: en:
transferEntryDialog: The entries will be transferred to the next day transferEntryDialog: The entries will be transferred to the next day
transferEntry: Transfer Entry transferEntry: Partial delay
es: es:
transferEntryDialog: Se van a transferir las compras al dia siguiente transferEntryDialog: Se van a transferir las compras al dia siguiente
transferEntry: Transferir Entrada transferEntry: Retraso parcial
</i18n> </i18n>

View File

@ -16,7 +16,7 @@ const routeId = route.params.id;
<VnPaginate <VnPaginate
data-key="AgencyModes" data-key="AgencyModes"
:url="`AgencyModes`" :url="`AgencyModes`"
:filter="{ where: { agencyFk: routeId } }" :user-filter="{ where: { agencyFk: routeId } }"
order="name" order="name"
auto-load auto-load
> >

View File

@ -57,7 +57,7 @@ async function deleteWorCenter(id) {
ref="paginate" ref="paginate"
data-key="AgencyWorkCenters" data-key="AgencyWorkCenters"
url="AgencyWorkCenters" url="AgencyWorkCenters"
:filter="{ where: { agencyFk: routeId } }" :user-filter="{ where: { agencyFk: routeId } }"
order="id" order="id"
auto-load auto-load
> >

View File

@ -300,7 +300,7 @@ const openSmsDialog = async () => {
:key="refreshKey" :key="refreshKey"
data-key="RouteTicketList" data-key="RouteTicketList"
url="Routes/getTickets" url="Routes/getTickets"
:filter="{ id: route.params.id }" :user-filter="{ id: route.params.id }"
:limit="0" :limit="0"
:order="['priority ASC']" :order="['priority ASC']"
auto-load auto-load

View File

@ -57,7 +57,7 @@ const redirectToUpdateView = (addressData) => {
<VnPaginate <VnPaginate
data-key="SupplierAddress" data-key="SupplierAddress"
:url="`Suppliers/${route.params.id}/addresses`" :url="`Suppliers/${route.params.id}/addresses`"
:filter="addressesFilter" :user-filter="addressesFilter"
auto-load auto-load
> >
<template #body="{ rows }"> <template #body="{ rows }">

View File

@ -80,7 +80,7 @@ const openCreateModal = () => createTrackingDialogRef.value.show();
<VnPaginate <VnPaginate
ref="paginateRef" ref="paginateRef"
data-key="TicketTracking" data-key="TicketTracking"
:filter="paginateFilter" :user-filter="paginateFilter"
url="TicketTrackings" url="TicketTrackings"
auto-load auto-load
order="created DESC" order="created DESC"

View File

@ -158,7 +158,7 @@ const removeThermograph = async (id) => {
ref="thermographPaginateRef" ref="thermographPaginateRef"
data-key="TravelThermographs" data-key="TravelThermographs"
url="TravelThermographs" url="TravelThermographs"
:filter="thermographFilter" :user-filter="thermographFilter"
auto-load auto-load
> >
<template #body="{ rows }"> <template #body="{ rows }">

View File

@ -102,7 +102,7 @@ watch(
data-key="wagonTypeTray" data-key="wagonTypeTray"
url="WagonTypeTrays" url="WagonTypeTrays"
order="id DESC" order="id DESC"
:filter="filter" :user-filter="filter"
auto-load auto-load
ref="vnPaginateRef" ref="vnPaginateRef"
v-bind="$attrs" v-bind="$attrs"

View File

@ -58,7 +58,7 @@ function reloadData() {
ref="paginate" ref="paginate"
data-key="WorkerPda" data-key="WorkerPda"
url="DeviceProductionUsers" url="DeviceProductionUsers"
:filter="{ where: { userFk: routeId } }" :user-filter="{ where: { userFk: routeId } }"
order="id" order="id"
search-url="pda" search-url="pda"
auto-load auto-load

View File

@ -49,7 +49,7 @@ watch(
store.url = urlPath.value; store.url = urlPath.value;
store.filter.include = 'warehouse'; store.filter.include = 'warehouse';
fetchWarehouses(); fetchWarehouses();
} },
); );
const fetchWarehouses = () => paginateRef.value.fetch(); const fetchWarehouses = () => paginateRef.value.fetch();
@ -63,7 +63,7 @@ const openCreateWarehouseForm = () => createWarehouseDialogRef.value.show();
<VnPaginate <VnPaginate
ref="paginateRef" ref="paginateRef"
data-key="ZoneWarehouses" data-key="ZoneWarehouses"
:filter="{ include: 'warehouse' }" :user-filter="{ include: 'warehouse' }"
:url="urlPath" :url="urlPath"
auto-load auto-load
> >
@ -84,7 +84,8 @@ const openCreateWarehouseForm = () => createWarehouseDialogRef.value.show();
openConfirmationModal( openConfirmationModal(
t('zone.deleteTitle'), t('zone.deleteTitle'),
t('zone.deleteSubtitle'), t('zone.deleteSubtitle'),
() => deleteWarehouse(row, rows, rowIndex) () =>
deleteWarehouse(row, rows, rowIndex),
) )
" "
> >

View File

@ -107,7 +107,10 @@ export default defineRouter(function (/* { store, ssrContext } */) {
'Failed to fetch dynamically imported module', 'Failed to fetch dynamically imported module',
'Importing a module script failed', 'Importing a module script failed',
]; ];
state.set('error', errorMessages.some(message.includes)); state.set(
'error',
errorMessages.some((error) => message.startsWith(error)),
);
}); });
return Router; return Router;
}); });