From b4feac3bad1287c19ccaf78d11bb312daa09689e Mon Sep 17 00:00:00 2001
From: zhaowei <zhaowei>
Date: 星期二, 22 四月 2025 10:31:14 +0800
Subject: [PATCH] 1、我的待办页面 设备维修 分类审批弹窗功能逻辑开发 2、设备台帐页面设备履历功能开发 3、故障报修页面调整上传图片功能逻辑

---
 src/views/eam/equipment/EamEquipmentList.vue |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/src/views/eam/equipment/EamEquipmentList.vue b/src/views/eam/equipment/EamEquipmentList.vue
index 78f9599..1ba6057 100644
--- a/src/views/eam/equipment/EamEquipmentList.vue
+++ b/src/views/eam/equipment/EamEquipmentList.vue
@@ -168,13 +168,13 @@
 
     <a-tabs v-model="activeTabKey" @change="handleTabChange">
       <a-tab-pane tab="璁惧鏂囨。" :key="1">
-        <eam-equipment-attachment-list ref="tabPaneTableListRef1" />
+        <eam-equipment-attachment-list ref="tabPaneTableListRef1"/>
       </a-tab-pane>
       <a-tab-pane tab="鐐规宸ュ崟" :key="2">
         <eam-inspection-order-list ref="tabPaneTableListRef2" :isDisplayOperation="false"/>
       </a-tab-pane>
       <a-tab-pane tab="鍛ㄤ繚宸ュ崟" :key="3">
-        <eam-week-maintenance-order-list ref="tabPaneTableListRef3" :isDisplayOperation="false" />
+        <eam-week-maintenance-order-list ref="tabPaneTableListRef3" :isDisplayOperation="false"/>
       </a-tab-pane>
       <a-tab-pane tab="缁翠慨宸ュ崟" :key="4">
         <eam-repair-order-list ref="tabPaneTableListRef4" :isDisplayOperation="false"/>
@@ -189,7 +189,7 @@
     <!--閾墝寮圭獥-->
     <nameplate-modal ref="nameplateModalRef" :printedRows="printedRows"/>
     <!--灞ュ巻寮圭獥-->
-    <resume-drawer ref="resumeDrawerRef"/>
+    <resume-drawer ref="resumeDrawerRef" :currentTableRowRecord="currentTableRowRecord"/>
   </a-card>
 </template>
 
@@ -479,7 +479,8 @@
         treeData: [],
         printedRows: [],
         activeTabKey: 1,
-        appHomeUrl: ''
+        appHomeUrl: '',
+        currentTableRowRecord: {}
       }
     },
     computed: {
@@ -518,7 +519,11 @@
        * @param record 琛ㄦ牸琛屼俊鎭�
        */
       handleOpenResumeDrawer(record) {
+        this.currentTableRowRecord = Object.assign({}, record)
+        this.$refs.resumeDrawerRef.title = '璁惧灞ュ巻' + `锛�${record.equipmentCode}锛塦
+        this.$refs.resumeDrawerRef.dataSource = []
         this.$refs.resumeDrawerRef.visible = true
+        this.$nextTick(() => this.$refs.resumeDrawerRef.getEquipmentResumeByApi())
       },
 
       /**
@@ -565,7 +570,7 @@
       onSelectChange(selectedRowKeys, selectionRows) {
         this.selectedRowKeys = selectedRowKeys
         this.selectionRows = selectionRows
-        this.$refs['tabPaneTableListRef' + this.activeTabKey].queryParam.equipmentId = null;
+        this.$refs['tabPaneTableListRef' + this.activeTabKey].queryParam.equipmentId = null
         this.$refs['tabPaneTableListRef' + this.activeTabKey].dataSource = []
         this.$refs['tabPaneTableListRef' + this.activeTabKey].onClearSelected()
         if (selectedRowKeys.length === 1) this.loadTabPaneTableData(selectedRowKeys[0])

--
Gitblit v1.9.3