From 376cab4afba8fd1b8be67cae067ed917462c2e16 Mon Sep 17 00:00:00 2001
From: yaowanxin <3588231647@qq.com>
Date: 星期四, 18 十二月 2025 09:05:12 +0800
Subject: [PATCH] 添加设备报修和保养附件管理功能,维修保养过程描述

---
 src/views/equipmentManagement/upkeep/index.vue |   25 ++++++++++++++++++++++---
 1 files changed, 22 insertions(+), 3 deletions(-)

diff --git a/src/views/equipmentManagement/upkeep/index.vue b/src/views/equipmentManagement/upkeep/index.vue
index a85a351..63ca907 100644
--- a/src/views/equipmentManagement/upkeep/index.vue
+++ b/src/views/equipmentManagement/upkeep/index.vue
@@ -114,11 +114,20 @@
           >
             鍒犻櫎
           </el-button>
+          <el-button
+              type="primary"
+              text
+              icon="folder"
+              @click="openFilesForm(row)"
+          >
+            闄勪欢
+          </el-button>
         </template>
       </PIMTable>
     </div>
     <PlanModal ref="planModalRef" @ok="getTableData" />
     <MaintenanceModal ref="maintainModalRef" @ok="getTableData" />
+    <files-dia ref="filesDia"></files-dia>
   </div>
 </template>
 
@@ -130,7 +139,7 @@
 import MaintenanceModal from "./Modal/MaintenanceModal.vue";
 import dayjs from "dayjs";
 import { ElMessageBox, ElMessage } from "element-plus";
-
+import FilesDia from "./filesDia.vue";
 defineOptions({
   name: "璁惧淇濆吇",
 });
@@ -141,7 +150,7 @@
 const planModalRef = ref();
 // 淇濆吇寮圭獥鎺у埗鍣�
 const maintainModalRef = ref();
-
+const filesDia = ref()
 // 琛ㄦ牸澶氶�夋閫変腑椤�
 const multipleList = ref([]);
 
@@ -193,6 +202,11 @@
   //   formatData: (cell) => dayjs(cell).format("YYYY-MM-DD HH:mm:ss"),
   //   width: 200,
   // },
+  {
+    label: "淇濆吇杩涘害鎻忚堪",
+    align: "center",
+    prop: "maintenanceProcessDesc",
+  },
   {
     label: "瀹為檯淇濆吇浜�",
     align: "center",
@@ -265,7 +279,12 @@
 	pagination.pageSize = limit;
 	onCurrentChange(page);
 };
-
+// 鎵撳紑闄勪欢寮规
+const openFilesForm = (row) => {
+  nextTick(() => {
+    filesDia.value?.openDialog( row,'璁惧淇濆吇')
+  })
+};
 // 鍗曡鍒犻櫎
 const delRepairByIds = async (ids) => {
   ElMessageBox.confirm("纭鍒犻櫎鎶ヤ慨鏁版嵁, 姝ゆ搷浣滀笉鍙��?", "璀﹀憡", {

--
Gitblit v1.9.3