diff --git a/web/src/main/resources/static/index.html b/web/src/main/resources/static/index.html index 7aab26d..bb11392 100644 --- a/web/src/main/resources/static/index.html +++ b/web/src/main/resources/static/index.html @@ -5299,6 +5299,23 @@ document.body.insertAdjacentHTML('beforeend', permissionModalHTML); 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 var employeeApplyModalHTML = `