From 791c9ba636e3e5502b2d586c74735d0692435bcb Mon Sep 17 00:00:00 2001
From: zhangherong <571457620@qq.com>
Date: 星期二, 04 三月 2025 14:40:05 +0800
Subject: [PATCH] art: 所有设备 台账 批量删除功能

---
 src/views/eam/EquipmentListOfAll.vue |  100 ++++++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 85 insertions(+), 15 deletions(-)

diff --git a/src/views/eam/EquipmentListOfAll.vue b/src/views/eam/EquipmentListOfAll.vue
index 93d4613..c7c5309 100644
--- a/src/views/eam/EquipmentListOfAll.vue
+++ b/src/views/eam/EquipmentListOfAll.vue
@@ -18,7 +18,7 @@
                 :md='8'
                 :sm='24'>
             <a-form-item
-              label="缁熶竴缂栧彿缇�"
+              label="缁熶竴缂栫爜缇�"
               :labelCol="labelCol"
               :wrapperCol="wrapperCol"
             >
@@ -372,6 +372,13 @@
         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"
@@ -558,6 +565,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 +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"
@@ -642,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="澶囦欢"
@@ -679,7 +732,7 @@
         <equipment-update-warranty-list :mainId="selectedMainId" />
       </a-tab-pane>
       <a-tab-pane
-        tab="鏃ヤ繚鏍囧噯"
+        tab="鐐规鏍囧噯"
         key="7"
         forceRender
       >
@@ -734,7 +787,7 @@
 import { mixinDevice } from '@/utils/mixin'
 import JEllipsis from '@/components/jeecg/JEllipsis'
 import EquipmentModal from './modules/equipmentNew/EquipmentModal'
-import { getAction, downFile } 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'
@@ -1071,6 +1124,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",
@@ -1164,7 +1235,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;
@@ -1300,7 +1371,6 @@
     },
 
     handleDownload() {
-      debugger;
       var params = {}//鏌ヨ鏉′欢
       params.type = "equipment"
       params.pageNo = 1

--
Gitblit v1.9.3