From 93d2618022dd403a69785b38d7c14b64593bb7fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Tue, 22 Jul 2025 16:28:43 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=8F=98=E6=9B=B4=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- klp-ui/src/router/index.js | 2 +- klp-ui/src/store/getters.js | 1 + .../src/views/components/AllApplications.vue | 149 +++++++++++++++ klp-ui/src/views/index.vue | 174 ++++++++++++------ .../wms/order/components/CustomerRegion.vue | 103 +++++++++++ .../wms/order/components/MaterialAnalysis.vue | 117 ++++++++++++ .../wms/order/components/OrderSummary.vue | 21 ++- .../wms/order/components/ProductSales.vue | 166 +++++++++++------ klp-ui/src/views/wms/order/dashboard.vue | 129 +++++++++++-- 9 files changed, 731 insertions(+), 131 deletions(-) create mode 100644 klp-ui/src/views/components/AllApplications.vue create mode 100644 klp-ui/src/views/wms/order/components/CustomerRegion.vue create mode 100644 klp-ui/src/views/wms/order/components/MaterialAnalysis.vue diff --git a/klp-ui/src/router/index.js b/klp-ui/src/router/index.js index 41b1b7bc..f1a0416d 100644 --- a/klp-ui/src/router/index.js +++ b/klp-ui/src/router/index.js @@ -70,7 +70,7 @@ export const constantRoutes = [ path: 'index', component: () => import('@/views/index'), name: 'Index', - meta: { title: '首页', icon: 'dashboard', affix: true } + meta: { title: '工作台', icon: 'dashboard', affix: true } } ] }, diff --git a/klp-ui/src/store/getters.js b/klp-ui/src/store/getters.js index 8adb1b65..0f4d3c95 100644 --- a/klp-ui/src/store/getters.js +++ b/klp-ui/src/store/getters.js @@ -8,6 +8,7 @@ const getters = { token: state => state.user.token, avatar: state => state.user.avatar, name: state => state.user.name, + avatar: state => state.user.avatar, introduction: state => state.user.introduction, roles: state => state.user.roles, permissions: state => state.user.permissions, diff --git a/klp-ui/src/views/components/AllApplications.vue b/klp-ui/src/views/components/AllApplications.vue new file mode 100644 index 00000000..a49a4ae2 --- /dev/null +++ b/klp-ui/src/views/components/AllApplications.vue @@ -0,0 +1,149 @@ + + + + + \ No newline at end of file diff --git a/klp-ui/src/views/index.vue b/klp-ui/src/views/index.vue index 7417d8c4..2c6c1d9b 100644 --- a/klp-ui/src/views/index.vue +++ b/klp-ui/src/views/index.vue @@ -2,6 +2,14 @@ + + \ No newline at end of file diff --git a/klp-ui/src/views/wms/order/components/MaterialAnalysis.vue b/klp-ui/src/views/wms/order/components/MaterialAnalysis.vue new file mode 100644 index 00000000..f2cf4d6e --- /dev/null +++ b/klp-ui/src/views/wms/order/components/MaterialAnalysis.vue @@ -0,0 +1,117 @@ + + + + + \ No newline at end of file diff --git a/klp-ui/src/views/wms/order/components/OrderSummary.vue b/klp-ui/src/views/wms/order/components/OrderSummary.vue index a46079be..276da0d2 100644 --- a/klp-ui/src/views/wms/order/components/OrderSummary.vue +++ b/klp-ui/src/views/wms/order/components/OrderSummary.vue @@ -6,12 +6,12 @@
总订单数
- {{ dataInfo.totalOrders.toLocaleString() }} + {{ dataInfo.totalOrderCount.toLocaleString() }} - 12.5% + {{ dataInfo.totalOrderCountGrowthRate }}%
@@ -28,12 +28,12 @@
本月完成订单
- {{ dataInfo.completedThisMonth.toLocaleString() }} + {{ dataInfo.monthFinishedOrderCount.toLocaleString() }} - 8.3% + {{ dataInfo.monthFinishedOrderCountGrowthRate }}%
@@ -49,12 +49,12 @@
订单完成度
- {{ dataInfo.completionRate.toFixed(1) }}% + {{ dataInfo.finishedRate.toFixed(1) }}% - 2.1% + {{ dataInfo.finishedRateGrowthRate }}%
@@ -74,7 +74,14 @@ export default { dataInfo: { type: Object, required: true, - default: () => ({ totalOrders: 0, completedThisMonth: 0, completionRate: 0 }) + default: () => ({ + totalOrderCount: 0, + monthFinishedOrderCount: 0, + finishedRate: 0, + totalOrderCountGrowthRate: 0, + monthFinishedOrderCountGrowthRate: 0, + finishedRateGrowthRate: 0, + }) } } } diff --git a/klp-ui/src/views/wms/order/components/ProductSales.vue b/klp-ui/src/views/wms/order/components/ProductSales.vue index 30e0bead..686db2eb 100644 --- a/klp-ui/src/views/wms/order/components/ProductSales.vue +++ b/klp-ui/src/views/wms/order/components/ProductSales.vue @@ -1,14 +1,17 @@