From 6a66cb2c63398126d081a1de2133737c3229c994 Mon Sep 17 00:00:00 2001 From: fhm Date: Tue, 8 Jul 2025 08:31:52 +0700 Subject: [PATCH] fix --- .../my/predictions/prediction-card-detail.vue | 174 +++++++++++++++ components/my/predictions/prediction-card.vue | 24 +- components/my/predictions/trx/card-sale.vue | 38 +++- components/my/predictions/trx/card.vue | 31 ++- components/my/predictions/trx/detail.vue | 211 ++++++++++++++++++ .../my/predictions/trx/purchase-list.vue | 17 +- components/my/ui/casier/cart-item.vue | 161 +++++++++++++ components/my/ui/casier/receipt.vue | 166 ++++++++++++++ .../ui/home/latest-purchases-predictions.vue | 51 +++-- .../my/ui/home/latest-sales-predictions.vue | 51 +++-- components/my/ui/home/modal-add-stock.vue | 11 +- .../my/ui/home/monthly-recomendation.vue | 164 ++++++++++++++ .../my/ui/home/weekly-recomendation.vue | 166 ++++++++++++++ components/my/ui/restock/cart-item.vue | 194 ++++++++++++++++ components/my/ui/restock/receipt.vue | 164 ++++++++++++++ .../my/ui/restock/stock-recomendation.vue | 167 ++++++++++++++ composables/use$fetchAuto.ts | 11 +- composables/useFetchAuto.ts | 11 +- constants/dashboard-menu.ts | 10 +- pages/dashboard/cashier/index.vue | 86 ++----- pages/dashboard/restock/index.vue | 82 +------ stores/cart/purchase.ts | 1 + stores/cart/sales.ts | 1 + types/api-response/prediction.ts | 11 +- types/prediction/product-list.ts | 2 +- utils/math/getStockDeficitFromPrediction.ts | 16 ++ 26 files changed, 1804 insertions(+), 217 deletions(-) create mode 100644 components/my/predictions/prediction-card-detail.vue create mode 100644 components/my/predictions/trx/detail.vue create mode 100644 components/my/ui/casier/cart-item.vue create mode 100644 components/my/ui/casier/receipt.vue create mode 100644 components/my/ui/home/monthly-recomendation.vue create mode 100644 components/my/ui/home/weekly-recomendation.vue create mode 100644 components/my/ui/restock/cart-item.vue create mode 100644 components/my/ui/restock/receipt.vue create mode 100644 components/my/ui/restock/stock-recomendation.vue create mode 100644 utils/math/getStockDeficitFromPrediction.ts diff --git a/components/my/predictions/prediction-card-detail.vue b/components/my/predictions/prediction-card-detail.vue new file mode 100644 index 0000000..66648e8 --- /dev/null +++ b/components/my/predictions/prediction-card-detail.vue @@ -0,0 +1,174 @@ + + \ No newline at end of file diff --git a/components/my/predictions/prediction-card.vue b/components/my/predictions/prediction-card.vue index 88b3917..d2d2e9b 100644 --- a/components/my/predictions/prediction-card.vue +++ b/components/my/predictions/prediction-card.vue @@ -29,6 +29,8 @@ Max: {{ product.upper_bound || 0 }} + + + -