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/customer/detail.vue | 40 +---------------------------------------
1 files changed, 1 insertions(+), 39 deletions(-)
diff --git a/src/pages/crm/customer/detail.vue b/src/pages/crm/customer/detail.vue
index 5ebc095..9a11bac 100644
--- a/src/pages/crm/customer/detail.vue
+++ b/src/pages/crm/customer/detail.vue
@@ -27,7 +27,6 @@
transferCustomer,
updateCustomerDealStatus,
updatePermission,
- uploadCrmFile,
type Business,
type CrmContact,
type CrmContract,
@@ -49,7 +48,6 @@
const activeTab = ref("basic");
const loading = ref(false);
const saving = ref(false);
- const uploading = ref(false);
const contacts = ref<CrmContact[]>([]);
const businesses = ref<Business[]>([]);
const contracts = ref<CrmContract[]>([]);
@@ -372,32 +370,6 @@
});
}
}
- 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 (
!state.accessToken ||
@@ -576,18 +548,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