From 9ec43c241a3a4ac3bf8d7290078a00f002779b83 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期二, 03 二月 2026 16:31:00 +0800
Subject: [PATCH] 超期未整改提示

---
 src/pages/safeProduction/dangerInvestigation/index.vue |   67 +++++++++++++++++++++++++++++++++
 1 files changed, 66 insertions(+), 1 deletions(-)

diff --git a/src/pages/safeProduction/dangerInvestigation/index.vue b/src/pages/safeProduction/dangerInvestigation/index.vue
index d4e32ba..9ec1a5a 100644
--- a/src/pages/safeProduction/dangerInvestigation/index.vue
+++ b/src/pages/safeProduction/dangerInvestigation/index.vue
@@ -26,7 +26,8 @@
           v-if="visitList.length > 0">
       <view v-for="(item, index) in visitList"
             :key="index">
-        <view class="ledger-item">
+        <view class="ledger-item"
+              :class="{ 'overdue': isOverdue(item.rectifyTime, item.rectifyActualTime) }">
           <view class="item-header">
             <view class="item-left">
               <view class="document-icon">
@@ -137,6 +138,12 @@
                       @click="acceptanceVisit(item)">
               楠屾敹
             </u-button>
+            <u-button type="info"
+                      size="small"
+                      class="action-btn"
+                      @click="viewFileList(item)">
+              闄勪欢
+            </u-button>
             <u-button type="error"
                       size="small"
                       class="action-btn"
@@ -194,6 +201,21 @@
 
   const userStore = useUserStore();
 
+  // 妫�鏌ラ殣鎮f槸鍚﹁秴鏈熸湭鏁存敼
+  const isOverdue = (rectifyTime, rectifyActualTime) => {
+    // 濡傛灉宸茬粡鏁存敼瀹屾垚锛屽垯涓嶈秴鏈�
+    if (rectifyActualTime) return false;
+
+    // 濡傛灉娌℃湁鏁存敼鏈熼檺锛屽垯涓嶈秴鏈�
+    if (!rectifyTime) return false;
+
+    const today = dayjs();
+    const deadline = dayjs(rectifyTime);
+
+    // 濡傛灉褰撳墠鏃ユ湡瓒呰繃鏁存敼鏈熼檺锛屽垯瓒呮湡
+    return today.isAfter(deadline, "day");
+  };
+
   // 鎼滅储鍏抽敭璇�
   const customerName = ref("");
 
@@ -202,6 +224,12 @@
   // 杩斿洖涓婁竴椤�
   const goBack = () => {
     uni.navigateBack();
+  };
+  const viewFileList = item => {
+    uni.setStorageSync("dangerInvestigationFileId", item.id);
+    uni.navigateTo({
+      url: "/pages/safeProduction/dangerInvestigation/fileList",
+    });
   };
 
   // 鏌ヨ鍒楄〃
@@ -349,5 +377,42 @@
     background: #667eea; // 淇濇寔椤甸潰鐗规湁鐨勮儗鏅壊
     box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3); // 淇濇寔椤甸潰鐗规湁鐨勯槾褰辨晥鏋�
   }
+  .action-buttons {
+    gap: 4px;
+  }
+
+  // 瓒呮湡鏈暣鏀圭殑闅愭偅鏍峰紡
+  .overdue {
+    border-left: 8rpx solid #ff4d4f;
+    background-color: rgba(255, 77, 79, 0.02);
+  }
+
+  .overdue .item-header {
+    position: relative;
+    padding-left: 20rpx;
+  }
+
+  .overdue .item-header::after {
+    content: "瓒呮湡鏈暣鏀�";
+    position: absolute;
+    top: 32rpx;
+    right: 20rpx;
+    font-size: 24rpx;
+    font-weight: 500;
+    color: #ff4d4f;
+    background-color: rgba(255, 77, 79, 0.1);
+    padding: 4rpx 16rpx;
+    border-radius: 16rpx;
+    border: 1rpx solid rgba(255, 77, 79, 0.3);
+  }
+
+  .overdue .detail-row:nth-child(7) .detail-value {
+    color: #ff4d4f;
+    font-weight: 500;
+  }
+
+  .overdue .detail-row {
+    padding-left: 20rpx;
+  }
 </style>
 

--
Gitblit v1.9.3