From 50759b9ada57ec4e82ecc798e4e973b2621c2041 Mon Sep 17 00:00:00 2001 From: arnold-pichler Date: Sat, 28 Sep 2024 13:12:01 +0200 Subject: [PATCH] first simple list of factors --- src/components/TheEntryForm.vue | 1 - src/components/TheFertilizerBalance.vue | 48 +++++++++++++++++++++++-- src/composables/useBalanceCalculator.js | 47 +++++++++++++++++++++--- 3 files changed, 89 insertions(+), 7 deletions(-) diff --git a/src/components/TheEntryForm.vue b/src/components/TheEntryForm.vue index 2ce4feb..23e9bd9 100644 --- a/src/components/TheEntryForm.vue +++ b/src/components/TheEntryForm.vue @@ -774,7 +774,6 @@ function FloatTrunc(input) { } function saveData() { - console.log(entry.value); if (currentSaved.value !== null) { savedData.value[currentSaved.value] = { ...entry.value }; } else { diff --git a/src/components/TheFertilizerBalance.vue b/src/components/TheFertilizerBalance.vue index ba44112..38ffbbb 100644 --- a/src/components/TheFertilizerBalance.vue +++ b/src/components/TheFertilizerBalance.vue @@ -25,6 +25,21 @@ >mdi-alert-box{{ message }} + + + + + + + + + +
+ {{ tableAttribut('kulturen', entry.cultures[index].kultur, 'Kultur') }} +
{{ labels[key] }}{{ value.toLocaleString('de-DE', { style: 'decimal' }) }}
+
+
@@ -33,15 +48,44 @@ import { useDataEntries } from '../composables/useDataEntries.js'; import { useBalanceCalculator } from '../composables/useBalanceCalculator.js'; import { ref, computed } from 'vue'; -const { dataWindow } = useDataEntries(); -const { updateBilanz } = useBalanceCalculator(); +const { dataWindow, entry } = useDataEntries(); +const { updateBilanz, labels } = useBalanceCalculator(); +import { useLookup } from '../composables/useLookUps.js'; const winMaximize = ref(false); const bilanz = computed(() => updateBilanz()); +const { tableAttribut } = useLookup();