forked from verdnatura/salix-front
updates
This commit is contained in:
parent
f347755ea5
commit
32d11edb2f
|
@ -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
|
||||||
|
|
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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') }}
|
||||||
|
|
Loading…
Reference in New Issue