Browse Source

更新跟进选择其他客户的操作

KH
Trae AI 3 days ago
parent
commit
4a3e3cb40e
  1. 20
      web/src/main/resources/static/index.html

20
web/src/main/resources/static/index.html

@ -5299,6 +5299,23 @@
document.body.insertAdjacentHTML('beforeend', permissionModalHTML); document.body.insertAdjacentHTML('beforeend', permissionModalHTML);
document.body.insertAdjacentHTML('beforeend', applyModalHTML); document.body.insertAdjacentHTML('beforeend', applyModalHTML);
// 为客户类型选择添加事件监听器
document.getElementById('followupType').addEventListener('change', function() {
var selectedType = this.value;
if (selectedType === '其他类型') {
// 设置跟进内容为非鸡蛋行业客户
document.getElementById('followupContent').value = '非鸡蛋行业客户';
// 清空其他相关字段
document.getElementById('followupLevel').value = '';
document.getElementById('followupDemand').value = '';
document.getElementById('followupRegion').value = '';
document.getElementById('followupRegionDisplay').textContent = '请选择客户地区';
document.getElementById('followupRegionDisplay').style.color = '#999';
document.getElementById('followupDetailedAddress').value = '';
document.getElementById('followupCompany').value = '';
}
});
// 员工申请记录模态框HTML // 员工申请记录模态框HTML
var employeeApplyModalHTML = ` var employeeApplyModalHTML = `
<div id="employeeApplyModal" style="position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.7) 100%); backdrop-filter: blur(5px); display: none; z-index: 1000; animation: fadeIn 0.3s ease;"> <div id="employeeApplyModal" style="position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.7) 100%); backdrop-filter: blur(5px); display: none; z-index: 1000; animation: fadeIn 0.3s ease;">
@ -6033,6 +6050,8 @@
showAlert('请选择客户类型'); showAlert('请选择客户类型');
return; return;
} }
// 当客户类型不是其他类型时,验证其他必填字段
if (type !== '其他类型') {
if (!level) { if (!level) {
showAlert('请选择客户等级'); showAlert('请选择客户等级');
return; return;
@ -6049,6 +6068,7 @@
showAlert('请填写客户公司'); showAlert('请填写客户公司');
return; return;
} }
}
if (!content) { if (!content) {
showAlert('请填写跟进内容'); showAlert('请填写跟进内容');
return; return;

Loading…
Cancel
Save