From fe7c43f16b81a6352b74d3cac84c891000f41659 Mon Sep 17 00:00:00 2001
From: zhangherong <571457620@qq.com>
Date: 星期二, 04 三月 2025 15:38:34 +0800
Subject: [PATCH] art: 所有设备 台账 增加点检工单Tab页签

---
 src/views/mdc/base/modules/efficiencyShiftReport/EfficiencyShiftList.vue |   68 +++++++++++++++++++++++++++-------
 1 files changed, 54 insertions(+), 14 deletions(-)

diff --git a/src/views/mdc/base/modules/efficiencyShiftReport/EfficiencyShiftList.vue b/src/views/mdc/base/modules/efficiencyShiftReport/EfficiencyShiftList.vue
index 85f3870..58abebf 100644
--- a/src/views/mdc/base/modules/efficiencyShiftReport/EfficiencyShiftList.vue
+++ b/src/views/mdc/base/modules/efficiencyShiftReport/EfficiencyShiftList.vue
@@ -16,7 +16,7 @@
                     :maxTagCount="1"
                     @change="selectChange($event,'equipmentType')"
                   >
-                    <a-select-option v-for="item in equipmentTypeList" :value="item.value">
+                    <a-select-option v-for="(item,index) in equipmentTypeList" :value="item.value" :key="index">
                       {{item.label}}
                     </a-select-option>
                   </a-select>
@@ -32,7 +32,7 @@
                     :maxTagCount="1"
                     @change="selectChange($event,'driveType')"
                   >
-                    <a-select-option v-for="item in driveTypeList" :value="item.value">
+                    <a-select-option v-for="(item,index) in driveTypeList" :value="item.value" :key="index">
                       {{item.label}}
                     </a-select-option>
                   </a-select>
@@ -77,6 +77,22 @@
             </a-row>
 
             <a-row :gutter="24" v-if="toggleSearchStatus">
+<!--              <a-col :md="5" :sm="5" :xs="5">-->
+<!--                <a-form-item label="璁惧绉嶇被">-->
+<!--                  <a-select-->
+<!--                    :value="queryParams.deviceCategory"-->
+<!--                    mode="multiple"-->
+<!--                    placeholder="璇烽�夋嫨璁惧绉嶇被"-->
+<!--                    allow-clear-->
+<!--                    :maxTagCount="1"-->
+<!--                    @change="selectChange($event,'deviceCategory')"-->
+<!--                  >-->
+<!--                    <a-select-option v-for="(item,index) in device_category_list" :value="item.value" :key="index">-->
+<!--                      {{item.label}}-->
+<!--                    </a-select-option>-->
+<!--                  </a-select>-->
+<!--                </a-form-item>-->
+<!--              </a-col>-->
               <a-col :md="5" :sm="5" :xs="5">
                 <a-form-item label="璁惧绾у埆">
                   <a-select
@@ -87,23 +103,24 @@
                     :maxTagCount="1"
                     @change="selectChange($event,'deviceLevel')"
                   >
-                    <a-select-option v-for="item in device_level_list" :value="item.value">
+                    <a-select-option v-for="(item,index) in device_level_list" :value="item.value" :key="index">
                       {{item.label}}
                     </a-select-option>
                   </a-select>
                 </a-form-item>
               </a-col>
               <a-col :md="5" :sm="5" :xs="5">
-                <a-form-item label="璁惧绉嶇被">
+                <a-form-item label="閲嶈绋嬪害">
                   <a-select
-                    :value="queryParams.deviceCategory"
+                    :value="queryParams.deviceImportanceLevel"
                     mode="multiple"
-                    placeholder="璇烽�夋嫨璁惧绉嶇被"
+                    placeholder="璇烽�夋嫨璁惧閲嶈绋嬪害"
                     allow-clear
                     :maxTagCount="1"
-                    @change="selectChange($event,'deviceCategory')"
+                    @change="selectChange($event,'deviceImportanceLevel')"
                   >
-                    <a-select-option v-for="item in device_category_list" :value="item.value">
+                    <a-select-option v-for="(item,index) in device_importance_level_list" :value="item.value"
+                                     :key="index">
                       {{item.label}}
                     </a-select-option>
                   </a-select>
@@ -141,6 +158,7 @@
           </a-form>
         </div>
       </div>
+
       <a-spin :spinning="spinning">
         <div class="container" id="EfficiencyShift" style="margin-top: 20px;">
           <div class="table2">
