From e0faf446ddf1b0ba79e207293c0227fdc3cc193e Mon Sep 17 00:00:00 2001
From: zhangherong <571457620@qq.com>
Date: 星期二, 04 三月 2025 13:58:35 +0800
Subject: [PATCH] art: 所有设备 台账 合并 保养标准菜单,增加 有无点检标准,有无二保标准,有无三保标准

---
 src/views/eam/EquipmentListOfAll.vue |  403 ++++++++++++++++++++++++++++++++++++++-------------------
 1 files changed, 266 insertions(+), 137 deletions(-)

diff --git a/src/views/eam/EquipmentListOfAll.vue b/src/views/eam/EquipmentListOfAll.vue
index c69168c..9da36c7 100644
--- a/src/views/eam/EquipmentListOfAll.vue
+++ b/src/views/eam/EquipmentListOfAll.vue
@@ -558,6 +558,51 @@
             :length="8"
           />
         </span>
+        <span
+          slot="yseNoInspectionStandard"
+          slot-scope="text"
+        >
+          <a-icon
+            type="check"
+            style="color: chartreuse;"
+            v-if="text==='0'"
+          />
+          <a-icon
+            type="close"
+            v-else
+            style="color:red;"
+          />
+        </span>
+        <span
+          slot="yseNoMaintenance2Standard"
+          slot-scope="text"
+        >
+          <a-icon
+            type="check"
+            style="color: chartreuse;"
+            v-if="text==='0'"
+          />
+          <a-icon
+            type="close"
+            v-else
+            style="color:red;"
+          />
+        </span>
+        <span
+          slot="yseNoMaintenance3Standard"
+          slot-scope="text"
+        >
+          <a-icon
+            type="check"
+            style="color: chartreuse;"
+            v-if="text==='0'"
+          />
+          <a-icon
+            type="close"
+            v-else
+            style="color:red;"
+          />
+        </span>
 
         <template
           slot="num"
@@ -632,8 +677,16 @@
 
     <a-tabs defaultActiveKey="1">
       <a-tab-pane
-        tab="宸ヨ壓鍙傛暟"
+        tab="璁惧鏂囨。"
         key="1"
+        forceRender
+      >
+        <EquipmentDocumentList :mainId="selectedMainId" />
+      </a-tab-pane>
+      <a-tab-pane
+        tab="宸ヨ壓鍙傛暟"
+        key="2"
+        v-if="isOpenProcess"
       >
         <EquipmentProcessParametersList
           :mainId="selectedMainId"
@@ -642,20 +695,13 @@
       </a-tab-pane>
       <a-tab-pane
         tab="璁惧绮惧害"
-        key="2"
-        forceRender
+        key="3"
+        v-if="isOpenPrecision"
       >
         <EquipmentPrecisionParametersList
           :isOpen="isOpenPrecision"
           :mainId="precisionParametersTemplateId"
         />
-      </a-tab-pane>
-      <a-tab-pane
-        tab="璁惧鏂囨。"
-        key="3"
-        forceRender
-      >
-        <EquipmentDocumentList :mainId="selectedMainId" />
       </a-tab-pane>
       <a-tab-pane
         tab="澶囦欢"
@@ -679,7 +725,7 @@
         <equipment-update-warranty-list :mainId="selectedMainId" />
       </a-tab-pane>
       <a-tab-pane
-        tab="鏃ヤ繚鏍囧噯"
+        tab="鐐规鏍囧噯"
         key="7"
         forceRender
       >
@@ -797,16 +843,61 @@
             return parseInt(index) + 1
           },
           width: 50,
