Skip to main content

Dashboard

Mô tả​

Số liệu dashboard. Các API hỗ trợ:

API​


GET /api/dashboards​

Dashboard tổng quan (light):

Tham số query:

Tên trườngKiểu dữ liệuMô tảBắt buộc
warehouse_idstringMã khoKhông

GET /api/dashboards

Response Body
{
"code": 200,
"message": "Success",
"result": {}
}

GET /api/dashboards/reportInventoryQuantity​

Báo cáo số lượng tồn theo sản phẩm:

Tham số query:

Tên trườngKiểu dữ liệuMô tảBắt buộc
warehouse_idstringMã khoKhông

GET /api/dashboards/reportInventoryQuantity

Response Body
{
"code": 200,
"message": "Success",
"result": {
"week": { "legend": [], "inventory_in": [], "inventory_out": [], "inventory_sold": [] },
"month": { "legend": [], "inventory_in": [], "inventory_out": [], "inventory_sold": [] },
"year": { "legend": [], "inventory_in": [], "inventory_out": [], "inventory_sold": [] }
}
}