From 64cd24b079ec15ea5c9be7360060e7b34eb3d8bd Mon Sep 17 00:00:00 2001
From: yaowanxin <3588231647@qq.com>
Date: 星期三, 21 一月 2026 17:48:46 +0800
Subject: [PATCH] 在入职管理、离职管理和用印管理中新增附件上传功能

---
 src/views/collaborativeApproval/sealManagement/index.vue |   25 ++++++++++++++++++-------
 1 files changed, 18 insertions(+), 7 deletions(-)

diff --git a/src/views/collaborativeApproval/sealManagement/index.vue b/src/views/collaborativeApproval/sealManagement/index.vue
index 9d2d043..5f96247 100644
--- a/src/views/collaborativeApproval/sealManagement/index.vue
+++ b/src/views/collaborativeApproval/sealManagement/index.vue
@@ -53,6 +53,7 @@
               <el-table-column label="鎿嶄綔" width="200" fixed="right">
                 <template #default="scope">
                   <el-button link @click="viewSealDetail(scope.row)">鏌ョ湅</el-button>
+                  <el-button link type="warning" @click="openFilesFormDia(scope.row)">闄勪欢</el-button>
                   <el-button 
                     v-if="scope.row.status === 'pending'"
 										link
@@ -72,6 +73,8 @@
                 </template>
               </el-table-column>
             </el-table>
+					<pagination v-show="total > 0" :total="total" layout="total, sizes, prev, pager, next, jumper"
+											:page="page.current" :limit="page.size" @pagination="paginationChange" />
         </div> 
     </el-card>
 
@@ -234,6 +237,7 @@
         </el-table-column>
       </el-table>
     </el-dialog>
+    <files-dia ref="filesDia"></files-dia>
   </div>
 </template>
 
@@ -247,12 +251,13 @@
 import {staffJoinDel, staffJoinListPage} from "@/api/personnelManagement/onboarding.js";
 import useUserStore from '@/store/modules/user'
 import { userLoginFacotryList } from "@/api/system/user.js"
-
+import FilesDia from "./filesDia.vue";
 // 鍝嶅簲寮忔暟鎹�
 const currentUser = ref(null)
 const activeTab = ref('seal')
 const operationType = ref('add')
 const tableData = ref([])
+const filesDia = ref()
 // 鐢ㄥ嵃鐢宠鐩稿叧
 const userStore = useUserStore()
 const showSealApplyDialog = ref(false)
@@ -283,7 +288,7 @@
 // 鍒嗛〉鍙傛暟
 const page = reactive({
   current: 1,
-  size: 10,
+  size: 100,
   total: 0
 })
 // 瑙勭珷鍒跺害鐩稿叧
@@ -430,6 +435,13 @@
     ElMessage.error('璇峰畬鍠勭敵璇蜂俊鎭�')
   }
 }
+// 鎵撳紑闄勪欢寮规
+const openFilesFormDia = (row) => {
+  console.log(row)
+  nextTick(() => {
+    filesDia.value?.openDialog( row,'鐢ㄥ嵃绠$悊')
+  })
+};
 // 鏂板
 const handleAdd = () => {
   operationType.value = 'add'
@@ -559,12 +571,11 @@
       currentUser.value = res.data.userName
     }
   })
-  staffJoinListPage({staffState: 1}).then(res => {
+  staffJoinListPage({staffState: 1, ...page}).then(res => {
     tableLoading.value = false;
     // tableData.value = res.data.records
     // //绛涢�夊嚭鍜宑urrentUser鍚屽悕鐨勪汉鍛�
     tableData.value = res.data.records.filter(item => item.staffName === currentUser.value)
-    console.log("tableData",tableData.value) 
     page.total = res.data.total;
       
     if(tableData.value.length == 0){
@@ -681,11 +692,11 @@
       // 鏍规嵁currentFactoryName杩囨护鍑篸epartment鐩稿悓鐨勬暟鎹�
       sealApplications.value = res.data.records.filter(item => item.department === currentFactoryName)
       // 鏇存柊杩囨护鍚庣殑鎬绘暟
-      page.value.total = sealApplications.value.length
+      page.total = sealApplications.value.length
     } else {
       // 濡傛灉娌℃湁currentFactoryName锛屽垯鏄剧ず鎵�鏈夋暟鎹�
       sealApplications.value = res.data.records
-      page.value.total = res.data.total
+      page.total = res.data.total
     }
     // sealApplications.value = res.data.records
     // page.value.total = res.data.total;
@@ -704,7 +715,7 @@
     regulations.value = res.data.records
     // 杩囨护鎺夊凡搴熷純鐨勫埗搴�
     // regulations.value = res.data.records.filter(item => item.status !== 'repealed')
-    page.value.total = res.data.total;
+    page.total = res.data.total;
     tableLoading.value = false;
 
   }).catch(err => {

--
Gitblit v1.9.3