From 922a907b054f11ff6e9b64b672aea563bb326835 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 27 四月 2026 17:39:49 +0800
Subject: [PATCH] 进销存new 1.档案管理修改

---
 src/views/fileManagement/document/index.vue |   22 ++++++++++++----------
 1 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/src/views/fileManagement/document/index.vue b/src/views/fileManagement/document/index.vue
index a0d824a..f4eac2d 100644
--- a/src/views/fileManagement/document/index.vue
+++ b/src/views/fileManagement/document/index.vue
@@ -107,7 +107,6 @@
             current: pagination.currentPage,
             size: pagination.pageSize,
             total: pagination.total,
-            layout: 'total, sizes, prev, pager, next, jumper'
           }"
           @selection-change="handleSelectionChange"
           @pagination="handlePagination"
@@ -863,12 +862,14 @@
       documentForm[key] = "";
     });
     documentForm.attachments = []; // 鏂板妯″紡涓嬩篃娓呯┖闄勪欢
-    // 璁剧疆榛樿鍊� - 浣跨敤瀛楀吀鏁版嵁鐨勭涓�涓�夐」浣滀负榛樿鍊�
+    // 璁剧疆榛樿鍊� - 鏂囨。鐘舵�侀粯璁よ缃负"姝e父"
     if (document_status.value && document_status.value.length > 0) {
-      documentForm.docStatus = document_status.value[0].value;
+      const normalStatus = document_status.value.find(item => item.label === '姝e父');
+      documentForm.docStatus = normalStatus ? normalStatus.value : document_status.value[0].value;
     }
     if (document_urgency.value && document_urgency.value.length > 0) {
-      documentForm.urgencyLevel = document_urgency.value[0].value;
+      const normalUrgency = document_urgency.value.find(item => item.label === '鏅��');
+      documentForm.urgencyLevel = normalUrgency ? normalUrgency.value : document_urgency.value[0].value;
     }
   }
 };
@@ -1137,9 +1138,9 @@
     
     // 鏋勫缓鏌ヨ鍙傛暟
     const query = {
-      page: pagination.currentPage,
+      current: pagination.currentPage,
       size: pagination.pageSize,
-      documentClassificationId:currentId.value
+      documentClassificationId: currentId.value
     };
     
     const res = await getDocumentList(query);
@@ -1166,9 +1167,10 @@
 };
 
 // 澶勭悊鍒嗛〉鍙樺寲
-const handlePagination = (current, size) => {
-  pagination.currentPage = current;
-  pagination.pageSize = size;
+const handlePagination = (payload) => {
+  // PIMTable emit: { page, limit }
+  pagination.currentPage = payload?.page || 1;
+  pagination.pageSize = payload?.limit || pagination.pageSize;
   loadDocumentList();
 };
 
@@ -1298,7 +1300,7 @@
 }
 
 .dialog-footer {
-  text-align: right;
+  text-align: center;
 }
 
 .operation-column {

--
Gitblit v1.9.3