|
@@ -18,8 +18,8 @@
|
|
|
.my-btn-search{border: 1px solid #32a3d8;padding: 1px 25px;height: 32px;background-color: #32a3d8;color: #fff;}
|
|
|
.barcodeImg{margin:10px 0px}
|
|
|
.table-bg thead th{background-color: #e2f6ff;}
|
|
|
- input[type=radio]{-webkit-appearance:none;appearance:none;background: url(/common/images/pts/radio-1.png) center center no-repeat;background-size:auto 100%;width: 20px;height: 20px;margin-right: 10px;}
|
|
|
- input[type=radio]:checked{-webkit-appearance:none;appearance:none;background: url(/common/images/pts/radio-2.png) center center no-repeat;background-size:auto 100%;width: 20px;height: 20px;margin-right: 10px;}
|
|
|
+ /*input[type=radio]{-webkit-appearance:none;appearance:none;background: url(/rst/common/images/pts/radio-1.png) center center no-repeat;background-size:auto 100%;width: 20px;height: 20px;margin-right: 10px;}
|
|
|
+ input[type=radio]:checked{-webkit-appearance:none;appearance:none;background: url(/rst/common/images/pts/radio-2.png) center center no-repeat;background-size:auto 100%;width: 20px;height: 20px;margin-right: 10px;}*/
|
|
|
</style>
|
|
|
</head>
|
|
|
<body>
|
|
@@ -30,11 +30,141 @@
|
|
|
</nav>
|
|
|
<div class="page-container">
|
|
|
<div class="text-c">
|
|
|
+ <!-- 客诉回访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-title" id="synOrder" style="cursor: move;" move="ok">客诉回访</div>
|
|
|
+ <br>
|
|
|
+ <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="回访人电话不能为空">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style="margin-left: 10px;">
|
|
|
+ <div class="formControls" style="margin-top: 10px;">
|
|
|
+ <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"">
|
|
|
+ </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>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>
|
|
|
+ </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>
|
|
|
+ </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>
|
|
|
+ <div class="col-9 col-offset-3">
|
|
|
+ <input class="btn btn-primary radius" onclick="addVisitInfo();" 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>
|
|
|
+ </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-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>
|
|
|
+ <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"">
|
|
|
+ </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>
|
|
|
+ </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="回访人电话不能为空">
|
|
|
+ </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>
|
|
|
+ </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>
|
|
|
+ </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>
|
|
|
+ <div class="col-9 col-offset-3">
|
|
|
+ <input class="btn btn-primary radius" onclick="addVisitInfo();" 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>
|
|
|
+ </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="customerId" name="customerId">
|
|
|
- <input type="text" class="my-input" style="width:100px;margin-right: 0px;" value="${customerId!}" placeholder="客户电话号码" id="customerId" name="customerId">
|
|
|
- <input type="text" class="my-input" style="width:100px;margin-right: 0px;" value="${customerId!}" placeholder="请输入问题描述" id="customerId" name="customerId">
|
|
|
+ <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">
|
|
|
<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="1" <#if customerInfo.customerSourceType??><#if customerInfo.customerSourceType == "1" >selected="selected"</#if></#if>>400电话</option>
|
|
@@ -49,18 +179,13 @@
|
|
|
</#list>
|
|
|
</#if>
|
|
|
</select>
|
|
|
- <select class="my-select" name="produceId" style="height: 36px;width: 100px;margin: 0px;padding: 6px 10px 6px 15px;">
|
|
|
+ <select class="my-select" name="complaintId" style="height: 36px;width: 100px;margin: 0px;padding: 6px 10px 6px 15px;">
|
|
|
<option value ="">客诉类型</option>
|
|
|
<#if complaintTypeList?? && (complaintTypeList?size > 0) >
|
|
|
<#list complaintTypeList as complaint>
|
|
|
- <option value ="${complaint.complaintId!}" <#if customerInfo.adminId??><#if customerInfo.adminId ==admin.adminId >selected="selected"</#if></#if>>${complaint.complaintClassName!}</option>
|
|
|
+ <option value ="${complaint.complaintId!}" <#if customerInfo.complaintId??><#if customerInfo.complaintId ==complaint.complaintId >selected="selected"</#if></#if>>${complaint.complaintClassName!}</option>
|
|
|
</#list>
|
|
|
</#if>
|
|
|
- <#--<#if typeList?? && (typeList?size > 0) >
|
|
|
- <#list typeList as type>
|
|
|
- <option value ="${type.produceId!}" <#if produceId??><#if produceId ==produce.produceId >selected="selected"</#if></#if>>${produce.produceName!}</option>
|
|
|
- </#list>
|
|
|
- </#if>-->
|
|
|
</select>
|
|
|
<select class="my-select" name="customerIsVisit" style="height: 36px;width: 100px;margin: 0px;padding: 6px 10px 6px 15px;">
|
|
|
<option value ="">是否需要回访</option>
|
|
@@ -125,37 +250,136 @@
|
|
|
<td>${(customer.salesTime?string("yyyy-MM-dd HH:mm:ss"))!''}</td>
|
|
|
<td>${customer.customerArea!''}</td>
|
|
|
<td>进${customer.customerInTDS!'0'}出${customer.customerOutTDS!'0'}</td>
|
|
|
- <td>
|
|
|
+ <td id="txt_customerIsSolve">
|
|
|
<#if customer.customerIsSolve == 1>
|
|
|
已解决
|
|
|
<#elseif customer.customerIsSolve == 2>
|
|
|
未解决
|
|
|
<#elseif customer.customerIsSolve == 3>
|
|
|
- 换新
|
|
|
+ 换新(
|
|
|
+ <#if customer.backStatus == 1>
|
|
|
+ 未寄回
|
|
|
+ <#elseif customer.backStatus == 2>
|
|
|
+ 已寄回
|
|
|
+ <#elseif customer.backStatus == 3>
|
|
|
+ 已收货
|
|
|
+ </#if>,
|
|
|
+ <#if customer.sendStatus == 1>
|
|
|
+ 未寄送
|
|
|
+ <#elseif customer.sendStatus == 2>
|
|
|
+ 已寄送
|
|
|
+ <#elseif customer.sendStatus == 3>
|
|
|
+ 已收货
|
|
|
+ </#if>,
|
|
|
+ <#if customer.detectState == 1>
|
|
|
+ 待仓库转入
|
|
|
+ <#elseif customer.detectState == 2>
|
|
|
+ 正在检查
|
|
|
+ <#elseif customer.detectState == 3>
|
|
|
+ 检查通过
|
|
|
+ <#elseif customer.detectState == 4>
|
|
|
+ 检查未通过
|
|
|
+ </#if>
|
|
|
+ )
|
|
|
<#elseif customer.customerIsSolve == 4>
|
|
|
- 维修
|
|
|
+ 维修(
|
|
|
+ <#if customer.backStatus == 1>
|
|
|
+ 未寄回
|
|
|
+ <#elseif customer.backStatus == 2>
|
|
|
+ 已寄回
|
|
|
+ <#elseif customer.backStatus == 3>
|
|
|
+ 已收货
|
|
|
+ </#if>,
|
|
|
+ <#if customer.sendStatus == 1>
|
|
|
+ 未寄送
|
|
|
+ <#elseif customer.sendStatus == 2>
|
|
|
+ 已寄送
|
|
|
+ <#elseif customer.sendStatus == 3>
|
|
|
+ 已收货
|
|
|
+ </#if>,
|
|
|
+ <#if customer.detectState == 1>
|
|
|
+ 待仓库转入
|
|
|
+ <#elseif customer.detectState == 2>
|
|
|
+ 正在检查
|
|
|
+ <#elseif customer.detectState == 3>
|
|
|
+ 检查通过
|
|
|
+ <#elseif customer.detectState == 4>
|
|
|
+ 检查未通过
|
|
|
+ </#if>
|
|
|
+ )
|
|
|
<#elseif customer.customerIsSolve == 5>
|
|
|
- 补发
|
|
|
+ 补发(
|
|
|
+ <#if customer.backStatus == 1>
|
|
|
+ 未寄回
|
|
|
+ <#elseif customer.backStatus == 2>
|
|
|
+ 已寄回
|
|
|
+ <#elseif customer.backStatus == 3>
|
|
|
+ 已收货
|
|
|
+ </#if>,
|
|
|
+ <#if customer.sendStatus == 1>
|
|
|
+ 未寄送
|
|
|
+ <#elseif customer.sendStatus == 2>
|
|
|
+ 已寄送
|
|
|
+ <#elseif customer.sendStatus == 3>
|
|
|
+ 已收货
|
|
|
+ </#if>,
|
|
|
+ <#if customer.detectState == 1>
|
|
|
+ 待仓库转入
|
|
|
+ <#elseif customer.detectState == 2>
|
|
|
+ 正在检查
|
|
|
+ <#elseif customer.detectState == 3>
|
|
|
+ 检查通过
|
|
|
+ <#elseif customer.detectState == 4>
|
|
|
+ 检查未通过
|
|
|
+ </#if>
|
|
|
+ )
|
|
|
<#elseif customer.customerIsSolve == 6>
|
|
|
退货
|
|
|
<#elseif customer.customerIsSolve == 7>
|
|
|
无理由退货
|
|
|
</#if>
|
|
|
</td>
|
|
|
- <td>${customer.customerIsVisit!''}</td>
|
|
|
+ <td>
|
|
|
+ <#if customer.customerIsVisit == "1">
|
|
|
+ 不需要回访
|
|
|
+ <#elseif customer.customerIsVisit == "2">
|
|
|
+ 需要回访
|
|
|
+ </#if>
|
|
|
+ </td>
|
|
|
<td>${(customer.customerCreateTime?string("yyyy-MM-dd HH:mm:ss"))!''}</td>
|
|
|
<td>
|
|
|
- <a style="text-decoration:none" href="javascript:void(0);" title="编辑" onclick="admin_update_customer(${customer.customerId!''})">
|
|
|
- <i class="Hui-iconfont"></i>
|
|
|
+ <#if customer.customerIsSolve == 2>
|
|
|
+ <a style="text-decoration:none" href="javascript:void(0);" title="已解决" onclick="updateCustomerIsSolve(${customer.customerId!''})">
|
|
|
+ <i class="Hui-iconfont">已解决</i>
|
|
|
+ </a>
|
|
|
+ </#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 == "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">
|
|
|
+ 已完成回访
|
|
|
+ <#elseif customer.visitStatus == 2>
|
|
|
+ 已收到反馈
|
|
|
+ </#if>
|
|
|
+ </i>
|
|
|
+ </a>
|
|
|
+ </#if>
|
|
|
+ <a style="text-decoration:none" href="javascript:void(0);" title="修改客诉信息" onclick="admin_update_customer(${customer.customerId!''})">
|
|
|
+ <i class="Hui-iconfont">修改客诉信息</i>
|
|
|
</a>
|
|
|
- <a style="text-decoration:none" href="javascript:void(0);" title="查看customer单详情" onclick="admin_details_customer(${customer.customerId!''})">
|
|
|
- <i class="Hui-iconfont"></i>
|
|
|
- </a>
|
|
|
+ <#if customer.customerIsVisit == "1">
|
|
|
+ <a style="text-decoration:none" href="javascript:void(0)" title="需要回访" onclick="showVisit(${customer.customerId!''})">
|
|
|
+ <i class="Hui-iconfont">需要回访</i>
|
|
|
+ </a>
|
|
|
+ </#if>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</#list>
|
|
|
<#else>
|
|
|
- <tr><td colspan="10" class="td-manage text-c" >暂时没有Customer,请添加!</td></tr>
|
|
|
+ <tr><td colspan="10" class="td-manage text-c" >暂时没有客诉信息,请添加!</td></tr>
|
|
|
</#if>
|
|
|
</tbody>
|
|
|
</table>
|
|
@@ -164,7 +388,12 @@
|
|
|
<tfoot>
|
|
|
<#include "/base/page_util.ftl">
|
|
|
</tfoot>
|
|
|
-<script>
|
|
|
+<script type="text/javascript">
|
|
|
+
|
|
|
+ var mobile=/^(13|14|15|18)[0-9]{9}$/; //手机号码
|
|
|
+ var uname = /^[\u4e00-\u9fa5a-zA-Z]{1,12}$/; //中文英文
|
|
|
+ var flag = true;
|
|
|
+
|
|
|
/**
|
|
|
* 跳转到添加customer页面
|
|
|
*/
|
|
@@ -188,6 +417,101 @@
|
|
|
window.location.href= "${path}/admin/customer/to_details_customer?customerId="+customerId;
|
|
|
}
|
|
|
|
|
|
+ function showVisit(customerId) {
|
|
|
+ $('#layui-visit').show();
|
|
|
+ $('#customerId').val(customerId);
|
|
|
+ }
|
|
|
+
|
|
|
+ function hideVisit() {
|
|
|
+ $('#layui-visit').hide();
|
|
|
+ }
|
|
|
+
|
|
|
+ function checkValue() {
|
|
|
+
|
|
|
+ var visitTimeSelect = $('input[name="visitTimeSelect"]:checked').val();
|
|
|
+ var visitAdminId = $("#visitAdminId option:selected").val();
|
|
|
+ if (!uname.test($('#visitName').val().trim())) {
|
|
|
+ alert("回访人姓名格式不正确,请重新填写!");
|
|
|
+ flag = false;
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (!mobile.test($('#visitTel').val().trim())) {
|
|
|
+ alert("手机号码格式不正确,请重新填写!");
|
|
|
+ flag = false;
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if ($('#visitDate').val().trim() == null || $('#visitDate').val().trim() == '') {
|
|
|
+ alert("请选择回访日期!");
|
|
|
+ flag = false;
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (visitTimeSelect == null || visitTimeSelect == '') {
|
|
|
+ alert("请选择回访时间点!");
|
|
|
+ flag = false;
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (visitAdminId == null || visitAdminId == '') {
|
|
|
+ alert("请选择提醒人!");
|
|
|
+ flag = false;
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 添加回访信息
|
|
|
+ */
|
|
|
+ function addVisitInfo() {
|
|
|
+ checkValue();
|
|
|
+ alert(flag);
|
|
|
+ if (flag) {
|
|
|
+ $.ajax({
|
|
|
+ cache: true,
|
|
|
+ type: "POST",
|
|
|
+ data: $('#form-admin-visit').serialize(),
|
|
|
+ url: "${path}/admin/customer/add_visit_info",
|
|
|
+ async: false,
|
|
|
+ success: function(data){
|
|
|
+ if (data.returnCode == 200) {
|
|
|
+ layer.msg(data.resultMsg,{icon: 1,time:1000});
|
|
|
+ $('#layui-visit').hide();
|
|
|
+ } else {
|
|
|
+ layer.msg(data.resultMsg,{icon: 5,time:1000});
|
|
|
+ $('#layui-visit').hide();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 将未解决状态修改为已解决
|
|
|
+ */
|
|
|
+ function updateCustomerIsSolve(customerId) {
|
|
|
+ layer.confirm('确认要修改吗?',function(index){
|
|
|
+ $.ajax({
|
|
|
+ cache: true,
|
|
|
+ type: "POST",
|
|
|
+ data: {"customerId":customerId},
|
|
|
+ url: "${path}/admin/customer/update_customerIsSolve",
|
|
|
+ async: false,
|
|
|
+ success: function(data){
|
|
|
+ if (data.returnCode == 200) {
|
|
|
+ layer.msg(data.resultMsg,{icon: 1,time:1000});
|
|
|
+ $('#txt_customerIsSolve').html('已解决');
|
|
|
+ } else {
|
|
|
+ layer.msg(data.resultMsg,{icon: 5,time:1000});
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }, function() {
|
|
|
+
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
</script>
|
|
|
</body>
|
|
|
</html>
|