+          fixed: 'left',
         },
         {
-          title: '璁惧绫诲瀷',
+          title: '缁熶竴缂栫爜',
+          align: "center",
+          dataIndex: 'num',
+          scopedSlots: { customRender: 'num' },
+          fixed: 'left',
+        },
+        {
+          title: '璁惧鍚嶇О',
+          align: "center",
+          dataIndex: 'name',
+          scopedSlots: { customRender: 'name' },
+          fixed: 'left',
+        },
+        {
+          title: '浣跨敤閮ㄩ棬',
+          align: "center",
+          dataIndex: 'useId_dictText',
+        },
+        {
+          title: '涓績',
+          align: "center",
+          dataIndex: 'workCenterId_dictText',
+        },
+        {
+          title: '宸ュ尯',
+          align: "center",
+          dataIndex: 'factoryModelId_dictText',
+        },
+        {
+          title: '宸ユ',
+          align: "center",
+          dataIndex: 'areaId_dictText',
+        },
+        {
+          title: '缁存姢閮ㄩ棬',
+          align: "center",
+          dataIndex: 'manageId_dictText',
+        },
+        {
+          title: '缁翠慨鐝粍',
+          align: "center",
+          dataIndex: 'teamId_dictText',
+        },
+        {
+          title: '璁惧鎵�灞炲垎绫�',
           align: "center",
           dataIndex: 'equipmentCategoryId_dictText',
         },
         {
-          title: '鏄惁鐢熶骇绾胯澶�',
+          title: 'ABC鏍囪瘑',
           align: "center",
-          dataIndex: 'isLineEquip_dictText',
+          dataIndex: 'equipmentImportanceId',
         },
         {
           title: '鍏抽敭璁惧鏍囪瘑',
@@ -814,16 +905,110 @@
           dataIndex: 'specificEquipment_dictText',
         },
         {
-          title: '缁熶竴缂栫爜',
+          title: '瀹夊叏閰嶇疆',
           align: "center",
-          dataIndex: 'num',
-          scopedSlots: { customRender: 'num' },
+          dataIndex: 'securityConfiguration',
         },
         {
-          title: '璁惧鍚嶇О',
+          title: '鍐峰嵈绯荤粺',
           align: "center",
-          dataIndex: 'name',
-          scopedSlots: { customRender: 'name' },
+          dataIndex: 'coolingSystem',
+        },
+        {
+          title: '鐏伀鍣�',
+          align: "center",
+          dataIndex: 'fireExtinguisher',
+        },
+        {
+          title: '鐏伀鍣ㄦ湁鏁堟湡',
+          align: "center",
+          dataIndex: 'fireExtinguisherValidityPeriod',
+        },
+        {
+          title: '鎿嶄綔绯荤粺',
+          align: "center",
+          dataIndex: 'operatingSystem',
+        },
+        {
+          title: '绯荤粺',
+          align: "center",
+          dataIndex: 'system',
+        },
+        {
+          title: '璁惧绔彛',
+          align: "center",
+          dataIndex: 'port',
+        },
+        {
+          title: '鍧愭爣鏁伴噺',
+          align: "center",
+          dataIndex: 'coordinateNum',
+        },
+        {
+          title: '璁惧鐘舵��',
+          align: "center",
+          dataIndex: 'equipmentStatus_dictText',
+        },
+        {
+          title: '鎶�鏈姸鎬�',
+          align: "center",
+          dataIndex: 'technologyStatus_dictText',
+          scopedSlots: { customRender: 'technologyStatus' },
+        },
+        {
+          title: '閲嶉噺',
+          align: "center",
+          dataIndex: 'equipmentUda3',
+        },
+        {
+          title: '閲嶉噺璁¢噺鍗曚綅',
+          align: "center",
+          dataIndex: 'equipmentUda4_dictText',
+        },
+        {
+          title: '鍔熻兘浣嶇疆',
+          align: "center",
+          dataIndex: 'equipmentUda5',
+        },
+        {
+          title: '瀹夎浣嶇疆',
+          align: "center",
+          dataIndex: 'equipmentUda2',
+        },
+        {
+          title: '鍑哄巶鏃ユ湡',
+          align: "center",
+          dataIndex: 'leaveFactoryDate',
+        },
+        {
+          title: '绔嬮」鍗″彿',
+          align: "center",
+          dataIndex: 'projectApprovalNo',
+        },
+        {
+          title: '璧勯噾鏉ユ簮',
+          align: "center",
+          dataIndex: 'fundSource',
+        },
+        {
+          title: '楠屾敹鏃ユ湡',
+          align: "center",
+          dataIndex: 'acceptanceCheckDate',
+        },
+        {
+          title: '鍑哄巶缂栧彿',
+          align: "center",
+          dataIndex: 'factoryNo',
+        },
+        {
+          title: '璧勪骇鍒堕�犲晢',
+          align: "center",
+          dataIndex: 'constructorId_dictText',
+        },
+        {
+          title: '璧勪骇鐨勬潵婧愬浗瀹�',
+          align: "center",
+          dataIndex: 'sourceCountry',
         },
         {
           title: '鍨嬪彿',
@@ -831,7 +1016,7 @@
           dataIndex: 'model',
         },
         {
-          title: '瑙勬牸',
+          title: '璁惧瑙勬牸',
           align: "center",
           dataIndex: 'specification',
         },
