|
@@ -66,7 +66,7 @@
|
|
<select class="my-select" name="visitAdminId" id="visitAdminId" style="height: 36px;width: 200px;margin: 0px;padding: 6px 10px 6px 15px;">
|
|
<select class="my-select" name="visitAdminId" id="visitAdminId" style="height: 36px;width: 200px;margin: 0px;padding: 6px 10px 6px 15px;">
|
|
<#if adminList?? && (adminList?size > 0) >
|
|
<#if adminList?? && (adminList?size > 0) >
|
|
<#list adminList as admin>
|
|
<#list adminList as admin>
|
|
- <option value ="${admin.adminId!}" >${admin.adminName!}</option>
|
|
|
|
|
|
+ <option value ="${admin.adminId!}" <#if loginAdminId??><#if admin.adminId == loginAdminId >selected="selected"</#if></#if> >${admin.adminName!}</option>
|
|
</#list>
|
|
</#list>
|
|
</#if>
|
|
</#if>
|
|
</select>
|
|
</select>
|
|
@@ -75,7 +75,7 @@
|
|
</div>
|
|
</div>
|
|
<div style="margin-left: 10px;">
|
|
<div style="margin-left: 10px;">
|
|
<label>
|
|
<label>
|
|
- 您将为 自己 指定一个回访任务。<br/>
|
|
|
|
|
|
+ 您将为 <label id="visit-admin" style="color: red;">自己</label> 指定一个回访任务。<br/>
|
|
提示原则:<br/>
|
|
提示原则:<br/>
|
|
1、上午的回访 系统将在16日晚上22点、17日早晨9:30提醒您;<br/>
|
|
1、上午的回访 系统将在16日晚上22点、17日早晨9:30提醒您;<br/>
|
|
2、中午的回访 系统将在本日12点提醒您;<br/>
|
|
2、中午的回访 系统将在本日12点提醒您;<br/>
|
|
@@ -824,17 +824,17 @@
|
|
</div>
|
|
</div>
|
|
<!-- 补发处理end -->
|
|
<!-- 补发处理end -->
|
|
<form action="${path}/admin/customer/select_customer_list" method="post">
|
|
<form action="${path}/admin/customer/select_customer_list" method="post">
|
|
- <button type="button" style="cursor:pointer; float: left;" class="my-btn-search" onclick="toAddCustomer();">新建客诉</button>
|
|
|
|
- <input type="text" class="my-input" style="width:100px;margin-right: 0px;" value="${customerId!}" placeholder="客户姓名" id="customerName" name="customerName">
|
|
|
|
- <input type="text" class="my-input" style="width:100px;margin-right: 0px;" value="${customerId!}" placeholder="客户电话号码" id="customerTel" name="customerTel">
|
|
|
|
- <input type="text" class="my-input" style="width:100px;margin-right: 0px;" value="${customerId!}" placeholder="请输入问题描述" id="describeTitle" name="describeTitle">
|
|
|
|
|
|
+ <button type="button" style="cursor:pointer; float: left;height: 35px;" class="my-btn-search" onclick="toAddCustomer();">新建客诉</button>
|
|
|
|
+ <input type="text" class="my-input" style="width:90px;margin-right: 0px;" value="${customerId!}" placeholder="请输入姓名" id="customerName" name="customerName">
|
|
|
|
+ <input type="text" class="my-input" style="width:90px;margin-right: 0px;" value="${customerId!}" placeholder="请输入电话号码" id="customerTel" name="customerTel">
|
|
|
|
+ <input type="text" class="my-input" style="width:90px;margin-right: 0px;" value="${customerId!}" placeholder="请输入问题描述" id="describeTitle" name="describeTitle">
|
|
<select class="my-select" name="customerSource" id="customerSource" style="height: 36px;width: 100px;margin: 0px;padding: 6px 10px 6px 15px;">
|
|
<select class="my-select" name="customerSource" id="customerSource" style="height: 36px;width: 100px;margin: 0px;padding: 6px 10px 6px 15px;">
|
|
<option value="">来源</option>
|
|
<option value="">来源</option>
|
|
<option value="1" <#if customerInfo.customerSourceType??><#if customerInfo.customerSourceType == "1" >selected="selected"</#if></#if>>400电话</option>
|
|
<option value="1" <#if customerInfo.customerSourceType??><#if customerInfo.customerSourceType == "1" >selected="selected"</#if></#if>>400电话</option>
|
|
<option value="2" <#if customerInfo.customerSourceType??><#if customerInfo.customerSourceType == "2" >selected="selected"</#if></#if>>微信公众号</option>
|
|
<option value="2" <#if customerInfo.customerSourceType??><#if customerInfo.customerSourceType == "2" >selected="selected"</#if></#if>>微信公众号</option>
|
|
<option value="3" <#if customerInfo.customerSourceType??><#if customerInfo.customerSourceType == "3" >selected="selected"</#if></#if>>其他</option>
|
|
<option value="3" <#if customerInfo.customerSourceType??><#if customerInfo.customerSourceType == "3" >selected="selected"</#if></#if>>其他</option>
|
|
</select>
|
|
</select>
|
|
- <select class="my-select" name="typeId" id="typeId" style="height: 36px;width: 100px;margin: 0px;padding: 6px 10px 6px 15px;">
|
|
|
|
|
|
+ <select class="my-select" name="typeId" id="typeId" style="height: 36px;width: 120px;margin: 0px;">
|
|
<option value ="">客诉产品</option>
|
|
<option value ="">客诉产品</option>
|
|
<#if typeList?? && (typeList?size > 0) >
|
|
<#if typeList?? && (typeList?size > 0) >
|
|
<#list typeList as type>
|
|
<#list typeList as type>
|
|
@@ -842,7 +842,7 @@
|
|
</#list>
|
|
</#list>
|
|
</#if>
|
|
</#if>
|
|
</select>
|
|
</select>
|
|
- <select class="my-select" name="complaintId" style="height: 36px;width: 100px;margin: 0px;padding: 6px 10px 6px 15px;">
|
|
|
|
|
|
+ <select class="my-select" name="complaintId" style="height: 36px;width: 120px;margin: 0px;">
|
|
<option value ="">客诉类型</option>
|
|
<option value ="">客诉类型</option>
|
|
<#if complaintTypeList?? && (complaintTypeList?size > 0) >
|
|
<#if complaintTypeList?? && (complaintTypeList?size > 0) >
|
|
<#list complaintTypeList as complaint>
|
|
<#list complaintTypeList as complaint>
|
|
@@ -850,12 +850,12 @@
|
|
</#list>
|
|
</#list>
|
|
</#if>
|
|
</#if>
|
|
</select>
|
|
</select>
|
|
- <select class="my-select" name="customerIsVisit" style="height: 36px;width: 100px;margin: 0px;padding: 6px 10px 6px 15px;">
|
|
|
|
|
|
+ <select class="my-select" name="customerIsVisit" style="height: 36px;width: 120px;margin: 0px;>
|
|
<option value ="">是否需要回访</option>
|
|
<option value ="">是否需要回访</option>
|
|
<option value ="1" <#if customerInfo.customerIsVisit??><#if customerInfo.customerIsVisit == "1" >selected="selected"</#if></#if>>不需要回访</option>
|
|
<option value ="1" <#if customerInfo.customerIsVisit??><#if customerInfo.customerIsVisit == "1" >selected="selected"</#if></#if>>不需要回访</option>
|
|
<option value ="2" <#if customerInfo.customerIsVisit??><#if customerInfo.customerIsVisit == "2" >selected="selected"</#if></#if>>需要回访</option>
|
|
<option value ="2" <#if customerInfo.customerIsVisit??><#if customerInfo.customerIsVisit == "2" >selected="selected"</#if></#if>>需要回访</option>
|
|
</select>
|
|
</select>
|
|
- <select class="my-select" name="adminId" style="height: 36px;width: 100px;margin: 0px;padding: 6px 10px 6px 15px;">
|
|
|
|
|
|
+ <select class="my-select" name="adminId" style="height: 36px;width: 120px;margin: 0px;">
|
|
<option value ="">跟进客服</option>
|
|
<option value ="">跟进客服</option>
|
|
<#if adminList?? && (adminList?size > 0) >
|
|
<#if adminList?? && (adminList?size > 0) >
|
|
<#list adminList as admin>
|
|
<#list adminList as admin>
|
|
@@ -863,7 +863,7 @@
|
|
</#list>
|
|
</#list>
|
|
</#if>
|
|
</#if>
|
|
</select>
|
|
</select>
|
|
- <button type="submit" class="btn" style="background: #32a3d8;color: #fff;-webkit-transform:translateY(-5%);" id="" name=""><i class="Hui-iconfont"></i> 搜索</button>
|
|
|
|
|
|
+ <button type="submit" class="btn" style="background: #32a3d8;color: #fff;-webkit-transform:translateY(-5%);height: 35px;" id="" name=""><i class="Hui-iconfont"></i> 搜索</button>
|
|
</form>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -874,7 +874,7 @@
|
|
<tr class="text-c">
|
|
<tr class="text-c">
|
|
<th width="50">跟进客服</th>
|
|
<th width="50">跟进客服</th>
|
|
<th width="60">姓名</th>
|
|
<th width="60">姓名</th>
|
|
- <th width="100">电话</th>
|
|
|
|
|
|
+ <th width="70">电话</th>
|
|
<th width="80">来源入口</th>
|
|
<th width="80">来源入口</th>
|
|
<th width="80">客诉产品</th>
|
|
<th width="80">客诉产品</th>
|
|
<th width="80">客诉类型</th>
|
|
<th width="80">客诉类型</th>
|
|
@@ -882,12 +882,12 @@
|
|
<th width="100">问题简述</th>
|
|
<th width="100">问题简述</th>
|
|
<th width="80">销售</th>
|
|
<th width="80">销售</th>
|
|
<th width="80">购买日期</th>
|
|
<th width="80">购买日期</th>
|
|
- <th width="80">区域</th>
|
|
|
|
- <th width="80">TDS</th>
|
|
|
|
|
|
+ <th width="60">区域</th>
|
|
|
|
+ <th width="60">TDS</th>
|
|
<th width="80">处理结果</th>
|
|
<th width="80">处理结果</th>
|
|
<th width="80">需要回访</th>
|
|
<th width="80">需要回访</th>
|
|
<th width="80">客诉时间</th>
|
|
<th width="80">客诉时间</th>
|
|
- <th width="80">操作</th>
|
|
|
|
|
|
+ <th width="100">操作</th>
|
|
</tr>
|
|
</tr>
|
|
</thead>
|
|
</thead>
|
|
<tbody>
|
|
<tbody>
|
|
@@ -896,7 +896,11 @@
|
|
<tr class="text-c">
|
|
<tr class="text-c">
|
|
<td>${customer.adminName!''}</td>
|
|
<td>${customer.adminName!''}</td>
|
|
<td>${customer.customerName!''}</td>
|
|
<td>${customer.customerName!''}</td>
|
|
- <td>${customer.customerTel!''}</td>
|
|
|
|
|
|
+ <#if (customer.customerTel)?? && customer.customerTel?length gt 7>
|
|
|
|
+ <td>${customer.customerTel?substring(0,3)}***${customer.customerTel?substring(customer.customerTel?length-4,customer.customerTel?length)}</td>
|
|
|
|
+ <#else>
|
|
|
|
+ <td>${customer.customerTel!''}</td>
|
|
|
|
+ </#if>
|
|
<td>
|
|
<td>
|
|
<#if customer.customerSourceType == 1>
|
|
<#if customer.customerSourceType == 1>
|
|
400电话
|
|
400电话
|
|
@@ -912,15 +916,15 @@
|
|
<td>
|
|
<td>
|
|
${customer.describeTitle!'暂无'}
|
|
${customer.describeTitle!'暂无'}
|
|
<#if customer.describeTitle??>
|
|
<#if customer.describeTitle??>
|
|
- <a style="text-decoration:none" href="javascript:void(0);" title="查看详情" onclick="getDescribeInfo(${customer.customerId!''})">
|
|
|
|
- <i class="Hui-iconfont">查看详情</i>
|
|
|
|
|
|
+ <a style="" href="javascript:void(0);" title="查看详情" onclick="getDescribeInfo(${customer.customerId!''})">
|
|
|
|
+ 查看详情
|
|
</a>
|
|
</a>
|
|
</#if>
|
|
</#if>
|
|
</td>
|
|
</td>
|
|
- <td>${customer.companyName!''}-${customer.storeName!''}</td>
|
|
|
|
- <td>${(customer.salesTime?string("yyyy-MM-dd HH:mm:ss"))!''}</td>
|
|
|
|
|
|
+ <td>${customer.companyName!''}<br/>${customer.storeName!''}</td>
|
|
|
|
+ <td>${(customer.salesTime?string("yyyy-MM-dd"))!''}</td>
|
|
<td>${customer.customerArea!''}</td>
|
|
<td>${customer.customerArea!''}</td>
|
|
- <td>进${customer.customerInTDS!'0'}出${customer.customerOutTDS!'0'}</td>
|
|
|
|
|
|
+ <td>进${customer.customerInTDS!'0'}<br/>出${customer.customerOutTDS!'0'}</td>
|
|
<td id="txt_customerIsSolve">
|
|
<td id="txt_customerIsSolve">
|
|
<#if customer.customerIsSolve == 1>
|
|
<#if customer.customerIsSolve == 1>
|
|
已解决
|
|
已解决
|
|
@@ -1025,41 +1029,36 @@
|
|
不需要回访
|
|
不需要回访
|
|
<#elseif customer.customerIsVisit == "2">
|
|
<#elseif customer.customerIsVisit == "2">
|
|
<#if customer.visitStatus == 1>
|
|
<#if customer.visitStatus == 1>
|
|
- 待回访
|
|
|
|
|
|
+ 待回访<font style="color:red;">(${(customer.visitDate?string("yyyy-MM-dd"))!''}完成)</font>
|
|
<#elseif customer.visitStatus == 2>
|
|
<#elseif customer.visitStatus == 2>
|
|
- 已回访
|
|
|
|
|
|
+ 已回访<br/>
|
|
<a style="text-decoration:none" href="javascript:void(0);" title="回访内容" onclick="getVisitInfo(${customer.customerId!''})">
|
|
<a style="text-decoration:none" href="javascript:void(0);" title="回访内容" onclick="getVisitInfo(${customer.customerId!''})">
|
|
<i class="Hui-iconfont">回访内容</i>
|
|
<i class="Hui-iconfont">回访内容</i>
|
|
</a>
|
|
</a>
|
|
</#if>
|
|
</#if>
|
|
</#if>
|
|
</#if>
|
|
</td>
|
|
</td>
|
|
- <td>${(customer.customerCreateTime?string("yyyy-MM-dd HH:mm:ss"))!''}</td>
|
|
|
|
|
|
+ <td>${(customer.customerCreateTime?string("yyyy-MM-dd"))!''}</td>
|
|
<td>
|
|
<td>
|
|
<#if customer.customerIsSolve == 2>
|
|
<#if customer.customerIsSolve == 2>
|
|
<a style="text-decoration:none" href="javascript:void(0);" title="已解决" onclick="updateCustomerIsSolve(${customer.customerId!''})">
|
|
<a style="text-decoration:none" href="javascript:void(0);" title="已解决" onclick="updateCustomerIsSolve(${customer.customerId!''})">
|
|
<i class="Hui-iconfont">已解决</i>
|
|
<i class="Hui-iconfont">已解决</i>
|
|
- </a>
|
|
|
|
|
|
+ </a><br/>
|
|
</#if>
|
|
</#if>
|
|
<a style="text-decoration:none" href="javascript:void(0);" title="详情" onclick="admin_details_customer(${customer.customerId!''})">
|
|
<a style="text-decoration:none" href="javascript:void(0);" title="详情" onclick="admin_details_customer(${customer.customerId!''})">
|
|
<i class="Hui-iconfont">详情</i>
|
|
<i class="Hui-iconfont">详情</i>
|
|
- </a>
|
|
|
|
|
|
+ </a><br/>
|
|
<#if customer.customerIsVisit == "2">
|
|
<#if customer.customerIsVisit == "2">
|
|
<#if customer.visitStatus == 1 && customer.customerIsVisit == "2">
|
|
<#if customer.visitStatus == 1 && customer.customerIsVisit == "2">
|
|
<a style="text-decoration:none" href="javascript:void(0);" title="已完成回访" onclick="showVisitFinish(${customer.customerId!''})">
|
|
<a style="text-decoration:none" href="javascript:void(0);" title="已完成回访" onclick="showVisitFinish(${customer.customerId!''})">
|
|
- <i class="Hui-iconfont">
|
|
|
|
- 已完成回访
|
|
|
|
- </i>
|
|
|
|
- </a>
|
|
|
|
|
|
+ <i class="Hui-iconfont">已完成回访</i>
|
|
|
|
+ </a><br/>
|
|
</#if>
|
|
</#if>
|
|
</#if>
|
|
</#if>
|
|
- <#--<a style="text-decoration:none" href="javascript:void(0);" title="修改客诉信息" onclick="admin_update_customer(${customer.customerId!''})">
|
|
|
|
- <i class="Hui-iconfont">修改客诉信息</i>
|
|
|
|
- </a> -->
|
|
|
|
<#if customer.customerIsVisit == "1">
|
|
<#if customer.customerIsVisit == "1">
|
|
<a style="text-decoration:none" href="javascript:void(0)" title="需要回访" onclick="showVisit(${customer.customerId!''})">
|
|
<a style="text-decoration:none" href="javascript:void(0)" title="需要回访" onclick="showVisit(${customer.customerId!''})">
|
|
<i class="Hui-iconfont">需要回访</i>
|
|
<i class="Hui-iconfont">需要回访</i>
|
|
- </a>
|
|
|
|
|
|
+ </a><br/>
|
|
</#if>
|
|
</#if>
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
@@ -1080,6 +1079,7 @@
|
|
var uname = /^[\u4e00-\u9fa5a-zA-Z]{1,12}$/; //中文英文
|
|
var uname = /^[\u4e00-\u9fa5a-zA-Z]{1,12}$/; //中文英文
|
|
var money = /^(([1-9][0-9]*)|(([0]\.\d{1,2}|[1-9][0-9]*\.\d{1,2})))$/;//金额
|
|
var money = /^(([1-9][0-9]*)|(([0]\.\d{1,2}|[1-9][0-9]*\.\d{1,2})))$/;//金额
|
|
var flag = true;
|
|
var flag = true;
|
|
|
|
+ var loginAdminId = ${loginAdminId!''};
|
|
|
|
|
|
/**
|
|
/**
|
|
* 跳转到添加customer页面
|
|
* 跳转到添加customer页面
|
|
@@ -1176,6 +1176,16 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ $('#visitAdminId').change(function() {
|
|
|
|
+ var name = $('#visitAdminId option:selected').html();
|
|
|
|
+ var adminId = $('#visitAdminId option:selected').val();
|
|
|
|
+ if (adminId == loginAdminId) {
|
|
|
|
+ $('#visit-admin').html('自己');
|
|
|
|
+ } else {
|
|
|
|
+ $('#visit-admin').html(name);
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 添加回访完成信息
|
|
* 添加回访完成信息
|
|
*/
|
|
*/
|