From 8bb675aa9bd1ed5e6eeeb6bf5aa7f6e240bddf43 Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期三, 29 四月 2026 10:59:01 +0800
Subject: [PATCH] 共享客户回显
---
src/views/basicData/customerFileOpenSea/index.vue | 10 +++++-----
src/api/basicData/customer.js | 8 ++++++++
2 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/src/api/basicData/customer.js b/src/api/basicData/customer.js
index 601e974..28f2eab 100644
--- a/src/api/basicData/customer.js
+++ b/src/api/basicData/customer.js
@@ -26,6 +26,14 @@
})
}
+export function shareCustomer(data) {
+ return request({
+ url: '/basic/customer/together',
+ method: 'post',
+ data: data
+ })
+}
+
export function getCustomer(id) {
return request({
url: '/basic/customer/' + id,
diff --git a/src/views/basicData/customerFileOpenSea/index.vue b/src/views/basicData/customerFileOpenSea/index.vue
index 8dc4618..e2b68b3 100644
--- a/src/views/basicData/customerFileOpenSea/index.vue
+++ b/src/views/basicData/customerFileOpenSea/index.vue
@@ -681,7 +681,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 +694,8 @@
updateCustomer,
getCustomer,
assignCustomer,
- recycleCustomer
+ recycleCustomer,
+ shareCustomer,
} from "@/api/basicData/customer.js";
import { ElMessageBox } from "element-plus";
@@ -1220,7 +1220,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 +1253,8 @@
return;
}
shareCustomer({
- customerId: shareForm.id,
- boundIds: shareForm.boundIds,
+ id: shareForm.id,
+ userIds: shareForm.boundIds,
}).then(() => {
proxy.$modal.msgSuccess("鍏变韩鎴愬姛");
closeShareDialog();
--
Gitblit v1.9.3