@@ -841,31 +1026,49 @@
           dataIndex: 'gpo',
         },
         {
-          title: '浣跨敤閮ㄩ棬',
+          title: '鍒涘缓浜�',
           align: "center",
-          dataIndex: 'useId_dictText',
+          dataIndex: 'createBy'
         },
-        // {
-        //   title: '缁存姢閮ㄩ棬',
-        //   align: "center",
-        //   dataIndex: 'manageId_dictText',
-        // },
-        // {
-        //   title: '缁翠慨鐝粍',
-        //   align: "center",
-        //   dataIndex: 'teamId_dictText',
-        // },
         {
-          title: 'ABC鏍囪瘑',
+          title: '鍒涘缓鏃堕棿',
           align: "center",
-          dataIndex: 'equipmentImportanceId',
+          dataIndex: 'createTime',
         },
-
         {
-          title: '鎶�鏈姸鎬�',
+          title: '鏇存柊浜�',
           align: "center",
-          dataIndex: 'technologyStatus_dictText',
-          scopedSlots: { customRender: 'technologyStatus' },
+          dataIndex: 'updateBy'
+        },
+        {
+          title: '鏇存柊鏃堕棿',
+          align: "center",
+          dataIndex: 'updateTime',
+        },
+        {
+          title: '璐ㄤ繚寮�濮嬫棩鏈�',
+          align: "center",
+          dataIndex: 'warrantyStart'
+        },
+        {
+          title: '璐ㄤ繚缁撴潫鏃ユ湡',
+          align: "center",
+          dataIndex: 'warrantyEnd',
+        },
+        {
+          title: '璧勪骇鐘舵��',
+          align: "center",
+          dataIndex: 'propertyStatus_dictText',
+        },
+        {
+          title: '涓変繚鏃ユ湡',
+          align: "center",
+          dataIndex: 'thirdMaintenanceTime',
+        },
+        {
+          title: '鎶�鏈壌瀹氭棩鏈�',
+          align: "center",
+          dataIndex: 'technologyStatusQualificationTime',
         },
         {
           title: '鎶�鏈姸鎬侀壌瀹氱被鍨�',
@@ -878,6 +1081,11 @@
           dataIndex: 'nextTechnologyStatusQualificationTime',
         },
         {
+          title: '鏄惁鐢熶骇绾胯澶�',
+          align: "center",
+          dataIndex: 'isLineEquip_dictText',
+        },
+        {
           title: '鐢熶骇绾跨紪鍙�',
           align: "center",
           dataIndex: 'lineId_dictText',
@@ -887,103 +1095,6 @@
           align: "center",
           dataIndex: 'isMeta_dictText',
         },
