forked from verdnatura/salix-front
Merge remote-tracking branch 'origin/dev' into 7190_renewTokenMultimedia
This commit is contained in:
commit
74eec098ac
|
@ -1,5 +1,5 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { computed, ref, defineExpose } from 'vue';
|
import { computed, ref } from 'vue';
|
||||||
import LeftMenuItem from './LeftMenuItem.vue';
|
import LeftMenuItem from './LeftMenuItem.vue';
|
||||||
import { elementIsVisibleInViewport } from 'src/composables/elementIsVisibleInViewport';
|
import { elementIsVisibleInViewport } from 'src/composables/elementIsVisibleInViewport';
|
||||||
|
|
||||||
|
|
|
@ -187,7 +187,7 @@ const columns = computed(() => [
|
||||||
downloadFile(
|
downloadFile(
|
||||||
prop.row.id,
|
prop.row.id,
|
||||||
$props.downloadModel,
|
$props.downloadModel,
|
||||||
null,
|
undefined,
|
||||||
prop.row.download
|
prop.row.download
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
|
|
@ -78,8 +78,8 @@ async function insert() {
|
||||||
<TransitionGroup name="list" tag="div" class="column items-center full-width">
|
<TransitionGroup name="list" tag="div" class="column items-center full-width">
|
||||||
<QCard
|
<QCard
|
||||||
class="q-pa-xs q-mb-sm full-width"
|
class="q-pa-xs q-mb-sm full-width"
|
||||||
v-for="note in rows"
|
v-for="(note, index) in rows"
|
||||||
:key="note.id"
|
:key="note.id ?? index"
|
||||||
>
|
>
|
||||||
<QCardSection horizontal>
|
<QCardSection horizontal>
|
||||||
<VnAvatar
|
<VnAvatar
|
||||||
|
|
|
@ -16,7 +16,7 @@ const claimId = computed(() => $props.id || route.params.id);
|
||||||
|
|
||||||
const claimFilter = {
|
const claimFilter = {
|
||||||
where: { claimFk: claimId.value },
|
where: { claimFk: claimId.value },
|
||||||
fields: ['created', 'workerFk', 'text'],
|
fields: ['id', 'created', 'workerFk', 'text'],
|
||||||
include: {
|
include: {
|
||||||
relation: 'worker',
|
relation: 'worker',
|
||||||
scope: {
|
scope: {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { useRoute } from 'vue-router';
|
|
||||||
import { computed, onMounted } from 'vue';
|
import { computed, onMounted } from 'vue';
|
||||||
|
import { useRoute } from 'vue-router';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import { useQuasar } from 'quasar';
|
import { useQuasar } from 'quasar';
|
||||||
|
|
||||||
|
@ -33,20 +33,8 @@ const arrayData = useArrayData('SupplierConsumption', {
|
||||||
const store = arrayData.store;
|
const store = arrayData.store;
|
||||||
|
|
||||||
const dateRanges = computed(() => {
|
const dateRanges = computed(() => {
|
||||||
const ranges = {
|
const { from, to } = arrayData.store?.userParams || {};
|
||||||
from: null,
|
return { from, to };
|
||||||
to: null,
|
|
||||||
};
|
|
||||||
|
|
||||||
if (route.query && route.query.params) {
|
|
||||||
const params = JSON.parse(route.query.params);
|
|
||||||
if (params.from && params.to) {
|
|
||||||
ranges.from = params.from;
|
|
||||||
ranges.to = params.to;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return ranges;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const reportParams = computed(() => ({
|
const reportParams = computed(() => ({
|
||||||
|
@ -117,7 +105,7 @@ onMounted(async () => {
|
||||||
<template>
|
<template>
|
||||||
<Teleport to="#st-actions" v-if="stateStore.isSubToolbarShown()">
|
<Teleport to="#st-actions" v-if="stateStore.isSubToolbarShown()">
|
||||||
<QBtn
|
<QBtn
|
||||||
:disabled="!dateRanges.from && !dateRanges.to"
|
:disabled="!dateRanges.from || !dateRanges.to || !rows.length"
|
||||||
color="primary"
|
color="primary"
|
||||||
icon-right="picture_as_pdf"
|
icon-right="picture_as_pdf"
|
||||||
no-caps
|
no-caps
|
||||||
|
@ -129,7 +117,7 @@ onMounted(async () => {
|
||||||
</QTooltip>
|
</QTooltip>
|
||||||
</QBtn>
|
</QBtn>
|
||||||
<QBtn
|
<QBtn
|
||||||
:disabled="!dateRanges.from && !dateRanges.to"
|
:disabled="!dateRanges.from || !dateRanges.to || !rows.length"
|
||||||
color="primary"
|
color="primary"
|
||||||
icon-right="email"
|
icon-right="email"
|
||||||
no-caps
|
no-caps
|
||||||
|
@ -140,7 +128,6 @@ onMounted(async () => {
|
||||||
</QTooltip>
|
</QTooltip>
|
||||||
</QBtn>
|
</QBtn>
|
||||||
</Teleport>
|
</Teleport>
|
||||||
|
|
||||||
<QPage class="column items-center q-pa-md">
|
<QPage class="column items-center q-pa-md">
|
||||||
<QDrawer v-model="stateStore.rightDrawer" side="right" :width="256" show-if-above>
|
<QDrawer v-model="stateStore.rightDrawer" side="right" :width="256" show-if-above>
|
||||||
<QScrollArea class="fit text-grey-8">
|
<QScrollArea class="fit text-grey-8">
|
||||||
|
|
Loading…
Reference in New Issue