@@ -148,7 +166,9 @@
                    v-if="dataList.length>0">
               <thead>
               <tr class="thead fixed equipname">
-                <th class="thgu dong1 name" rowspan="2" style="min-width: 50px; max-width: 50px;width: 50px;height: 66px">鍏徃</th>
+                <th class="thgu dong1 name" rowspan="2"
+                    style="min-width: 50px; max-width: 50px;width: 50px;height: 66px">鍏徃
+                </th>
                 <th class="thgu dong2 name" rowspan="2" style="min-width: 50px; max-width: 50px;width: 50px;">杞﹂棿</th>
                 <th class="thgu dong3 name" rowspan="2" style="min-width: 50px; max-width: 50px;width: 50px;">宸ユ</th>
                 <th class="thgu dong4 name" rowspan="2" style="min-width: 100px; max-width: 100px;width: 100px;">璁惧缂栧彿
@@ -157,7 +177,9 @@
                 </th>
                 <th class="thgu dong6 name" rowspan="2" style="min-width: 100px; max-width: 100px;width: 100px;">璁惧绫诲瀷
                 </th>
-                <th class="thgu dong7 name" rowspan="2" style="min-width: 100px; max-width: 100px;width: 100px;">鐝</th>
+                <th class="thgu dong7 name" rowspan="2" style="min-width: 120px; max-width: 120px;width: 120px;">璁惧鍨嬪彿
+                </th>
+                <th class="thgu dong8 name" rowspan="2" style="min-width: 100px; max-width: 100px;width: 100px;">鐝</th>
                 <template v-for="(tableHead, index) in tableHeads">
                   <th class="timeth" :colspan="checkedList.length">{{tableHead}}</th>
                 </template>
@@ -199,15 +221,18 @@
                     {{item.equipmentName}}
                   </td>
                   <td class="tdgu5  kaitou">{{item.equipmentType}}</td>
-                  <td class="tdgu6  kaitou">{{item.shiftSubName}}</td>
+                  <td class="tdgu6 kaitou">{{item.equipmentModel}}</td>
+                  <td class="tdgu7  kaitou">{{item.shiftSubName}}</td>
                 </template>
 
                 <template v-else>
-                  <td colspan="7" class="tdgu kaitou">{{item.level1}}</td>
+                  <td colspan="8" class="tdgu kaitou">{{item.level1}}</td>
                 </template>
                 <!--<td>{{item.tierType}}</td>-->
                 <template v-for="(tableHead, index) in item.dataList">
-                  <td :style="{background:tableHead.color }" v-if="checkedList.indexOf('lyl') > -1">{{tableHead.utilizationRate | numFilter}}</td>
+                  <td :style="{background:tableHead.color }" v-if="checkedList.indexOf('lyl') > -1">
+                    {{tableHead.utilizationRate | numFilter}}
+                  </td>
                   <td :style="{background:tableHead.color }" v-if="checkedList.indexOf('kjsj') > -1">
                     {{tableHead.openLong | getFormattedTime}}
                   </td>
@@ -254,13 +279,15 @@
         driveTypeList: [],
         device_level_list: [],
         device_category_list: [],
+        device_importance_level_list: [],
         identifying: [],
         queryParam: {},
         queryParams: {
           equipmentType: [],
           driveType: [],
           deviceLevel: [],
-          deviceCategory: []
+          deviceCategory: [],
+          deviceImportanceLevel: []
         },
         queryParamEquip: {},
         queryParamPeople: {},
@@ -305,6 +332,7 @@
       this.getDriveTypeByApi()
       this.initDictData('device_level')
       this.initDictData('device_category')
+      this.initDictData('device_importance_level')
     },
     mounted() {
       window.addEventListener('resize', this.handleWindowResize)
@@ -720,6 +748,12 @@
     z-index: 2;
   }
 
+  .table tbody tr .tdgu7 {
+    position: sticky;
+    left: 632px;
+    z-index: 2;
+  }
+
   .table2 thead tr .timeth,
   .table2 thead tr .thgu {
     position: sticky;
@@ -772,6 +806,12 @@
     left: 512px;
   }
 
+  .table2 thead .equipname .dong8 {
+    z-index: 6;
+    left: 632px;
+  }
+
+
   #EfficiencyShift {
     overflow: hidden;
   }

--
Gitblit v1.9.3