HOTFIX: open Itemdiary from Ticket #1054

Merged
jsegarra merged 4 commits from hotfix_itemDiary_redirect into master 2024-12-09 08:42:33 +00:00
1 changed files with 7 additions and 6 deletions
Showing only changes of commit 96223801d2 - Show all commits

View File

@ -19,13 +19,14 @@ import { date } from 'quasar';
import { useState } from 'src/composables/useState';
import { useArrayData } from 'src/composables/useArrayData';
import axios from 'axios';
import VnSubToolbar from 'components/ui/VnSubToolbar.vue';
const { t } = useI18n();
const route = useRoute();
const router = useRouter();
const stateStore = useStateStore();
jsegarra marked this conversation as resolved
Review

Dejar de usar, esa logica ya la hace VnSubtoolbar dentro

Dejar de usar, esa logica ya la hace VnSubtoolbar dentro
const state = useState();
debugger;
jsegarra marked this conversation as resolved Outdated
Outdated
Review

Quitar

Quitar
const user = state.getUser();
const today = ref(Date.vnNew());
const warehousesOptions = ref([]);
@ -205,8 +206,8 @@ async function updateWarehouse(warehouseFk) {
auto-load
@on-fetch="(data) => (warehousesOptions = data)"
/>
<template v-if="stateStore.isHeaderMounted()">
<Teleport to="#st-data">
<VnSubToolbar class="q-mb-md">
<template #st-data>
<div class="row">
<VnSelect
:label="t('itemDiary.warehouse')"
@ -235,9 +236,9 @@ async function updateWarehouse(warehouseFk) {
@update:model-value="fetchItemBalances"
/>
</div>
</Teleport>
<Teleport to="#st-actions"> </Teleport>
</template>
</template>
<template #st-actions></template
jsegarra marked this conversation as resolved Outdated
Outdated
Review

Se puede dejar sin usar no?

Se puede dejar sin usar no?
></VnSubToolbar>
<QPage class="column items-center q-pa-md">
<QTable
:rows="itemBalances"