From af85dd610f4a363abfb3e7ae26f1a3fcf06ee590 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 03 十一月 2026 10:20:31 +0800
Subject: [PATCH] feat(app): 移除 App 端全部附件上传、下载、预览功能

---
 src/pages/mes/pd/archive/detail.vue |   37 -------------------------------------
 1 files changed, 0 insertions(+), 37 deletions(-)

diff --git a/src/pages/mes/pd/archive/detail.vue b/src/pages/mes/pd/archive/detail.vue
index f07c1e2..9e6a735 100644
--- a/src/pages/mes/pd/archive/detail.vue
+++ b/src/pages/mes/pd/archive/detail.vue
@@ -34,40 +34,6 @@
     return dictLabel(dicts.value, DICT.MES_PD_ARCHIVE_STATUS, status, "--");
   }
 
-  /** 棰勮/涓嬭浇鏂囦欢锛欻5 鐩存帴鏂扮獥鍙f墦寮�锛涘皬绋嬪簭/App 鍏堜笅杞藉啀鎵撳紑鏂囨。 */
-  function openFile(url?: string) {
-    if (!url) {
-      toast("璇ヨ祫鏂欐殏鏃犳枃浠�");
-      return;
-    }
-    // #ifdef H5
-    window.open(url, "_blank");
-    // #endif
-    // #ifndef H5
-    uni.showLoading({ title: "鎵撳紑涓��", mask: true });
-    uni.downloadFile({
-      url,
-      success: res => {
-        if (res.statusCode !== 200) {
-          toast("鏂囦欢涓嬭浇澶辫触");
-          return;
-        }
-        uni.openDocument({
-          filePath: res.tempFilePath,
-          showMenu: true,
-          fail: () => {
-            // 閮ㄥ垎鏍煎紡锛堝 zip锛夋棤娉曠洿鎺ユ墦寮�锛岄��鍥炲鍒堕摼鎺�
-            uni.setClipboardData({ data: url, success: () => toast("鏂囦欢閾炬帴宸插鍒�") });
-          },
-        });
-      },
-      fail: () => {
-        uni.setClipboardData({ data: url, success: () => toast("鏂囦欢閾炬帴宸插鍒�") });
-      },
-      complete: () => uni.hideLoading(),
-    });
-    // #endif
-  }
 
   async function load() {
     if (!state.accessToken || !productCode.value) return;
@@ -172,9 +138,6 @@
                 <text>鏂囦欢鍚嶏細{{ doc.fileName || '--' }}</text>
                 <text>涓婁紶浜猴細{{ doc.uploadUserNickname || '--' }}</text>
                 <text>涓婁紶鏃堕棿锛歿{ dateTimeText(doc.uploadTime) }}</text>
-              </view>
-              <view v-if="doc.fileUrl" class="sub-actions">
-                <button @click="openFile(doc.fileUrl)">棰勮 / 涓嬭浇</button>
               </view>
             </view>
           </template>

--
Gitblit v1.9.3