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

View File

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

View File

@ -190,7 +190,7 @@ const columns = computed(() => [
{ {
title: t('delete'), title: t('delete'),
icon: 'delete', icon: 'delete',
click: (row) => confirmRemove(row.item), action: (row) => confirmRemove(row),
isPrimary: true, isPrimary: true,
}, },
], ],
@ -272,7 +272,7 @@ const columns = computed(() => [
</template> </template>
</VnTable> </VnTable>
</div> </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()" /> <QBtn fab icon="check" color="primary" @click="confirmOrder()" />
<QTooltip> <QTooltip>
{{ t('confirm') }} {{ t('confirm') }}