|
|
|
@ -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); |
|
|
|
}); |
|
|
|
|
|
|
|
|