From ad971dbd7579c0ff9a766927dde3767f4b7aa3ed Mon Sep 17 00:00:00 2001
From: quxin <592870522@qq.com>
Date: 星期四, 03 九月 2026 11:21:46 +0800
Subject: [PATCH] 修复: 基础数据--物料分类: 删除物料子类时,如果有物料使用该子类且未开启同步到MES,仍可以删除

---
 src/views/crm/statistics/performance/index.vue |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/views/crm/statistics/performance/index.vue b/src/views/crm/statistics/performance/index.vue
index 0e029ae..2c66fc3 100644
--- a/src/views/crm/statistics/performance/index.vue
+++ b/src/views/crm/statistics/performance/index.vue
@@ -131,7 +131,7 @@
     tableData[2][`field${index}`] = item.lastYearCount;
     tableData[3][`field${index}`] =
       item.lastMonthCount === 0
-        ? 'NULL'
+        ? (item.currentMonthCount > 0 ? 100 : 0).toFixed(2)
         : (
             ((item.currentMonthCount - item.lastMonthCount) /
               item.lastMonthCount) *
@@ -139,7 +139,7 @@
           ).toFixed(2);
     tableData[4][`field${index}`] =
       item.lastYearCount === 0
-        ? 'NULL'
+        ? (item.currentMonthCount > 0 ? 100 : 0).toFixed(2)
         : (
             ((item.currentMonthCount - item.lastYearCount) /
               item.lastYearCount) *

--
Gitblit v1.9.3