From 2e4b04ddbbcb82531fbc29eeadbefc46591584e0 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 16 六月 2026 15:18:55 +0800
Subject: [PATCH] 君歌 1.部署修改

---
 src/views/basicData/customerFileOpenSea/index.vue |   54 ++++++++++++++++++++++++++++++++++++++----------------
 1 files changed, 38 insertions(+), 16 deletions(-)

diff --git a/src/views/basicData/customerFileOpenSea/index.vue b/src/views/basicData/customerFileOpenSea/index.vue
index 31e5795..943339e 100644
--- a/src/views/basicData/customerFileOpenSea/index.vue
+++ b/src/views/basicData/customerFileOpenSea/index.vue
@@ -15,10 +15,14 @@
                    style="width: 240px"
                    clearable
                    @change="handleQuery">
-          <el-option label="闆跺敭瀹㈡埛"
-                     value="闆跺敭瀹㈡埛" />
-          <el-option label="杩涢攢鍟嗗鎴�"
-                     value="杩涢攢鍟嗗鎴�" />
+          <el-option label="鏍稿績"
+                     value="鏍稿績" />
+          <el-option label="閲嶈"
+                     value="閲嶈" />
+          <el-option label="鏅��"
+                     value="鏅��" />
+          <el-option label="涓�鑸�"
+                     value="涓�鑸�" />
         </el-select>
         <el-button type="primary"
                    @click="handleQuery"
@@ -125,10 +129,14 @@
               <el-select v-model="form.customerType"
                          placeholder="璇烽�夋嫨"
                          clearable>
-                <el-option label="闆跺敭瀹㈡埛"
-                           value="闆跺敭瀹㈡埛" />
-                <el-option label="杩涢攢鍟嗗鎴�"
-                           value="杩涢攢鍟嗗鎴�" />
+                <el-option label="鏍稿績"
+                           value="鏍稿績" />
+                <el-option label="閲嶈"
+                           value="閲嶈" />
+                <el-option label="鏅��"
+                           value="鏅��" />
+                <el-option label="涓�鑸�"
+                           value="涓�鑸�" />
               </el-select>
             </el-form-item>
           </el-col>
@@ -280,7 +288,8 @@
                  :limit="1"
                  accept=".xlsx, .xls"
                  :headers="upload.headers"
-                 :action="upload.url + '?updateSupport=' + upload.updateSupport"
+                 :action="upload.url"
+                 :data="upload.data"
                  :disabled="upload.isUploading"
                  :before-upload="upload.beforeUpload"
                  :on-progress="upload.onProgress"
@@ -681,7 +690,6 @@
   import { onMounted, ref, reactive, getCurrentInstance, toRefs } from "vue";
   import { Search, Paperclip, Upload } from "@element-plus/icons-vue";
   import {
-    shareCustomer,
     addCustomerFollow,
     updateCustomerFollow,
     delCustomerFollow,
@@ -695,7 +703,8 @@
     updateCustomer,
     getCustomer,
     assignCustomer,
-    recycleCustomer
+    recycleCustomer,
+    shareCustomer,
   } from "@/api/basicData/customer.js";
 
   import { ElMessageBox } from "element-plus";
@@ -807,7 +816,17 @@
     {
       label: "瀹㈡埛鍒嗙被",
       prop: "customerType",
+      dataType: "tag",
       width: 120,
+      formatType: value => {
+        switch (value) {
+          case "鏍稿績": return "danger";
+          case "閲嶈": return "warning";
+          case "鏅��": return "primary";
+          case "涓�鑸�": return "info";
+          default: return "info";
+        }
+      },
     },
     {
       label: "瀹㈡埛鍚嶇О",
@@ -1020,6 +1039,9 @@
     headers: { Authorization: "Bearer " + getToken() },
     // 涓婁紶鐨勫湴鍧�
     url: import.meta.env.VITE_APP_BASE_API + "/basic/customer/importData",
+    data: {
+      type: 1
+    },
     // 鏂囦欢涓婁紶鍓嶇殑鍥炶皟
     beforeUpload: file => {
       console.log("鏂囦欢鍗冲皢涓婁紶", file);
@@ -1220,7 +1242,7 @@
   const openShareDialog = row => {
     shareForm.id = row.id;
     shareForm.customerName = row.customerName;
-    shareForm.boundIds = [];
+    shareForm.boundIds = row.userIds || [];
     ensureUserList().then(() => {
       shareDialogVisible.value = true;
     });
@@ -1253,8 +1275,8 @@
         return;
       }
       shareCustomer({
-        customerId: shareForm.id,
-        boundIds: shareForm.boundIds,
+        id: shareForm.id,
+        userIds: shareForm.boundIds,
       }).then(() => {
         proxy.$modal.msgSuccess("鍏变韩鎴愬姛");
         closeShareDialog();
@@ -1288,7 +1310,7 @@
       type: "warning",
     })
       .then(() => {
-        proxy.download("/basic/customer/export", {}, "瀹㈡埛妗f.xlsx");
+        proxy.download("/basic/customer/export", {type: 1}, "瀹㈡埛妗f.xlsx");
       })
       .catch(() => {
         proxy.$modal.msg("宸插彇娑�");
@@ -1647,7 +1669,7 @@
   const downloadAttachment = row => {
     if (row.url) {
       // proxy.download(row.url, {}, row.name);
-      proxy.$download.name(row.url);
+			proxy.$download.byUrl(row.url, row.originalFilename);
     } else {
       proxy.$modal.msgError("涓嬭浇閾炬帴涓嶅瓨鍦�");
     }

--
Gitblit v1.9.3