From d286ea98663537e2ff4bd477da5b4e040ee5fbdb Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期一, 09 三月 2026 17:46:03 +0800
Subject: [PATCH] 附件上传路径和查看路径修改

---
 src/pages/safeProduction/safeQualifications/index.vue |   42 ++++++++++++++++++++++++++++++++----------
 1 files changed, 32 insertions(+), 10 deletions(-)

diff --git a/src/pages/safeProduction/safeQualifications/index.vue b/src/pages/safeProduction/safeQualifications/index.vue
index 4014791..1cdc444 100644
--- a/src/pages/safeProduction/safeQualifications/index.vue
+++ b/src/pages/safeProduction/safeQualifications/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="{ 'expiring-soon': isExpiringSoon(item.effectiveTime) }">
           <view class="item-header">
             <view class="item-left">
               <view class="document-icon">
@@ -68,7 +69,7 @@
                       @click="viewDetail(item)">
               鏌ョ湅璇︽儏
             </u-button>
-            <u-button type="primary"
+            <!-- <u-button type="primary"
                       size="small"
                       class="action-btn"
                       @click="editVisit(item)">
@@ -79,7 +80,7 @@
                       class="action-btn"
                       @click="deleteVisit(item)">
               鍒犻櫎
-            </u-button>
+            </u-button> -->
           </view>
         </view>
       </view>
@@ -89,12 +90,12 @@
       <text>鏆傛棤鎷滆璁板綍</text>
     </view>
     <!-- 娴姩鏂板鎸夐挳 -->
-    <view class="fab-button"
+    <!-- <view class="fab-button"
           @click="addVisit">
       <up-icon name="plus"
                size="24"
                color="#ffffff"></up-icon>
-    </view>
+    </view> -->
   </view>
 </template>
 
@@ -105,12 +106,7 @@
   import { delCustomer } from "@/api/cooperativeOffice/clientVisit";
   import {
     qualificationsListPage,
-    safeCertificationAdd,
-    safeCertificationUpdate,
     safeCertificationDel,
-    fileListPage,
-    safeCertificationFileAdd,
-    safeCertificationFileDel,
   } from "@/api/safeProduction/safeQualifications";
 
   import useUserStore from "@/store/modules/user";
@@ -127,6 +123,17 @@
   import dayjs from "dayjs";
 
   const userStore = useUserStore();
+
+  // 妫�鏌ヨ祫璐ㄦ槸鍚﹀嵆灏嗗埌鏈燂紙鍒版湡鍓�15澶╋級
+  const isExpiringSoon = effectiveTime => {
+    if (!effectiveTime) return false;
+
+    const today = dayjs();
+    const expireDate = dayjs(effectiveTime);
+    const daysDiff = expireDate.diff(today, "day");
+
+    return daysDiff >= 0 && daysDiff <= 15;
+  };
 
   // 鎼滅储鍏抽敭璇�
   const customerName = ref("");
@@ -259,5 +266,20 @@
     background: #667eea; // 淇濇寔椤甸潰鐗规湁鐨勮儗鏅壊
     box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3); // 淇濇寔椤甸潰鐗规湁鐨勯槾褰辨晥鏋�
   }
+
+  // 鍗冲皢鍒版湡鐨勮祫璐ㄥ崱鐗囨牱寮�
+  .expiring-soon {
+    border: 2rpx solid #ff4d4f;
+    box-shadow: 0 2rpx 16rpx rgba(255, 77, 79, 0.2);
+  }
+
+  .expiring-soon .item-header {
+    background-color: rgba(255, 77, 79, 0.05);
+  }
+
+  .expiring-soon .detail-row:last-child .detail-value {
+    color: #ff4d4f;
+    font-weight: 500;
+  }
 </style>
 

--
Gitblit v1.9.3