|
@@ -33,21 +33,16 @@
|
|
|
<div class="input-box" >
|
|
|
<span class="input-dic spanhidth" style="margin-top: 12px;">客诉编号:</span>
|
|
|
<input type="text" style="width: 400px;" class="input-text" placeholder="客诉编号" id="signclosedCustomerId" name="signclosedCustomerId">
|
|
|
- <button type="button" class="my-btn-submit" style="margin-top: 4px;width: 120px;" onclick="select();">查询</button>
|
|
|
+ <button id="buttonId" type="button" class="my-btn-submit" style="margin-top: 4px;width: 120px;" onclick="select();">查询</button>
|
|
|
</div>
|
|
|
<div id="noCustomerDiv" style="display: none; text-align:center;">
|
|
|
<h3><strong style="color: #93da67">?没有搜索到客诉哦</strong></h3>
|
|
|
</div>
|
|
|
<div id="customerDiv" style="display: none;">
|
|
|
- <#--<div class="row cl">
|
|
|
- <div class="formControls col-2 col-sm-2 text-r">
|
|
|
- <strong>客诉时间:</strong>
|
|
|
- </div>
|
|
|
- <div class="formControls col-8 col-sm-8" id="customerCreateTime">
|
|
|
|
|
|
- </div>
|
|
|
- </div>-->
|
|
|
- <table class="table table-border table-bg table-bordered" style="margin-top: 10px;width: 500px;">
|
|
|
+ <div class="row cl">
|
|
|
+ <div class="formControls col-10 col-sm-10 text-c" style="margin-left: 50px;" >
|
|
|
+ <table class="table table-border table-bg table-bordered" style="margin-top: 10px;">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th width="5" style="text-align: center">客诉标题</th>
|
|
@@ -71,14 +66,40 @@
|
|
|
</tr>
|
|
|
</thead>
|
|
|
</table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+
|
|
|
+ <div class="row cl">
|
|
|
+ <div class="formControls col-10 col-sm-10 text-c" style="display:none;margin-left: 50px;" id="onCustomerTable">
|
|
|
+ <table class="table table-border table-bg table-bordered">
|
|
|
+ <thead>
|
|
|
+ <tr class="text-c">
|
|
|
+ <th style="text-align: center;" width="60">客诉时间</th>
|
|
|
+ <th style="text-align: center;" width="60">跟进客服</th>
|
|
|
+ <th style="text-align: center;" width="60">用户姓名</th>
|
|
|
+ <th style="text-align: center;" width="60">用户昵称</th>
|
|
|
+ <th style="text-align: center;" width="60">用户电话</th>
|
|
|
+ <th style="text-align: center;" width="60">处理方式</th>
|
|
|
+ <th style="text-align: center;" width="60">客诉问题</th>
|
|
|
+ <th style="text-align: center;" width="60">操作</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody id="onCustomer">
|
|
|
+
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
<div style="text-align:center;display: none" id="associatedId">
|
|
|
<#if signclosedId??>
|
|
|
<input type="hidden" value="${signclosedId!''}" id="signclosedId" name="signclosedId">
|
|
|
</#if>
|
|
|
- <button type="button" class="my-btn-submit" onclick="update();">确认关联</button>
|
|
|
+ <button type="button" id="submitId" class="my-btn-submit" onclick="update();">确认关联</button>
|
|
|
</div>
|
|
|
-
|
|
|
+ <input type="hidden" value="${complaintSignclosedInfo.signclosedSendName!''}" id="signclosedSendName">
|
|
|
+ <input type="hidden" value="${complaintSignclosedInfo.signclosedSendTel!''}" id="signclosedSendTel">
|
|
|
</form>
|
|
|
</article>
|
|
|
<script type="text/javascript" src="${path}/common/lib/My97DatePicker/4.8/WdatePicker.js"></script>
|
|
@@ -118,14 +139,13 @@
|
|
|
|
|
|
|
|
|
function update() {
|
|
|
- var signclosedCustomerId = $("#signclosedCustomerId").val();
|
|
|
- if( signclosedCustomerId != null){
|
|
|
- if( signclosedCustomerId.length > 10 ){
|
|
|
- layer.msg('编号长度不得大于10个字符',{icon: 5,time:1000});
|
|
|
- return;
|
|
|
+ var signclosedCustomerId = $("#signclosedCustomerId").val();
|
|
|
+ if( signclosedCustomerId != null){
|
|
|
+ if( signclosedCustomerId.length > 10 ){
|
|
|
+ layer.msg('编号长度不得大于10个字符',{icon: 5,time:1000});
|
|
|
+ return;
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
-
|
|
|
$.ajax({
|
|
|
cache: true,
|
|
|
type: "POST",
|
|
@@ -148,6 +168,123 @@
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
+ function to_update(customerId) {
|
|
|
+ $("#signclosedCustomerId").val(customerId);
|
|
|
+ $("#buttonId").click();
|
|
|
+ $("#submitId").click();
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+ selectOnCustomer();
|
|
|
+ /*根据寄回信息查询老的客诉---start--*/
|
|
|
+ function selectOnCustomer() {
|
|
|
+ var customerName = $("#signclosedSendName").val();
|
|
|
+ var customerTel = $("#signclosedSendTel").val();
|
|
|
+ if(
|
|
|
+ (customerName == null || customerName == "") &&
|
|
|
+ (customerTel == null || customerTel == "")){
|
|
|
+ $("#onCustomerTable").hide();
|
|
|
+ return;
|
|
|
+ alert(11);
|
|
|
+ }
|
|
|
+ $.ajax({
|
|
|
+ type: "POST",
|
|
|
+ data: {
|
|
|
+ "customerName":customerName,
|
|
|
+ "customerTel":customerTel},
|
|
|
+ url: "${path}/admin/customer/selectOnCustomer",
|
|
|
+ async: false,
|
|
|
+ success: function(data){
|
|
|
+ if (data.returnCode == 200) {
|
|
|
+ var onCustomerList = data.returnMsg.onCustomerList;
|
|
|
+ if(onCustomerList != null && onCustomerList.length >0 ){
|
|
|
+ $("#onCustomerTable").show();
|
|
|
+ var onCustomerTd = "";
|
|
|
+ for(var i = 0;i < onCustomerList.length; i++){
|
|
|
+ var onCustomer = onCustomerList[i];
|
|
|
+ //客诉时间
|
|
|
+ var time = formatDate(new Date(onCustomer.customerCreateTime),"yyyy-MM-dd");
|
|
|
+ //处理方式
|
|
|
+ var customerIsSolve = "";
|
|
|
+ switch (onCustomer.customerIsSolve){
|
|
|
+ case 1:
|
|
|
+ customerIsSolve = "已解决";
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ customerIsSolve = "未解决";
|
|
|
+ break;
|
|
|
+ case 3:
|
|
|
+ customerIsSolve = "换新"+ backStatus(onCustomer.backStatus)+sendStatus(onCustomer.sendStatus);
|
|
|
+ break;
|
|
|
+ case 4:
|
|
|
+ customerIsSolve = "维修"+ backStatus(onCustomer.backStatus)+sendStatus(onCustomer.sendStatus);
|
|
|
+ break;
|
|
|
+ case 5:
|
|
|
+ customerIsSolve = "补发"+ sendStatus(onCustomer.sendStatus);
|
|
|
+ break;
|
|
|
+ case 6:
|
|
|
+ customerIsSolve = "退货"+ backStatus(onCustomer.backStatus);
|
|
|
+ break;
|
|
|
+ case 7:
|
|
|
+ customerIsSolve = "无理由退货"+ backStatus(onCustomer.backStatus);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ var customerWechatName = onCustomer.customerWechatName;
|
|
|
+ //微信昵称
|
|
|
+ if(typeof(onCustomer.customerWechatName)=="undefined"){
|
|
|
+ customerWechatName = "";
|
|
|
+ }
|
|
|
+ var customerName = onCustomer.customerName;
|
|
|
+ //姓名
|
|
|
+ if(typeof(onCustomer.customerName)=="undefined"){
|
|
|
+ customerName = "";
|
|
|
+ }
|
|
|
+ onCustomerTd += '' +
|
|
|
+ ' <tr>' +
|
|
|
+ ' <td style="text-align: center;">'+ time+'</td>' +
|
|
|
+ ' <td style="text-align: center;">'+onCustomer.adminName +'</td>' +
|
|
|
+ ' <td style="text-align: center;">'+customerName +'</td>' +
|
|
|
+ ' <td style="text-align: center;">'+customerWechatName +'</td>' +
|
|
|
+ ' <td style="text-align: center;">'+onCustomer.customerTel +'</td>' +
|
|
|
+ ' <td style="text-align: center;">'+customerIsSolve +'</td>' +
|
|
|
+ ' <td style="text-align: center;">'+onCustomer.describeTitle +'</td>' +
|
|
|
+ ' <td style="text-align: center;"><a onclick="to_update('+onCustomer.customerId +')">关联此客诉</a>' +
|
|
|
+ ' </tr>' +
|
|
|
+ '';
|
|
|
+ }
|
|
|
+ $("#onCustomer").html(onCustomerTd);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+ function backStatus(status) {
|
|
|
+ if(status == 1){
|
|
|
+ return "(未寄回)";
|
|
|
+ }
|
|
|
+ if(status == 2){
|
|
|
+ return "(已寄回)";
|
|
|
+ }
|
|
|
+ if(status == 3){
|
|
|
+ return "(已收货)";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ function sendStatus(status) {
|
|
|
+ if(status == 1){
|
|
|
+ return "(未寄送)";
|
|
|
+ }
|
|
|
+ if(status == 2){
|
|
|
+ return "(已寄送)";
|
|
|
+ }
|
|
|
+ if(status == 3){
|
|
|
+ return "(已收货)";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
</script>
|
|
|
</body>
|
|
|
</html>
|