|
@@ -26,6 +26,7 @@
|
|
|
white-space: nowrap;
|
|
|
text-overflow: ellipsis;
|
|
|
}
|
|
|
+ .postage-table{float: left;width: 150px;height: 30px;line-height: 30px;}
|
|
|
</style>
|
|
|
</head>
|
|
|
<body>
|
|
@@ -47,7 +48,7 @@
|
|
|
|
|
|
<#--<input type="text" class="my-input" style="width:90px;margin-right: 0px;" value="${customerInfo.describeTitle!}" placeholder="请输入问题描述" id="describeTitle" name="describeTitle">-->
|
|
|
|
|
|
- <select class="my-select" name="customerIsSolve" id="customerIsSolve" style="height: 36px;width: 100px;margin: 0px;padding: 6px 10px 6px 15px;margin-bottom: 10px;">
|
|
|
+ <select class="my-select" name="customerIsSolve" id="customerIsSolve" style="height: 36px;width: 100px;margin: 0px;padding: 12px 10px 6px 15px;margin-bottom: 10px;">
|
|
|
<option value="">处理结果</option>
|
|
|
<option value="1" <#if customerInfo.customerIsSolve??><#if customerInfo.customerIsSolve == 1 >selected="selected"</#if></#if>>已解决</option>
|
|
|
<option value="2" <#if customerInfo.customerIsSolve??><#if customerInfo.customerIsSolve == 2 >selected="selected"</#if></#if>>未解决</option>
|
|
@@ -58,13 +59,13 @@
|
|
|
<option value="7" <#if customerInfo.customerIsSolve??><#if customerInfo.customerIsSolve == 7 >selected="selected"</#if></#if>>无理由退货</option>
|
|
|
</select>
|
|
|
|
|
|
- <select class="my-select" name="customerSourceType" id="customerSourceType" style="height: 36px;width: 100px;margin: 0px;padding: 6px 10px 6px 15px;margin-bottom: 10px;">
|
|
|
+ <select class="my-select" name="customerSourceType" id="customerSourceType" style="height: 36px;width: 100px;margin: 0px;padding: 12px 10px 6px 15px;margin-bottom: 10px;">
|
|
|
<option value="">来源</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="3" <#if customerInfo.customerSourceType??><#if customerInfo.customerSourceType == 3 >selected="selected"</#if></#if>>其他</option>
|
|
|
</select>
|
|
|
- <select class="my-select" name="typeId" id="typeId" style="height: 36px;width: 120px;margin: 0px;margin-bottom: 10px;">
|
|
|
+ <select class="my-select" name="typeId" id="typeId" style="height: 36px;width: 120px;margin: 0px;padding: 12px 10px 6px 15px;margin-bottom: 10px;">
|
|
|
<option value ="">客诉产品</option>
|
|
|
<#if typeList?? && (typeList?size > 0) >
|
|
|
<#list typeList as type>
|
|
@@ -73,14 +74,14 @@
|
|
|
</#if>
|
|
|
</select>
|
|
|
|
|
|
- <select class="my-select" name="customerIsVisit" style="height: 36px;width: 120px;margin: 0px;margin-bottom: 10px;">
|
|
|
+ <select class="my-select" name="customerIsVisit" style="height: 36px;width: 120px;margin: 0px;padding: 12px 10px 6px 15px;margin-bottom: 10px;">
|
|
|
<option value ="">是否需要回访</option>
|
|
|
<option value="">是否回访</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>
|
|
|
</select>
|
|
|
|
|
|
- <select class="my-select" name="adminId" style="height: 36px;width: 120px;margin: 0px;margin-bottom: 10px;">
|
|
|
+ <select class="my-select" name="adminId" style="height: 36px;width: 120px;margin: 0px;padding: 12px 10px 6px 15px;margin-bottom: 10px;">
|
|
|
<option value ="">全部跟进客服</option>
|
|
|
<#if adminList?? && (adminList?size > 0) >
|
|
|
<#list adminList as admin>
|
|
@@ -380,10 +381,109 @@
|
|
|
</table>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
+<!-- 申请邮费状态 -->
|
|
|
+<div class="layui-layer layui-anim layui-layer-iframe" id="layui-postage" times="4" showtime="0" contype="string" style="display:none;z-index: 10; width: 900px; height: 450px; left: 20%;top:20px ">
|
|
|
+ <form action="" method="post" class="form form-horizontal" id="form-admin-SynOrder">
|
|
|
+ <div class="layui-layer-title" style="cursor: move;" move="ok">申请邮费</div>
|
|
|
+ <input type="hidden" id="postageCustomerId" value="">
|
|
|
+ <br>
|
|
|
+
|
|
|
+
|
|
|
+ <div class="row cl" style="margin-top: 0px;">
|
|
|
+ <label class="form-label col-2" style="float: left;">客诉ID:</label>
|
|
|
+ <div class="postage-table" id="postageCustomer"></div>
|
|
|
+ <label class="form-label col-2" style="float: left;">百胜订单号:</label>
|
|
|
+ <div class="postage-table" id="postageOrder"></div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="row cl">
|
|
|
+ <label class="form-label col-2" style="float: left;">寄回快递:</label>
|
|
|
+ <div class="postage-table" id="postageLogisticsCompany"></div>
|
|
|
+ <label class="form-label col-2" style="float: left;">快递单号:</label>
|
|
|
+ <div class="postage-table" id="postageLogisticsNo"></div>
|
|
|
+ <label class="form-label col-2" style="float: left;">寄回状态:</label>
|
|
|
+ <div class="postage-table" id="postageLogisticsStatus"></div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="row cl">
|
|
|
+ <label class="form-label col-2" style="float: left;">寄件人姓名:</label>
|
|
|
+ <div class="postage-table" id="postageName"></div>
|
|
|
+ <label class="form-label col-2" style="float: left;">寄件人电话:</label>
|
|
|
+ <div class="postage-table" id="postagePhone"></div>
|
|
|
+ <label class="form-label col-2" style="float: left;">签收时间:</label>
|
|
|
+ <div class="postage-table" id="postageReceiptDate"></div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="row cl">
|
|
|
+ <label class="form-label col-2" style="float: left;">邮费:</label>
|
|
|
+ <div class="postage-table" id="postageCost"></div>
|
|
|
+ <label class="form-label col-2" style="float: left;">转账账号:</label>
|
|
|
+ <div class="postage-table" id="postageAliPay"></div>
|
|
|
+ <label class="form-label col-2" style="float: left;">转账账号名称:</label>
|
|
|
+ <div class="postage-table" id="postageAliPayName"></div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="row cl">
|
|
|
+ <label class="form-label col-2" style="float: left;">快递单号上传:</label>
|
|
|
+ <button onClick="upImage();" class="btn radius" style="background: #32a3d8;color: #fff;margin-left: 20px;" type="button">点击上传</button>
|
|
|
+ <input type="hidden" id="postageLogisticsImg" value="">
|
|
|
+ <div id="postImgDiv" style="width: 150px;height: 150px;float: left;display: none"><img style="width: 150px;height: 150px;" id="postImg"/></div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="row cl" style="width: 100px;margin: 0 auto;">
|
|
|
+ <input class="btn btn-primary radius" onclick="add_postage()" type="button" value=" 申请邮费 ">
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </form>
|
|
|
+ <span class="layui-layer-setwin">
|
|
|
+ <a class="layui-layer-ico layui-layer-close layui-layer-close1" id="closeId" onclick="exitWindowsDiv(this);" href="javascript:;"></a>
|
|
|
+ </span>
|
|
|
+</div>
|
|
|
+
|
|
|
+
|
|
|
<tfoot>
|
|
|
<#include "/base/page_util.ftl">
|
|
|
+
|
|
|
+<script type="text/javascript" src="${path}/common/lib/ueditor/1.4.3/ueditor.config.js"></script>
|
|
|
+<script type="text/javascript" src="${path}/common/lib/ueditor/1.4.3/ueditor.all.min.js"> </script>
|
|
|
+<script type="text/javascript" src="${path}/common/lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
|
|
|
+<script type="text/plain" id="upload_ue"></script>
|
|
|
</tfoot>
|
|
|
<script type="text/javascript">
|
|
|
+ var _editor;
|
|
|
+ $(function() {
|
|
|
+ //重新实例化一个编辑器,防止在上面的editor编辑器中显示上传的图片或者文件
|
|
|
+ _editor = UE.getEditor('upload_ue',{
|
|
|
+ initialFrameWidth : 375,
|
|
|
+ initialFrameHeight: 600
|
|
|
+ });
|
|
|
+ _editor.ready(function () {
|
|
|
+// _editor.setDisabled("attachment");//设置编辑器不可用
|
|
|
+ _editor.hide();//隐藏编辑器,因为不会用到这个编辑器实例,所以要隐藏
|
|
|
+ //侦听图片上传
|
|
|
+ _editor.addListener('beforeInsertImage', function (t, arg) {
|
|
|
+ console.log(arg[0].src);
|
|
|
+ $("#postageLogisticsImg").attr("value", arg[0].src);//将地址赋值给相应的input,只去第一张图片的路径
|
|
|
+ $("#postImg").attr("src", arg[0].src); //图片预览
|
|
|
+ $("#postImgDiv").show(); //图片预览
|
|
|
+ });
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
+ //弹出图片上传的对话框
|
|
|
+ function upImage() {
|
|
|
+ var myImage = _editor.getDialog("insertimage");
|
|
|
+ myImage.open();
|
|
|
+ }
|
|
|
+ // 关闭窗口
|
|
|
+ function exitWindowsDiv(_this) {
|
|
|
+ $(_this).parent().parent().hide();
|
|
|
+ }
|
|
|
+</script>
|
|
|
+
|
|
|
+
|
|
|
+<script type="text/javascript">
|
|
|
/**
|
|
|
* 跳转到添加customer页面
|
|
|
*/
|
|
@@ -520,16 +620,80 @@
|
|
|
* 申请邮费
|
|
|
*/
|
|
|
function ApplyForPostage(customerId) {
|
|
|
- layer.confirm('确认要申请吗?',function(index){
|
|
|
+ $.ajax({
|
|
|
+ cache: true,
|
|
|
+ type: "POST",
|
|
|
+ data: {"customerId":customerId},
|
|
|
+ url: "${path}/admin/customer/apply_postage",
|
|
|
+ async: false,
|
|
|
+ success: function(data){
|
|
|
+ if (data.returnCode == 200) {
|
|
|
+ var customerCommon = data.returnMsg.customerCommon;
|
|
|
+ var customerInfo = data.returnMsg.customerInfo;
|
|
|
+
|
|
|
+ $("#postageCustomerId").val(customerId);
|
|
|
+
|
|
|
+ $("#postageCustomer").text(customerId);
|
|
|
+ $("#postageOrder").text(customerCommon.salesOrderId);
|
|
|
+
|
|
|
+ var postageLogisticsCompany = "";
|
|
|
+ postageLogisticsCompany = replace(customerCommon.relationBackLogisticsCompany);
|
|
|
+
|
|
|
+ $("#postageLogisticsCompany").text(postageLogisticsCompany);
|
|
|
+
|
|
|
+ $("#postageLogisticsNo").text(customerCommon.relationBackLogisticsNo);
|
|
|
+ var postageLogisticsStatus = "";
|
|
|
+ switch (customerCommon.relationBackStatus){ //1:未寄回 2:已寄回 3:已收货 4:已签收待确认
|
|
|
+ case 1:
|
|
|
+ postageLogisticsStatus = "未寄回";
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ postageLogisticsStatus = "已寄回";
|
|
|
+ break;
|
|
|
+ case 3:
|
|
|
+ postageLogisticsStatus = "已收货";
|
|
|
+ break;
|
|
|
+ case 4:
|
|
|
+ postageLogisticsStatus = "已签收待确认";
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ $("#postageLogisticsStatus").text(postageLogisticsStatus);
|
|
|
+
|
|
|
+ $("#postageName").text(customerCommon.relationBackName);
|
|
|
+ $("#postagePhone").text(customerCommon.relationBackPostage);
|
|
|
+ $("#postageReceiptDate").text(customerCommon.relationBackReceiptDate);
|
|
|
+
|
|
|
+ $("#postageCost").text(customerCommon.relationBackPostage);
|
|
|
+ $("#postageAliPay").text(customerCommon.relationAlipay);
|
|
|
+ $("#postageAliPayName").text(customerCommon.relationAlipayName);
|
|
|
+
|
|
|
+ $("#layui-postage").show();
|
|
|
+ } else {
|
|
|
+ layer.msg(data.resultMsg,{icon: 5,time:1000});
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ /*
|
|
|
+ *申请邮费
|
|
|
+ * */
|
|
|
+ function add_postage() {
|
|
|
+ var customerId = $("#postageCustomerId").val();
|
|
|
+ var postageLogisticsImg = $("#postageLogisticsImg").val();
|
|
|
+ layer.confirm('确认要申请邮费吗?',function(index){
|
|
|
$.ajax({
|
|
|
cache: true,
|
|
|
type: "POST",
|
|
|
- data: {"customerId":customerId},
|
|
|
- url: "${path}/admin/customer/apply_postage",
|
|
|
- async: false,
|
|
|
+ data: {"customerId":customerId,"postageLogisticsImg":postageLogisticsImg},
|
|
|
+ url: "${path}/admin/customer/add_postage",
|
|
|
+ async: true,
|
|
|
success: function(data){
|
|
|
if (data.returnCode == 200) {
|
|
|
layer.msg(data.resultMsg,{icon: 1,time:1000});
|
|
|
+ exitWindowsDiv($("#closeId"));
|
|
|
} else {
|
|
|
layer.msg(data.resultMsg,{icon: 5,time:1000});
|
|
|
}
|
|
@@ -541,6 +705,11 @@
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+ // 关闭窗口
|
|
|
+ function exitWindowsDiv(_this) {
|
|
|
+ $(_this).parent().parent().hide();
|
|
|
+ }
|
|
|
+
|
|
|
/*查看物流*/
|
|
|
function openLogistics(title, url, w, h) {
|
|
|
layer_show(title,url,w,h);
|