From 2de735967d33dba5da5fc87191dee543b000afaf Mon Sep 17 00:00:00 2001
From: lyh <925863403@qq.com>
Date: 星期五, 18 七月 2025 20:20:18 +0800
Subject: [PATCH] 删除

---
 src/views/eam/maintenance/EamInspectionOrderList.vue |   50 +++++++++++++++++++++++++++++++++++++-------------
 1 files changed, 37 insertions(+), 13 deletions(-)

diff --git a/src/views/eam/maintenance/EamInspectionOrderList.vue b/src/views/eam/maintenance/EamInspectionOrderList.vue
index f0cebd0..b92f092 100644
--- a/src/views/eam/maintenance/EamInspectionOrderList.vue
+++ b/src/views/eam/maintenance/EamInspectionOrderList.vue
@@ -97,7 +97,14 @@
           </a-dropdown>
           </template>
 
-          <a v-else @click="handleDetail(record)">璇︽儏</a>
+          <template v-else>
+            <template v-if="record.inspectionStatus=='COMPLETE'">
+              <a @click="handlePrint(record)">棰勮</a>
+              <a-divider type="vertical"/>
+            </template>
+
+             <a @click="handleDetail(record)">璇︽儏</a>
+          </template>
         </span>
       </a-table>
     </div>
@@ -143,22 +150,26 @@
             align: 'center',
             customRender: function(t, r, index) {
               return parseInt(index) + 1
-            }
+            },
+            fixed: 'left'
           },
           {
             title: '缁熶竴缂栫爜',
             align: 'center',
-            dataIndex: 'equipmentCode'
+            dataIndex: 'equipmentCode',
+            fixed: 'left'
           },
           {
             title: '璁惧鍚嶇О',
             align: 'center',
-            dataIndex: 'equipmentName'
+            dataIndex: 'equipmentName',
+            fixed: 'left'
           },
           {
             title: '璁惧鍨嬪彿',
             align: 'center',
-            dataIndex: 'equipmentModel'
+            dataIndex: 'equipmentModel',
+            fixed: 'left'
           },
           {
             title: '宸ュ崟鍙�',
@@ -176,7 +187,8 @@
             dataIndex: 'inspectionDate',
             customRender: function(text) {
               return !text ? '' : (text.length > 10 ? text.substr(0, 10) : text)
-            }
+            },
+            width: 150
           },
           {
             title: '鐐规杩囨湡鏃ユ湡',
@@ -184,7 +196,8 @@
             dataIndex: 'expirationTime',
             customRender: function(text) {
               return !text ? '' : (text.length > 10 ? text.substr(0, 10) : text)
-            }
+            },
+            width: 150
           },
           {
             title: '鍒涘缓鏂瑰紡',
@@ -204,7 +217,8 @@
           {
             title: '鐐规鏃堕棿',
             align: 'center',
-            dataIndex: 'operateTime'
+            dataIndex: 'operateTime',
+            width: 150
           },
           {
             title: '缁翠慨宸�',
@@ -214,12 +228,14 @@
           {
             title: '纭鏃堕棿',
             align: 'center',
-            dataIndex: 'confirmTime'
+            dataIndex: 'confirmTime',
+            width: 150
           },
           {
             title: 'HF缂栫爜',
             align: 'center',
-            dataIndex: 'hfCode'
+            dataIndex: 'hfCode',
+            width: 250
           }
         ],
         url: {
@@ -244,7 +260,8 @@
         title: '鎿嶄綔',
         dataIndex: 'action',
         align: 'center',
-        scopedSlots: { customRender: 'action' }
+        scopedSlots: { customRender: 'action' },
+        fixed: 'right'
       }
       this.columns = [...this.columns, operationColumn]
       this.loadData(1)
@@ -261,8 +278,7 @@
         this.$refs.modalFormXq.visible = true
         this.$refs.modalFormXq.title = '璇︽儏'
         this.$refs.modalFormXq.disableSubmit = true
-        this.$refs.modalFormXq.getAllApproveData(record)
-        this.$refs.modalFormXq.getBasicInformation({ ...record, dataId: record.id })
+        this.$refs.modalFormXq.handleDetail(record)
       },
 
       handleInspection(id) {
@@ -303,6 +319,7 @@
           }
         })
       },
+
       batchZf(type) {
         var ids = ''
         for (var a = 0; a < this.selectedRowKeys.length; a++) {
@@ -335,6 +352,7 @@
           }
         })
       },
+
       batchLq(type) {
         var ids = ''
         for (var a = 0; a < this.selectedRowKeys.length; a++) {
@@ -368,6 +386,12 @@
           }
         })
       },
+
+      handlePrint(record) {
+        let href = `${window._CONFIG['domianURL']}/jmreport/view/1105664887569121280?equipmentCode=` + record.equipmentCode
+        window.open(href, '_blank')
+      },
+
       onInspectionDateChange: function(value, dateString) {
         this.queryParam.inspectionDateBegin = dateString[0]
         this.queryParam.inspectionDateEnd = dateString[1]

--
Gitblit v1.9.3