From fadcd0ad5aa03b6f798b2ad10a0c8bddd21d3a11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E6=AC=A7=EF=BC=88=E6=9E=97=E5=B9=B3=E5=87=A1?= =?UTF-8?q?=EF=BC=89?= Date: Thu, 7 Aug 2025 21:39:10 +0800 Subject: [PATCH] 1 --- .env.development | 3 +- .env.production | 3 +- package.json | 5 +- src/api/system/orderrows.js | 9 + src/views/system/orderrows/index.vue | 5 +- src/views/system/orderrows/statistics.vue | 307 +++++++++++++++------- src/views/system/superadmin/index.vue | 39 ++- 7 files changed, 258 insertions(+), 113 deletions(-) diff --git a/.env.development b/.env.development index 897ed26..56c8d55 100644 --- a/.env.development +++ b/.env.development @@ -10,4 +10,5 @@ VUE_APP_BASE_API = '' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true -VUE_APP_BASE_API = 'http://127.0.0.1:30313' \ No newline at end of file +VUE_APP_BASE_API = 'http://127.0.0.1:30313' +port = 8888 diff --git a/.env.production b/.env.production index a0017bd..6ab0034 100644 --- a/.env.production +++ b/.env.production @@ -7,4 +7,5 @@ ENV = 'production' # Jarvis/生产环境 VUE_APP_BASE_API = '' -# VUE_APP_BASE_API = 'http://134.175.126.60:30313' +VUE_APP_BASE_API = 'http://134.175.126.60:30313' +port = 8888 diff --git a/package.json b/package.json index 01fac35..0ac467d 100644 --- a/package.json +++ b/package.json @@ -68,5 +68,8 @@ "browserslist": [ "> 1%", "last 2 versions" - ] + ], + "volta": { + "node": "18.20.8" + } } diff --git a/src/api/system/orderrows.js b/src/api/system/orderrows.js index 54cedf7..3d61bb4 100644 --- a/src/api/system/orderrows.js +++ b/src/api/system/orderrows.js @@ -49,4 +49,13 @@ export function getValidCodeSelectData() { url: '/jarvis/orderrows/select/validCode', method: 'get' }) +} + +// 获取订单统计数据 +export function getOrderStatistics(query) { + return request({ + url: '/jarvis/orderrows/statistics', + method: 'get', + params: query + }) } \ No newline at end of file diff --git a/src/views/system/orderrows/index.vue b/src/views/system/orderrows/index.vue index 858b036..098eb08 100644 --- a/src/views/system/orderrows/index.vue +++ b/src/views/system/orderrows/index.vue @@ -56,9 +56,9 @@ - + @@ -466,6 +466,7 @@ export default { resetQuery() { this.dateRange = []; this.resetForm("queryForm"); + this.queryParams.validCodes = []; this.handleQuery(); }, // 多选框选中数据 diff --git a/src/views/system/orderrows/statistics.vue b/src/views/system/orderrows/statistics.vue index 58d0ff8..bf415d3 100644 --- a/src/views/system/orderrows/statistics.vue +++ b/src/views/system/orderrows/statistics.vue @@ -1,5 +1,45 @@