Web: Einzelstücke mit QR – anlegen, je-Stück-Felder, Etiketten, /i/<uid>
Gegenstands-Produkte haben jetzt den Umschalter "Menge je Lagerort / Einzelstücke". Bei Einzelstücken erscheint (volle Breite) eine Liste je Stueck mit eigener UID, QR-Code, Lagerort, Kaufdatum, Garantie, Bezugsquelle und Notiz - direkt inline aenderbar, mit Entfernen (Grund) und druckbaren QR-Etiketten. Ein Scan oeffnet ueber die Route /i/<uid> das passende Stueck. QR via qrcode (gebundelt, offline). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -155,6 +155,14 @@ export const api = {
|
||||
},
|
||||
deleteProductImage: (id) => request(`/products/${id}/image`, { method: "DELETE" }),
|
||||
|
||||
// Einzelstücke (Items mit UID/QR)
|
||||
listItems: (productId) => request(`/products/${productId}/items`),
|
||||
createItems: (productId, body) => request(`/products/${productId}/items`, { method: "POST", body }),
|
||||
itemByUid: (uid) => request(`/items/by-uid/${encodeURIComponent(uid)}`),
|
||||
updateItem: (id, body) => request(`/items/${id}`, { method: "PATCH", body }),
|
||||
removeItem: (id, body) => request(`/items/${id}/remove`, { method: "POST", body }),
|
||||
deleteItem: (id) => request(`/items/${id}`, { method: "DELETE" }),
|
||||
|
||||
// Bestand
|
||||
checkIn: (body) => request("/stock/checkin", { method: "POST", body }),
|
||||
checkInBatch: (body) => request("/stock/checkin/batch", { method: "POST", body }),
|
||||
|
||||
Reference in New Issue
Block a user