From 50316697ae6a627b9a3535e94608063ac1eb404e Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 04 十一月 2026 15:19:19 +0800
Subject: [PATCH] 巡检任务状态按巡检结果判断,已巡检不再显示“未巡检”

---
 src/pages/inspectionUpload/index.vue |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/pages/inspectionUpload/index.vue b/src/pages/inspectionUpload/index.vue
index cfec613..5da8ce9 100644
--- a/src/pages/inspectionUpload/index.vue
+++ b/src/pages/inspectionUpload/index.vue
@@ -296,6 +296,17 @@
   };
 
   const getFileStatus = record => {
+    // 宸叉彁浜ゅ贰妫�缁撴灉锛�0-寮傚父锛�1-姝e父锛夊嵆琛ㄧず璇ヤ换鍔″凡宸℃瀹屾垚锛�
+    // 涓嶅啀渚濊禆闄勪欢鏁伴噺鍒ゆ柇锛岄伩鍏嶁�滄甯糕�濆贰妫�锛堟棤鐓х墖锛変粛鏄剧ず鈥滄湭宸℃鈥�
+    const inspectionResult = record.inspectionResult;
+    if (
+      inspectionResult !== undefined &&
+      inspectionResult !== null &&
+      String(inspectionResult).trim() !== ""
+    ) {
+      return 2;
+    }
+
     let _beforeProduction =
       (record.commonFileListBeforeVO && record.commonFileListBeforeVO.length) ||
       (record.commonFileListBefore && record.commonFileListBefore.length);

--
Gitblit v1.9.3