From 4dca88c6433e3b3e370dce4ba139a3fd0287c020 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期一, 02 二月 2026 16:32:48 +0800
Subject: [PATCH] 安全规程与资质管理、危险源台账模块开发

---
 src/pages/index.vue |  264 ++++++++++++++++++++++++++--------------------------
 1 files changed, 130 insertions(+), 134 deletions(-)

diff --git a/src/pages/index.vue b/src/pages/index.vue
index f39559a..6be8435 100644
--- a/src/pages/index.vue
+++ b/src/pages/index.vue
@@ -38,54 +38,54 @@
     <!--			</view>-->
     <!--		</view>-->
     <!-- 钀ラ攢绠$悊妯″潡 -->
-    <!--    <view class="common-module marketing-module">-->
-    <!--      <view class="module-header">-->
-    <!--        <view class="module-title-container">-->
-    <!--          <text class="module-title">钀ラ攢绠$悊</text>-->
-    <!--        </view>-->
-    <!--      </view>-->
-    <!--      <view class="module-content">-->
-    <!--        <up-grid :border="false"-->
-    <!--                 col="4">-->
-    <!--          <up-grid-item v-for="(item, index) in marketingItems"-->
-    <!--                        :key="index"-->
-    <!--                        @click="handleCommonItemClick(item)">-->
-    <!--            <view class="icon-container"-->
-    <!--                  :style="{ background: item.bgColor }">-->
-    <!--              <up-icon :name="item.icon"-->
-    <!--                       :size="58"-->
-    <!--                       color="#ffffff"></up-icon>-->
-    <!--            </view>-->
-    <!--            <text class="item-label">{{item.label}}</text>-->
-    <!--          </up-grid-item>-->
-    <!--        </up-grid>-->
-    <!--      </view>-->
-    <!--    </view>-->
+    <view class="common-module marketing-module">
+      <view class="module-header">
+        <view class="module-title-container">
+          <text class="module-title">钀ラ攢绠$悊</text>
+        </view>
+      </view>
+      <view class="module-content">
+        <up-grid :border="false"
+                 col="4">
+          <up-grid-item v-for="(item, index) in marketingItems"
+                        :key="index"
+                        @click="handleCommonItemClick(item)">
+            <view class="icon-container"
+                  :style="{ background: item.bgColor }">
+              <up-icon :name="item.icon"
+                       :size="58"
+                       color="#ffffff"></up-icon>
+            </view>
+            <text class="item-label">{{item.label}}</text>
+          </up-grid-item>
+        </up-grid>
+      </view>
+    </view>
     <!--    &lt;!&ndash; 閲囪喘绠$悊妯″潡 &ndash;&gt;-->
-    <!--    <view class="common-module purchase-module">-->
-    <!--      <view class="module-header">-->
-    <!--        <view class="module-title-container">-->
-    <!--          <text class="module-title">閲囪喘绠$悊</text>-->
-    <!--        </view>-->
-    <!--      </view>-->
-    <!--      <view class="module-content">-->
-    <!--        <up-grid :border="false"-->
-    <!--                 col="4">-->
-    <!--          <up-grid-item v-for="(item, index) in purchaseItems"-->
-    <!--                        :key="index"-->
-    <!--                        @click="handleCommonItemClick(item)">-->
-    <!--            <view class="icon-container"-->
-    <!--                  :style="{ background: item.bgColor }">-->
-    <!--              <up-icon :name="item.icon"-->
-    <!--                       :size="58"-->
-    <!--                       color="#ffffff"></up-icon>-->
-    <!--            </view>-->
-    <!--            <text class="item-label">{{item.label}}</text>-->
-    <!--          </up-grid-item>-->
-    <!--        </up-grid>-->
-    <!--      </view>-->
-    <!--    </view>-->
-    <!--    &lt;!&ndash; 鍗忓悓鍔炲叕妯″潡 &ndash;&gt;-->
+    <view class="common-module purchase-module">
+      <view class="module-header">
+        <view class="module-title-container">
+          <text class="module-title">閲囪喘绠$悊</text>
+        </view>
+      </view>
+      <view class="module-content">
+        <up-grid :border="false"
+                 col="4">
+          <up-grid-item v-for="(item, index) in purchaseItems"
+                        :key="index"
+                        @click="handleCommonItemClick(item)">
+            <view class="icon-container"
+                  :style="{ background: item.bgColor }">
+              <up-icon :name="item.icon"
+                       :size="58"
+                       color="#ffffff"></up-icon>
+            </view>
+            <text class="item-label">{{item.label}}</text>
+          </up-grid-item>
+        </up-grid>
+      </view>
+    </view>
+    <!-- &lt;!&ndash; 鍗忓悓鍔炲叕妯″潡 &ndash;&gt; -->
     <view class="common-module collaboration-module">
       <view class="module-header">
         <view class="module-title-container">
