From e8af9e2a6d0b509a807a6bb22a6efbfb3678be6d Mon Sep 17 00:00:00 2001
From: qushaowei <qushaowei@163.com>
Date: 星期二, 10 六月 2025 17:27:38 +0800
Subject: [PATCH] 设备维修修改

---
 src/views/eam/EquipmentListOfAll.vue |  227 ++++++++++++++++++++++++++++++++++++--------------------
 1 files changed, 144 insertions(+), 83 deletions(-)

diff --git a/src/views/eam/EquipmentListOfAll.vue b/src/views/eam/EquipmentListOfAll.vue
index 14f6c32..68edb9d 100644
--- a/src/views/eam/EquipmentListOfAll.vue
+++ b/src/views/eam/EquipmentListOfAll.vue
@@ -13,10 +13,12 @@
           :gutter="24"
           style="margin-bottom: 1%;"
         >
-          <a-col :xl='6'
-                :lg='7'
-                :md='8'
-                :sm='24'>
+          <a-col
+            :xl='6'
+            :lg='7'
+            :md='8'
+            :sm='24'
+          >
             <a-form-item
               label="缁熶竴缂栫爜缇�"
               :labelCol="labelCol"
@@ -29,26 +31,30 @@
               ></a-textarea>
             </a-form-item>
           </a-col>
-          <a-col :xl='6'
-                 :lg='7'
-                 :md='8'
-                 :sm='24'>
+          <a-col
+            :xl='6'
+            :lg='7'
+            :md='8'
+            :sm='24'
+          >
             <a-form-item
               label="璁惧鎵�灞炲垎绫�"
               :labelCol="labelCol"
               :wrapperCol="wrapperCol"
             >
               <j-dict-select-tag
-                dictCode="mom_eam_equipment_category,name,id,del_flag!='1'"
+                :dictCode="caytegoryParam==='all'?'mom_eam_equipment_category,name,id,del_flag!=\'1\'':'mom_eam_equipment_category,name,id,equipment_category_uda1 = '+'\''+caytegoryParam+'\''"
                 placeholder="璇疯緭鍏ユ悳绱㈡潯浠跺苟閫夋嫨"
                 v-model="queryParam.equipmentCategoryId"
               />
             </a-form-item>
           </a-col>
-          <a-col :xl='6'
-                 :lg='7'
-                 :md='8'
-                 :sm='24'>
+          <a-col
+            :xl='6'
+            :lg='7'
+            :md='8'
+            :sm='24'
+          >
             <a-form-item
               :labelCol="labelCol"
               :wrapperCol="wrapperCol"
@@ -60,10 +66,12 @@
               ></a-input>
             </a-form-item>
           </a-col>
-          <a-col :xl='6'
-                 :lg='7'
-                 :md='8'
-                 :sm='24'>
+          <a-col
+            :xl='6'
+            :lg='7'
+            :md='8'
+            :sm='24'
+          >
             <a-form-item
               :labelCol="labelCol"
               :wrapperCol="wrapperCol"
@@ -75,10 +83,12 @@
               ></a-input>
             </a-form-item>
           </a-col>
-          <a-col :xl='6'
-                 :lg='7'
-                 :md='8'
-                 :sm='24'>
+          <a-col
+            :xl='6'
+            :lg='7'
+            :md='8'
+            :sm='24'
+          >
             <a-form-item
               label="鍨嬪彿"
               :labelCol="labelCol"
@@ -91,10 +101,12 @@
             </a-form-item>
           </a-col>
 
-          <a-col :xl='6'
-                 :lg='7'
-                 :md='8'
-                 :sm='24'>
+          <a-col
+            :xl='6'
+            :lg='7'
+            :md='8'
+            :sm='24'
+          >
             <a-form-item
               label="宸ュ尯"
               :labelCol="labelCol"
@@ -124,10 +136,12 @@
               />
             </a-form-item>
           </a-col> -->
-          <a-col :xl='6'
-                 :lg='7'
-                 :md='8'
-                 :sm='24'>
+          <a-col
+            :xl='6'
+            :lg='7'
+            :md='8'
+            :sm='24'
+          >
             <a-form-item
               label="缁存姢閮ㄩ棬"
               :labelCol="labelCol"
@@ -148,10 +162,12 @@
               />
             </a-form-item>
           </a-col>
-          <a-col :xl='6'
-                 :lg='7'
-                 :md='8'
-                 :sm='24'>
+          <a-col
+            :xl='6'
+            :lg='7'
+            :md='8'
+            :sm='24'
+          >
             <a-form-item
               label="浣跨敤閮ㄩ棬"
               :labelCol="labelCol"
@@ -172,10 +188,12 @@
               />
             </a-form-item>
           </a-col>
-          <a-col :xl='6'
-                 :lg='7'
-                 :md='8'
-                 :sm='24'>
+          <a-col
+            :xl='6'
+            :lg='7'
+            :md='8'
+            :sm='24'
+          >
             <a-form-item
               label="鏄惁鐢熶骇绾胯澶�"
               :labelCol="labelCol"
@@ -190,10 +208,12 @@
               />
             </a-form-item>
           </a-col>
