u
This commit is contained in:
@@ -346,12 +346,6 @@ export const article = {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
|
||||||
* GET /api/article/:sku/children → { children: [...] }
|
|
||||||
*/
|
|
||||||
getChildren(sku) {
|
|
||||||
return http(`/api/article/${encodeURIComponent(sku)}/children`);
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* POST /api/article/:sku/children
|
* POST /api/article/:sku/children
|
||||||
@@ -375,12 +369,6 @@ export const article = {
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
|
||||||
* GET /api/article/:sku/articlelist → { items: [...] }
|
|
||||||
*/
|
|
||||||
getArticlelist(sku) {
|
|
||||||
return http(`/api/article/${encodeURIComponent(sku)}/articlelist`);
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PUT /api/article/:sku/articlelist
|
* PUT /api/article/:sku/articlelist
|
||||||
@@ -393,12 +381,6 @@ export const article = {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
|
||||||
* GET /api/article/:sku/optionslist → { options: [...] }
|
|
||||||
*/
|
|
||||||
getOptionslist(sku) {
|
|
||||||
return http(`/api/article/${encodeURIComponent(sku)}/optionslist`);
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PUT /api/article/:sku/optionslist
|
* PUT /api/article/:sku/optionslist
|
||||||
|
|||||||
@@ -1,12 +1,6 @@
|
|||||||
import { http } from './http.js';
|
import { http } from './http.js';
|
||||||
|
|
||||||
export const attributevalue = {
|
export const attributevalue = {
|
||||||
/** GET /api/attributename/:attributeId/value → { values: AttributeValue[] } */
|
|
||||||
// #region GET /api/attributename/:attributeId/value — listByAttributeId
|
|
||||||
listByAttributeId(attributeId) {
|
|
||||||
return http(`/api/attributename/${encodeURIComponent(attributeId)}/value`);
|
|
||||||
},
|
|
||||||
// #endregion
|
|
||||||
|
|
||||||
/** POST /api/attributename/:attributeId/value → 201 { attributevalue } */
|
/** POST /api/attributename/:attributeId/value → 201 { attributevalue } */
|
||||||
// #region POST /api/attributename/:attributeId/value — create
|
// #region POST /api/attributename/:attributeId/value — create
|
||||||
|
|||||||
@@ -29,17 +29,6 @@ export const ledger = {
|
|||||||
},
|
},
|
||||||
// #endregion
|
// #endregion
|
||||||
|
|
||||||
/**
|
|
||||||
* GET /api/ledger/sku/:sku
|
|
||||||
* Query: ?transaction_type=...
|
|
||||||
* → 200 { ledger: LedgerEntry[] }
|
|
||||||
*/
|
|
||||||
// #region GET /api/ledger/sku/:sku — listBySku
|
|
||||||
listBySku(sku, transactionType) {
|
|
||||||
const query = transactionType ? `?transaction_type=${encodeURIComponent(transactionType)}` : '';
|
|
||||||
return http(`/api/ledger/sku/${encodeURIComponent(sku)}${query}`);
|
|
||||||
},
|
|
||||||
// #endregion
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GET /api/ledger
|
* GET /api/ledger
|
||||||
|
|||||||
@@ -12,13 +12,6 @@ export const printer = {
|
|||||||
},
|
},
|
||||||
// #endregion
|
// #endregion
|
||||||
|
|
||||||
/** GET /api/printer/:id → { printer: Printer } */
|
|
||||||
// #region GET /api/printer/:id — getById
|
|
||||||
getById(id) {
|
|
||||||
return http(`/api/printer/${id}`);
|
|
||||||
},
|
|
||||||
// #endregion
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* POST /api/printer
|
* POST /api/printer
|
||||||
* Body: { address, type, model, serial, sort, desc }
|
* Body: { address, type, model, serial, sort, desc }
|
||||||
|
|||||||
@@ -4,11 +4,6 @@ import { http } from './http.js';
|
|||||||
* Packages / logistics shipments attached to a shipment manifest.
|
* Packages / logistics shipments attached to a shipment manifest.
|
||||||
*/
|
*/
|
||||||
export const shipping = {
|
export const shipping = {
|
||||||
// #region GET /api/shipment/:id/shipping — listByShipment
|
|
||||||
listByShipment(shipmentId) {
|
|
||||||
return http(`/api/shipment/${shipmentId}/shipping`);
|
|
||||||
},
|
|
||||||
// #endregion
|
|
||||||
|
|
||||||
// #region POST /api/shipment/:id/shipping — create
|
// #region POST /api/shipment/:id/shipping — create
|
||||||
create(shipmentId, body) {
|
create(shipmentId, body) {
|
||||||
|
|||||||
@@ -12,13 +12,6 @@ export const warehouse = {
|
|||||||
},
|
},
|
||||||
// #endregion
|
// #endregion
|
||||||
|
|
||||||
/** GET /api/warehouse/:id → { warehouse: Warehouse } */
|
|
||||||
// #region GET /api/warehouse/:id — getById
|
|
||||||
getById(id) {
|
|
||||||
return http(`/api/warehouse/${id}`);
|
|
||||||
},
|
|
||||||
// #endregion
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* POST /api/warehouse
|
* POST /api/warehouse
|
||||||
* Body: { name, sort? } — empty name ⇒ 400 Name required.
|
* Body: { name, sort? } — empty name ⇒ 400 Name required.
|
||||||
|
|||||||
Reference in New Issue
Block a user