@@ -96,6 +96,30 @@
         <up-grid :border="false"
                  col="4">
           <up-grid-item v-for="(item, index) in collaborationItems"
+                        :key="index"
+                        @click="handleCommonItemClick(item)">
+            <view class="icon-container"
+                  :style="{ background: item.bgColor }">
+              <up-icon :name="item.icon"
+                       :size="58"
+                       color="#ffffff"></up-icon>
+            </view>
+            <text class="item-label">{{item.label}}</text>
+          </up-grid-item>
+        </up-grid>
+      </view>
+    </view>
+    <!-- 瀹夊叏鐢熶骇妯″潡 -->
+    <view class="common-module collaboration-module">
+      <view class="module-header">
+        <view class="module-title-container">
+          <text class="module-title">瀹夊叏鐢熶骇</text>
+        </view>
+      </view>
+      <view class="module-content">
+        <up-grid :border="false"
+                 col="4">
+          <up-grid-item v-for="(item, index) in safetyItems"
                         :key="index"
                         @click="handleCommonItemClick(item)">
             <view class="icon-container"
@@ -163,29 +187,29 @@
       </view>
     </view>
     <!-- 璁惧绠$悊妯″潡 -->
-    <!--    <view class="common-module equipment-module">-->
-    <!--      <view class="module-header">-->
-    <!--        <view class="module-title-container">-->
-    <!--          <text class="module-title">璁惧绠$悊</text>-->
-    <!--        </view>-->
-    <!--      </view>-->
-    <!--      <view class="module-content">-->
-    <!--        <up-grid :border="false"-->
-    <!--                 col="4">-->
-    <!--          <up-grid-item v-for="(item, index) in equipmentItems"-->
-    <!--                        :key="index"-->
-    <!--                        @click="handleCommonItemClick(item)">-->
-    <!--            <view class="icon-container"-->
-    <!--                  :style="{ background: item.bgColor }">-->
-    <!--              <up-icon :name="item.icon"-->
-    <!--                       :size="58"-->
-    <!--                       color="#ffffff"></up-icon>-->
-    <!--            </view>-->
-    <!--            <text class="item-label">{{item.label}}</text>-->
-    <!--          </up-grid-item>-->
-    <!--        </up-grid>-->
-    <!--      </view>-->
-    <!--    </view>-->
+    <view class="common-module equipment-module">
+      <view class="module-header">
+        <view class="module-title-container">
+          <text class="module-title">璁惧绠$悊</text>
+        </view>
+      </view>
+      <view class="module-content">
+        <up-grid :border="false"
+                 col="4">
+          <up-grid-item v-for="(item, index) in equipmentItems"
+                        :key="index"
+                        @click="handleCommonItemClick(item)">
+            <view class="icon-container"
+                  :style="{ background: item.bgColor }">
+              <up-icon :name="item.icon"
+                       :size="58"
+                       color="#ffffff"></up-icon>
+            </view>
+            <text class="item-label">{{item.label}}</text>
+          </up-grid-item>
+        </up-grid>
+      </view>
+    </view>
   </view>
 </template>
 
@@ -275,91 +299,44 @@
       label: "渚涘簲鍟嗗線鏉�",
     },
   ]);