-          <a-col :xl='6'
-                 :lg='7'
-                 :md='8'
-                 :sm='24'>
+          <a-col
+            :xl='6'
+            :lg='7'
+            :md='8'
+            :sm='24'
+          >
             <a-form-item
               label="ABC鏍囪瘑"
               :labelCol="labelCol"
@@ -208,10 +228,12 @@
               />
             </a-form-item>
           </a-col>
-          <a-col :xl='6'
-                 :lg='7'
-                 :md='8'
-                 :sm='24'>
+          <a-col
+            :xl='6'
+            :lg='7'
+            :md='8'
+            :sm='24'
+          >
             <a-form-item
               label="鎶�鏈姸鎬�"
               :labelCol="labelCol"
@@ -226,10 +248,12 @@
               />
             </a-form-item>
           </a-col>
-          <a-col :xl='6'
-                 :lg='7'
-                 :md='8'
-                 :sm='24'>
+          <a-col
+            :xl='6'
+            :lg='7'
+            :md='8'
+            :sm='24'
+          >
             <a-form-item
               label="璁惧鐘舵��"
               :labelCol="labelCol"
@@ -244,10 +268,12 @@
               />
             </a-form-item>
           </a-col>
-          <a-col :xl='6'
-                 :lg='7'
-                 :md='8'
-                 :sm='24'>
+          <a-col
+            :xl='6'
+            :lg='7'
+            :md='8'
+            :sm='24'
+          >
             <a-form-item
               label="鍏抽敭璁惧鏍囪瘑"
               :labelCol="labelCol"
@@ -262,10 +288,12 @@
               />
             </a-form-item>
           </a-col>
-          <a-col :xl='6'
-                 :lg='7'
-                 :md='8'
-                 :sm='24'>
+          <a-col
+            :xl='6'
+            :lg='7'
+            :md='8'
+            :sm='24'
+          >
             <a-form-model-item
               label="璐ㄤ繚寮�濮嬫棩鏈�"
               :labelCol="labelCol"
@@ -279,10 +307,12 @@
               ></j-date>
             </a-form-model-item>
           </a-col>
-          <a-col :xl='6'
-                 :lg='7'
-                 :md='8'
-                 :sm='24'>
+          <a-col
+            :xl='6'
+            :lg='7'
+            :md='8'
+            :sm='24'
+          >
             <a-form-model-item
               label="璐ㄤ繚缁撴潫鏃ユ湡"
               :labelCol="labelCol"
@@ -297,10 +327,12 @@
             </a-form-model-item>
           </a-col>
           <!-- 鎸夌淮淇彮缁勬绱� -->
-          <a-col :xl='6'
-                 :lg='7'
-                 :md='8'
-                 :sm='24'>
+          <a-col
+            :xl='6'
+            :lg='7'
+            :md='8'
+            :sm='24'
+          >
             <a-form-item
               label="缁翠慨鐝粍"
               :labelCol="labelCol"
@@ -686,7 +718,6 @@
       <a-tab-pane
         tab="璁惧鏂囨。"
         key="1"
-        forceRender
       >
         <EquipmentDocumentList :mainId="selectedMainId" />
       </a-tab-pane>
@@ -713,28 +744,24 @@
       <a-tab-pane
         tab="澶囦欢"
         key="4"
-        forceRender
       >
         <EquipmentSpareParts :mainId="selectedMainId" />
       </a-tab-pane>
       <a-tab-pane
         tab="ABC鏍囪瘑鍙樻洿璁板綍"
         key="5"
-        forceRender
       >
         <equipment-update-ABC-list :mainId="selectedMainId" />
       </a-tab-pane>
       <a-tab-pane
         tab="璐ㄤ繚鏈熷彉鏇�"
         key="6"
-        forceRender
       >
         <equipment-update-warranty-list :mainId="selectedMainId" />
       </a-tab-pane>
       <a-tab-pane
         tab="鐐规鏍囧噯"
         key="7"
-        forceRender
       >
         <daily-maintenance-list :mainId="selectedMainId"></daily-maintenance-list>
       </a-tab-pane>
@@ -742,30 +769,44 @@
       <a-tab-pane
         tab="浜屼繚鏍囧噯"
         key="8"
-        forceRender
       >
         <second-maintenance-list :mainId="selectedMainId"></second-maintenance-list>
       </a-tab-pane>
       <a-tab-pane
         tab="涓変繚鏍囧噯"
         key="9"
-        forceRender
       >
         <third-maintenance-list :mainId="selectedMainId"></third-maintenance-list>
       </a-tab-pane>
       <a-tab-pane
         tab="鐐规宸ュ崟"
         key="10"
-        forceRender
       >
         <daily-inspection-order-list-component :mainId="selectedMainId"></daily-inspection-order-list-component>
       </a-tab-pane>
       <a-tab-pane
         tab="浜屼繚宸ュ崟"
         key="11"
-        forceRender
       >
         <daily-maintenance-order-list-component :mainId="selectedMainId"></daily-maintenance-order-list-component>
