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 {