|
@@ -82,10 +82,9 @@
|
|
</div>
|
|
</div>
|
|
<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-4 col-sm-4"> <span class="select-box">
|
|
|
|
- <select name="adminId" id="adminId" class="select">
|
|
|
|
-
|
|
|
|
- </select>
|
|
|
|
|
|
+ <div class="formControls col-4 col-sm-4"> <span class="select-box" style=" width: 625px;">
|
|
|
|
+ <select name="adminId" id="adminId" class="select">
|
|
|
|
+ </select>
|
|
</span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -103,7 +102,8 @@
|
|
<div class="radio-box">
|
|
<div class="radio-box">
|
|
<input type="radio" id="tel-3" name="customerSourceType" value="3">
|
|
<input type="radio" id="tel-3" name="customerSourceType" value="3">
|
|
<label for="tel-3">其他</label>
|
|
<label for="tel-3">其他</label>
|
|
- <input type="text" style="width: 150px;margin-left: 10px;" class="input-text" value="" placeholder="" id="customerSource" name="customerSource">
|
|
|
|
|
|
+ <input type="text" style="width: 321px;margin-left: 10px;" class="input-text" value="" placeholder="" id="customerSourceOld" name="customerSourceOld" placeholder="">
|
|
|
|
+ <input type="hidden" value="" placeholder="" id="customerSource" name="customerSource">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -181,7 +181,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:983px;height:250px;"></script>
|
|
</script>
|
|
</script>
|
|
<input type="hidden" name="describeContent" id="describeContent">
|
|
<input type="hidden" name="describeContent" id="describeContent">
|
|
</div>
|
|
</div>
|
|
@@ -224,23 +224,23 @@
|
|
<input type="radio" id="customer-process-2" value="2" name="customerIsSolve">
|
|
<input type="radio" id="customer-process-2" value="2" name="customerIsSolve">
|
|
<label for="customer-process-2">未解决</label>
|
|
<label for="customer-process-2">未解决</label>
|
|
</div>
|
|
</div>
|
|
- <div class="radio-box" id="renewed">
|
|
|
|
|
|
+ <div class="radio-box" id="renewed" style="display: none">
|
|
<input type="radio" id="customer-process-3" value="3" name="customerIsSolve">
|
|
<input type="radio" id="customer-process-3" value="3" name="customerIsSolve">
|
|
<label for="customer-process-3">换新</label>
|
|
<label for="customer-process-3">换新</label>
|
|
</div>
|
|
</div>
|
|
- <div class="radio-box" id="maintain">
|
|
|
|
|
|
+ <div class="radio-box" id="maintain" style="display: none">
|
|
<input type="radio" id="customer-process-4" value="4" name="customerIsSolve">
|
|
<input type="radio" id="customer-process-4" value="4" name="customerIsSolve">
|
|
<label for="customer-process-4">维修</label>
|
|
<label for="customer-process-4">维修</label>
|
|
</div>
|
|
</div>
|
|
- <div class="radio-box" id="reissue">
|
|
|
|
|
|
+ <div class="radio-box" id="reissue" style="display: none">
|
|
<input type="radio" id="customer-process-5" value="5" name="customerIsSolve">
|
|
<input type="radio" id="customer-process-5" value="5" name="customerIsSolve">
|
|
<label for="customer-process-5">补发</label>
|
|
<label for="customer-process-5">补发</label>
|
|
</div>
|
|
</div>
|
|
- <div class="radio-box" id="backGoods">
|
|
|
|
|
|
+ <div class="radio-box" id="backGoods" style="display: none">
|
|
<input type="radio" id="customer-process-6" value="6" name="customerIsSolve">
|
|
<input type="radio" id="customer-process-6" value="6" name="customerIsSolve">
|
|
<label for="customer-process-6">退货</label>
|
|
<label for="customer-process-6">退货</label>
|
|
</div>
|
|
</div>
|
|
- <div class="radio-box" id="noReasonBack">
|
|
|
|
|
|
+ <div class="radio-box" id="noReasonBack" style="display: none">
|
|
<input type="radio" id="customer-process-7" value="7" name="customerIsSolve">
|
|
<input type="radio" id="customer-process-7" value="7" name="customerIsSolve">
|
|
<label for="customer-process-7">无理由退货</label>
|
|
<label for="customer-process-7">无理由退货</label>
|
|
</div>
|
|
</div>
|
|
@@ -280,16 +280,8 @@
|
|
<th style="text-align: center;">购买日期</th>
|
|
<th style="text-align: center;">购买日期</th>
|
|
</tr>
|
|
</tr>
|
|
<tr id="showOrder">
|
|
<tr id="showOrder">
|
|
- <#-- <td>爱贝源-微信商城</td>
|
|
|
|
- <td>1290387806</td>
|
|
|
|
- <td>何小小</td>
|
|
|
|
- <td>1882222888</td>
|
|
|
|
- <td>¥3680</td>
|
|
|
|
- <td>Watero净水机</td>
|
|
|
|
- <td>2017-06-06</td>-->
|
|
|
|
|
|
+ <td style="text-align: center;" colspan="7">暂未选择订单</td>
|
|
</tr>
|
|
</tr>
|
|
- <#--<tr id="showOrderAddress">-->
|
|
|
|
- <#--</tr>-->
|
|
|
|
</table>
|
|
</table>
|
|
<input type="hidden" id="companyId" name="companyId" value="" >
|
|
<input type="hidden" id="companyId" name="companyId" value="" >
|
|
<input type="hidden" id="storeId" name="storeId" value="" >
|
|
<input type="hidden" id="storeId" name="storeId" value="" >
|
|
@@ -304,6 +296,9 @@
|
|
<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" value="" placeholder="填写收件人手机号" id="sendTel" name="relationSendTel" datatype="m" errormsg="联系人电话格式不正确!">
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="formControls col-2 col-sm-2" id="postageAccount">
|
|
|
|
+ <input type="text" class="input-text" value="" placeholder="邮费转账账户" id="relationAlipay" name="relationAlipay" errormsg="邮费转账账户!">
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<div class="row cl" id="recipientAddress" style="display: none;">
|
|
<div class="row cl" id="recipientAddress" style="display: none;">
|
|
<input type="hidden" id="addressInfo">
|
|
<input type="hidden" id="addressInfo">
|
|
@@ -350,29 +345,9 @@
|
|
</tr>
|
|
</tr>
|
|
</thead>
|
|
</thead>
|
|
<tbody id="addProduct">
|
|
<tbody id="addProduct">
|
|
- <#--<tr >
|
|
|
|
- <td>冲奶机</td>
|
|
|
|
- <td>
|
|
|
|
- <div>
|
|
|
|
- 白色
|
|
|
|
- <input type="text" class="input-text" style="width: 40px;text-align: center;" value="1" placeholder="" id="" name="">
|
|
|
|
- </div>
|
|
|
|
- <div>
|
|
|
|
- 白色
|
|
|
|
- <input type="text" class="input-text" style="width: 40px;text-align: center;" value="1" placeholder="" id="" name="">
|
|
|
|
- </div>
|
|
|
|
- </td>
|
|
|
|
- <td>
|
|
|
|
- <div>
|
|
|
|
- 水箱
|
|
|
|
- <input type="text" class="input-text" style="width: 40px;text-align: center;" value="1" placeholder="" id="" name="">
|
|
|
|
- </div>
|
|
|
|
- <div>
|
|
|
|
- 水箱
|
|
|
|
- <input type="text" class="input-text" style="width: 40px;text-align: center;" value="1" placeholder="" id="" name="">
|
|
|
|
- </div>
|
|
|
|
- </td>
|
|
|
|
- </tr>-->
|
|
|
|
|
|
+ <tr id="showOrder">
|
|
|
|
+ <td style="text-align: center;" colspan="3">请选择订单之后再选择产品</td>
|
|
|
|
+ </tr>
|
|
</tbody>
|
|
</tbody>
|
|
</table>
|
|
</table>
|
|
|
|
|
|
@@ -404,14 +379,14 @@
|
|
<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收集:<span id="DTS-address"></span>
|
|
|
|
- 进水:<span id="DTS-in"></span>PPM 出水:<span id="DTS-out"></span>PPM
|
|
|
|
|
|
+ <span id="DTS-address"></span>
|
|
|
|
+ <span id="DTS-in"></span> <span id="DTS-out"></span>
|
|
</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: 250px">
|
|
<div class="formControls col-5 col-sm-5" style="height: 250px">
|
|
- <script id="sendAddressSms" type="text/plain" style="width:1000px;height:200px;"></script>
|
|
|
|
|
|
+ <script id="sendAddressSms" type="text/plain" style="width:983px;height:200px;"></script>
|
|
</script>
|
|
</script>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -440,16 +415,18 @@
|
|
</tr>
|
|
</tr>
|
|
</thead>
|
|
</thead>
|
|
<tbody id="back-product">
|
|
<tbody id="back-product">
|
|
-
|
|
|
|
|
|
+ <tr id="showOrder">
|
|
|
|
+ <td style="text-align: center;" colspan="3">请选择订单之后再选择产品</td>
|
|
|
|
+ </tr>
|
|
</tbody>
|
|
</tbody>
|
|
</table>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<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">处理描述:</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:1000px;height:250px;"></script>
|
|
|
|
|
|
+ <script id="describeHandleDescText" type="text/plain" style="width:983px;height:250px;"></script>
|
|
</script>
|
|
</script>
|
|
<input type="hidden" id="describeHandleDesc" name="describeHandleDesc">
|
|
<input type="hidden" id="describeHandleDesc" name="describeHandleDesc">
|
|
</div>
|
|
</div>
|
|
@@ -458,16 +435,16 @@
|
|
<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-10 col-sm-10 skin-minimal">
|
|
<div class="formControls col-10 col-sm-10 skin-minimal">
|
|
<div class="radio-box">
|
|
<div class="radio-box">
|
|
- <input type="radio" id="customer-visit-1" name="customerIsVisit" value="2" checked>
|
|
|
|
|
|
+ <input type="radio" id="customer-visit-1" name="customerIsVisit" value="2" >
|
|
<label for="customer-visit-1">需要回访</label>
|
|
<label for="customer-visit-1">需要回访</label>
|
|
</div>
|
|
</div>
|
|
<div class="radio-box">
|
|
<div class="radio-box">
|
|
- <input type="radio" id="customer-visit-2" name="customerIsVisit" value="1">
|
|
|
|
|
|
+ <input type="radio" id="customer-visit-2" name="customerIsVisit" value="1" checked>
|
|
<label for="customer-visit-2">不需要回访</label>
|
|
<label for="customer-visit-2">不需要回访</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div id="needToVisit">
|
|
|
|
|
|
+ <div id="needToVisit" style="display: none;">
|
|
<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-2 col-sm-2">
|
|
<div class="formControls col-2 col-sm-2">
|
|
@@ -574,20 +551,122 @@
|
|
//$("#answer-textarea").text();
|
|
//$("#answer-textarea").text();
|
|
$(".dalog-ask").hide(); //隐藏qa
|
|
$(".dalog-ask").hide(); //隐藏qa
|
|
});
|
|
});
|
|
-
|
|
|
|
- /*实时监听文本框-- 员工编号*/
|
|
|
|
- document.getElementById("suggest").addEventListener("div", function(){
|
|
|
|
- alert(1);
|
|
|
|
- });
|
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+
|
|
|
|
+ var tool = [
|
|
|
|
+ 'anchor', //锚点
|
|
|
|
+ 'undo', //撤销
|
|
|
|
+ 'redo', //重做
|
|
|
|
+ 'bold', //加粗
|
|
|
|
+ 'indent', //首行缩进
|
|
|
|
+ 'snapscreen', //截图
|
|
|
|
+ 'italic', //斜体
|
|
|
|
+ 'underline', //下划线
|
|
|
|
+ 'strikethrough', //删除线
|
|
|
|
+ 'subscript', //下标
|
|
|
|
+ 'fontborder', //字符边框
|
|
|
|
+ 'superscript', //上标
|
|
|
|
+ 'formatmatch', //格式刷
|
|
|
|
+ //'source', //源代码
|
|
|
|
+ 'blockquote', //引用
|
|
|
|
+ 'pasteplain', //纯文本粘贴模式
|
|
|
|
+ 'selectall', //全选
|
|
|
|
+ 'print', //打印
|
|
|
|
+ 'preview', //预览
|
|
|
|
+ 'horizontal', //分隔线
|
|
|
|
+ 'removeformat', //清除格式
|
|
|
|
+ 'time', //时间
|
|
|
|
+ 'date', //日期
|
|
|
|
+ 'unlink', //取消链接
|
|
|
|
+ 'insertrow', //前插入行
|
|
|
|
+ 'insertcol', //前插入列
|
|
|
|
+ 'mergeright', //右合并单元格
|
|
|
|
+ 'mergedown', //下合并单元格
|
|
|
|
+ 'deleterow', //删除行
|
|
|
|
+ 'deletecol', //删除列
|
|
|
|
+ 'splittorows', //拆分成行
|
|
|
|
+ 'splittocols', //拆分成列
|
|
|
|
+ 'splittocells', //完全拆分单元格
|
|
|
|
+ 'deletecaption', //删除表格标题
|
|
|
|
+ 'inserttitle', //插入标题
|
|
|
|
+ 'mergecells', //合并多个单元格
|
|
|
|
+ 'deletetable', //删除表格
|
|
|
|
+ 'cleardoc', //清空文档
|
|
|
|
+ 'insertparagraphbeforetable', //"表格前插入行"
|
|
|
|
+ //'insertcode', //代码语言
|
|
|
|
+ 'fontfamily', //字体
|
|
|
|
+ 'fontsize', //字号
|
|
|
|
+ 'paragraph', //段落格式
|
|
|
|
+ 'simpleupload', //单图上传
|
|
|
|
+ 'insertimage', //多图上传
|
|
|
|
+ 'edittable', //表格属性
|
|
|
|
+ 'edittd', //单元格属性
|
|
|
|
+ 'link', //超链接
|
|
|
|
+ 'emotion', //表情
|
|
|
|
+ 'spechars', //特殊字符
|
|
|
|
+ 'searchreplace', //查询替换
|
|
|
|
+ 'map', //Baidu地图
|
|
|
|
+ 'gmap', //Google地图
|
|
|
|
+ 'insertvideo', //视频
|
|
|
|
+ 'help', //帮助
|
|
|
|
+ 'justifyleft', //居左对齐
|
|
|
|
+ 'justifyright', //居右对齐
|
|
|
|
+ 'justifycenter', //居中对齐
|
|
|
|
+ 'justifyjustify', //两端对齐
|
|
|
|
+ 'forecolor', //字体颜色
|
|
|
|
+ 'backcolor', //背景色
|
|
|
|
+ 'insertorderedlist', //有序列表
|
|
|
|
+ 'insertunorderedlist', //无序列表
|
|
|
|
+ 'fullscreen', //全屏
|
|
|
|
+ 'directionalityltr', //从左向右输入
|
|
|
|
+ 'directionalityrtl', //从右向左输入
|
|
|
|
+ 'rowspacingtop', //段前距
|
|
|
|
+ 'rowspacingbottom', //段后距
|
|
|
|
+ 'pagebreak', //分页
|
|
|
|
+ 'insertframe', //插入Iframe
|
|
|
|
+ 'imagenone', //默认
|
|
|
|
+ 'imageleft', //左浮动
|
|
|
|
+ 'imageright', //右浮动
|
|
|
|
+ 'attachment', //附件
|
|
|
|
+ 'imagecenter', //居中
|
|
|
|
+ 'wordimage', //图片转存
|
|
|
|
+ 'lineheight', //行间距
|
|
|
|
+ 'edittip ', //编辑提示
|
|
|
|
+ 'customstyle', //自定义标题
|
|
|
|
+ 'autotypeset', //自动排版
|
|
|
|
+ // 'webapp', //百度应用
|
|
|
|
+ 'touppercase', //字母大写
|
|
|
|
+ 'tolowercase', //字母小写
|
|
|
|
+ 'background', //背景
|
|
|
|
+ 'template', //模板
|
|
|
|
+ // 'scrawl', //涂鸦
|
|
|
|
+ 'music', //音乐
|
|
|
|
+ 'inserttable', //插入表格
|
|
|
|
+ 'drafts', // 从草稿箱加载
|
|
|
|
+ 'charts' // 图表
|
|
|
|
+ ];
|
|
|
|
+
|
|
/*问题描述*/
|
|
/*问题描述*/
|
|
- var describeContentText = UE.getEditor('describeContentText');
|
|
|
|
|
|
+ var describeContentText = UE.getEditor('describeContentText', {
|
|
|
|
+ toolbars: [tool],
|
|
|
|
+ autoHeightEnabled: true,
|
|
|
|
+ autoFloatEnabled: true,
|
|
|
|
+ zIndex : 5
|
|
|
|
+ });
|
|
/*处理描述*/
|
|
/*处理描述*/
|
|
- var describeHandleDescText = UE.getEditor('describeHandleDescText');
|
|
|
|
|
|
+ var describeHandleDescText = UE.getEditor('describeHandleDescText', {
|
|
|
|
+ toolbars: [tool],
|
|
|
|
+ autoHeightEnabled: true,
|
|
|
|
+ autoFloatEnabled: true
|
|
|
|
+ });
|
|
/*邮寄地址*/
|
|
/*邮寄地址*/
|
|
- var sendAddressSms = UE.getEditor('sendAddressSms');
|
|
|
|
|
|
+ var sendAddressSms = UE.getEditor('sendAddressSms', {
|
|
|
|
+ toolbars: [tool],
|
|
|
|
+ autoHeightEnabled: true,
|
|
|
|
+ autoFloatEnabled: true
|
|
|
|
+ });
|
|
|
|
|
|
sendAddressSms.ready(function() {
|
|
sendAddressSms.ready(function() {
|
|
sendAddressSms.setHeight(130); //固定高度
|
|
sendAddressSms.setHeight(130); //固定高度
|
|
@@ -618,12 +697,13 @@
|
|
/* 寄回地址的id */
|
|
/* 寄回地址的id */
|
|
var complaint_questionId = 5;
|
|
var complaint_questionId = 5;
|
|
|
|
|
|
|
|
+ /* 用于判断是否第一次初始化省市区-- 只在选择类型为售后时使用 */
|
|
|
|
+ var isInitAddress = 0;
|
|
|
|
+
|
|
/*初始化页面参数*/
|
|
/*初始化页面参数*/
|
|
$(function () {
|
|
$(function () {
|
|
-
|
|
|
|
-
|
|
|
|
/* 初始化单选框样式 */
|
|
/* 初始化单选框样式 */
|
|
- initCheck();
|
|
|
|
|
|
+ //initCheck();
|
|
|
|
|
|
/*初始化产品类型 -- 客诉头部的产品类型单选 */
|
|
/*初始化产品类型 -- 客诉头部的产品类型单选 */
|
|
initProduceType();
|
|
initProduceType();
|
|
@@ -735,6 +815,30 @@
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /*初始化单选框样式*/
|
|
|
|
+ function initCheckByNode(node){
|
|
|
|
+ node.iCheck({
|
|
|
|
+ checkboxClass: 'icheckbox-blue',
|
|
|
|
+ radioClass: 'iradio-blue',
|
|
|
|
+ increaseArea: '20%'
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /*
|
|
|
|
+ * type 1:不需要回访 2:需要回访
|
|
|
|
+ * */
|
|
|
|
+ function visitByType(type){
|
|
|
|
+ if(1 == type){ //不需要回访
|
|
|
|
+ $("#customer-visit-2").prop("checked",true); //不需要回访
|
|
|
|
+ initCheckByNode($("#customer-visit-2"));
|
|
|
|
+ $("#needToVisit").css("display","none");
|
|
|
|
+ }else{
|
|
|
|
+ $("#customer-visit-1").prop("checked",true); //需要回访
|
|
|
|
+ initCheckByNode($("#customer-visit-1"));
|
|
|
|
+ $("#needToVisit").css("display","block");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
function keyFun(node){
|
|
function keyFun(node){
|
|
var c=$(node);
|
|
var c=$(node);
|
|
if(/[^\d]/.test(c.val())){//替换非数字字符
|
|
if(/[^\d]/.test(c.val())){//替换非数字字符
|
|
@@ -745,13 +849,14 @@
|
|
|
|
|
|
|
|
|
|
/*初始化客服*/
|
|
/*初始化客服*/
|
|
|
|
+ var sysAminList;
|
|
function initSysAdmin() {
|
|
function initSysAdmin() {
|
|
- var sysAminList = getSysAdmin();
|
|
|
|
|
|
+ sysAminList = getSysAdmin();
|
|
var html = "";
|
|
var html = "";
|
|
for(var i=0;i<sysAminList.length;i++){
|
|
for(var i=0;i<sysAminList.length;i++){
|
|
var adminList = sysAminList[i];
|
|
var adminList = sysAminList[i];
|
|
if(adminId != null && adminId != "" && adminId != 0 && adminId == adminList.adminId ){
|
|
if(adminId != null && adminId != "" && adminId != 0 && adminId == adminList.adminId ){
|
|
- html += '<option value="'+ adminList.adminId +'" selected>'+ adminList.adminName +'</option>';
|
|
|
|
|
|
+ html += '<option value="'+ adminList.adminId +'" selected>'+ adminList.adminName +'(我)</option>';
|
|
}else{
|
|
}else{
|
|
html += '<option value="'+ adminList.adminId +'">'+ adminList.adminName +'</option>';
|
|
html += '<option value="'+ adminList.adminId +'">'+ adminList.adminName +'</option>';
|
|
}
|
|
}
|
|
@@ -761,13 +866,12 @@
|
|
|
|
|
|
/*初始化回访客服的选择*/
|
|
/*初始化回访客服的选择*/
|
|
function initVisitSysAdmin(){
|
|
function initVisitSysAdmin(){
|
|
- var sysAminList = getSysAdmin();
|
|
|
|
var html = "";
|
|
var html = "";
|
|
var flag = false;
|
|
var flag = false;
|
|
for(var i=0;i<sysAminList.length;i++){
|
|
for(var i=0;i<sysAminList.length;i++){
|
|
var adminList = sysAminList[i];
|
|
var adminList = sysAminList[i];
|
|
if(adminId != null && adminId != "" && adminId != 0 && adminId == adminList.adminId ){
|
|
if(adminId != null && adminId != "" && adminId != 0 && adminId == adminList.adminId ){
|
|
- html += '<option value="'+ adminList.adminId +'" selected>'+ adminList.adminName +'</option>';
|
|
|
|
|
|
+ html += '<option value="'+ adminList.adminId +'" selected>'+ adminList.adminName +'(我)</option>';
|
|
flag = true;
|
|
flag = true;
|
|
}else{
|
|
}else{
|
|
html += '<option value="'+ adminList.adminId +'">'+ adminList.adminName +'</option>';
|
|
html += '<option value="'+ adminList.adminId +'">'+ adminList.adminName +'</option>';
|
|
@@ -868,13 +972,16 @@
|
|
$("#reissue").hide();
|
|
$("#reissue").hide();
|
|
$("#backGoods").hide();
|
|
$("#backGoods").hide();
|
|
$("#noReasonBack").hide();
|
|
$("#noReasonBack").hide();
|
|
|
|
+
|
|
switch(type)
|
|
switch(type)
|
|
{
|
|
{
|
|
case 1:
|
|
case 1:
|
|
otherHied();
|
|
otherHied();
|
|
|
|
+ visitByType(1);
|
|
break;
|
|
break;
|
|
case 2:
|
|
case 2:
|
|
otherHied();
|
|
otherHied();
|
|
|
|
+ visitByType(2);
|
|
break;
|
|
break;
|
|
default:
|
|
default:
|
|
break;
|
|
break;
|
|
@@ -885,6 +992,15 @@
|
|
if(msg == null || msg == ""){
|
|
if(msg == null || msg == ""){
|
|
initComplaintQuestionInfo("m");
|
|
initComplaintQuestionInfo("m");
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /* 在选择售后类型是,直接初始化省市区,使用isInitAddress 变量来判断 */
|
|
|
|
+ if(isInitAddress == 0){
|
|
|
|
+ var proId = setPro(null,2);
|
|
|
|
+ var cityId = setCity(null,proId,2);
|
|
|
|
+ setDistrict(null,cityId,2);
|
|
|
|
+ isInitAddress = 1;
|
|
|
|
+ }
|
|
|
|
+
|
|
$("#renewed").show();
|
|
$("#renewed").show();
|
|
$("#maintain").show();
|
|
$("#maintain").show();
|
|
$("#reissue").show();
|
|
$("#reissue").show();
|
|
@@ -894,9 +1010,11 @@
|
|
{
|
|
{
|
|
case 1:
|
|
case 1:
|
|
otherHied();
|
|
otherHied();
|
|
|
|
+ visitByType(1);
|
|
break;
|
|
break;
|
|
case 2:
|
|
case 2:
|
|
otherHied();
|
|
otherHied();
|
|
|
|
+ visitByType(2); //需要回访
|
|
break;
|
|
break;
|
|
case 3: //换新
|
|
case 3: //换新
|
|
result = isSolve.renewed;
|
|
result = isSolve.renewed;
|
|
@@ -913,6 +1031,8 @@
|
|
$("#sendAddressInfo").show();
|
|
$("#sendAddressInfo").show();
|
|
$("#sendAddressByPhone").show();
|
|
$("#sendAddressByPhone").show();
|
|
$("#updateProduct").show();
|
|
$("#updateProduct").show();
|
|
|
|
+ $("#postageAccount").show(); //邮费转账账户
|
|
|
|
+ visitByType(2); //需要回访
|
|
break;
|
|
break;
|
|
case 4: //维修
|
|
case 4: //维修
|
|
result = isSolve.maintain;
|
|
result = isSolve.maintain;
|
|
@@ -929,6 +1049,8 @@
|
|
$("#sendAddressInfo").show();
|
|
$("#sendAddressInfo").show();
|
|
$("#sendAddressByPhone").show();
|
|
$("#sendAddressByPhone").show();
|
|
$("#updateProduct").show();
|
|
$("#updateProduct").show();
|
|
|
|
+ $("#postageAccount").show(); //邮费转账账户
|
|
|
|
+ visitByType(2); //需要回访
|
|
break;
|
|
break;
|
|
case 5://补发
|
|
case 5://补发
|
|
result = isSolve.reissue;
|
|
result = isSolve.reissue;
|
|
@@ -945,6 +1067,8 @@
|
|
$("#sendAddressInfo").hide();
|
|
$("#sendAddressInfo").hide();
|
|
$("#sendAddressByPhone").hide();
|
|
$("#sendAddressByPhone").hide();
|
|
$("#updateProduct").hide();
|
|
$("#updateProduct").hide();
|
|
|
|
+ $("#postageAccount").hide(); //邮费转账账户 -- 隐藏
|
|
|
|
+ visitByType(2); //需要回访
|
|
break;
|
|
break;
|
|
case 6: //退货
|
|
case 6: //退货
|
|
result = isSolve.backGoods;
|
|
result = isSolve.backGoods;
|
|
@@ -961,6 +1085,8 @@
|
|
$("#sendAddressInfo").show();
|
|
$("#sendAddressInfo").show();
|
|
$("#sendAddressByPhone").show();
|
|
$("#sendAddressByPhone").show();
|
|
$("#updateProduct").hide();
|
|
$("#updateProduct").hide();
|
|
|
|
+ $("#postageAccount").show(); //邮费转账账户
|
|
|
|
+ visitByType(2); //需要回访
|
|
break;
|
|
break;
|
|
case 7://无理由退货
|
|
case 7://无理由退货
|
|
result = isSolve.noReasonBack;
|
|
result = isSolve.noReasonBack;
|
|
@@ -977,6 +1103,8 @@
|
|
$("#sendAddressInfo").show();
|
|
$("#sendAddressInfo").show();
|
|
$("#sendAddressByPhone").show();
|
|
$("#sendAddressByPhone").show();
|
|
$("#updateProduct").hide();
|
|
$("#updateProduct").hide();
|
|
|
|
+ $("#postageAccount").show(); //邮费转账账户
|
|
|
|
+ visitByType(2); //需要回访
|
|
break;
|
|
break;
|
|
default:
|
|
default:
|
|
break;
|
|
break;
|
|
@@ -1152,10 +1280,16 @@
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if(desc == null || desc == "" || questionId==null || questionId == ""){
|
|
|
|
+ layer.close(index);
|
|
|
|
+ layer.msg("信息不全,无法发送短信", {icon: 5, time: 3000});
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+
|
|
var reg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/;
|
|
var reg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/;
|
|
if(!reg.test(phone)){
|
|
if(!reg.test(phone)){
|
|
- layer.msg("手机号码格式不正确", {icon: 5, time: 3000});
|
|
|
|
layer.close(index);
|
|
layer.close(index);
|
|
|
|
+ layer.msg("手机号码格式不正确", {icon: 5, time: 3000});
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1248,8 +1382,11 @@
|
|
//address = '<td colspan="1">收货地址</td><td colspan="6" class="td-manage text-c" >'+ salesOrder.salesAddressInfo +' <a style="color: #0a6999;text-decoration: underline;" href="javascript:void(0);" title="编辑" onclick="updateAdress()">修改地址</a></td>' ;
|
|
//address = '<td colspan="1">收货地址</td><td colspan="6" class="td-manage text-c" >'+ salesOrder.salesAddressInfo +' <a style="color: #0a6999;text-decoration: underline;" href="javascript:void(0);" title="编辑" onclick="updateAdress()">修改地址</a></td>' ;
|
|
address = salesOrder.salesAddressInfo;
|
|
address = salesOrder.salesAddressInfo;
|
|
|
|
|
|
- $("#sendName").val(salesOrder.salesAddressName); //订单名称
|
|
|
|
- $("#sendTel").val(salesOrder.salesAddressTel); //订单电话号码
|
|
|
|
|
|
+ $("#sendName").val(salesOrder.salesAddressName); //收件人名称
|
|
|
|
+ $("#sendTel").val(salesOrder.salesAddressTel); //收件人电话号码
|
|
|
|
+
|
|
|
|
+ $("#customerName").val(salesOrder.salesAddressName); //收件人名称
|
|
|
|
+ $("#customerTel").val(salesOrder.salesAddressTel); //收件人电话号码
|
|
}
|
|
}
|
|
// $("#showOrderAddress").html(address);
|
|
// $("#showOrderAddress").html(address);
|
|
}else{
|
|
}else{
|
|
@@ -1332,23 +1469,24 @@
|
|
function setPro(provinceName,type) {
|
|
function setPro(provinceName,type) {
|
|
var proId = '';
|
|
var proId = '';
|
|
var province = listProvince();
|
|
var province = listProvince();
|
|
- var selectPro = {};
|
|
|
|
|
|
+ var selectPro = new Array();
|
|
if(type == 1){
|
|
if(type == 1){
|
|
selectPro = listProvince("",provinceName);
|
|
selectPro = listProvince("",provinceName);
|
|
- }else if(type == 2){
|
|
|
|
- selectPro = null;
|
|
|
|
}
|
|
}
|
|
if(province!=null){
|
|
if(province!=null){
|
|
var provinceHtml = ''
|
|
var provinceHtml = ''
|
|
for(var i=0;i<province.length;i++){
|
|
for(var i=0;i<province.length;i++){
|
|
- if(selectPro!= null && province[i].provinceId == selectPro[0].provinceId){
|
|
|
|
- proId = selectPro[0].provinceId;
|
|
|
|
- provinceHtml += '<option value="'+ province[i].provinceId +'" selected>'+ province[i].province +'</option>';
|
|
|
|
- }else{
|
|
|
|
- provinceHtml += '<option value="'+ province[i].provinceId +'">'+ province[i].province +'</option>';
|
|
|
|
- }
|
|
|
|
|
|
+ provinceHtml += '<option value="'+ province[i].provinceId +'">'+ province[i].province +'</option>';
|
|
}
|
|
}
|
|
|
|
+
|
|
$("#province").html(provinceHtml);
|
|
$("#province").html(provinceHtml);
|
|
|
|
+
|
|
|
|
+ if(selectPro != null && selectPro.length > 0 ){
|
|
|
|
+ proId = selectPro[0].provinceId;
|
|
|
|
+ }else{
|
|
|
|
+ proId = province[0].provinceId;
|
|
|
|
+ }
|
|
|
|
+ $("#province option[value='" + proId + "']").attr("selected","true");
|
|
}
|
|
}
|
|
return proId;
|
|
return proId;
|
|
}
|
|
}
|
|
@@ -1360,25 +1498,23 @@
|
|
function setCity(cityName,proId,type) {
|
|
function setCity(cityName,proId,type) {
|
|
var cityId = '';
|
|
var cityId = '';
|
|
var city = listCity(proId,"");
|
|
var city = listCity(proId,"");
|
|
- var selectCity = {};
|
|
|
|
|
|
+ var selectCity = new Array();
|
|
if(type == 1){
|
|
if(type == 1){
|
|
selectCity = listCity(proId,cityName);
|
|
selectCity = listCity(proId,cityName);
|
|
- }else if(type == 2){
|
|
|
|
- selectCity = null;
|
|
|
|
- cityId = city[0].cityId;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
if(city!=null){
|
|
if(city!=null){
|
|
var cityHtml = ''
|
|
var cityHtml = ''
|
|
for(var i=0;i<city.length;i++){
|
|
for(var i=0;i<city.length;i++){
|
|
- if(selectCity != null && city[i].cityId == selectCity[0].cityId){
|
|
|
|
- cityId = city[i].cityId;
|
|
|
|
- cityHtml += '<option value="'+ city[i].cityId +'" selected>'+ city[i].city +'</option>';
|
|
|
|
- }else{
|
|
|
|
- cityHtml += '<option value="'+ city[i].cityId +'">'+ city[i].city +'</option>';
|
|
|
|
- }
|
|
|
|
|
|
+ cityHtml += '<option value="'+ city[i].cityId +'">'+ city[i].city +'</option>';
|
|
}
|
|
}
|
|
$("#city").html(cityHtml);
|
|
$("#city").html(cityHtml);
|
|
|
|
+ if(selectCity != null && selectCity.length > 0 ){
|
|
|
|
+ cityId = selectCity[0].cityId;
|
|
|
|
+ }else{
|
|
|
|
+ cityId = city[0].cityId;
|
|
|
|
+ }
|
|
|
|
+ $("#city option[value='" + cityId + "']").attr("selected","true");
|
|
}
|
|
}
|
|
return cityId;
|
|
return cityId;
|
|
}
|
|
}
|
|
@@ -1389,22 +1525,23 @@
|
|
*/
|
|
*/
|
|
function setDistrict(districtName,cityId,type) {
|
|
function setDistrict(districtName,cityId,type) {
|
|
var district = listDistrict(cityId,"");
|
|
var district = listDistrict(cityId,"");
|
|
- var selectDistrict = {};
|
|
|
|
|
|
+ var selectDistrict = new Array();
|
|
if(type == 1){
|
|
if(type == 1){
|
|
selectDistrict = listDistrict(cityId,districtName);
|
|
selectDistrict = listDistrict(cityId,districtName);
|
|
- }else if(type == 2){
|
|
|
|
- selectDistrict = null;
|
|
|
|
}
|
|
}
|
|
if(district!=null){
|
|
if(district!=null){
|
|
var districtHtml = ''
|
|
var districtHtml = ''
|
|
for(var i=0;i<district.length;i++){
|
|
for(var i=0;i<district.length;i++){
|
|
- if(selectDistrict != null && district[i].districtId == selectDistrict[0].districtId){
|
|
|
|
- districtHtml += '<option value="'+ district[i].districtId +'" selected>'+ district[i].district +'</option>';
|
|
|
|
- }else{
|
|
|
|
- districtHtml += '<option value="'+ district[i].districtId +'">'+ district[i].district +'</option>';
|
|
|
|
- }
|
|
|
|
|
|
+ districtHtml += '<option value="'+ district[i].districtId +'">'+ district[i].district +'</option>';
|
|
}
|
|
}
|
|
|
|
+ var disId = "";
|
|
$("#district").html(districtHtml);
|
|
$("#district").html(districtHtml);
|
|
|
|
+ if(selectDistrict != null && selectDistrict.length > 0 ){
|
|
|
|
+ disId = selectDistrict[0].cityId;
|
|
|
|
+ }else{
|
|
|
|
+ disId = district[0].cityId;
|
|
|
|
+ }
|
|
|
|
+ $("#city option[value='" + disId + "']").attr("selected","true");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1430,6 +1567,7 @@
|
|
}
|
|
}
|
|
$("#TDSArea").html(html);
|
|
$("#TDSArea").html(html);
|
|
$("#TDSArea").find("option").eq(0).prop("selected",true);
|
|
$("#TDSArea").find("option").eq(0).prop("selected",true);
|
|
|
|
+ setTDSCollect();
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -1464,10 +1602,10 @@
|
|
if(color.colorProductId == product.productId) {
|
|
if(color.colorProductId == product.productId) {
|
|
colorHtml += '<tr >' +
|
|
colorHtml += '<tr >' +
|
|
' <td width="85" style="border-left: none;text-align: center;'+ fristInputStyle +'">' + color.colorName + '</td>' +
|
|
' <td width="85" style="border-left: none;text-align: center;'+ fristInputStyle +'">' + color.colorName + '</td>' +
|
|
- ' <td width="15" style="'+ fristInputStyle +'">' +
|
|
|
|
|
|
+ ' <td width="15" style="'+ fristInputStyle +' padding: 0px;width: 25px;">' +
|
|
' <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 number-input" style="width: 100%;" value="'+ number +'" placeholder="产品数量" id="" name="" onkeyup="keyFun($(this))" onpaste="keyFun($(this))" >' +
|
|
|
|
|
|
+ ' <input type="text" class="input-text input-color-number number-input" style="width: 100%;border: none;text-align: center;" value="'+ number +'" placeholder="产品数量" id="" name="" onkeyup="keyFun($(this))" onpaste="keyFun($(this))" >' +
|
|
' </td>' +
|
|
' </td>' +
|
|
' </tr>';
|
|
' </tr>';
|
|
fristInputStyle = "";
|
|
fristInputStyle = "";
|
|
@@ -1488,10 +1626,10 @@
|
|
var fristInputStyle = "border-top: 1px solid #ddd;";
|
|
var fristInputStyle = "border-top: 1px solid #ddd;";
|
|
produceFittingsHtml += '<tr >' +
|
|
produceFittingsHtml += '<tr >' +
|
|
' <td width="85" style="border-left: none;text-align: center; '+ fristInputStyle +'">' + produceFit.fittingsName +'</td>' +
|
|
' <td width="85" style="border-left: none;text-align: center; '+ fristInputStyle +'">' + produceFit.fittingsName +'</td>' +
|
|
- ' <td width="15" style="'+ fristInputStyle +'">' +
|
|
|
|
|
|
+ ' <td width="15" style="'+ fristInputStyle +'padding: 0px;width: 25px;">' +
|
|
' <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="" onkeyup="keyFun($(this))" onpaste="keyFun($(this))" >' +
|
|
|
|
|
|
+ ' <input type="text" class="input-text input-fittings-number" style="width: 100%;border: none;text-align: center;" value="'+ number +'" placeholder="配件数量" id="" name="" onkeyup="keyFun($(this))" onpaste="keyFun($(this))" >' +
|
|
' </td>' +
|
|
' </td>' +
|
|
' </tr>';
|
|
' </tr>';
|
|
fristInputStyle = "";
|
|
fristInputStyle = "";
|
|
@@ -1591,11 +1729,16 @@
|
|
function setTDSCollect(){
|
|
function setTDSCollect(){
|
|
var TDSArea = $("#TDSArea").find("option:selected").text();
|
|
var TDSArea = $("#TDSArea").find("option:selected").text();
|
|
var TDSAddress = TDSCity + '-' + TDSArea;
|
|
var TDSAddress = TDSCity + '-' + TDSArea;
|
|
- $("#DTS-address").html(TDSAddress);
|
|
|
|
|
|
|
|
- $("#DTS-in").html($("#customerInTDS").val());
|
|
|
|
-
|
|
|
|
- $("#DTS-out").html($("#customerOutTDS").val());
|
|
|
|
|
|
+ if(TDSAddress != null && TDSAddress != ""){
|
|
|
|
+ $("#DTS-address").html("地址:" + TDSAddress);
|
|
|
|
+ var customerInTDS = $("#customerInTDS").val();
|
|
|
|
+ var customerOutTDS = $("#customerOutTDS").val()
|
|
|
|
+ if(customerInTDS != null && customerInTDS != "" && customerOutTDS != null && customerOutTDS != ""){
|
|
|
|
+ $("#DTS-in").html("进水:" + customerInTDS + " PPM");
|
|
|
|
+ $("#DTS-out").html("出水:" + customerOutTDS + " PPM");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
<script>
|
|
<script>
|
|
@@ -1640,6 +1783,19 @@
|
|
/* 添加客诉的准备 */
|
|
/* 添加客诉的准备 */
|
|
function addCustomerReady(){
|
|
function addCustomerReady(){
|
|
|
|
|
|
|
|
+ var customerSourceType = $("input:radio[name='customerSourceType']:checked").val();
|
|
|
|
+ if(customerSourceType == 3){
|
|
|
|
+ var customerSourceOld = $("#customerSourceOld").val();
|
|
|
|
+ if(customerSourceOld == null || customerSourceOld == "" || typeof(customerSourceOld)=="undefined"){
|
|
|
|
+
|
|
|
|
+ vailErrorMsg($("#customerSourceOld"),"未填写来源入口");
|
|
|
|
+
|
|
|
|
+ return false;
|
|
|
|
+ }else{
|
|
|
|
+ $("#customerSource").val(customerSourceOld);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
/*----TDS收集模块--start-----*/
|
|
/*----TDS收集模块--start-----*/
|
|
var valicity = $(".ac_result_tip").html();
|
|
var valicity = $(".ac_result_tip").html();
|
|
if(valicity == null || valicity == "" || typeof(valicity)=="undefined"){
|
|
if(valicity == null || valicity == "" || typeof(valicity)=="undefined"){
|
|
@@ -1675,10 +1831,6 @@
|
|
|
|
|
|
/*----处理描述- 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-----*/
|
|
|
|
|