From 12c6f51d841e80bab7089725e63a034dbe6a294f Mon Sep 17 00:00:00 2001
From: fei <791364011@qq.com>
Date: 星期日, 11 一月 2026 21:57:45 +0800
Subject: [PATCH] 修改了代码

---
 src/views/archiveManager/index.vue |   23 +++++++++++++++++------
 1 files changed, 17 insertions(+), 6 deletions(-)

diff --git a/src/views/archiveManager/index.vue b/src/views/archiveManager/index.vue
index 26b791b..da1e8ea 100644
--- a/src/views/archiveManager/index.vue
+++ b/src/views/archiveManager/index.vue
@@ -959,7 +959,7 @@
 import { listAllCategory } from "@/api/system/category"
 import { listAllProjectName } from "@/api/system/projectName"
 import { listPlaceName, listAllPlaceName } from "@/api/system/placeName"
-import { judge } from "@/api/system/materials"
+import { judge,getFileCount } from "@/api/system/materials"
 import { UserRoleIdList,unallocatedUserList, authUserSelectAll } from "@/api/system/role"
 import {authManyRecordsToUsers}  from "@/api/system/archiverecordstouser"
 
@@ -1559,21 +1559,32 @@
     {
      //alert(row.id)
       var id = row.id
+         var pageCount = row.pageCount
+      if(pageCount===undefined||pageCount===0)
+        this.$modal.msgWarning('璇峰厛琛ュ厖妗堝嵎椤垫暟锛�')
+
       // 鍦ㄦ彁浜や箣鍓嶏紝璋冪敤鍚庣鎺ュ彛妫�鏌ユ槸鍚﹀凡缁忎笂浼犻檮浠�
-      judge(id).then(response => {
-        // console.log(response)
+      getFileCount(id).then(response => {
+        console.log(response)
         // alert(response.data)
-        if (response.data===undefined||response.data === false) {
+        if (response.length===undefined||response.length === 0) {
           // 濡傛灉鏂囦欢鏁伴噺涓�0锛屾彁绀虹敤鎴峰厛涓婁紶闄勪欢
           this.$modal.msgWarning('璇峰厛涓婁紶闄勪欢锛屽啀杩涜鎻愪氦鎿嶄綔')
-        } else {
+        }
+        else if(response.length===pageCount)
+        {
           // 濡傛灉宸茬粡涓婁紶浜嗛檮浠讹紝缁х画鎻愪氦鎿嶄綔
           var status = '褰曞叆瀹屾垚'
-          updateStatusById(status, id).then(response=>{
+          updateStatusById(status, id, '鎻愪氦妗堝嵎').then(response=>{
             this.$modal.msgSuccess("鎻愪氦鎴愬姛")
             this.getList()
           })
         }
+        else
+        {
+          this.$modal.msgWarning('闄勪欢鏁伴噺涓婁紶涓嶈冻锛岃缁х画涓婁紶锛�')
+
+        }
       }).catch(error => {
         console.error('妫�鏌ラ檮浠舵暟閲忓け璐�:', error)
         this.$modal.msgError('妫�鏌ラ檮浠舵暟閲忓け璐ワ紝璇风◢鍚庨噸璇�')

--
Gitblit v1.9.1