From dc5dc45893bf38f09b5782ce4800156f185015de Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Thu, 13 Mar 2025 10:19:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=80=97=E6=9D=90=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/product/cons.ts | 8 + src/components/CURD/PageContent.vue | 286 +++++++++++++----- .../consumables/components/DataStatistics.vue | 116 +++++++ src/views/inventory/consumables/index.vue | 59 ++-- 4 files changed, 367 insertions(+), 102 deletions(-) create mode 100644 src/views/inventory/consumables/components/DataStatistics.vue diff --git a/src/api/product/cons.ts b/src/api/product/cons.ts index 8261110..d271800 100644 --- a/src/api/product/cons.ts +++ b/src/api/product/cons.ts @@ -63,6 +63,14 @@ const Api = { method: "post", }); }, + // 统计 + statistics(params: any) { + return request({ + url: `${baseURL}/statistics`, + method: "get", + params + }); + }, }; diff --git a/src/components/CURD/PageContent.vue b/src/components/CURD/PageContent.vue index 59a4f6a..1af79c3 100644 --- a/src/components/CURD/PageContent.vue +++ b/src/components/CURD/PageContent.vue @@ -8,37 +8,58 @@ @@ -67,36 +88,68 @@ - + @@ -191,15 +263,21 @@