|
@@ -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,7 @@
|
|
<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="customerSourceOld" name="customerSourceOld" placeholder="">
|
|
|
|
|
|
+ <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">
|
|
<input type="hidden" value="" placeholder="" id="customerSource" name="customerSource">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -182,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:621px;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>
|
|
@@ -415,7 +414,7 @@
|
|
<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>
|
|
@@ -453,7 +452,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: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>
|
|
@@ -578,20 +577,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); //固定高度
|
|
@@ -1159,10 +1260,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;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1255,8 +1362,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{
|
|
@@ -1339,7 +1449,7 @@
|
|
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){
|
|
}else if(type == 2){
|
|
@@ -1348,6 +1458,9 @@
|
|
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 || selectPro.length < 1 || selectPro == undefined || typeof (selectPro.length) == "undefined"){
|
|
|
|
+ selectPro.push(province[0]);
|
|
|
|
+ }
|
|
if(selectPro!= null && province[i].provinceId == selectPro[0].provinceId){
|
|
if(selectPro!= null && province[i].provinceId == selectPro[0].provinceId){
|
|
proId = selectPro[0].provinceId;
|
|
proId = selectPro[0].provinceId;
|
|
provinceHtml += '<option value="'+ province[i].provinceId +'" selected>'+ province[i].province +'</option>';
|
|
provinceHtml += '<option value="'+ province[i].provinceId +'" selected>'+ province[i].province +'</option>';
|
|
@@ -1367,7 +1480,7 @@
|
|
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){
|
|
}else if(type == 2){
|
|
@@ -1377,6 +1490,9 @@
|
|
|
|
|
|
if(city!=null){
|
|
if(city!=null){
|
|
var cityHtml = ''
|
|
var cityHtml = ''
|
|
|
|
+ if(selectCity == null || selectCity.length < 1 || selectCity == undefined || typeof (selectCity.length) == "undefined"){
|
|
|
|
+ selectCity.push(city[0]);
|
|
|
|
+ }
|
|
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){
|
|
if(selectCity != null && city[i].cityId == selectCity[0].cityId){
|
|
cityId = city[i].cityId;
|
|
cityId = city[i].cityId;
|
|
@@ -1396,7 +1512,7 @@
|
|
*/
|
|
*/
|
|
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){
|
|
}else if(type == 2){
|
|
@@ -1404,6 +1520,9 @@
|
|
}
|
|
}
|
|
if(district!=null){
|
|
if(district!=null){
|
|
var districtHtml = ''
|
|
var districtHtml = ''
|
|
|
|
+ if(selectDistrict == null || selectDistrict.length < 1 || selectDistrict == undefined || typeof (selectDistrict.length) == "undefined"){
|
|
|
|
+ selectDistrict.push(district[0]);
|
|
|
|
+ }
|
|
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){
|
|
if(selectDistrict != null && district[i].districtId == selectDistrict[0].districtId){
|
|
districtHtml += '<option value="'+ district[i].districtId +'" selected>'+ district[i].district +'</option>';
|
|
districtHtml += '<option value="'+ district[i].districtId +'" selected>'+ district[i].district +'</option>';
|