diff --git a/src/main/resources/static/sells.html b/src/main/resources/static/sells.html
index 79b0794..4532eef 100644
--- a/src/main/resources/static/sells.html
+++ b/src/main/resources/static/sells.html
@@ -5066,10 +5066,16 @@
if (data.success) {
alert('客户认领成功!');
// 刷新公海池列表
- if (currentTab === 'departmentSeaPool') {
- showDepartmentSeaPool();
- } else if (currentTab === 'organizationSeaPool') {
- showOrganizationSeaPool();
+ // 检查哪个公海池表格当前可见
+ const departmentTable = document.getElementById('department-sea-pools-customers');
+ const organizationTable = document.getElementById('organization-sea-pools-customers');
+
+ if (departmentTable && departmentTable.style.display === 'table-row-group') {
+ // 如果部门公海池表格可见,直接更新表格
+ updateDepartmentSeaPoolTable();
+ } else if (organizationTable && organizationTable.style.display === 'table-row-group') {
+ // 如果组织公海池表格可见,直接更新表格
+ updateOrganizationSeaPoolTable();
}
} else {
alert('客户认领失败: ' + (data.message || '未知错误'));
diff --git a/src/main/resources/static/supply.html b/src/main/resources/static/supply.html
index 0406b3c..3cdca3a 100644
--- a/src/main/resources/static/supply.html
+++ b/src/main/resources/static/supply.html
@@ -5069,10 +5069,16 @@
if (data.success) {
alert('客户认领成功!');
// 刷新公海池列表
- if (currentTab === 'departmentSeaPool') {
- showDepartmentSeaPool();
- } else if (currentTab === 'organizationSeaPool') {
- showOrganizationSeaPool();
+ // 检查哪个公海池表格当前可见
+ const departmentTable = document.getElementById('department-sea-pools-customers');
+ const organizationTable = document.getElementById('organization-sea-pools-customers');
+
+ if (departmentTable && departmentTable.style.display === 'table-row-group') {
+ // 如果部门公海池表格可见,直接重新渲染
+ renderDepartmentSeaPool(departmentSeaPoolData);
+ } else if (organizationTable && organizationTable.style.display === 'table-row-group') {
+ // 如果组织公海池表格可见,直接重新渲染
+ renderOrganizationSeaPool(organizationSeaPoolData);
}
} else {
alert('客户认领失败: ' + (data.message || '未知错误'));
@@ -6183,6 +6189,9 @@
customerData[customer.id] = customer;
});
+ // 更新全局部门公海池数据
+ departmentSeaPoolData = finalFilteredCustomers;
+
renderDepartmentSeaPool(finalFilteredCustomers);
});
@@ -6212,6 +6221,9 @@
customerData[customer.id] = customer;
});
+ // 更新全局组织公海池数据
+ organizationSeaPoolData = finalFilteredCustomers;
+
renderOrganizationSeaPool(finalFilteredCustomers);
});