From c1e2cf24e4fb89c3ff09841b7c3762e807a4076a Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 26 八月 2026 16:27:25 +0800
Subject: [PATCH] fix: MOM 1.生产订单展示优化 2.生产订单页面归档按钮点击没有反应问题

---
 src/views/crm/statistics/performance/chartOptions.ts |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/views/crm/statistics/performance/chartOptions.ts b/src/views/crm/statistics/performance/chartOptions.ts
index 073c625..cef5b8e 100644
--- a/src/views/crm/statistics/performance/chartOptions.ts
+++ b/src/views/crm/statistics/performance/chartOptions.ts
@@ -47,7 +47,7 @@
             yAxisIndex: 1,
             data: res.map((s: any) =>
               s.lastMonthCount === 0
-                ? 'NULL'
+                ? (s.currentMonthCount > 0 ? 100 : 0).toFixed(2)
                 : (
                     ((s.currentMonthCount - s.lastMonthCount) /
                       s.lastMonthCount) *
@@ -61,7 +61,7 @@
             yAxisIndex: 1,
             data: res.map((s: any) =>
               s.lastYearCount === 0
-                ? 'NULL'
+                ? (s.currentMonthCount > 0 ? 100 : 0).toFixed(2)
                 : (
                     ((s.currentMonthCount - s.lastYearCount) /
                       s.lastYearCount) *
@@ -166,7 +166,7 @@
             yAxisIndex: 1,
             data: res.map((s: any) =>
               s.lastMonthCount === 0
-                ? 'NULL'
+                ? (s.currentMonthCount > 0 ? 100 : 0).toFixed(2)
                 : (
                     ((s.currentMonthCount - s.lastMonthCount) /
                       s.lastMonthCount) *
@@ -180,7 +180,7 @@
             yAxisIndex: 1,
             data: res.map((s: any) =>
               s.lastYearCount === 0
-                ? 'NULL'
+                ? (s.currentMonthCount > 0 ? 100 : 0).toFixed(2)
                 : (
                     ((s.currentMonthCount - s.lastYearCount) /
                       s.lastYearCount) *
@@ -290,7 +290,7 @@
             yAxisIndex: 1,
             data: res.map((s: any) =>
               s.lastMonthCount === 0
-                ? 'NULL'
+                ? (s.currentMonthCount > 0 ? 100 : 0).toFixed(2)
                 : (
                     ((s.currentMonthCount - s.lastMonthCount) /
                       s.lastMonthCount) *
@@ -304,7 +304,7 @@
             yAxisIndex: 1,
             data: res.map((s: any) =>
               s.lastYearCount === 0
-                ? 'NULL'
+                ? (s.currentMonthCount > 0 ? 100 : 0).toFixed(2)
                 : (
                     ((s.currentMonthCount - s.lastYearCount) /
                       s.lastYearCount) *

--
Gitblit v1.9.3