|
@@ -177,8 +177,7 @@
|
|
<label class="form-label col-1 col-sm-1"><span class="c-red">*</span>问题内容:</label>
|
|
<label class="form-label col-1 col-sm-1"><span class="c-red">*</span>问题内容:</label>
|
|
<div class="formControls col-5 col-sm-5">
|
|
<div class="formControls col-5 col-sm-5">
|
|
<input type="hidden" name="questionId" id="questionId">
|
|
<input type="hidden" name="questionId" id="questionId">
|
|
- <script id="describeContentText" type="text/plain" style="width:650px;height:250px;">
|
|
|
|
- </script>
|
|
|
|
|
|
+ <script id="describeContentText" type="text/plain" style="width:650px;height:250px;"></script>
|
|
</script>
|
|
</script>
|
|
<input type="hidden" name="describeContent" id="describeContent">
|
|
<input type="hidden" name="describeContent" id="describeContent">
|
|
</div>
|
|
</div>
|
|
@@ -186,7 +185,7 @@
|
|
<div class="row cl">
|
|
<div class="row cl">
|
|
<label class="form-label col-1 col-sm-1"></label>
|
|
<label class="form-label col-1 col-sm-1"></label>
|
|
<div class="formControls col-2 col-sm-2">
|
|
<div class="formControls col-2 col-sm-2">
|
|
- <input type="text" class="input-text" value="" placeholder="请输入手机号" id="p-phone" name="">
|
|
|
|
|
|
+ <input type="text" class="input-text associated-phone" value="" placeholder="请输入手机号" id="p-phone" name="">
|
|
</div>
|
|
</div>
|
|
<div class="formControls col-2 col-sm-2" style="width: 10%">
|
|
<div class="formControls col-2 col-sm-2" style="width: 10%">
|
|
<input type="button" class="btn btn-primary" value="发短信給用户" onclick="sendPhone('p','p-msg');">
|
|
<input type="button" class="btn btn-primary" value="发短信給用户" onclick="sendPhone('p','p-msg');">
|
|
@@ -299,7 +298,7 @@
|
|
<input type="text" class="input-text" value="" placeholder="填写收件人姓名" id="sendName" name="relationSendName" datatype="s1-20" errormsg="联系人格式不正确!" >
|
|
<input type="text" class="input-text" value="" placeholder="填写收件人姓名" id="sendName" name="relationSendName" datatype="s1-20" errormsg="联系人格式不正确!" >
|
|
</div>
|
|
</div>
|
|
<div class="formControls col-2 col-sm-2">
|
|
<div class="formControls col-2 col-sm-2">
|
|
- <input type="text" class="input-text" value="" placeholder="填写收件人手机号" id="sendTel" name="relationSendTel" datatype="m" errormsg="联系人电话格式不正确!">
|
|
|
|
|
|
+ <input type="text" class="input-text associated-phone" value="" placeholder="填写收件人手机号" id="sendTel" name="relationSendTel" datatype="m" errormsg="联系人电话格式不正确!">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row cl" id="recipientAddress" style="display: none;">
|
|
<div class="row cl" id="recipientAddress" style="display: none;">
|
|
@@ -392,29 +391,30 @@
|
|
</div>
|
|
</div>
|
|
<input type="hidden" name="customerArea" id="customerArea">
|
|
<input type="hidden" name="customerArea" id="customerArea">
|
|
<div class="formControls col-2 col-sm-2">
|
|
<div class="formControls col-2 col-sm-2">
|
|
- <input type="text" class="input-text" value="" placeholder="进水tds数值" id="customerInTDS" name="customerInTDS">
|
|
|
|
|
|
+ <input type="text" class="input-text" value="" placeholder="进水TDS数值" id="customerInTDS" name="customerInTDS" onkeyup="keyFun($(this))" onpaste="keyFun($(this))">
|
|
</div>
|
|
</div>
|
|
<div class="formControls col-2 col-sm-2">
|
|
<div class="formControls col-2 col-sm-2">
|
|
- <input type="text" class="input-text" value="" placeholder="出水tds数值" id="customerOutTDS" name="customerOutTDS">
|
|
|
|
|
|
+ <input type="text" class="input-text" value="" placeholder="出水TDS数值" id="customerOutTDS" name="customerOutTDS" onkeyup="keyFun($(this))" onpaste="keyFun($(this))">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row cl" id="TDScollectShow" style="display: none;">
|
|
<div class="row cl" id="TDScollectShow" style="display: none;">
|
|
<label class="form-label col-1 col-sm-1"></label>
|
|
<label class="form-label col-1 col-sm-1"></label>
|
|
<div class="formControls col-6 col-sm-6">
|
|
<div class="formControls col-6 col-sm-6">
|
|
- tds收集:广东省-深圳市-福田区 进水:100ppm 出水:100ppm
|
|
|
|
|
|
+ TDS收集:<span id="DTS-address"></span>
|
|
|
|
+ 进水:<span id="DTS-in"></span>PPM 出水:<span id="DTS-out"></span>PPM
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row cl" id="sendAddressInfo">
|
|
<div class="row cl" id="sendAddressInfo">
|
|
<label class="form-label col-1 col-sm-1"><span class="c-red">*</span>寄回信息:</label>
|
|
<label class="form-label col-1 col-sm-1"><span class="c-red">*</span>寄回信息:</label>
|
|
- <div class="formControls col-5 col-sm-5" style="height: 400px">
|
|
|
|
- <script id="sendAddressSms" type="text/plain" style="width:650px;height:250px;"></script>
|
|
|
|
|
|
+ <div class="formControls col-5 col-sm-5" style="height: 300px">
|
|
|
|
+ <script id="sendAddressSms" type="text/plain" style="width:1000px;height:250px;"></script>
|
|
</script>
|
|
</script>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row cl" id="sendAddressByPhone" style="display: none;">
|
|
<div class="row cl" id="sendAddressByPhone" style="display: none;">
|
|
<label class="form-label col-1 col-sm-1"></label>
|
|
<label class="form-label col-1 col-sm-1"></label>
|
|
<div class="formControls col-2 col-sm-2">
|
|
<div class="formControls col-2 col-sm-2">
|
|
- <input type="text" class="input-text" value="" placeholder="请输入手机号" id="m-phone" name="">
|
|
|
|
|
|
+ <input type="text" class="input-text associated-phone" value="" placeholder="请输入手机号" id="m-phone" name="">
|
|
</div>
|
|
</div>
|
|
<div class="formControls col-2 col-sm-2" style="width: 10%">
|
|
<div class="formControls col-2 col-sm-2" style="width: 10%">
|
|
<input type="button" class="btn btn-primary" value="发短信給用户" onclick="sendPhone('m','m-msg');">
|
|
<input type="button" class="btn btn-primary" value="发短信給用户" onclick="sendPhone('m','m-msg');">
|
|
@@ -445,7 +445,7 @@
|
|
<div class="row cl">
|
|
<div class="row cl">
|
|
<label class="form-label col-1 col-sm-1"><span class="c-red">*</span>处理描述:</label>
|
|
<label class="form-label col-1 col-sm-1"><span class="c-red">*</span>处理描述:</label>
|
|
<div class="formControls col-5 col-sm-5">
|
|
<div class="formControls col-5 col-sm-5">
|
|
- <script id="describeHandleDescText" type="text/plain" style="width:650px;height:250px;"></script>
|
|
|
|
|
|
+ <script id="describeHandleDescText" type="text/plain" style="width:1000px;height:250px;"></script>
|
|
</script>
|
|
</script>
|
|
<input type="hidden" id="describeHandleDesc" name="describeHandleDesc">
|
|
<input type="hidden" id="describeHandleDesc" name="describeHandleDesc">
|
|
</div>
|
|
</div>
|
|
@@ -470,7 +470,7 @@
|
|
<input type="text" class="input-text" value="" placeholder="填写回访人姓名" id="" name="visitName" datatype="s1-20" errormsg="回访人姓名格式不正确!" >
|
|
<input type="text" class="input-text" value="" placeholder="填写回访人姓名" id="" name="visitName" datatype="s1-20" errormsg="回访人姓名格式不正确!" >
|
|
</div>
|
|
</div>
|
|
<div class="formControls col-2 col-sm-2">
|
|
<div class="formControls col-2 col-sm-2">
|
|
- <input type="text" class="input-text" value="" placeholder="填写回访人手机号" id="" name="visitTel" datatype="m" errormsg="回访人手机号码格式不正确!">
|
|
|
|
|
|
+ <input type="text" class="input-text associated-phone" value="" placeholder="填写回访人手机号" id="" name="visitTel" datatype="m" errormsg="回访人手机号码格式不正确!">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row cl">
|
|
<div class="row cl">
|
|
@@ -521,7 +521,9 @@
|
|
</div>
|
|
</div>
|
|
</article>
|
|
</article>
|
|
|
|
|
|
|
|
+<#--时间控件-->
|
|
<script type="text/javascript" src="${path}/common/lib/My97DatePicker/4.8/WdatePicker.js"></script>
|
|
<script type="text/javascript" src="${path}/common/lib/My97DatePicker/4.8/WdatePicker.js"></script>
|
|
|
|
+
|
|
<script type="text/javascript" src="${path}/common/lib/webuploader/0.1.5/webuploader.min.js"></script>
|
|
<script type="text/javascript" src="${path}/common/lib/webuploader/0.1.5/webuploader.min.js"></script>
|
|
<script type="text/javascript" src="${path}/common/lib/icheck/jquery.icheck.min.js"></script>
|
|
<script type="text/javascript" src="${path}/common/lib/icheck/jquery.icheck.min.js"></script>
|
|
<script type="text/javascript" src="${path}/common/lib/cm.lib/jquery.provincesCity.js"></script>
|
|
<script type="text/javascript" src="${path}/common/lib/cm.lib/jquery.provincesCity.js"></script>
|
|
@@ -530,9 +532,6 @@
|
|
<#--<script type="text/javascript" src="${path}/common/lib/cm.lib/dimensions.js"></script>-->
|
|
<#--<script type="text/javascript" src="${path}/common/lib/cm.lib/dimensions.js"></script>-->
|
|
<script type="text/javascript" src="${path}/common/lib/cm.lib/suggest.js"></script>
|
|
<script type="text/javascript" src="${path}/common/lib/cm.lib/suggest.js"></script>
|
|
|
|
|
|
-<#--时间控件-->
|
|
|
|
-<script type="text/javascript" src="${path}/common/lib/My97DatePicker/4.8/WdatePicker.js"></script>
|
|
|
|
-
|
|
|
|
<#--百度富文本编译器-->
|
|
<#--百度富文本编译器-->
|
|
<script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/ueditor.config.js"></script>
|
|
<script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/ueditor.config.js"></script>
|
|
<script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/ueditor.all.js"></script>
|
|
<script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/ueditor.all.js"></script>
|
|
@@ -558,8 +557,8 @@
|
|
});
|
|
});
|
|
|
|
|
|
$(document).on('click', '.dalog-ask .answer', function() {
|
|
$(document).on('click', '.dalog-ask .answer', function() {
|
|
- var msg = $(this).find("span").text();
|
|
|
|
- UE.getEditor('describeContentText').setContent(msg,false);
|
|
|
|
|
|
+ var msg = $(this).find("span").html();
|
|
|
|
+ UE.getEditor('describeContentText').setContent(msg);
|
|
|
|
|
|
$("#questionId").val($(this).find(".quesId").val());
|
|
$("#questionId").val($(this).find(".quesId").val());
|
|
|
|
|
|
@@ -584,7 +583,11 @@
|
|
/*处理描述*/
|
|
/*处理描述*/
|
|
var describeHandleDescText = UE.getEditor('describeHandleDescText');
|
|
var describeHandleDescText = UE.getEditor('describeHandleDescText');
|
|
/*邮寄地址*/
|
|
/*邮寄地址*/
|
|
- var sendAddressSms = UE.getEditor('sendAddressSms');;
|
|
|
|
|
|
+ var sendAddressSms = UE.getEditor('sendAddressSms');
|
|
|
|
+
|
|
|
|
+ sendAddressSms.ready(function() {
|
|
|
|
+ sendAddressSms.setHeight(250); //固定高度
|
|
|
|
+ });
|
|
</script>
|
|
</script>
|
|
<script type="text/javascript">
|
|
<script type="text/javascript">
|
|
|
|
|
|
@@ -692,6 +695,31 @@
|
|
showVisitMsg(2,visitAdminName);
|
|
showVisitMsg(2,visitAdminName);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
+
|
|
|
|
+ /* 监听TDS收集--地址选择 */
|
|
|
|
+ $(document).on('change', '#TDSArea', function() {
|
|
|
|
+ setTDSCollect();
|
|
|
|
+ });
|
|
|
|
+ /*实时监听文本框-- TDS进水*/
|
|
|
|
+ document.getElementById("customerInTDS").addEventListener("input", function(){
|
|
|
|
+ setTDSCollect();
|
|
|
|
+ });
|
|
|
|
+ /*实时监听文本框-- TDS出水*/
|
|
|
|
+ document.getElementById("customerOutTDS").addEventListener("input", function(){
|
|
|
|
+ setTDSCollect();
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ /* 监听手机号 失去焦点时 将其他手机号码未填的 */
|
|
|
|
+ $(".associated-phone").blur(function (){
|
|
|
|
+ var phone = $(this).val();
|
|
|
|
+ $(".associated-phone").each(function(){
|
|
|
|
+ var ph = $(this).val();
|
|
|
|
+ if(ph == null || ph == "" || typeof(ph) == undefined ){
|
|
|
|
+ $(this).val(phone);
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+
|
|
})
|
|
})
|
|
|
|
|
|
/*初始化单选框样式*/
|
|
/*初始化单选框样式*/
|
|
@@ -703,6 +731,15 @@
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ function keyFun(node){
|
|
|
|
+ var c=$(node);
|
|
|
|
+ if(/[^\d]/.test(c.val())){//替换非数字字符
|
|
|
|
+ var temp_amount=c.val().replace(/[^\d]/g,'');
|
|
|
|
+ $(node).val(temp_amount);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
/*初始化客服*/
|
|
/*初始化客服*/
|
|
function initSysAdmin() {
|
|
function initSysAdmin() {
|
|
var sysAminList = getSysAdmin();
|
|
var sysAminList = getSysAdmin();
|
|
@@ -840,10 +877,10 @@
|
|
}
|
|
}
|
|
}else if(allCustomerInfoType == 2){ //售后
|
|
}else if(allCustomerInfoType == 2){ //售后
|
|
|
|
|
|
-// var msg = UE.getEditor('sendAddressSms').getContent();
|
|
|
|
-// if(msg == null || msg == ""){
|
|
|
|
-// initComplaintQuestionInfo("m");
|
|
|
|
-// }
|
|
|
|
|
|
+ var msg = UE.getEditor('sendAddressSms').getContent();
|
|
|
|
+ if(msg == null || msg == ""){
|
|
|
|
+ initComplaintQuestionInfo("m");
|
|
|
|
+ }
|
|
$("#renewed").show();
|
|
$("#renewed").show();
|
|
$("#maintain").show();
|
|
$("#maintain").show();
|
|
$("#reissue").show();
|
|
$("#reissue").show();
|
|
@@ -1157,6 +1194,10 @@
|
|
* 显示选择的订单
|
|
* 显示选择的订单
|
|
*/
|
|
*/
|
|
function setSelectOrder(orderId){
|
|
function setSelectOrder(orderId){
|
|
|
|
+ if(orderId == null || orderId == "" || typeof (orderId)=="undefined"){
|
|
|
|
+ layer.msg("未选中订单", {icon: 5, time: 3000});
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
var html = '';
|
|
var html = '';
|
|
var address = ''; //地址
|
|
var address = ''; //地址
|
|
var orderItemList = {};
|
|
var orderItemList = {};
|
|
@@ -1420,7 +1461,7 @@
|
|
' <td width="15" style="'+ fristInputStyle +'">' +
|
|
' <td width="15" style="'+ fristInputStyle +'">' +
|
|
' <input type="hidden" class="input-produce-id" value="' + color.colorProductId + '">' +
|
|
' <input type="hidden" class="input-produce-id" value="' + color.colorProductId + '">' +
|
|
' <input type="hidden" class="input-color-id" value="' + color.colorId + '">' +
|
|
' <input type="hidden" class="input-color-id" value="' + color.colorId + '">' +
|
|
- ' <input type="text" class="input-text input-color-number" style="width: 100%;" value="'+ number +'" placeholder="产品数量" id="" name="">' +
|
|
|
|
|
|
+ ' <input type="text" class="input-text input-color-number number-input" style="width: 100%;" value="'+ number +'" placeholder="产品数量" id="" name="" onkeyup="keyFun($(this))" onpaste="keyFun($(this))" >' +
|
|
' </td>' +
|
|
' </td>' +
|
|
' </tr>';
|
|
' </tr>';
|
|
fristInputStyle = "";
|
|
fristInputStyle = "";
|
|
@@ -1444,7 +1485,7 @@
|
|
' <td width="15" style="'+ fristInputStyle +'">' +
|
|
' <td width="15" style="'+ fristInputStyle +'">' +
|
|
' <input type="hidden" class="input-produce-id" value="' + produceFit.productId + '">' +
|
|
' <input type="hidden" class="input-produce-id" value="' + produceFit.productId + '">' +
|
|
' <input type="hidden" class="input-fittings-id" value="' + produceFit.fittingsId +'">' +
|
|
' <input type="hidden" class="input-fittings-id" value="' + produceFit.fittingsId +'">' +
|
|
- ' <input type="text" class="input-text input-fittings-number" style="width: 100%;" value="'+ number +'" placeholder="产品数量" id="" name="">' +
|
|
|
|
|
|
+ ' <input type="text" class="input-text input-fittings-number" style="width: 100%;" value="'+ number +'" placeholder="配件数量" id="" name="" onkeyup="keyFun($(this))" onpaste="keyFun($(this))" >' +
|
|
' </td>' +
|
|
' </td>' +
|
|
' </tr>';
|
|
' </tr>';
|
|
fristInputStyle = "";
|
|
fristInputStyle = "";
|
|
@@ -1539,6 +1580,17 @@
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /*设置TDS收集信息*/
|
|
|
|
+ function setTDSCollect(){
|
|
|
|
+ var TDSArea = $("#TDSArea").find("option:selected").text();
|
|
|
|
+ var TDSAddress = TDSCity + '-' + TDSArea;
|
|
|
|
+ $("#DTS-address").html(TDSAddress);
|
|
|
|
+
|
|
|
|
+ $("#DTS-in").html($("#customerInTDS").val());
|
|
|
|
+
|
|
|
|
+ $("#DTS-out").html($("#customerOutTDS").val());
|
|
|
|
+ }
|
|
</script>
|
|
</script>
|
|
<script>
|
|
<script>
|
|
$(function(){
|
|
$(function(){
|
|
@@ -1559,7 +1611,10 @@
|
|
|
|
|
|
},
|
|
},
|
|
beforeSubmit: function (curform) { //验证通过之后执行的函数
|
|
beforeSubmit: function (curform) { //验证通过之后执行的函数
|
|
- addCustomerReady();
|
|
|
|
|
|
+ var flag = addCustomerReady();
|
|
|
|
+ if(!flag){
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
},
|
|
},
|
|
callback: function (data) {//异步回调函数
|
|
callback: function (data) {//异步回调函数
|
|
if (data) {
|
|
if (data) {
|
|
@@ -1605,11 +1660,19 @@
|
|
|
|
|
|
/*----问题描述- start --*/
|
|
/*----问题描述- start --*/
|
|
var describeContentText = UE.getEditor('describeContentText').getContent();
|
|
var describeContentText = UE.getEditor('describeContentText').getContent();
|
|
|
|
+ if(describeContentText == null || describeContentText == ""){
|
|
|
|
+ layer.msg("未填写问题描述", {icon: 5, time: 3000});
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
$("#describeContent").val(describeContentText);
|
|
$("#describeContent").val(describeContentText);
|
|
/*----问题描述--end-----*/
|
|
/*----问题描述--end-----*/
|
|
|
|
|
|
/*----处理描述- start --*/
|
|
/*----处理描述- start --*/
|
|
var describeHandleDescText = UE.getEditor('describeHandleDescText').getContent();
|
|
var describeHandleDescText = UE.getEditor('describeHandleDescText').getContent();
|
|
|
|
+ if(describeContentText == null || describeContentText == ""){
|
|
|
|
+ layer.msg("未填写处理描述", {icon: 5, time: 3000});
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
$("#describeHandleDesc").val(describeHandleDescText);
|
|
$("#describeHandleDesc").val(describeHandleDescText);
|
|
/*----处理描述--end-----*/
|
|
/*----处理描述--end-----*/
|
|
|
|
|
|
@@ -1618,6 +1681,7 @@
|
|
var sendFittings = new Array();
|
|
var sendFittings = new Array();
|
|
var closedProdcues = new Array();
|
|
var closedProdcues = new Array();
|
|
var closedFittings = new Array();
|
|
var closedFittings = new Array();
|
|
|
|
+
|
|
$("#addProduct").find(".input-color-number").each(function(){
|
|
$("#addProduct").find(".input-color-number").each(function(){
|
|
var number = $(this).val();
|
|
var number = $(this).val();
|
|
if(number != null && number != ""){
|
|
if(number != null && number != ""){
|
|
@@ -1684,24 +1748,10 @@
|
|
$("#sendFittings").val(JSON.stringify(sendFittings));
|
|
$("#sendFittings").val(JSON.stringify(sendFittings));
|
|
$("#closedProdcues").val(JSON.stringify(closedProdcues));
|
|
$("#closedProdcues").val(JSON.stringify(closedProdcues));
|
|
$("#closedFittings").val(JSON.stringify(closedFittings));
|
|
$("#closedFittings").val(JSON.stringify(closedFittings));
|
|
- }
|
|
|
|
|
|
|
|
- /* 添加客诉 */
|
|
|
|
-// function save_submit(){
|
|
|
|
-// var customerSourceType = $("input[name='customerSourceType']:checked").val();
|
|
|
|
-// if(customerSourceType == 3){
|
|
|
|
-// var customerSource = $("#customerSource").val();
|
|
|
|
-// if(customerSource == null || customerSource ==""){
|
|
|
|
-// showErrorMsg($("#customerSource"),"请输入来源入口!");
|
|
|
|
-// }
|
|
|
|
-// }
|
|
|
|
-// }
|
|
|
|
-
|
|
|
|
- /*提示错误信息*/
|
|
|
|
- function showErrorMsg(node,msg){
|
|
|
|
- node.select();
|
|
|
|
- layer.msg(msg, {icon: 2, time: 2000});
|
|
|
|
|
|
+ return true;
|
|
}
|
|
}
|
|
|
|
+
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<!--/请在上方写此页面业务相关的脚本-->
|
|
<!--/请在上方写此页面业务相关的脚本-->
|