From a9f005e2af294c47d7cd1e4b6ed401bf65f5b080 Mon Sep 17 00:00:00 2001
From: zhangherong <571457620@qq.com>
Date: 星期二, 04 三月 2025 16:44:09 +0800
Subject: [PATCH] art: 所有设备 台账 二保工单 根据设备id查询二保工单,并过滤掉已完成和已取消的二保工单

---
 src/views/eam/EquipmentListOfAll.vue |  640 ++++++++++++++++++++++++++++++++++++++++++---------------
 1 files changed, 467 insertions(+), 173 deletions(-)

diff --git a/src/views/eam/EquipmentListOfAll.vue b/src/views/eam/EquipmentListOfAll.vue
index b1edc06..14f6c32 100644
--- a/src/views/eam/EquipmentListOfAll.vue
+++ b/src/views/eam/EquipmentListOfAll.vue
@@ -1,7 +1,7 @@
 <template>
   <a-card
     :bordered="false"
-    title="鎵�鏈夎澶�"
+    title=""
   >
     <!-- 鏌ヨ鍖哄煙 -->
     <div class="table-page-search-wrapper">
@@ -13,35 +13,42 @@
           :gutter="24"
           style="margin-bottom: 1%;"
         >
-          <a-col :span="24">
+          <a-col :xl='6'
+                :lg='7'
+                :md='8'
+                :sm='24'>
             <a-form-item
-              label="缁熶竴缂栧彿缇�"
+              label="缁熶竴缂栫爜缇�"
               :labelCol="labelCol"
               :wrapperCol="wrapperCol"
             >
               <a-textarea
-                placeholder="璇疯緭鍏ユ墍鏈夌粺涓�缂栫爜,椤荤敤绌烘牸闅斿紑,鍚﹀垯鍙兘鏌ヨ鍑洪敊璇俊鎭�"
+                placeholder="璇疯緭鍏ユ墍鏈夌粺涓�缂栫爜,姣忎釜缁熶竴缂栫爜鍗犵敤涓�琛�,鍚﹀垯鏌ヨ淇℃伅鍙兘浼氬嚭閿�"
                 v-model="queryParam.nums"
                 :auto-size="{ minRows: 2, maxRows:2 }"
               ></a-textarea>
             </a-form-item>
           </a-col>
-        </a-row>
-        <a-row :gutter="24">
-          <a-col :span="6">
+          <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"
+                dictCode="mom_eam_equipment_category,name,id,del_flag!='1'"
                 placeholder="璇疯緭鍏ユ悳绱㈡潯浠跺苟閫夋嫨"
                 v-model="queryParam.equipmentCategoryId"
               />
             </a-form-item>
           </a-col>
-          <a-col :span="6">
+          <a-col :xl='6'
+                 :lg='7'
+                 :md='8'
+                 :sm='24'>
             <a-form-item
               :labelCol="labelCol"
               :wrapperCol="wrapperCol"
@@ -53,7 +60,10 @@
               ></a-input>
             </a-form-item>
           </a-col>
-          <a-col :span="6">
+          <a-col :xl='6'
+                 :lg='7'
+                 :md='8'
+                 :sm='24'>
             <a-form-item
               :labelCol="labelCol"
               :wrapperCol="wrapperCol"
@@ -65,7 +75,10 @@
               ></a-input>
             </a-form-item>
           </a-col>
-          <a-col :span="6">
+          <a-col :xl='6'
+                 :lg='7'
+                 :md='8'
+                 :sm='24'>
             <a-form-item
               label="鍨嬪彿"
               :labelCol="labelCol"
@@ -77,9 +90,11 @@
               ></a-input>
             </a-form-item>
           </a-col>
-        </a-row>
-        <a-row :gutter="24">
-          <a-col :span="6">
+
+          <a-col :xl='6'
+                 :lg='7'
+                 :md='8'
+                 :sm='24'>
             <a-form-item
               label="宸ュ尯"
               :labelCol="labelCol"
@@ -89,7 +104,7 @@
                 allow-clear
                 placeholder="璇烽�夋嫨宸ュ尯"
                 :triggerChange="true"
-                dictCode="mom_base_area,name,id,del_flag!='1'"
+                dictCode="mom_base_area,name,id,del_flag!='1' and type = '2'"
                 v-model="queryParam.factoryModelId"
               />
             </a-form-item>
@@ -109,39 +124,58 @@
               />
             </a-form-item>
           </a-col> -->
-          <a-col :span="6">
+          <a-col :xl='6'
+                 :lg='7'
+                 :md='8'
+                 :sm='24'>
             <a-form-item
               label="缁存姢閮ㄩ棬"
               :labelCol="labelCol"
               :wrapperCol="wrapperCol"
             >
