|
@@ -54,6 +54,12 @@
|
|
|
|
|
|
/*用于邮寄信息的css*/
|
|
|
.youxi_xinxi{width: 980px}
|
|
|
+ .txt2{
|
|
|
+ width:80px;
|
|
|
+ overflow: hidden;
|
|
|
+ white-space: nowrap;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ }
|
|
|
</style>
|
|
|
<title>添加客诉 - 客诉管理 - RST</title>
|
|
|
</head>
|
|
@@ -162,8 +168,10 @@
|
|
|
<input type="text" class="input-text associated-phone" placeholder="用户电话" id="customerTel" name="customerTel" value="">
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="row cl" style="display: none;">
|
|
|
- <div class="formControls col-9 col-sm-9 text-c" id="onCustomerTable">
|
|
|
+ <input type="hidden" value="" id="customerLastId" name="customerLastId">
|
|
|
+ <input type="hidden" value="" id="customerInitialId" name="customerInitialId">
|
|
|
+ <div class="row cl">
|
|
|
+ <div class="formControls col-9 col-sm-9 text-c" style="display:none;" id="onCustomerTable">
|
|
|
<table class="table table-border table-bg table-bordered">
|
|
|
<thead>
|
|
|
<tr class="text-c">
|
|
@@ -184,29 +192,29 @@
|
|
|
</table>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="row cl">
|
|
|
+ <div class="row cl" id="twiceSellEnd">
|
|
|
<label class="form-label col-1 col-sm-1"><span class="c-red">*</span>二次售后:</label>
|
|
|
<div class="formControls col-10 col-sm-10 skin-minimal">
|
|
|
<div class="radio-box">
|
|
|
- <input type="radio" name="customerSecondaryCustomer" value="1" >
|
|
|
- <label for="customer-type-1">是</label>
|
|
|
+ <input type="radio" id="customerSecondaryCustomer1" name="customerSecondaryCustomer" value="1" >
|
|
|
+ <label for="customerSecondaryCustomer1">是</label>
|
|
|
</div>
|
|
|
<div class="radio-box">
|
|
|
- <input type="radio" name="customerSecondaryCustomer" value="2" checked>
|
|
|
- <label for="customer-type-2">否</label>
|
|
|
+ <input type="radio" id="customerSecondaryCustomer2" name="customerSecondaryCustomer" value="2" checked>
|
|
|
+ <label for="customerSecondaryCustomer2">否</label>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="row cl">
|
|
|
+ <div class="row cl" id="openTheLock">
|
|
|
<label class="form-label col-1 col-sm-1"><span class="c-red">*</span>开箱损:</label>
|
|
|
<div class="formControls col-10 col-sm-10 skin-minimal">
|
|
|
<div class="radio-box">
|
|
|
- <input type="radio" name="customerOutDamaged" value="1" >
|
|
|
- <label for="customer-type-1">是</label>
|
|
|
+ <input type="radio" id="customerOutDamaged1" name="customerOutDamaged" value="1" >
|
|
|
+ <label for="customerOutDamaged1">是</label>
|
|
|
</div>
|
|
|
<div class="radio-box">
|
|
|
- <input type="radio" name="customerOutDamaged" value="2" checked>
|
|
|
- <label for="customer-type-2">否</label>
|
|
|
+ <input type="radio" id="customerOutDamaged2" name="customerOutDamaged" value="2" checked>
|
|
|
+ <label for="customerOutDamaged2">否</label>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -460,22 +468,34 @@
|
|
|
<div class="row cl" id="TDScollect" style="display: none;">
|
|
|
<label class="form-label col-1 col-sm-1">TDS收集:</label>
|
|
|
<div class="formControls col-2 col-sm-2" style="position: relative;">
|
|
|
- <input type="hidden" name="arrcity_3word" id="arrcity_3word" value="" />
|
|
|
+ <#--<input type="hidden" name="arrcity_3word" id="arrcity_3word" value="" />
|
|
|
<input style="width: 190px;" placeholder="" class="input-text my-search-input" placeholder="请输入城市名称搜索" type="text" name="arrcity" id="arrcity" />
|
|
|
- <div id="suggest" class="ac_results"></div>
|
|
|
+ <div id="suggest" class="ac_results"></div>-->
|
|
|
+ <span class="select-box">
|
|
|
+ <select name="initProvinceCode" class="select" id="initProvince">
|
|
|
+ <option value="">请选择省份</option>
|
|
|
+ </select>
|
|
|
+ </span>
|
|
|
</div>
|
|
|
<div class="formControls col-2 col-sm-2">
|
|
|
- <span class="select-box">
|
|
|
- <select name="" class="select" id="TDSArea" name="TDSArea">
|
|
|
- <option value="">请搜索城市</option>
|
|
|
- </select>
|
|
|
- </span>
|
|
|
+ <span class="select-box">
|
|
|
+ <select name="initCityCode" class="select" id="initCity">
|
|
|
+ <option value="">请选择城市</option>
|
|
|
+ </select>
|
|
|
+ </span>
|
|
|
</div>
|
|
|
+ <div class="formControls col-2 col-sm-2" style="position: relative;">
|
|
|
+ <span class="select-box">
|
|
|
+ <select name="initDistrictCode" class="select" id="initCountry">
|
|
|
+ <option value="">请选择区/县</option>
|
|
|
+ </select>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
<input type="hidden" name="customerArea" id="customerArea">
|
|
|
- <div class="formControls col-2 col-sm-2">
|
|
|
+ <div class="formControls col-1 col-sm-1">
|
|
|
<input type="text" class="input-text" value="" placeholder="进水TDS数值,最大999" id="customerInTDS" name="customerInTDS" onkeyup="TDSLinkage($(this),999)" onpaste="TDSLinkage($(this),999)">
|
|
|
</div>
|
|
|
- <div class="formControls col-2 col-sm-2">
|
|
|
+ <div class="formControls col-1 col-sm-1">
|
|
|
<input type="text" class="input-text" value="" placeholder="出水TDS数值,最大999" id="customerOutTDS" name="customerOutTDS" onkeyup="TDSLinkage($(this),999)" onpaste="TDSLinkage($(this),999)">
|
|
|
</div>
|
|
|
</div>
|
|
@@ -686,7 +706,110 @@
|
|
|
<script>
|
|
|
|
|
|
$(function(){
|
|
|
+ /*初始化省份*/
|
|
|
+ initProvince();
|
|
|
+ /*监听省份*/
|
|
|
+ $("[name='initProvinceCode']").change(function (){
|
|
|
+ initCity($(this).val());
|
|
|
+ })
|
|
|
+ /*监听城市*/
|
|
|
+ $("[name='initCityCode']").change(function (){
|
|
|
+ initDistrict($(this).val());
|
|
|
+ })
|
|
|
})
|
|
|
+ /*初始化省份*/
|
|
|
+ function initProvince() {
|
|
|
+ //默认查询参数为空
|
|
|
+ var provinceListInfo = null;
|
|
|
+ $.ajax({
|
|
|
+ type: "POST",
|
|
|
+ data: {
|
|
|
+ provinceId : provinceListInfo
|
|
|
+ },
|
|
|
+ url: "${path}/admin/customerBasic/query_provinceList",
|
|
|
+ async: true,
|
|
|
+ success: function(data){
|
|
|
+ var html = '<option value="">请选择省份</option>';
|
|
|
+ var id;
|
|
|
+ if (data.returnCode == 200) {
|
|
|
+ for(var i=0;i<data.returnMsg.provinceList.length;i++){
|
|
|
+ provinceListInfo = data.returnMsg.provinceList[i];
|
|
|
+ if(i == 0 ){
|
|
|
+ id = provinceListInfo.provinceId;
|
|
|
+ }
|
|
|
+ html += '<option value="'+ provinceListInfo.provinceId +'">'+ provinceListInfo.province +'</option>';
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ html = '';
|
|
|
+ }
|
|
|
+ $("[name='initProvinceCode']").html(html);
|
|
|
+ },
|
|
|
+ error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ /*根据省份代号初始化城市*/
|
|
|
+ function initCity(customerProvinceId){
|
|
|
+ var cityListInfo = null;
|
|
|
+ if(customerProvinceId == null || customerProvinceId == ""){
|
|
|
+ var html = '<option value="">请选择城市</option>';
|
|
|
+ $("[name='initCityCode']").html(html);
|
|
|
+ }else{
|
|
|
+ $.ajax({
|
|
|
+ type: "POST",
|
|
|
+ data: {
|
|
|
+ provinceId : customerProvinceId
|
|
|
+ },
|
|
|
+ url: "${path}/admin/customerBasic/query_cityList",
|
|
|
+ async: true,
|
|
|
+ success: function(data){
|
|
|
+ var html = '<option value="">请选择城市</option>';
|
|
|
+ if (data.returnCode == 200) {
|
|
|
+ for(var i=0;i<data.returnMsg.cityList.length;i++){
|
|
|
+ cityListInfo = data.returnMsg.cityList[i];
|
|
|
+ html += '<option value="'+ cityListInfo.cityId +'">'+ cityListInfo.city +'</option>';
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ html = '';
|
|
|
+ }
|
|
|
+ $("[name='initCityCode']").html(html);
|
|
|
+ },
|
|
|
+ error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /*根据省份代号初始化区/县*/
|
|
|
+ function initDistrict(customerCityId){
|
|
|
+ var districtListInfo = null;
|
|
|
+ if(customerCityId == null || customerCityId == ""){
|
|
|
+ var html = '<option value="">请选择区/县</option>';
|
|
|
+ $("[name='initDistrictCode']").html(html);
|
|
|
+ }else{
|
|
|
+ $.ajax({
|
|
|
+ type: "POST",
|
|
|
+ data: {
|
|
|
+ cityId : customerCityId
|
|
|
+ },
|
|
|
+ url: "${path}/admin/customerBasic/query_districtList",
|
|
|
+ async: true,
|
|
|
+ success: function(data){
|
|
|
+ var html = '<option value="">请选择区/县</option>';
|
|
|
+ if (data.returnCode == 200) {
|
|
|
+ for(var i=0;i<data.returnMsg.districtList.length;i++){
|
|
|
+ districtListInfo = data.returnMsg.districtList[i];
|
|
|
+ html += '<option value="'+ districtListInfo.districtId +'">'+ districtListInfo.district +'</option>';
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ html = '';
|
|
|
+ }
|
|
|
+ $("[name='initDistrictCode']").html(html);
|
|
|
+ },
|
|
|
+ error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
/*是否是修改页面*/
|
|
|
var isUpdate = false;
|
|
@@ -750,12 +873,16 @@
|
|
|
allCustomerInfoType = parseInt($(this).val());
|
|
|
if(allCustomerInfoType == 1){
|
|
|
$("#customer-process-1").iCheck('check'); //设置已解决
|
|
|
+ $("#twiceSellEnd").hide();
|
|
|
+ $("#openTheLock").hide();
|
|
|
allCustomerType = 1;
|
|
|
}else{
|
|
|
$("#customer-process-3").iCheck('check'); //设置换新
|
|
|
+ $("#twiceSellEnd").show();
|
|
|
+ $("#openTheLock").show();
|
|
|
allCustomerType =3;
|
|
|
}
|
|
|
- initProcessResult(allCustomerType);
|
|
|
+ initProcessResult(allCustomerType,allCustomerInfoType);
|
|
|
})
|
|
|
|
|
|
/*监听处理结果选择事件*/
|
|
@@ -825,6 +952,54 @@
|
|
|
})
|
|
|
|
|
|
})
|
|
|
+ /**
|
|
|
+ *跳转到编辑页面
|
|
|
+ * @param employee
|
|
|
+ */
|
|
|
+ function admin_update_customer(customerId) {
|
|
|
+ window.location.href= "${path}/admin/customer/to_update_customer?customerId="+customerId;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 标记为二次售后
|
|
|
+ customerLastId;//上次客诉id
|
|
|
+ customerInitialId;//初始客诉id
|
|
|
+ * */
|
|
|
+ function markedSecondary(customerLastId,customerInitialId,obj){
|
|
|
+ $("#customerLastId").val(customerLastId);
|
|
|
+ if(customerInitialId == null || customerInitialId == "" || typeof(customerInitialId) == "undefined"){
|
|
|
+ $("#customerInitialId").val(customerLastId);
|
|
|
+ }else{
|
|
|
+ $("#customerInitialId").val(customerInitialId);
|
|
|
+ }
|
|
|
+ $(obj).parents("tr").siblings().css({'background-color':''});
|
|
|
+ $(obj).parents("tr").siblings().each(function(){
|
|
|
+ /*$(this).find("a").eq(1).parent().append('<a onclick="markedSecondary('+customerLastId+','+customerInitialId+',this)">标记为二次售后</a>');*/
|
|
|
+ $(this).find("a").eq(1).show();
|
|
|
+ $(this).find("a").eq(2).hide();
|
|
|
+ })
|
|
|
+
|
|
|
+ $(obj).parents("tr").css('background-color', '#ccc');
|
|
|
+ /*$(obj).parent().append('<a onclick="cancelMarkedSecondary('+customerLastId+','+customerInitialId+',this)">取消二次售后标记</a>');
|
|
|
+ $(obj).remove();*/
|
|
|
+ $(obj).hide();
|
|
|
+ $(obj).next().show();
|
|
|
+ /*$(":radio[name='customerSecondaryCustomer'][value='2']").prop("checked",false);
|
|
|
+ $(":radio[name='customerSecondaryCustomer'][value='1']").prop("checked",true);*/
|
|
|
+
|
|
|
+
|
|
|
+ $("#customerSecondaryCustomer1").iCheck('check');
|
|
|
+ }
|
|
|
+ function cancelMarkedSecondary(customerLastId,customerInitialId,obj){
|
|
|
+ $("#customerLastId").val("");
|
|
|
+ $("#customerInitialId").val("");
|
|
|
+ $(obj).parents("tr").css('background-color', '');
|
|
|
+ /*$(obj).parent().append('<a onclick="markedSecondary('+customerLastId+','+customerInitialId+',this)">标记为二次售后</a>');
|
|
|
+ $(obj).remove();*/
|
|
|
+ $(obj).hide();
|
|
|
+ $(obj).prev().show();
|
|
|
+ $("#customerSecondaryCustomer2").iCheck('check');
|
|
|
+ }
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
</body>
|