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/crm/contract/detail.vue |   40 +---------------------------------------
 1 files changed, 1 insertions(+), 39 deletions(-)

diff --git a/src/pages/crm/contract/detail.vue b/src/pages/crm/contract/detail.vue
index 0fd2fd8..43ec4b5 100644
--- a/src/pages/crm/contract/detail.vue
+++ b/src/pages/crm/contract/detail.vue
@@ -21,7 +21,6 @@
     submitContract,
     transferContract,
     updatePermission,
-    uploadCrmFile,
     type ApproveProcess,
     type CrmContract,
     type CrmPermission,
@@ -42,7 +41,6 @@
   const active = ref("basic");
   const loading = ref(false);
   const saving = ref(false);
-  const uploading = ref(false);
   const users = ref<UserSimple[]>([]);
   const dicts = ref<DictData[]>([]);
   const followUps = ref<FollowUpRecord[]>([]);
@@ -236,32 +234,6 @@
         icon: "none",
       });
     }
-  }
-  async function chooseImage() {
-    if (!state.accessToken || uploading.value) return;
-    uni.chooseImage({
-      count: 9 - follow.picUrls.length,
-      success: async result => {
-        uploading.value = true;
-        try {
-          for (const path of result.tempFilePaths) {
-            const file = await uploadCrmFile(state.accessToken!, path);
-            const url = file.previewURL || file.url;
-            if (url) follow.picUrls.push(url);
-          }
-        } catch (error) {
-          uni.showToast({
-            title: error instanceof Error ? error.message : "鍥剧墖涓婁紶澶辫触",
-            icon: "none",
-          });
-        } finally {
-          uploading.value = false;
-        }
-      },
-    });
-  }
-  function removeImage(index: number) {
-    follow.picUrls.splice(index, 1);
   }
   async function saveFollow() {
     if (
@@ -482,18 +454,8 @@
               <view class="select">{{follow.nextTime||'璇烽�夋嫨鏃ユ湡'}}<text>鈥�</text></view>
             </picker><text class="required-label">璺熻繘鍐呭</text><textarea v-model="follow.content"
                       placeholder="璇疯緭鍏ユ湰娆¤窡杩涘唴瀹�" ></textarea>
-            <view class="upload-head"><text>鍥剧墖</text><text @click="chooseImage">涓婁紶鍥剧墖</text></view>
-            <view class="images">
-              <view v-for="(url,index) in follow.picUrls"
-                    :key="url"
-                    class="image">
-                <image :src="url"
-                       mode="aspectFill"
-                       @click="uni.previewImage({urls:follow.picUrls,current:url})" /><text @click="removeImage(index)">脳</text>
-              </view>
-            </view>
             <button class="primary"
-                    :loading="saving||uploading"
+                    :loading="saving"
                     @click="saveFollow">淇濆瓨璺熻繘</button>
           </view>
           <view v-for="item in followUps"

--
Gitblit v1.9.3