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

diff --git a/src/pages/crm/business/detail.vue b/src/pages/crm/business/detail.vue
index 2d5d9f3..1098181 100644
--- a/src/pages/crm/business/detail.vue
+++ b/src/pages/crm/business/detail.vue
@@ -19,7 +19,6 @@
     transferBusiness,
     updateBusinessStatus,
     updatePermission,
-    uploadCrmFile,
     type Business,
     type CrmContact,
     type CrmContract,
@@ -39,7 +38,6 @@
   const activeTab = ref("basic");
   const loading = ref(false);
   const saving = ref(false);
-  const uploading = ref(false);
   const followUps = ref<FollowUpRecord[]>([]);
   const contacts = ref<CrmContact[]>([]);
   const contracts = ref<CrmContract[]>([]);
@@ -195,32 +193,6 @@
     uni.showToast({ title: "鐘舵�佸凡鏇存柊", icon: "success" });
     loadDetail();
   }
-  async function chooseFollowImage() {
-    if (!state.accessToken || uploading.value) return;
-    uni.chooseImage({
-      count: 9 - followForm.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) followForm.picUrls.push(url);
-          }
-        } catch (error) {
-          uni.showToast({
-            title: error instanceof Error ? error.message : "鍥剧墖涓婁紶澶辫触",
-            icon: "none",
-          });
-        } finally {
-          uploading.value = false;
-        }
-      },
-    });
-  }
-  function removeImage(index: number) {
-    followForm.picUrls.splice(index, 1);
-  }
   async function saveFollow() {
     if (
       !state.accessToken ||
@@ -372,19 +344,8 @@
             </picker>
             <view class="required-label">璺熻繘鍐呭</view><textarea v-model="followForm.content"
                       placeholder="璇疯緭鍏ユ湰娆¤窡杩涘唴瀹�" ></textarea>
-            <view class="upload-head"><text>鍥剧墖</text><text @click="chooseFollowImage">涓婁紶鍥剧墖</text></view>
-            <view v-if="followForm.picUrls.length"
-                  class="image-list">
-              <view v-for="(url,index) in followForm.picUrls"
-                    :key="url"
-                    class="image-item">
-                <image :src="url"
-                       mode="aspectFill"
-                       @click="uni.previewImage({urls:followForm.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