From 793989f6eb4e39f4b1f47931fdeefb4a12385424 Mon Sep 17 00:00:00 2001
From: baoshiwei <baoshiwei@shlanbao.cn>
Date: 星期三, 30 七月 2025 16:46:32 +0800
Subject: [PATCH] refactor(eims): 优化设备数据定时任务和报告服务

---
 eims-ui-mobile/src/pages/spare/index.vue |   69 ++++++++++++++++++++++++++++++++--
 1 files changed, 65 insertions(+), 4 deletions(-)

diff --git a/eims-ui-mobile/src/pages/spare/index.vue b/eims-ui-mobile/src/pages/spare/index.vue
index 54478e6..0dcec78 100644
--- a/eims-ui-mobile/src/pages/spare/index.vue
+++ b/eims-ui-mobile/src/pages/spare/index.vue
@@ -1,20 +1,81 @@
 <route lang="json5" type="page">
 {
   layout: 'tabbar',
+  needLogin: true,
   style: {
-    navigationBarTitleText: 'spare',
+    navigationBarTitleText: '澶囦欢',
   },
 }
 </route>
 
 <template>
-  <view class="pt-40 text-xl text-center text-green-500">澶囦欢</view>
+  <view class="bg-base">
+    <view class="flex px-4 py-3 bg-white">
+      <div class="box-border h-[150rpx] flex-1 bg-tag rounded-sm mr-2 px-2 py-2">
+        <wd-count-to
+          :startVal="0"
+          :endVal="0"
+          :fontSize="24"
+          color="text-color-base"
+        ></wd-count-to>
+        <view class="text-color-gray mt-1">搴撳瓨涓嶈冻</view>
+      </div>
+      <div class="box-border h-[150rpx] flex-1 bg-tag rounded-sm mr-2 px-2 py-2">
+        <wd-count-to
+          :startVal="0"
+          :endVal="0"
+          :fontSize="24"
+          color="text-color-base"
+        ></wd-count-to>
+        <view class="text-color-gray mt-1">搴撳瓨杩囬噺</view>
+      </div>
+    </view>
+    <wd-cell-group border>
+      <wd-cell
+        title="澶囦欢鍒楄〃"
+        is-link
+        to="/pages/spare/spare-list"
+        icon="list"
+        custom-icon-class="icon-color-base"
+      />
+      <wd-cell
+        title="娣诲姞澶囦欢"
+        is-link
+        icon="add"
+        custom-icon-class="icon-color-base"
+        @click="handleInfo"
+      />
+    </wd-cell-group>
+    <wd-cell-group border class="mt-2">
+      <wd-cell
+        title="娣诲姞鍑哄簱"
+        is-link
+        icon="add-circle"
+        custom-icon-class="icon-color-base"
+        @click="handleInfo"
+      />
+      <wd-cell
+        title="娣诲姞鍏ュ簱"
+        is-link
+        icon="add-circle"
+        custom-icon-class="icon-color-base"
+        @click="handleInfo"
+      />
+    </wd-cell-group>
+  </view>
 </template>
 
 <script lang="ts" setup>
-//
+function handleInfo() {
+  uni.showToast({
+    title: '鍔熻兘寮�鍙戜腑',
+    icon: 'none',
+  })
+}
 </script>
 
 <style lang="scss" scoped>
-//
+.bg-tag {
+  background: #f5f8ff;
+}
 </style>

--
Gitblit v1.9.3