|
10 | 10 | :precision="3"
|
11 | 11 | required
|
12 | 12 | unit="ct/kWh"
|
13 |
| - :model-value="electricityTariff.configuration.default_price" |
14 |
| - @update:model-value="updateConfiguration(parseFloat($event.toFixed(3)), 'configuration.default_price')" |
| 13 | + :model-value="electricityTariff.configuration.default_price * 100" |
| 14 | + @update:model-value="updateConfiguration(parseFloat(($event / 100).toFixed(3)), 'configuration.default_price')" |
15 | 15 | >
|
16 | 16 | <template #help> Standardpreis sofern kein anderer Tarif aktiv ist. </template>
|
17 | 17 | </openwb-base-number-input>
|
|
34 | 34 | v-if="electricityTariff.configuration.tariffs.length === 0"
|
35 | 35 | subtype="info"
|
36 | 36 | >
|
37 |
| - Es wurde noch kein Tarif konfiguriert. |
| 37 | + Es wurde noch kein Tarif konfiguriert. Klicken Sie auf das Plus-Symbol um einen neuen Tarif hinzuzufügen.<br /> |
| 38 | + Tarife ermöglichen es unterschiedliche Preise für unterschiedliche Zeiten zu definieren. |
38 | 39 | </openwb-base-alert>
|
39 | 40 | <openwb-base-card
|
40 | 41 | v-for="(tariff, index) in electricityTariff.configuration.tariffs"
|
|
68 | 69 | :precision="3"
|
69 | 70 | required
|
70 | 71 | unit="ct/kWh"
|
71 |
| - :model-value="tariff.price" |
72 |
| - @update:model-value="updateTariff(parseFloat($event.toFixed(3)), index, 'price')" |
| 72 | + :model-value="tariff.price * 100" |
| 73 | + @update:model-value="updateTariff(parseFloat(($event / 100).toFixed(3)), index, 'price')" |
73 | 74 | />
|
74 | 75 | <openwb-base-select-input
|
75 | 76 | title="Quartale"
|
76 | 77 | :options="[
|
77 |
| - { value: '1', text: '1. Quartal' }, |
78 |
| - { value: '2', text: '2. Quartal' }, |
79 |
| - { value: '3', text: '3. Quartal' }, |
80 |
| - { value: '4', text: '4. Quartal' }, |
| 78 | + { value: 1, text: '1. Quartal' }, |
| 79 | + { value: 2, text: '2. Quartal' }, |
| 80 | + { value: 3, text: '3. Quartal' }, |
| 81 | + { value: 4, text: '4. Quartal' }, |
81 | 82 | ]"
|
82 | 83 | :model-value="tariff.active_times.quarters"
|
83 | 84 | multiple
|
| 85 | + required |
84 | 86 | @update:model-value="updateQuarters($event, index)"
|
85 | 87 | />
|
86 | 88 | <time-table
|
|
0 commit comments