[209] Kostenschätzung grob: Kennwert-Methode nach eBKP-H (Panel, Blatt-Tabelle, CSV/PDF)
- Modell: Project.costEstimate (CostEstimate/CostGroup/CostBasis/CostMethod) in generated.rs, KNOWN_KEYS, set_field; LayoutTableSource „costs“; npm run gen:types. - Kern kosten.rs: Menge × Kennwert je Zeile (Bezug Methode = m³ GV oder m² GF, wahlweise HNF, Fassade, Dach, pauschal) × Region × Index; Summe B–J, Honorare V auf B–J, Reserve Y auf B–J + V, MwSt Z, Bandbreite ±, Total je m³ GV / m² GF. Mengen aus der SIA-416-Flächentabelle (eine Quelle mit [225]); neu in flaechen.rs facade_area (Aussenumfang × Geschosshöhe bzw. Körper) und above_ground_outline_area (Dach ohne Dachelement). Abfragen costEstimate / costDefaults. Kaputte Eingaben (NaN, negative %) ohne Panic. - Vorgaben: BEISPIELWERTE ≈ 800 CHF/m³ GV bzw. 2'600 CHF/m² GF für B–J (Preisstand 2025, typische Verteilung der Hauptgruppen), Honorare 15 %, Reserve 10 % — keine offizielle Quelle, im Code dokumentiert und in Panel, Tabelle und Export als Beispielwert markiert. Belegt: MwSt 8.1 % (seit 1.1.2024), Genauigkeit nach SIA 102 (Vorprojekt ±15 %, Vorstudie ±25 %). - Blatt-Tabelle Quelle „costs“ (sheet_table.rs), Franken mit Tausender-Apostroph (Cell.g, area_report::fmt_num; CSV ohne Trenner). - TS: Fassade analysis/costEstimate.ts, Bericht export/costReport.ts (CSV/PDF über den Flächen-Nachweis), Panel CostEstimateSection im Flächenbilanz-Panel (Methode, Zuschläge, Faktoren, Preisstand, Kennwerte je Zeile, Zeile hinzufügen/entfernen, Beispielwerte). Methodenwechsel: Beispielwerte getauscht, eigene Werte über das Mengenverhältnis umgerechnet. i18n de+en. - e2e release10: Schritte 5b (Panel, Kennwert ändern, CSV/PDF, Methode GF) und 10b (Blatt-Tabelle) statt fixme; RELEASE-1.0.md Abschnitt 9 nachgeführt. Geprüft: cargo test dossier-core (1585 ok), tsc, vitest gesamt (3070 ok, Goldens unverändert), e2e/release10.spec.ts (Chromium, Port 5186). Nicht geprüft: Tauri-App/Mac, PDF nur über das SVG-Layout angesehen.
This commit is contained in:
28 files changed
+1595
-25
No files matched your search
@@ -8550,6 +8550,97 @@ body {
|
||||
color: var(--ink-2);
|
||||
}
|
||||
|
||||
/* [209] Kostenschätzung grob (CostEstimateSection). */
|
||||
.cost-example-banner {
|
||||
padding: 4px 6px;
|
||||
border-radius: 4px;
|
||||
background: var(--panel-2);
|
||||
border-left: 3px solid var(--accent);
|
||||
color: var(--ink);
|
||||
font-size: 11px;
|
||||
}
|
||||
.cost-settings {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
|
||||
gap: 3px 10px;
|
||||
}
|
||||
.cost-settings .kz-num {
|
||||
width: 48px;
|
||||
}
|
||||
.cost-settings .kz-parcel > span:first-child {
|
||||
font-size: 11px;
|
||||
}
|
||||
.cost-table {
|
||||
table-layout: fixed;
|
||||
}
|
||||
.cost-table th:nth-child(1) {
|
||||
width: 34px;
|
||||
}
|
||||
.cost-table th:nth-child(3) {
|
||||
width: 62px;
|
||||
}
|
||||
.cost-table th:nth-child(4) {
|
||||
width: 62px;
|
||||
}
|
||||
.cost-table th:nth-child(5) {
|
||||
width: 16px;
|
||||
}
|
||||
.cost-table th:nth-child(5),
|
||||
.cost-table td:nth-child(5) {
|
||||
padding: 2px 0;
|
||||
}
|
||||
.cost-table th {
|
||||
white-space: normal;
|
||||
}
|
||||
.cost-table td {
|
||||
vertical-align: top;
|
||||
}
|
||||
.cost-table .kz-input {
|
||||
font-size: 11px;
|
||||
max-width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.cost-table .cost-code {
|
||||
width: 30px;
|
||||
}
|
||||
.cost-table .cost-name {
|
||||
white-space: normal;
|
||||
}
|
||||
.cost-table .cost-name > .kz-input {
|
||||
width: 100%;
|
||||
}
|
||||
.cost-sub {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
margin-top: 2px;
|
||||
color: var(--ink-2);
|
||||
font-size: 10px;
|
||||
}
|
||||
.cost-sub select {
|
||||
flex: 0 0 auto;
|
||||
width: 84px;
|
||||
font-size: 10px;
|
||||
}
|
||||
.cost-qty {
|
||||
white-space: nowrap;
|
||||
}
|
||||
.cost-table tr.cost-range td {
|
||||
white-space: normal;
|
||||
color: var(--ink-2);
|
||||
}
|
||||
.cost-rate {
|
||||
white-space: nowrap;
|
||||
}
|
||||
.cost-rate.example .kz-input {
|
||||
font-style: italic;
|
||||
color: var(--ink-2);
|
||||
}
|
||||
.cost-quantities td {
|
||||
white-space: normal;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
/* Raumprogramm: Gruppenspalte, Aktionen, Soll/Ist-Vergleich, Import-Dialog ([61]). */
|
||||
.kz-program-row {
|
||||
grid-template-columns: minmax(0, 1fr) 52px 36px 64px 56px 18px;
|
||||
|
||||
Reference in new issue
Block a user