-              <a-tree-select
+              <!-- <a-tree-select
                 style="width: 100%"
                 :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }"
                 :tree-data="treeData"
                 placeholder="璇烽�夋嫨缁存姢閮ㄩ棬"
                 tree-default-expand-all
                 v-model="queryParam.manageId"
+              /> -->
+              <j-dict-select-tag
+                dictCode="sys_depart,depart_name,id"
+                placeholder="璇烽�夋嫨缁存姢閮ㄩ棬"
+                v-model="queryParam.manageId"
               />
             </a-form-item>
           </a-col>
-          <a-col :span="6">
+          <a-col :xl='6'
+                 :lg='7'
+                 :md='8'
+                 :sm='24'>
             <a-form-item
               label="浣跨敤閮ㄩ棬"
               :labelCol="labelCol"
               :wrapperCol="wrapperCol"
             >
-              <a-tree-select
+              <!-- <a-tree-select
                 style="width: 100%"
                 :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }"
                 :tree-data="treeData"
                 placeholder="璇烽�夋嫨浣跨敤閮ㄩ棬"
                 tree-default-expand-all
                 v-model="queryParam.useId"
+              /> -->
+              <j-dict-select-tag
+                dictCode="sys_depart,depart_name,id"
+                placeholder="璇烽�夋嫨浣跨敤閮ㄩ棬"
+                v-model="queryParam.useId"
               />
             </a-form-item>
           </a-col>
-          <a-col :span="6">
+          <a-col :xl='6'
+                 :lg='7'
+                 :md='8'
+                 :sm='24'>
             <a-form-item
               label="鏄惁鐢熶骇绾胯澶�"
               :labelCol="labelCol"
@@ -156,9 +190,10 @@
               />
             </a-form-item>
           </a-col>
-        </a-row>
-        <a-row :gutter="24">
-          <a-col :span="6">
+          <a-col :xl='6'
+                 :lg='7'
+                 :md='8'
+                 :sm='24'>
             <a-form-item
               label="ABC鏍囪瘑"
               :labelCol="labelCol"
@@ -173,7 +208,10 @@
               />
             </a-form-item>
           </a-col>
-          <a-col :span="6">
+          <a-col :xl='6'
+                 :lg='7'
+                 :md='8'
+                 :sm='24'>
             <a-form-item
               label="鎶�鏈姸鎬�"
               :labelCol="labelCol"
@@ -188,7 +226,10 @@
               />
             </a-form-item>
           </a-col>
-          <a-col :span="6">
+          <a-col :xl='6'
+                 :lg='7'
+                 :md='8'
+                 :sm='24'>
             <a-form-item
               label="璁惧鐘舵��"
               :labelCol="labelCol"
@@ -203,7 +244,10 @@
               />
             </a-form-item>
           </a-col>
-          <a-col :span="6">
+          <a-col :xl='6'
+                 :lg='7'
+                 :md='8'
+                 :sm='24'>
             <a-form-item
               label="鍏抽敭璁惧鏍囪瘑"
               :labelCol="labelCol"
@@ -218,9 +262,10 @@
               />
             </a-form-item>
           </a-col>
-        </a-row>
-        <a-row :gutter="24">
-          <a-col :span="6">
+          <a-col :xl='6'
+                 :lg='7'
+                 :md='8'
+                 :sm='24'>
             <a-form-model-item
               label="璐ㄤ繚寮�濮嬫棩鏈�"
               :labelCol="labelCol"
@@ -234,7 +279,10 @@
               ></j-date>
             </a-form-model-item>
           </a-col>
-          <a-col :span="6">
+          <a-col :xl='6'
+                 :lg='7'
+                 :md='8'
+                 :sm='24'>
             <a-form-model-item
               label="璐ㄤ繚缁撴潫鏃ユ湡"
               :labelCol="labelCol"
@@ -249,7 +297,10 @@
             </a-form-model-item>
           </a-col>
           <!-- 鎸夌淮淇彮缁勬绱� -->
-          <a-col :span="6">
+          <a-col :xl='6'
+                 :lg='7'
+                 :md='8'
+                 :sm='24'>
             <a-form-item
               label="缁翠慨鐝粍"
               :labelCol="labelCol"
@@ -321,11 +372,23 @@
         v-has="'equipmentAccount:add&delete&import&Edit'"
       >璐ㄤ繚鏈熷彉鏇�</a-button>
       <a-button
+        :disabled="selectedRowKeys.length==0"
+        @click="batchDel"
+        type="danger"
+        icon="delete"
+        v-has="'equipmentAccount:add&delete&import&Edit'"
+      >鎵归噺鍒犻櫎</a-button>
+      <a-button
         @click="handleUpdateKeyEquipment"
         type="primary"
         icon="calendar"
         v-has="'equipmentAccount:add&delete&import&Edit'"
       >璁剧疆鍏抽敭璁惧鏍囪瘑</a-button>