-        // {
-        //   title: '瀹夊叏閰嶇疆',
-        //   align: "center",
-        //   dataIndex: 'securityConfiguration',
-        // },
-        // {
-        //   title: '鍐峰嵈绯荤粺',
-        //   align: "center",
-        //   dataIndex: 'coolingSystem',
-        // },
-        // {
-        //   title: '鐏伀鍣�',
-        //   align: "center",
-        //   dataIndex: 'fireExtinguisher',
-        // },
-
-
-        // {
-        //   title: '鎿嶄綔绯荤粺',
-        //   align: "center",
-        //   dataIndex: 'operatingSystem',
-        // },
-        // {
-        //   title: '绯荤粺',
-        //   align: "center",
-        //   dataIndex: 'system',
-        // },
-        // {
-        //   title: '璁惧绔彛',
-        //   align: "center",
-        //   dataIndex: 'port',
-        // },
-        // {
-        //   title: '鍧愭爣鏁伴噺',
-        //   align: "center",
-        //   dataIndex: 'coordinateNum',
-        // },
-        // {
-        //   title: '璁惧鐘舵��',
-        //   align: "center",
-        //   dataIndex: 'equipmentStatus_dictText',
-        // },
-        // {
-        //   title: '閲嶉噺',
-        //   align: "center",
-        //   dataIndex: 'equipmentUda3',
-        // },
-        // {
-        //   title: '閲嶉噺璁¢噺鍗曚綅',
-        //   align: "center",
-        //   dataIndex: 'equipmentUda4_dictText',
-        // },
-        // {
-        //   title: '鍔熻兘浣嶇疆',
-        //   align: "center",
-        //   dataIndex: 'equipmentUda5',
-        // },
-        // {
-        //   title: '瀹夎浣嶇疆',
-        //   align: "center",
-        //   dataIndex: 'equipmentUda2',
-        // },
-        // {
-        //   title: '鍑哄巶鏃ユ湡',
-        //   align: "center",
-        //   dataIndex: 'leaveFactoryDate',
-        // },
-        // {
-        //   title: '绔嬮」鍗″彿',
-        //   align: "center",
-        //   dataIndex: 'projectApprovalNo',
-        // },
-        // {
-        //   title: '璧勯噾鏉ユ簮',
-        //   align: "center",
-        //   dataIndex: 'fundSource',
-        // },
-        // {
-        //   title: '楠屾敹鏃ユ湡',
-        //   align: "center",
-        //   dataIndex: 'acceptanceCheckDate',
-        // },
-        // {
-        //   title: '鍑哄巶缂栧彿',
-        //   align: "center",
-        //   dataIndex: 'factoryNo',
-        // },
-        // {
-        //   title: '璧勪骇鍒堕�犲晢',
-        //   align: "center",
-        //   dataIndex: 'constructorId_dictText',
-        // },
-        // {
-        //   title: '璧勪骇鐨勬潵婧愬浗瀹�',
-        //   align: "center",
-        //   dataIndex: 'sourceCountry',
-        // }, 
         {
           title: '宸ヨ壓鍙傛暟绠$悊',
           align: "center",
@@ -1005,6 +1116,24 @@
           title: '绮惧害鍙傛暟妯℃澘',
           align: "center",
           dataIndex: 'precisionParametersTemplateId_dictText',
+        },
+        {
+          title: '鏈夋棤鐐规鏍囧噯',
+          align: "center",
+          dataIndex: 'yseNoInspectionStandard',
+          scopedSlots: { customRender: 'yseNoInspectionStandard' }
+        },
+        {
+          title: '鏈夋棤浜屼繚鏍囧噯',
+          align: "center",
+          dataIndex: 'yseNoMaintenance2Standard',
+          scopedSlots: { customRender: 'yseNoMaintenance2Standard' }
+        },
+        {
+          title: '鏈夋棤涓変繚鏍囧噯',
+          align: "center",
+          dataIndex: 'yseNoMaintenance3Standard',
+          scopedSlots: { customRender: 'yseNoMaintenance3Standard' }
         },
         // {
         //   title: '澶囨敞',
@@ -1099,7 +1228,7 @@
       this.selectedMainId = ''
     },
     onSelectChange(selectedRowKeys, selectionRows) {
-      if (selectedRowKeys.length == 1) {
+      if (selectedRowKeys.length >= 1) {
         this.selectedMainId = selectedRowKeys[0]
         this.precisionParametersTemplateId = selectionRows[0].precisionParametersTemplateId;
         this.isOpenProcess = selectionRows[0].processParameters == 1;

--
Gitblit v1.9.3