-
+  const safetyItems = reactive([
+    {
+      icon: "/static/images/icon/caigoutaizhang@2x.png",
+      label: "瑙勭▼璧勮川",
+    },
+    {
+      icon: "/static/images/icon/caigoutaizhang@2x.png",
+      label: "鍗遍櫓婧愮鐞�",
+    },
+  ]);
   // 鍗忓悓鍔炲叕鍔熻兘鏁版嵁
   const collaborationItems = reactive([
-    // {
-    //   icon: "/static/images/icon/gongchuguanli@2x.png",
-    //   label: "鍏嚭绠$悊",
-    // },
-    // {
-    //   icon: "/static/images/icon/qingjiaguanli@2x.png",
-    //   label: "璇峰亣绠$悊",
-    // },
-    // {
-    //   icon: "/static/images/icon/chuchaiguanli@2x.png",
-    //   label: "鍑哄樊绠$悊",
-    // },
     {
-      icon: "/static/images/icon/chuchaiguanli@2x.png",
+      icon: "/static/images/icon/gongchuguanli@2x.png",
       label: "鑰冨嫟绠$悊",
     },
     {
-      icon: "/static/images/icon/chuchaiguanli@2x.png",
+      icon: "/static/images/icon/baoxiaoguanli.png",
       label: "璐㈠姟绠$悊",
     },
-    // {
-    //   icon: "/static/images/icon/chuchaiguanli@2x.png",
-    //   label: "鎶ラ攢绠$悊",
-    // },
-    // {
-    //   icon: "/static/images/icon/chuchaiguanli@2x.png",
-    //   label: "閲囪喘绠$悊",
-    // },
-    // {
-    //   icon: "/static/images/icon/chuchaiguanli@2x.png",
-    //   label: "鎶ヤ环绠$悊",
-    // },
-    // {
-    //   icon: "/static/images/icon/chuchaiguanli@2x.png",
-    //   label: "鍑哄簱绠$悊",
-    // },
     {
-      icon: "/static/images/icon/chuchaiguanli@2x.png",
+      icon: "/static/images/icon/huiyiliebiao@2x.png",
       label: "浼氳绠$悊",
     },
-    // {
-    //   icon: "/static/images/icon/qingjiaguanli@2x.png",
-    //   label: "浼氳璁剧疆",
-    // },
-    // {
-    //   icon: "/static/images/icon/qingjiaguanli@2x.png",
-    //   label: "浼氳鍒楄〃",
-    // },
-    // {
-    //   icon: "/static/images/icon/qingjiaguanli@2x.png",
-    //   label: "浼氳鐢宠",
-    // },
-    // {
-    //   icon: "/static/images/icon/qingjiaguanli@2x.png",
-    //   label: "浼氳瀹℃壒",
-    // },
-    // {
-    //   icon: "/static/images/icon/qingjiaguanli@2x.png",
-    //   label: "浼氳鍙戝竷",
-    // },
-    // {
-    //   icon: "/static/images/icon/qingjiaguanli@2x.png",
-    //   label: "浼氳鎬荤粨",
-    // },
-    // {
-    //   icon: "/static/images/icon/qingjiaguanli@2x.png",
-    //   label: "浼氳鐪嬫澘",
-    // },
     {
-      icon: "/static/images/icon/qingjiaguanli@2x.png",
+      icon: "/static/images/icon/tongzhigonggao@2x.png",
       label: "閫氱煡鍏憡",
     },
     {
-      icon: "/static/images/icon/qingjiaguanli@2x.png",
+      icon: "/static/images/icon/zhishiku@2x.png",
       label: "鐭ヨ瘑搴�",
     },
     {
-      icon: "/static/images/icon/qingjiaguanli@2x.png",
+      icon: "/static/images/icon/yongyinguanli@2x.png",
       label: "鐢ㄥ嵃绠$悊",
     },
     {
-      icon: "/static/images/icon/qingjiaguanli@2x.png",
+      icon: "/static/images/icon/guizhangzhidu@2x.png",
       label: "瑙勭珷鍒跺害",
     },
     // {
@@ -407,6 +384,10 @@
     // 	icon: '/static/images/icon/shebeitaizhang@2x.png',
     // 	label: '璁惧鍙拌处',
     // },
+    {
+      icon: "/static/images/icon/shbeibaoxiu@2x.png",
+      label: "杩愯绠$悊",
+    },
     {
       icon: "/static/images/icon/shbeibaoxiu@2x.png",
       label: "璁惧鎶ヤ慨",
@@ -649,6 +630,11 @@
           url: "/pages/equipmentManagement/ledger/index",
         });
         break;
+      case "杩愯绠$悊":
+        uni.navigateTo({
+          url: "/pages/equipmentManagement/runManagement/index",
+        });
+        break;
       case "璁惧鎶ヤ慨":
         uni.navigateTo({
           url: "/pages/equipmentManagement/repair/index",
@@ -684,6 +670,16 @@
           url: "/pages/equipmentManagement/verification/index",
         });
         break;
+      case "瑙勭▼璧勮川":
+        uni.navigateTo({
+          url: "/pages/safeProduction/safeQualifications/index",
+        });
+        break;
+      case "鍗遍櫓婧愮鐞�":
+        uni.navigateTo({
+          url: "/pages/safeProduction/hazardSourceLedger/index",
+        });
+        break;
       default:
         uni.showToast({
           title: `鐐瑰嚮浜�${item.label}`,

--
Gitblit v1.9.3