From fcd8dd90be1bd17fc58867cc8db32876f7444a1f Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Mon, 31 Mar 2025 10:13:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=95=B0=E6=8D=AE=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=EF=BC=8C=E9=94=80=E5=94=AE=E7=BB=9F=E8=AE=A1=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E6=A1=86=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/data/index.vue | 137 +++++++++++++++++++++++++++------------ src/views/data/sales.vue | 11 ++-- 2 files changed, 102 insertions(+), 46 deletions(-) diff --git a/src/views/data/index.vue b/src/views/data/index.vue index 280dc21..6d2c015 100644 --- a/src/views/data/index.vue +++ b/src/views/data/index.vue @@ -51,8 +51,8 @@
营业 -
- +
+ 今天 昨天 最近7天 @@ -61,9 +61,18 @@ 本月 自定义 - +
+ +
@@ -133,20 +142,28 @@
-
-
+
+ }" + >
@@ -162,22 +179,30 @@
-
-
+
+ }" + >
@@ -221,7 +246,11 @@
翻台率 - + @@ -254,10 +283,18 @@
-
+
销售趋势
-
+
支付占比
@@ -266,10 +303,20 @@ 30天
-
-
-
-
+
+
@@ -306,9 +353,17 @@ -
- +
+
diff --git a/src/views/data/sales.vue b/src/views/data/sales.vue index 6b85e93..6d42e40 100644 --- a/src/views/data/sales.vue +++ b/src/views/data/sales.vue @@ -33,6 +33,7 @@ 自定义 @@ -191,10 +192,6 @@ export default { timeFilter(time) { return dayjs(time).format("YYYY-MM-DD HH:mm:ss"); }, - totalfilter(item, d) { - let num = item + d; - return num.toFixed(2); - }, }, mounted() { this.resetQuery = { ...this.query }; @@ -202,6 +199,10 @@ export default { this.getCategory(); }, methods: { + totalfilter(item, d) { + let num = item + d; + return num.toFixed(2); + }, // 获取商品分类 async getCategory() { try {