+      <a-button
+        type="primary"
+        @click="handleDownload"
+        icon="download"
+      >妯$増涓嬭浇</a-button>
     </div>
     <!-- table鍖哄煙-begin -->
     <div>
@@ -354,7 +417,16 @@
         :customRow="clickThenSelect"
         @change="handleTableChange"
       >
-
+        <!-- 鐐瑰嚮鎶�鏈姸鎬佸垪锛岃烦杞埌鎶�鏈姸鎬侀壌瀹氶〉闈� -->
+        <template
+          slot="technologyStatus"
+          slot-scope="text,record"
+        >
+          <a
+            href="javascript:eam/EquipmentCalibrationOrder;"
+            @click="handleTechnologyStatus(record)"
+          >{{record.technologyStatus_dictText}}</a>
+        </template>
         <template
           slot="htmlSlot"
           slot-scope="text"
@@ -485,6 +557,71 @@
         </span>
 
         <span
+          slot="name"
+          slot-scope="text"
+        >
+          <j-ellipsis
+            :value="text"
+            :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"
+          slot-scope="text,record"
+        >
+          <a
+            href="javascript:;"
+            @click="handleDetail(record)"
+          >{{record.num}}</a>
+        </template>
+
+        <span
           slot="action"
           slot-scope="text, record"
         >
@@ -547,8 +684,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"
@@ -557,20 +702,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="澶囦欢"
@@ -594,12 +732,13 @@
         <equipment-update-warranty-list :mainId="selectedMainId" />
       </a-tab-pane>
       <a-tab-pane
-        tab="鏃ヤ繚鏍囧噯"
+        tab="鐐规鏍囧噯"
         key="7"
         forceRender
       >
         <daily-maintenance-list :mainId="selectedMainId"></daily-maintenance-list>
       </a-tab-pane>
+
       <a-tab-pane
         tab="浜屼繚鏍囧噯"
         key="8"
@@ -613,6 +752,20 @@
         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-tabs>
     <equipment-modal
@@ -647,8 +800,9 @@
 
 import { JeecgListMixin } from '@/mixins/JeecgListMixin'
 import { mixinDevice } from '@/utils/mixin'
+import JEllipsis from '@/components/jeecg/JEllipsis'
 import EquipmentModal from './modules/equipmentNew/EquipmentModal'
-import { getAction } from '@/api/manage'
+import { getAction, downFile, deleteAction } from '@/api/manage'
 import EquipmentProcessParametersList from './modules/equipmentNew/EquipmentProcessParametersList'
 import EquipmentDocumentList from './modules/equipmentNew/EquipmentDocumentList'
 import EquipmentPrecisionParametersList from './modules/equipmentNew/EquipmentPrecisionParametersList'
@@ -669,6 +823,8 @@
 import SecondMaintenanceList from './modules/equipmentNew/SecondMaintenanceList.vue'
 import ThirdMaintenanceList from './modules/equipmentNew/ThirdMaintenanceList.vue'
 import KeyEquipmentUpdateModel from './modules/equipmentNew/edit/KeyEquipmentUpdateModel.vue'
+import DailyInspectionOrderListComponent from './modules/equipmentNew/DailyInspectionOrderListComponent.vue'
+import DailyMaintenanceOrderListComponent from './modules/equipmentNew/DailyMaintenanceOrderListComponent.vue'
 
 export default {
   name: "EquipmentList",
@@ -694,6 +850,9 @@
     SecondMaintenanceList,
     ThirdMaintenanceList,
     KeyEquipmentUpdateModel,
+    JEllipsis,
+    DailyInspectionOrderListComponent,
+    DailyMaintenanceOrderListComponent,
   },
   data() {
     return {
@@ -710,46 +869,41 @@
             return parseInt(index) + 1
           },
           width: 50,
-        },
-        {
-          title: '璁惧绫诲瀷',
-          align: "center",
-          dataIndex: 'equipmentCategoryId_dictText',
-        },
-        {
-          title: '鏄惁鐢熶骇绾胯澶�',
-          align: "center",
-          dataIndex: 'isLineEquip_dictText',
+          fixed: 'left',
         },
         {
           title: '缁熶竴缂栫爜',
           align: "center",
           dataIndex: 'num',
+          scopedSlots: { customRender: 'num' },
+          fixed: 'left',
         },
         {
           title: '璁惧鍚嶇О',
           align: "center",
           dataIndex: 'name',
-        },
-        {
-          title: '鍨嬪彿',
-          align: "center",
-          dataIndex: 'model',
-        },
-        {
-          title: '瑙勬牸',
-          align: "center",
-          dataIndex: 'specification',
-        },
-        {
-          title: '鎬诲姛鐜�',
-          align: "center",
-          dataIndex: 'gpo',
+          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: '缁存姢閮ㄩ棬',
@@ -762,6 +916,11 @@
           dataIndex: 'teamId_dictText',
         },
         {
+          title: '璁惧鎵�灞炲垎绫�',
+          align: "center",
+          dataIndex: 'equipmentCategoryId_dictText',
+        },
+        {
           title: 'ABC鏍囪瘑',
           align: "center",
           dataIndex: 'equipmentImportanceId',
@@ -772,16 +931,186 @@
           dataIndex: 'specificEquipment_dictText',
         },
         {
+          title: '瀹夊叏閰嶇疆',
+          align: "center",
+          dataIndex: 'securityConfiguration',
+        },
+        {
+          title: '鍐峰嵈绯荤粺',
+          align: "center",
+          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: '鍨嬪彿',
+          align: "center",
+          dataIndex: 'model',
+        },
+        {
+          title: '璁惧瑙勬牸',
+          align: "center",
+          dataIndex: 'specification',
+        },
+        {
+          title: '鎬诲姛鐜�',
+          align: "center",
+          dataIndex: 'gpo',
+        },
+        {
+          title: '鍒涘缓浜�',
+          align: "center",
+          dataIndex: 'createBy'
+        },
+        {
+          title: '鍒涘缓鏃堕棿',
+          align: "center",
+          dataIndex: 'createTime',
+        },
+        {
+          title: '鏇存柊浜�',
+          align: "center",
+          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: '鎶�鏈姸鎬侀壌瀹氱被鍨�',
           align: "center",
           dataIndex: 'technologyStatusVerificationType_dictText',
         },
