This commit is contained in:
seb
2026-07-31 18:20:46 +02:00
parent a6a9777f31
commit ce8d7d04da
4 changed files with 83 additions and 24 deletions

View File

@@ -90,7 +90,11 @@ export const article = {
return http(`/api/article/search?${params}`);
},
/** GET /api/article/:sku → { article: { id, sku, name, slug, net, taxRate, fatherArticleId, fatherSku, … } } */
/**
* GET /api/article/:sku → { article }
* Detail: prices[], photos[], eans[], brand, unit, categoryIds, …
* (Flat net/taxRate/thumb* only on category tree / getCategoryArticles.)
*/
getBySku(sku) {
return http(`/api/article/${encodeURIComponent(sku)}`);
},