From a2c33664f683aee11fdc62391c8d1e21cc74f5b2 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 21 五月 2026 17:24:49 +0800
Subject: [PATCH] 天津宝东 1.修改展示字段

---
 src/views/basicData/customerFileOpenSea/index.vue |   88 ++++++++++++++++---------------------------
 1 files changed, 33 insertions(+), 55 deletions(-)

diff --git a/src/views/basicData/customerFileOpenSea/index.vue b/src/views/basicData/customerFileOpenSea/index.vue
index 2332d04..ac901cc 100644
--- a/src/views/basicData/customerFileOpenSea/index.vue
+++ b/src/views/basicData/customerFileOpenSea/index.vue
@@ -1,6 +1,6 @@
 <template>
   <div class="app-container">
-    <div class="search_form">
+    <div class="search_form" style="margin-bottom: 20px;">
       <div>
         <span class="search_title">瀹㈡埛鍚嶇О锛�</span>
         <el-input v-model="searchForm.customerName"
@@ -228,7 +228,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"
@@ -631,20 +632,23 @@
   import { onMounted, ref, reactive, getCurrentInstance, toRefs } from "vue";
   import { Search, Paperclip, Upload } from "@element-plus/icons-vue";
   import {
-    addCustomer,
-    addCustomerPrivatePool,
-    delCustomerPrivatePool,
-    delCustomer,
-    getCustomer,
-    shareCustomer,
-    listCustomer,
-    updateCustomer,
     addCustomerFollow,
     updateCustomerFollow,
     delCustomerFollow,
     addReturnVisit,
     getReturnVisit,
   } from "@/api/basicData/customerFile.js";
+  import {
+    listCustomer,
+    addCustomer,
+    delCustomer,
+    updateCustomer,
+    getCustomer,
+    assignCustomer,
+    recycleCustomer,
+    shareCustomer,
+  } from "@/api/basicData/customer.js";
+
   import { ElMessageBox } from "element-plus";
   import { userListNoPage } from "@/api/system/user.js";
   import useUserStore from "@/store/modules/user";
@@ -762,11 +766,6 @@
       width: 220,
     },
     {
-      label: "绾崇◣浜鸿瘑鍒爜",
-      prop: "taxpayerIdentificationNumber",
-      width: 220,
-    },
-    {
       label: "鍦板潃鍙婅仈绯绘柟寮�",
       prop: "addressPhone",
       width: 250,
@@ -784,31 +783,6 @@
       label: "鑱旂郴浜哄矖浣�",
       prop: "contactPosition",
       width: 140,
-    },
-    // {
-    //   label: "璺熻繘杩涘害",
-    //   prop: "followUpLevel",
-    //   width: 120,
-    // },
-    // {
-    //   label: "璺熻繘鏃堕棿",
-    //   prop: "followUpTime",
-    //   width: 120,
-    // },
-    {
-      label: "閾惰鍩烘湰鎴�",
-      prop: "basicBankAccount",
-      width: 220,
-    },
-    {
-      label: "閾惰璐﹀彿",
-      prop: "bankAccount",
-      width: 220,
-    },
-    {
-      label: "寮�鎴疯鍙�",
-      prop: "bankCode",
-      width: 220,
     },
     {
       label: "缁存姢浜�",
@@ -870,7 +844,7 @@
           type: "text",
           showHide: row => row.usageStatus == 1,
           clickFun: row => {
-            recycleCustomer(row);
+            recycle(row);
           },
         },
 				{
@@ -926,6 +900,7 @@
     searchForm: {
       customerName: "",
       customerType: "",
+      type: 1
     },
     form: {
       customerName: "",
@@ -935,6 +910,7 @@
       contactPhone: "",
       contactPosition: "",
       customerType: "",
+      type: 1
     },
     rules: {
       customerName: [{ required: true, message: "璇疯緭鍏�", trigger: "blur" }],
@@ -954,6 +930,9 @@
     headers: { Authorization: "Bearer " + getToken() },
     // 涓婁紶鐨勫湴鍧�
     url: import.meta.env.VITE_APP_BASE_API + "/basic/customer/importData",
+    data: {
+      type: 1
+    },
     // 鏂囦欢涓婁紶鍓嶇殑鍥炶皟
     beforeUpload: file => {
       console.log("鏂囦欢鍗冲皢涓婁紶", file);
@@ -1166,7 +1145,7 @@
   const openShareDialog = row => {
     shareForm.id = row.id;
     shareForm.customerName = row.customerName;
-    shareForm.boundIds = [];
+    shareForm.boundIds = row.userIds || [];
     ensureUserList().then(() => {
       shareDialogVisible.value = true;
     });
@@ -1183,9 +1162,9 @@
       if (!valid) {
         return;
       }
-      addCustomerPrivatePool({
-        customerId: assignForm.id,
-        boundId: assignForm.boundId,
+      assignCustomer({
+        id: assignForm.id,
+        usageUser: assignForm.boundId,
       }).then(() => {
         proxy.$modal.msgSuccess("鍒嗛厤鎴愬姛");
         closeAssignDialog();
@@ -1199,8 +1178,8 @@
         return;
       }
       shareCustomer({
-        customerId: shareForm.id,
-        boundIds: shareForm.boundIds,
+        id: shareForm.id,
+        userIds: shareForm.boundIds,
       }).then(() => {
         proxy.$modal.msgSuccess("鍏变韩鎴愬姛");
         closeShareDialog();
@@ -1208,18 +1187,17 @@
       });
     });
   };
-  const recycleCustomer = row => {
+  const recycle = row => {
     ElMessageBox.confirm("纭鍥炴敹瀹㈡埛鈥�" + row.customerName + "鈥濆悧锛�", "鍥炴敹鎻愮ず", {
       confirmButtonText: "纭",
       cancelButtonText: "鍙栨秷",
       type: "warning",
     })
       .then(() => {
-        return delCustomerPrivatePool(row.id);
-      })
-      .then(() => {
-        proxy.$modal.msgSuccess("鍥炴敹鎴愬姛");
-        getList();
+        return recycleCustomer({id: row.id}).then(() => {
+          proxy.$modal.msgSuccess("鍥炴敹鎴愬姛");
+          getList();
+        })
       })
       .catch(error => {
         if (error === "cancel" || error === "close") {
@@ -1235,7 +1213,7 @@
       type: "warning",
     })
       .then(() => {
-        proxy.download("/basic/customer/export", {}, "瀹㈡埛妗f.xlsx");
+        proxy.download("/basic/customer/export", {type: 1}, "瀹㈡埛妗f.xlsx");
       })
       .catch(() => {
         proxy.$modal.msg("宸插彇娑�");
@@ -1594,7 +1572,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