Web: QR-Etiketten-Export (CSV für P-touch & Co.)
Auf "Import / Export" neue Karte: Kategorien auswaehlen (inkl. Unterkategorien) und je Einzelstueck eine CSV-Zeile herunterladen - Spalten QR-Inhalt (…/i/<UID>), UID, Produkt, Marke, Kategorie, Lagerort. In der Etiketten-Software als Datenbank verknuepfen, dann entsteht QR + Text automatisch - kein einzelnes Bild-Download und Zuordnen mehr. Backend: GET /export/labels?category_ids=... liefert die Zeilen (JSON); den QR-Inhalt setzt das Web mit window.location.origin dazu. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -249,6 +249,9 @@ export const api = {
|
||||
exportCsv: () => downloadFile("/export/stock.csv", `bestand_${zeitstempel()}.csv`),
|
||||
exportJson: () =>
|
||||
downloadFile("/export/backup.json", `vorrania-backup_${zeitstempel()}.json`),
|
||||
// Zeilen für den QR-Etiketten-Export (P-touch); QR-Inhalt setzt das Web dazu.
|
||||
labelRows: (categoryIds) =>
|
||||
request(`/export/labels${categoryIds && categoryIds.length ? `?category_ids=${categoryIds.join(",")}` : ""}`),
|
||||
importStock: (file, mode = "add") => {
|
||||
const fd = new FormData();
|
||||
fd.append("file", file);
|
||||
|
||||
Reference in New Issue
Block a user