0
0
Fork 0
This commit is contained in:
Javier Segarra 2024-07-09 14:34:38 +02:00
parent f347755ea5
commit 32d11edb2f
3 changed files with 5 additions and 6 deletions

View File

@ -24,7 +24,8 @@ const route = useRoute();
const itemTypeWorkersOptions = ref([]);
const sanitizeParam = (param) => {
const params = JSON.parse(route.query.params);
if (!route?.query?.params) return 'false';
const params = JSON.parse(route?.query?.params);
return params[param] ?? 'false';
};
const $params = ref({});
@ -46,8 +47,6 @@ const pushParam = (param) => ({
/>
<ItemsFilterPanel :data-key="dataKey" :custom-tags="['tags']">
<template #body="{ params, searchFn }">
{{ $params }}
{{ JSON.parse(route.query.params).mine }}
<QItem class="q-my-md">
<QItemSection>
<VnSelect

View File

@ -60,7 +60,7 @@ const filter = {
const data = ref(useCardDescription());
const setData = (entity) => {
if (!entity) return;
data.value = useCardDescription(entity.client.name, entity.id);
data.value = useCardDescription(entity?.client?.name, entity?.id);
state.set('OrderDescriptor', entity);
};

View File

@ -190,7 +190,7 @@ const columns = computed(() => [
{
title: t('delete'),
icon: 'delete',
click: (row) => confirmRemove(row.item),
action: (row) => confirmRemove(row),
isPrimary: true,
},
],
@ -272,7 +272,7 @@ const columns = computed(() => [
</template>
</VnTable>
</div>
<QPageSticky :offset="[20, 20]" v-if="!order?.isConfirmed">
<QPageSticky :offset="[20, 20]" v-if="!order?.isConfirmed" style="z-index: 2">
<QBtn fab icon="check" color="primary" @click="confirmOrder()" />
<QTooltip>
{{ t('confirm') }}