+      </a-tab-pane>
+      <a-tab-pane
+        tab="涓変繚宸ュ崟"
+        key="12"
+      >
+        <daily3-maintenance-order-list-component :mainId="selectedMainId"></daily3-maintenance-order-list-component>
+      </a-tab-pane>
+      <a-tab-pane
+        tab="缁翠慨宸ュ崟"
+        key="13"
+      >
+        <repair-order-list-component :mainId="selectedMainId"></repair-order-list-component>
+      </a-tab-pane>
+      <a-tab-pane
+        tab="鎶�鏈姸鎬侀壌瀹�"
+        key="14"
+      >
+        <equipment-calibration-order-component :mainId="selectedMainId"></equipment-calibration-order-component>
       </a-tab-pane>
     </a-tabs>
     <equipment-modal
@@ -825,6 +866,9 @@
 import KeyEquipmentUpdateModel from './modules/equipmentNew/edit/KeyEquipmentUpdateModel.vue'
 import DailyInspectionOrderListComponent from './modules/equipmentNew/DailyInspectionOrderListComponent.vue'
 import DailyMaintenanceOrderListComponent from './modules/equipmentNew/DailyMaintenanceOrderListComponent.vue'
+import Daily3MaintenanceOrderListComponent from './modules/equipmentNew/Daily3MaintenanceOrderListComponent.vue'
+import RepairOrderListComponent from './modules/equipmentNew/RepairOrderListComponent.vue'
+import EquipmentCalibrationOrderComponent from './modules/equipmentNew/EquipmentCalibrationOrderComponent.vue'
 
 export default {
   name: "EquipmentList",
@@ -853,11 +897,20 @@
     JEllipsis,
     DailyInspectionOrderListComponent,
     DailyMaintenanceOrderListComponent,
+    Daily3MaintenanceOrderListComponent,
+    RepairOrderListComponent,
+    EquipmentCalibrationOrderComponent,
+  },
+  props: {
+    caytegoryParam: {
+      type: String,
+      default: 'all',
+      required: true,
+    },
   },
   data() {
     return {
       description: '璁惧鍙拌处绠$悊椤甸潰',
-      caytegoryParam: 'all',
       // 琛ㄥご
       columns: [
         {
@@ -938,7 +991,7 @@
         {
           title: '鍐峰嵈绯荤粺',
           align: "center",
-          dataIndex: 'coolingSystem',
+          dataIndex: 'coolingSystem_dictText',
         },
         {
           title: '鐏伀鍣�',
@@ -953,7 +1006,7 @@
         {
           title: '鎿嶄綔绯荤粺',
           align: "center",
-          dataIndex: 'operatingSystem',
+          dataIndex: 'operatingSystem_dictText',
         },
         {
           title: '绯荤粺',
@@ -989,7 +1042,7 @@
         {
           title: '閲嶉噺璁¢噺鍗曚綅',
           align: "center",
-          dataIndex: 'equipmentUda4_dictText',
+          dataIndex: 'equipmentUda4',
         },
         {
           title: '鍔熻兘浣嶇疆',
@@ -999,7 +1052,7 @@
         {
           title: '瀹夎浣嶇疆',
           align: "center",
-          dataIndex: 'equipmentUda2',
+          dataIndex: 'location',
         },
         {
           title: '鍑哄巶鏃ユ湡',
@@ -1024,7 +1077,7 @@
         {
           title: '鍑哄巶缂栧彿',
           align: "center",
-          dataIndex: 'factoryNo',
+          dataIndex: 'factoryNumber',
         },
         {
           title: '璧勪骇鍒堕�犲晢',
@@ -1117,7 +1170,7 @@
           dataIndex: 'lineId_dictText',
         },
         {
-          title: '涓昏澶�?',
+          title: '涓昏澶�',
           align: "center",
           dataIndex: 'isMeta_dictText',
         },
@@ -1182,7 +1235,7 @@
         delete: "/eam/equipment/delete",
         deleteBatch: "/eam/equipment/deleteBatch",
         active: "/eam/equipment/active",
-        exportXlsUrl: '/eam/equipment/exportXls',
+        exportXlsUrl: '/eam/equipment/exportXlsNew',
         importExcelUrl: "/eam/equipment/importExcel",
         loadOptions: '/sys/sysDepart/loadDepartTreeOptions',
         uploadList: '/sys/upload/list',
@@ -1276,7 +1329,10 @@
         this.ipagination.current = 1;
       }
       this.onClearSelected()
-      var params = this.getQueryParams();//鏌ヨ鏉′欢
+      if (this.caytegoryParam !== 'all') {
+        this.queryParam.equipmentCategoryUda1 = this.caytegoryParam;
+      }
+      let params = this.getQueryParams();//鏌ヨ鏉′欢
       this.loading = true;
       getAction(this.url.list, params).then((res) => {
         if (res.success) {
@@ -1419,6 +1475,11 @@
               }
             })
           }
+          else {
+            this.$message.warning('鏈煡璇㈠埌鏈夋晥妯℃澘')
+          }
+        } else {
+          this.$message.warning('鏈煡璇㈠埌鏈夋晥妯℃澘')
         }
       })
     },

--
Gitblit v1.9.3