-
+        {
+          title: '涓嬫鎶�鏈姸鎬侀壌瀹氭椂闂�',
+          align: "center",
+          dataIndex: 'nextTechnologyStatusQualificationTime',
+        },
+        {
+          title: '鏄惁鐢熶骇绾胯澶�',
+          align: "center",
+          dataIndex: 'isLineEquip_dictText',
+        },
         {
           title: '鐢熶骇绾跨紪鍙�',
           align: "center",
@@ -792,107 +1121,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: '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: '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",
@@ -915,6 +1143,24 @@
           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: '澶囨敞',
         //   align: "center",
@@ -932,13 +1178,15 @@
         },
       ],
       url: {
-        list: "/eam/equipment/getEquipmentList",
+        list: "/eam/equipment/getEquipmentTZList",
         delete: "/eam/equipment/delete",
         deleteBatch: "/eam/equipment/deleteBatch",
         active: "/eam/equipment/active",
         exportXlsUrl: '/eam/equipment/exportXls',
         importExcelUrl: "/eam/equipment/importExcel",
         loadOptions: '/sys/sysDepart/loadDepartTreeOptions',
+        uploadList: '/sys/upload/list',
+        download: '/sys/upload/downloadFile',
       },
       dictOptions: {
       },
@@ -1006,7 +1254,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;
@@ -1128,6 +1376,52 @@
     handleUpdateKeyEquipment() {
       this.$refs.keyEquipmentUpdate.add();
     },
+    //鎶�鏈姸鎬佽烦杞�
+    handleTechnologyStatus(record) {
+      //璺敱鏄痚am/EquipmentCalibrationOrder
+      this.$router.push({
+        path: '/eam/EquipmentCalibrationOrder',
+        query: {
+          equipmentId: record.id,
+          technologyStatus: record.technologyStatus,
+          technologyStatusVerificationType: record.technologyStatusVerificationType,
+        }
+      })
+    },
+
+    handleDownload() {
+      var params = {}//鏌ヨ鏉′欢
+      params.type = "equipment"
+      params.pageNo = 1
+      params.pageSize = 10
+      getAction(this.url.uploadList, params).then((res2) => {
+        if (res2.success) {
+          if (res2.result.records.length > 0) {
+            downFile(this.url.download, { id: res2.result.records[0].id }).then((res) => {
+              if (!res) {
+                this.$message.warning('鏂囦欢涓嬭浇澶辫触')
+                return
+              } else {
+                let fileName = res2.result.records[0].name
+                if (typeof window.navigator.msSaveBlob !== 'undefined') {
+                  window.navigator.msSaveBlob(new Blob([res]), fileName)
+                } else {
+                  let url = window.URL.createObjectURL(new Blob([res]))
+                  let link = document.createElement('a')
+                  link.style.display = 'none'
+                  link.href = url
+                  link.setAttribute('download', fileName)
+                  document.body.appendChild(link)
+                  link.click()
+                  document.body.removeChild(link) //涓嬭浇瀹屾垚绉婚櫎鍏冪礌
+                  window.URL.revokeObjectURL(url) //閲婃斁鎺塨lob瀵硅薄
+                }
+              }
+            })
+          }
+        }
+      })
+    },
   }
 }
 </script>

--
Gitblit v1.9.3