fix: refs #7283 #7283 ItemDiary subToolbar

This commit is contained in:
Javier Segarra 2024-10-21 13:48:43 +02:00
parent f2cb0111eb
commit 29a7f3b2fe
1 changed files with 34 additions and 33 deletions

View File

@ -188,7 +188,7 @@ async function updateWarehouse(warehouseFk) {
},
});
await stock.fetch({});
stock.store.data.itemFk = route.params.id
stock.store.data.itemFk = route.params.id;
}
</script>
@ -205,8 +205,9 @@ async function updateWarehouse(warehouseFk) {
auto-load
@on-fetch="(data) => (warehousesOptions = data)"
/>
<QToolbar class="justify-end">
<div id="st-data" class="row">
<template v-if="stateStore.isHeaderMounted()">
<Teleport to="#st-data">
<div class="row">
<VnSelect
:label="t('itemDiary.warehouse')"
:options="warehousesOptions"
@ -234,9 +235,9 @@ async function updateWarehouse(warehouseFk) {
@update:model-value="fetchItemBalances"
/>
</div>
<QSpace />
<div id="st-actions"></div>
</QToolbar>
</Teleport>
<Teleport to="#st-actions"> </Teleport>
</template>
<QPage class="column items-center q-pa-md">
<QTable
:rows="itemBalances"