From f29e2aae98bbb52672b67bff99556f3cf64d1bce Mon Sep 17 00:00:00 2001
From: baoshiwei <baoshiwei@shlanbao.cn>
Date: 星期四, 26 六月 2025 15:45:40 +0800
Subject: [PATCH] feat(eims): 优化设备管理功能和界面

---
 eims-ui-mobile/src/pages/maint/maint-st.vue |   22 +++++++++++++++-------
 1 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/eims-ui-mobile/src/pages/maint/maint-st.vue b/eims-ui-mobile/src/pages/maint/maint-st.vue
index 5e01de6..26848fd 100644
--- a/eims-ui-mobile/src/pages/maint/maint-st.vue
+++ b/eims-ui-mobile/src/pages/maint/maint-st.vue
@@ -67,12 +67,12 @@
             <view class="text-color-gray text-sm mt-2 flex">
               <text>鐘舵�侊細</text>
               <template v-if="item.status === '1'">
-                <wd-icon class="icon-color-success" name="check-outline" size="34rpx"></wd-icon>
-                <text class="ml-1">宸插畬鎴�</text>
+                <wd-icon class="icon-color-warning" name="check-outline" size="34rpx"></wd-icon>
+                <text class="ml-1">寰呯‘璁�</text>
               </template>
               <template v-else-if="item.status === '2'">
-                <wd-icon class="icon-color-warning" name="check-outline" size="34rpx"></wd-icon>
-                <text class="ml-1">宸茬‘璁�</text>
+                <wd-icon class="icon-color-success" name="check-outline" size="34rpx"></wd-icon>
+                <text class="ml-1">宸插畬鎴�</text>
               </template>
               <template v-else>
                 <wd-icon class="icon-color-base" name="detection" size="40rpx"></wd-icon>
@@ -118,13 +118,21 @@
 
   const now = dayjs()
   const planDate = dayjs(planTime)
-  const diffDays = planDate.diff(now, 'day')
+
+  // 鑾峰彇璁″垝鏃ユ湡鎵�鍦ㄦ湀浠界殑鏈�鍚庝竴澶�
+  const planMonthEnd = planDate.endOf('month')
+
+  // 璁$畻褰撳墠鏃ユ湡涓庤鍒掓湀鏈堝簳鐨勫樊鍊硷紙澶╂暟锛�
+  const diffDays = planMonthEnd.diff(now, 'day')
 
   if (diffDays < 0) {
-    // 瓒呰繃璁″垝鏃堕棿锛岀孩鑹茶儗鏅�
+    // 宸茬粡杩囦簡璁″垝鏈堢殑鏈堝簳锛岀孩鑹茶儗鏅�
     return 'card-overdue'
   } else if (diffDays <= 3) {
-    // 璺濈璁″垝鏃堕棿涓夊ぉ浠ュ唴锛岄粍鑹茶儗鏅�
+    // 璺濈璁″垝鏈堟湀搴�3澶╀互鍐咃紝绾㈣壊鑳屾櫙
+    return 'card-overdue'
+  } else if (diffDays <= 10) {
+    // 璺濈璁″垝鏈堟湀搴�10澶╀互鍐咃紝榛勮壊鑳屾櫙
     return 'card-urgent'
   } else {
     // 姝e父鐘舵�侊紝鑳屾櫙棰滆壊涓嶅彉

--
Gitblit v1.9.3