From 3d167e8d7101305127416798ff06e87c166d0885 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’> Date: Fri, 14 Nov 2025 14:16:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/home/components/coresBar.vue | 8 +- .../home/components/profit-item-middle.vue | 2 +- src/views/home/components/profit-item.vue | 2 +- src/views/home/components/profitLineChart.vue | 2 +- src/views/home/components/purchase-Item.vue | 6 +- .../home/components/top-product-item.vue | 4 +- src/views/home/costComponents/cost-item.vue | 35 ++- .../costComponents/costItemOverviewItem.vue | 17 +- .../home/costComponents/operatingLineBar.vue | 6 +- .../costComponents/processingCost-Item.vue | 14 +- .../productItemOverviewItem.vue | 2 +- .../home/costComponents/productLeftTable.vue | 2 +- .../home/costComponents/profitImpactLine.vue | 250 ++++++++++++++++++ .../costComponents/profitImpactLineChart.vue | 145 ++++++++++ .../home/costComponents/profitLineChart.vue | 2 +- .../home/costComponents/profitTotalChart.vue | 233 ++++++++++++++++ .../home/costComponents/rawSheet-Item.vue | 6 +- src/views/home/index.vue | 72 ----- src/views/home/profitImpactAnalysis.vue | 4 +- src/views/home/rawMaterialCostAnalysis.vue | 10 - .../home/singleProductionCostsAnalysis.vue | 39 ++- 21 files changed, 717 insertions(+), 144 deletions(-) create mode 100644 src/views/home/costComponents/profitImpactLine.vue create mode 100644 src/views/home/costComponents/profitImpactLineChart.vue create mode 100644 src/views/home/costComponents/profitTotalChart.vue diff --git a/src/views/home/components/coresBar.vue b/src/views/home/components/coresBar.vue index 676bd875..96fc0123 100644 --- a/src/views/home/components/coresBar.vue +++ b/src/views/home/components/coresBar.vue @@ -70,7 +70,7 @@ export default { label: { backgroundColor: '#6a7985' } } }, - grid: { top: 10, bottom: 20, right: 25, left: 30 }, + grid: { top: 10, bottom: 20, right: 25, left: 50 }, xAxis: [ { type: 'category', @@ -94,9 +94,9 @@ export default { yAxis: { type: 'value', nameTextStyle: { color: 'rgba(0, 0, 0, 0.45)', fontSize: 14, align: 'left' }, - min: () => 0, - max: (value) => Math.ceil(value.max), - scale: true, + // min: () => 0, + // max: (value) => Math.ceil(value.max), + // scale: true, axisTick: { show: false }, axisLabel: { color: 'rgba(0, 0, 0, 0.45)', fontSize: 12 }, splitLine: { lineStyle: { color: 'rgba(0, 0, 0, 0.15)' } }, diff --git a/src/views/home/components/profit-item-middle.vue b/src/views/home/components/profit-item-middle.vue index 136c3cba..e8219015 100644 --- a/src/views/home/components/profit-item-middle.vue +++ b/src/views/home/components/profit-item-middle.vue @@ -22,7 +22,7 @@
- {{ item.proportion !== null && item.proportion !== undefined ? (item.proportion * 100) + '%' : '0%' }} + {{ item.proportion !== null && item.proportion !== undefined ? (item.proportion) + '%' : '0%' }}
完成率
diff --git a/src/views/home/components/profit-item.vue b/src/views/home/components/profit-item.vue index 72f07aed..8c2e8d1b 100644 --- a/src/views/home/components/profit-item.vue +++ b/src/views/home/components/profit-item.vue @@ -23,7 +23,7 @@
- {{ item.proportion !== null && item.proportion !== undefined ? (item.proportion * 100) + '%' : '0%' }} + {{ item.proportion !== null && item.proportion !== undefined ? (item.proportion) + '%' : '0%' }}
完成率
diff --git a/src/views/home/components/profitLineChart.vue b/src/views/home/components/profitLineChart.vue index 1611d3e0..098fa13c 100644 --- a/src/views/home/components/profitLineChart.vue +++ b/src/views/home/components/profitLineChart.vue @@ -80,7 +80,7 @@ export default { return { targetValue: targetItem?.[`${field}Target`] || 0, // 对应指标的目标值字段(如 profitTarget) value: targetItem?.[field] || 0, // 对应指标的实际值 - proportion: (targetItem?.[`${field}Proportion`] || 0) * 100, // 对应指标的占比(转百分比) + proportion: (targetItem?.[`${field}Proportion`] || 0), // 对应指标的占比(转百分比) completed: targetItem?.[`${field}Completed`] ?? 0 // 状态字段(复用分公司的 completed) }; }); diff --git a/src/views/home/components/purchase-Item.vue b/src/views/home/components/purchase-Item.vue index 05da4101..d1f5e2f4 100644 --- a/src/views/home/components/purchase-Item.vue +++ b/src/views/home/components/purchase-Item.vue @@ -6,7 +6,7 @@
{{ item.targetValue }}
-
目标值
+
目标值
@@ -17,7 +17,7 @@ }"> {{ item.currentValue }}
-
实际值
+
实际值
@@ -236,7 +236,7 @@ export default { /* 百分比 - 实际值≥目标值(绿色) */ .percent-exceed { - color: #28CB97 !important; + color: rgba(54, 181, 138, 1) !important; } /* 百分比 - 实际值<目标值(黄色) */ diff --git a/src/views/home/components/top-product-item.vue b/src/views/home/components/top-product-item.vue index ccdff0b0..8e54cf22 100644 --- a/src/views/home/components/top-product-item.vue +++ b/src/views/home/components/top-product-item.vue @@ -55,14 +55,14 @@ export default { unit: "原片成本·元/㎡", route: "cost/cost", target: 16, - actual: 18, + actual: 16, progress: 110 }, { unit: "加工成本·元/㎡", route: "cost/cost", target: 16, - actual: 14, + actual: 16, progress: 85 }, { diff --git a/src/views/home/costComponents/cost-item.vue b/src/views/home/costComponents/cost-item.vue index c5e4a8b7..bffb8af5 100644 --- a/src/views/home/costComponents/cost-item.vue +++ b/src/views/home/costComponents/cost-item.vue @@ -1,25 +1,29 @@