From bfb868cc4bb6d26ac91013a98e8db0d276bfda38 Mon Sep 17 00:00:00 2001 From: Timi Date: Fri, 16 Oct 2026 01:32:56 +0800 Subject: [PATCH] add sku total --- src/api/ProductAPI.ts | 5 +- .../productSelector/ProductSelector.vue | 52 +++++-- src/pages/product/ProductStockRecordList.vue | 145 +++++++++++++++--- src/types/Product.ts | 5 + 4 files changed, 164 insertions(+), 43 deletions(-) diff --git a/src/api/ProductAPI.ts b/src/api/ProductAPI.ts index 32bb29b..2b75bbe 100644 --- a/src/api/ProductAPI.ts +++ b/src/api/ProductAPI.ts @@ -16,7 +16,8 @@ import type { ProductStockManualRevokeRequest, ProductStockPage, StockRecord, - StockRecordPage + StockRecordPage, + StockRecordPageResult } from "@/types/Product"; import { getCurrentStoreId, withCurrentStoreId } from "@/utils/store"; @@ -153,7 +154,7 @@ async function stocktakeLoss(request: ProductStockChangeRequest): Promise> { +async function recordList(page: StockRecordPage): Promise { return await axios.post(`${STOCK_URI}/record/list`, withCurrentStoreId(page)); } diff --git a/src/components/productSelector/ProductSelector.vue b/src/components/productSelector/ProductSelector.vue index fbccfbb..26f109d 100644 --- a/src/components/productSelector/ProductSelector.vue +++ b/src/components/productSelector/ProductSelector.vue @@ -1,17 +1,19 @@