|
@@ -87,79 +87,125 @@
|
|
|
</div>
|
|
|
</form>
|
|
|
<span class="layui-layer-setwin">
|
|
|
- <a class="layui-layer-ico layui-layer-close layui-layer-close1" onclick="hideVisit()" href="javascript:;"></a>
|
|
|
+ <a class="layui-layer-ico layui-layer-close layui-layer-close1" onclick="hide_this(this)" href="javascript:;"></a>
|
|
|
</span>
|
|
|
</div>
|
|
|
<!-- 客诉回访end -->
|
|
|
<!-- 录入已完成回访内容start -->
|
|
|
- <div class="layui-layer layui-anim layui-layer-iframe" id="layui-visit" times="4" showtime="0" contype="string" style="display:none;z-index: 19891018; width: 550px; height: 400px; position: absolute; top: 100px; left: 350px;text-align: left;">
|
|
|
- <form action="" name="form-admin-visit" method="post" class="form form-horizontal" id="form-admin-visit">
|
|
|
+ <div class="layui-layer layui-anim layui-layer-iframe" id="layui-visit-finish" times="4" showtime="0" contype="string" style="display:none;z-index: 19891018; width: 550px; height: 400px; position: absolute; top: 100px; left: 350px;text-align: left;">
|
|
|
+ <form action="" name="form-visit-finish" method="post" class="form form-horizontal" id="form-visit-finish">
|
|
|
<div class="layui-layer-title" id="synOrder" style="cursor: move;" move="ok">已完成回访</div>
|
|
|
<br>
|
|
|
<div style="margin-left: 10px;">
|
|
|
<div class="formControls" style="margin-top: 10px;">
|
|
|
+ <input type="hidden" id="finish_customerId" name="finish_customerId">
|
|
|
<label><span class="c-red">*</span> 回访日期:</label>
|
|
|
- <input type="text" id="visitDate" onClick="WdatePicker({ dateFmt:'yyyy-MM-dd',skin:'whyGreen' })" class="input-text" value="" style="width: 200px;" name="visitDate" nullmsg="回访日期不能为空" readonly="readonly"">
|
|
|
+ <input type="text" id="visitCompleteDate" onClick="WdatePicker({ dateFmt:'yyyy-MM-dd',skin:'whyGreen' })" class="input-text" value="" style="width: 200px;" name="visitCompleteDate" nullmsg="回访日期不能为空" readonly="readonly"">
|
|
|
</div>
|
|
|
<div class="col-4"> </div>
|
|
|
</div>
|
|
|
<div style="margin-left: 10px;">
|
|
|
<div class="formControls" style="margin-top: 10px;">
|
|
|
<label><span class="c-red">*</span> 客诉性别:</label>
|
|
|
- <input type="radio" name="visitTimeSelect" value="1" checked="checked"/><label>男 </label>
|
|
|
- <input type="radio" name="visitTimeSelect" value="2"/><label>女 </label>
|
|
|
+ <input type="radio" name="visitCompleteSex" value="1" checked="checked"/><label>男 </label>
|
|
|
+ <input type="radio" name="visitCompleteSex" value="2"/><label>女 </label>
|
|
|
</div>
|
|
|
<div class="col-4"> </div>
|
|
|
</div>
|
|
|
<div style="margin-left: 10px;">
|
|
|
<div class="formControls">
|
|
|
- <label><span class="c-red">*</span> 回访人信息:</label>
|
|
|
- <input type="hidden" id="customerId" name="customerId">
|
|
|
- <input type="text" id="visitName" style="width: 150px;" class="input-text" value="" placeholder="回访人姓名" name="visitName" nullmsg="回访人姓名不能为空">
|
|
|
- <input type="text" id="visitTel" style="width: 150px;" class="input-text" value="" placeholder="回访人电话" name="visitTel" nullmsg="回访人电话不能为空">
|
|
|
+ <label><span class="c-red">*</span> 回访联系人:</label>
|
|
|
+ <input type="text" id="visitCompleteName" class="input-text" value="" style="width: 200px;" name="visitCompleteName" nullmsg="回访联系人不能为空">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style="margin-left: 10px;">
|
|
|
<div class="formControls" style="margin-top: 10px;">
|
|
|
- <label><span class="c-red">*</span> 回访时间:</label>
|
|
|
- <input type="radio" name="visitTimeSelect" value="1" checked="checked"/><label>9:00 - 12:00 </label>
|
|
|
- <input type="radio" name="visitTimeSelect" value="2"/><label>12:00 - 14:00 </label>
|
|
|
- <input type="radio" name="visitTimeSelect" value="3"/><label>14:00 - 18:00</label>
|
|
|
+ <label><span class="c-red">*</span> 回访电话:</label>
|
|
|
+ <input type="text" id="visitCompleteTel" class="input-text" value="" style="width: 200px;" name="visitCompleteTel" nullmsg="电话号码不能为空">
|
|
|
</div>
|
|
|
<div class="col-4"> </div>
|
|
|
</div>
|
|
|
<div style="margin-left: 10px;">
|
|
|
<div class="formControls" style="margin-top: 10px;">
|
|
|
- <label><span class="c-red">*</span> 提醒人:</label>
|
|
|
- <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) >
|
|
|
- <#list adminList as admin>
|
|
|
- <option value ="${admin.adminId!}" >${admin.adminName!}</option>
|
|
|
- </#list>
|
|
|
- </#if>
|
|
|
- </select>
|
|
|
+ <label><span class="c-red">*</span> 回复备注:</label>
|
|
|
+ <input type="text" id="visitCompleteRemark" class="input-text" value="" style="width: 200px;" name="visitCompleteRemark">
|
|
|
</div>
|
|
|
<div class="col-4"> </div>
|
|
|
</div>
|
|
|
- <div style="margin-left: 10px;">
|
|
|
- <label>
|
|
|
- 您将为 自己 指定一个回访任务。<br/>
|
|
|
- 提示原则:<br/>
|
|
|
- 1、上午的回访 系统将在16日晚上22点、17日早晨9:30提醒您;<br/>
|
|
|
- 2、中午的回访 系统将在本日12点提醒您;<br/>
|
|
|
- 3、下午的回访 系统将在本日14:00提醒您。<br/>
|
|
|
- 如果没有在指定时间完成,系统将于第二天开始推送。<br/>
|
|
|
- </label>
|
|
|
- </div>
|
|
|
+ <br/>
|
|
|
<div class="col-9 col-offset-3">
|
|
|
- <input class="btn btn-primary radius" onclick="addVisitInfo();" type="button" value=" 确认 ">
|
|
|
+ <input class="btn btn-primary radius" onclick="updateVisitInfo();" type="button" value=" 确认 ">
|
|
|
</div>
|
|
|
</form>
|
|
|
<span class="layui-layer-setwin">
|
|
|
- <a class="layui-layer-ico layui-layer-close layui-layer-close1" onclick="hideVisit()" href="javascript:;"></a>
|
|
|
+ <a class="layui-layer-ico layui-layer-close layui-layer-close1" onclick="hide_this(this)" href="javascript:;"></a>
|
|
|
</span>
|
|
|
</div>
|
|
|
<!-- 录入已完成回访内容end -->
|
|
|
+ <!-- 查看已完成回访内容start -->
|
|
|
+ <div class="layui-layer layui-anim layui-layer-iframe" id="select-visit-finish" times="4" showtime="0" contype="string" style="display:none;z-index: 19891018; width: 550px; height: 400px; position: absolute; top: 100px; left: 350px;text-align: left;">
|
|
|
+ <form action="" name="form-visit-finish" method="post" class="form form-horizontal" id="form-visit-finish">
|
|
|
+ <div class="layui-layer-title" id="synOrder" style="cursor: move;" move="ok">回访内容</div>
|
|
|
+ <br>
|
|
|
+ <div style="margin-left: 10px;">
|
|
|
+ <div class="formControls" style="margin-top: 10px;">
|
|
|
+ <label><span class="c-red">*</span> 回访日期:</label>
|
|
|
+ <label id="txtVisitCompleteDate"></label>
|
|
|
+ </div>
|
|
|
+ <div class="col-4"> </div>
|
|
|
+ </div>
|
|
|
+ <div style="margin-left: 10px;">
|
|
|
+ <div class="formControls">
|
|
|
+ <label><span class="c-red">*</span> 回访联系人:</label>
|
|
|
+ <label id="txtVisitCompleteName"></label>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style="margin-left: 10px;">
|
|
|
+ <div class="formControls" style="margin-top: 10px;">
|
|
|
+ <label><span class="c-red">*</span> 回访电话:</label>
|
|
|
+ <label id="txtVisitCompleteTel"></label>
|
|
|
+ </div>
|
|
|
+ <div class="col-4"> </div>
|
|
|
+ </div>
|
|
|
+ <div style="margin-left: 10px;">
|
|
|
+ <div class="formControls" style="margin-top: 10px;">
|
|
|
+ <label><span class="c-red">*</span> 回复备注:</label>
|
|
|
+ <label id="txtVisitCompleteRemark"></label>
|
|
|
+ </div>
|
|
|
+ <div class="col-4"> </div>
|
|
|
+ </div>
|
|
|
+ <br/>
|
|
|
+ </form>
|
|
|
+ <span class="layui-layer-setwin">
|
|
|
+ <a class="layui-layer-ico layui-layer-close layui-layer-close1" onclick="hide_this(this)" href="javascript:;"></a>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <!-- 查看问题描述内容start -->
|
|
|
+ <div class="layui-layer layui-anim layui-layer-iframe" id="select-question-describe" times="4" showtime="0" contype="string" style="display:none;z-index: 19891018; width: 550px; height: 400px; position: absolute; top: 100px; left: 350px;text-align: left;">
|
|
|
+ <form action="" name="form-visit-finish" method="post" class="form form-horizontal" id="form-visit-finish">
|
|
|
+ <div class="layui-layer-title" id="synOrder" style="cursor: move;" move="ok">回访内容</div>
|
|
|
+ <br>
|
|
|
+ <div style="margin-left: 10px;">
|
|
|
+ <div class="formControls" style="margin-top: 10px;">
|
|
|
+ <label><span class="c-red">*</span> 简述:</label>
|
|
|
+ <label id="txtDescribeTitle"></label>
|
|
|
+ </div>
|
|
|
+ <div class="col-4"> </div>
|
|
|
+ </div>
|
|
|
+ <div style="margin-left: 10px;">
|
|
|
+ <div class="formControls" style="margin-top: 10px;">
|
|
|
+ <label><span class="c-red">*</span> 详情:</label>
|
|
|
+ <label id="txtDescribeContent"></label>
|
|
|
+ </div>
|
|
|
+ <div class="col-4"> </div>
|
|
|
+ </div>
|
|
|
+ <br/>
|
|
|
+ </form>
|
|
|
+ <span class="layui-layer-setwin">
|
|
|
+ <a class="layui-layer-ico layui-layer-close layui-layer-close1" onclick="hide_this(this)" href="javascript:;"></a>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <!-- 查看已完成回访内容end -->
|
|
|
<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">
|
|
@@ -204,6 +250,7 @@
|
|
|
</form>
|
|
|
</div>
|
|
|
|
|
|
+
|
|
|
<div class="mt-20">
|
|
|
<table class="table table-border table-bordered table-bg table-hover table-sort">
|
|
|
<thead>
|
|
@@ -245,7 +292,12 @@
|
|
|
<td>${customer.typeName!''}</td>
|
|
|
<td>${customer.complaintClassName!''}</td>
|
|
|
<td>${customer.smallClassName!''}</td>
|
|
|
- <td>${customer.describeTitle!''}</td>
|
|
|
+ <td>
|
|
|
+ ${customer.describeTitle!''}
|
|
|
+ <a style="text-decoration:none" href="javascript:void(0);" title="回访内容" onclick="getDescribeInfo(${customer.customerId!''})">
|
|
|
+ <i class="Hui-iconfont">查看详情</i>
|
|
|
+ </a>
|
|
|
+ </td>
|
|
|
<td>${customer.companyName!''}-${customer.storeName!''}</td>
|
|
|
<td>${(customer.salesTime?string("yyyy-MM-dd HH:mm:ss"))!''}</td>
|
|
|
<td>${customer.customerArea!''}</td>
|
|
@@ -343,7 +395,14 @@
|
|
|
<#if customer.customerIsVisit == "1">
|
|
|
不需要回访
|
|
|
<#elseif customer.customerIsVisit == "2">
|
|
|
- 需要回访
|
|
|
+ <#if customer.visitStatus == 1>
|
|
|
+ 待回访
|
|
|
+ <#elseif customer.visitStatus == 2>
|
|
|
+ 已回访
|
|
|
+ <a style="text-decoration:none" href="javascript:void(0);" title="回访内容" onclick="getVisitInfo(${customer.customerId!''})">
|
|
|
+ <i class="Hui-iconfont">回访内容</i>
|
|
|
+ </a>
|
|
|
+ </#if>
|
|
|
</#if>
|
|
|
</td>
|
|
|
<td>${(customer.customerCreateTime?string("yyyy-MM-dd HH:mm:ss"))!''}</td>
|
|
@@ -357,15 +416,19 @@
|
|
|
<i class="Hui-iconfont">详情</i>
|
|
|
</a>
|
|
|
<#if customer.customerIsVisit == "2">
|
|
|
- <a style="text-decoration:none" href="javascript:void(0);" title="详情" onclick="admin_update_customer(${customer.customerId!''})">
|
|
|
- <i class="Hui-iconfont">
|
|
|
- <#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!''})">
|
|
|
+ <i class="Hui-iconfont">
|
|
|
已完成回访
|
|
|
- <#elseif customer.visitStatus == 2>
|
|
|
+ </i>
|
|
|
+ </a>
|
|
|
+ <#elseif customer.visitStatus == 2>
|
|
|
+ <a style="text-decoration:none" href="javascript:void(0);" title="详情" onclick="admin_update_customer(${customer.customerId!''})">
|
|
|
+ <i class="Hui-iconfont">
|
|
|
已收到反馈
|
|
|
- </#if>
|
|
|
- </i>
|
|
|
- </a>
|
|
|
+ </i>
|
|
|
+ </a>
|
|
|
+ </#if>
|
|
|
</#if>
|
|
|
<a style="text-decoration:none" href="javascript:void(0);" title="修改客诉信息" onclick="admin_update_customer(${customer.customerId!''})">
|
|
|
<i class="Hui-iconfont">修改客诉信息</i>
|
|
@@ -417,13 +480,18 @@
|
|
|
window.location.href= "${path}/admin/customer/to_details_customer?customerId="+customerId;
|
|
|
}
|
|
|
|
|
|
+ function showVisitFinish(customerId) {
|
|
|
+ $('#layui-visit-finish').show();
|
|
|
+ $('#finish_customerId').val(customerId);
|
|
|
+ }
|
|
|
+
|
|
|
function showVisit(customerId) {
|
|
|
$('#layui-visit').show();
|
|
|
$('#customerId').val(customerId);
|
|
|
}
|
|
|
|
|
|
- function hideVisit() {
|
|
|
- $('#layui-visit').hide();
|
|
|
+ function hide_this(val) {
|
|
|
+ $(val).parent().parent().hide();
|
|
|
}
|
|
|
|
|
|
function checkValue() {
|
|
@@ -486,6 +554,94 @@
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * 添加回访完成信息
|
|
|
+ */
|
|
|
+ function updateVisitInfo() {
|
|
|
+ var visitCompleteSex = $('input[name="visitCompleteSex"]:checked').val();
|
|
|
+ if (!uname.test($('#visitCompleteName').val().trim())) {
|
|
|
+ alert("回访人姓名格式不正确,请重新填写!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (!mobile.test($('#visitCompleteTel').val().trim())) {
|
|
|
+ alert("手机号码格式不正确,请重新填写!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if ($('#visitCompleteDate').val().trim() == null || $('#visitCompleteDate').val().trim() == '') {
|
|
|
+ alert("请选择回访日期!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (visitCompleteSex == null || visitCompleteSex == '') {
|
|
|
+ alert("请选择客诉性别!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ $.ajax({
|
|
|
+ cache: true,
|
|
|
+ type: "POST",
|
|
|
+ data: $('#form-visit-finish').serialize(),
|
|
|
+ url: "${path}/admin/customer/update_visit_finish",
|
|
|
+ async: false,
|
|
|
+ success: function(data){
|
|
|
+ if (data.returnCode == 200) {
|
|
|
+ layer.msg(data.resultMsg,{icon: 1,time:1000});
|
|
|
+ } else {
|
|
|
+ layer.msg(data.resultMsg,{icon: 5,time:1000});
|
|
|
+ }
|
|
|
+ $('#layui-visit-finish').hide();
|
|
|
+ },
|
|
|
+ error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询回访内容
|
|
|
+ */
|
|
|
+ function getVisitInfo(customerId) {
|
|
|
+ $.ajax({
|
|
|
+ cache: true,
|
|
|
+ type: "POST",
|
|
|
+ data: {"customerId":customerId},
|
|
|
+ url: "${path}/admin/customer/get_visit_info",
|
|
|
+ async: false,
|
|
|
+ success: function(data){
|
|
|
+ if (data.returnCode == 200) {
|
|
|
+ var visit = data.returnMsg.visit;
|
|
|
+ $('#txtVisitCompleteDate').html(visit.visitCompleteDate);
|
|
|
+ $('#txtVisitCompleteName').html(visit.visitCompleteName);
|
|
|
+ $('#txtVisitCompleteTel').html(visit.visitCompleteTel);
|
|
|
+ $('#txtVisitCompleteRemark').html(visit.visitCompleteRemark);
|
|
|
+ $('#select-visit-finish').show();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询问题描述信息
|
|
|
+ */
|
|
|
+ function getDescribeInfo(customerId) {
|
|
|
+ $.ajax({
|
|
|
+ cache: true,
|
|
|
+ type: "POST",
|
|
|
+ data: {"customerId":customerId},
|
|
|
+ url: "${path}/admin/customer/get_describe_info",
|
|
|
+ async: false,
|
|
|
+ success: function(data){
|
|
|
+ if (data.returnCode == 200) {
|
|
|
+ var describe = data.returnMsg.describe;
|
|
|
+ $('#txtDescribeTitle').html(describe.describeTitle);
|
|
|
+ $('#txtDescribeContent').html(describe.describeContent);
|
|
|
+ $('#select-question-describe').show();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* 将未解决状态修改为已解决
|
|
|
*/
|
|
|
function updateCustomerIsSolve(customerId) {
|