Browse Source

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

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

50
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,21 +6050,24 @@
showAlert('请选择客户类型'); showAlert('请选择客户类型');
return; return;
} }
if (!level) { // 当客户类型不是其他类型时,验证其他必填字段
showAlert('请选择客户等级'); if (type !== '其他类型') {
return; if (!level) {
} showAlert('请选择客户等级');
if (!demand) { return;
showAlert('请选择客户需求'); }
return; if (!demand) {
} showAlert('请选择客户需求');
if (!region) { return;
showAlert('请选择客户地区'); }
return; if (!region) {
} showAlert('请选择客户地区');
if (!company) { return;
showAlert('请填写客户公司'); }
return; if (!company) {
showAlert('请填写客户公司');
return;
}
} }
if (!content) { if (!content) {
showAlert('请填写跟进内容'); showAlert('请填写跟进内容');

Loading…
Cancel
Save