|
@@ -103,8 +103,8 @@ var tool = [
|
|
|
'emotion', //表情
|
|
|
'spechars', //特殊字符
|
|
|
'searchreplace', //查询替换
|
|
|
- 'map', //Baidu地图
|
|
|
- 'gmap', //Google地图
|
|
|
+ // 'map', //Baidu地图
|
|
|
+ // 'gmap', //Google地图
|
|
|
'insertvideo', //视频
|
|
|
'help', //帮助
|
|
|
'justifyleft', //居左对齐
|
|
@@ -175,7 +175,6 @@ var isInitSendAddressSms = false;
|
|
|
// });
|
|
|
/*===============================加载三个文本域 -- end -- =============================== */
|
|
|
|
|
|
-
|
|
|
/*===============================定义全局变量以及监听事件和初始化 -- start -- =============================== */
|
|
|
/*处理结果的执行状态*/
|
|
|
var isSolve = {
|
|
@@ -200,17 +199,30 @@ var isSolveTitleMsg = {
|
|
|
}
|
|
|
/*===============================定义全局变量以及监听事件和初始化 -- end -- =============================== */
|
|
|
|
|
|
-
|
|
|
/*===============================正则表达式 -- start -- =============================== */
|
|
|
var phoneReg = /^[1][3,4,5,7,8][0-9]{9}$/;
|
|
|
/*===============================正则表达式 -- end -- =============================== */
|
|
|
|
|
|
/*=============================== 页面加载完成启动事件 -- start -- =============================== */
|
|
|
$(function (){
|
|
|
+ /* 所有trim_input 样式,input框都需要去除前后空格*/
|
|
|
$(".trim_input").change(function(){
|
|
|
var value = $.trim($(this).val());
|
|
|
$(this).val(value);
|
|
|
})
|
|
|
+
|
|
|
+ /*监听销售公司选择事件*/
|
|
|
+ $("#selectCompany").change(function (){
|
|
|
+ var companyId = $(this).val();
|
|
|
+ $("#companyId").val(companyId);
|
|
|
+ setStore(companyId,$("#selectStore")); //获取店铺
|
|
|
+ })
|
|
|
+
|
|
|
+ /*监听店铺选择事件*/
|
|
|
+ $("#selectStore").change(function (){
|
|
|
+ var storeId = $(this).val();
|
|
|
+ $("#storeId").val(storeId);
|
|
|
+ })
|
|
|
})
|
|
|
/*===============================页面加载完成启动事件 -- end -- =============================== */
|
|
|
|
|
@@ -400,10 +412,12 @@ function initProcessResult(type){
|
|
|
case 1:
|
|
|
otherHied();
|
|
|
visitByType(1);
|
|
|
+ getCompany();
|
|
|
break;
|
|
|
case 2:
|
|
|
otherHied();
|
|
|
visitByType(2);
|
|
|
+ getCompany();
|
|
|
break;
|
|
|
default:
|
|
|
break;
|
|
@@ -436,10 +450,12 @@ function initProcessResult(type){
|
|
|
case 1:
|
|
|
otherHied();
|
|
|
visitByType(1);
|
|
|
+ getCompany();
|
|
|
break;
|
|
|
case 2:
|
|
|
otherHied();
|
|
|
visitByType(2); //需要回访
|
|
|
+ getCompany();
|
|
|
break;
|
|
|
case 3: //换新
|
|
|
result = isSolve.renewed;
|
|
@@ -460,6 +476,8 @@ function initProcessResult(type){
|
|
|
$("#updateProduct").hide(); //换新产品
|
|
|
$("#postageAccount").show(); //邮费转账账户
|
|
|
visitByType(2); //需要回访
|
|
|
+
|
|
|
+ $("#salesChannelsSelect").hide(); //屏蔽销售公司
|
|
|
break;
|
|
|
case 4: //维修
|
|
|
result = isSolve.maintain;
|
|
@@ -480,6 +498,7 @@ function initProcessResult(type){
|
|
|
$("#updateProduct").hide();//维修产品
|
|
|
$("#postageAccount").show(); //邮费转账账户
|
|
|
visitByType(2); //需要回访
|
|
|
+ $("#salesChannelsSelect").hide(); //屏蔽销售公司
|
|
|
break;
|
|
|
case 5://补发
|
|
|
result = isSolve.reissue;
|
|
@@ -500,6 +519,7 @@ function initProcessResult(type){
|
|
|
$("#updateProduct").hide();
|
|
|
$("#postageAccount").hide(); //邮费转账账户 -- 隐藏
|
|
|
visitByType(2); //需要回访
|
|
|
+ $("#salesChannelsSelect").hide(); //屏蔽销售公司
|
|
|
break;
|
|
|
case 6: //退货
|
|
|
result = isSolve.backGoods;
|
|
@@ -520,6 +540,7 @@ function initProcessResult(type){
|
|
|
$("#updateProduct").hide();
|
|
|
$("#postageAccount").show(); //邮费转账账户
|
|
|
visitByType(2); //需要回访
|
|
|
+ $("#salesChannelsSelect").hide(); //屏蔽销售公司
|
|
|
break;
|
|
|
case 7://无理由退货
|
|
|
result = isSolve.noReasonBack;
|
|
@@ -540,6 +561,7 @@ function initProcessResult(type){
|
|
|
$("#updateProduct").hide();
|
|
|
$("#postageAccount").show(); //邮费转账账户
|
|
|
visitByType(2); //需要回访
|
|
|
+ $("#salesChannelsSelect").hide(); //屏蔽销售公司
|
|
|
break;
|
|
|
default:
|
|
|
break;
|
|
@@ -566,6 +588,7 @@ function initProcessResult(type){
|
|
|
|
|
|
/*已解决|未解决 */
|
|
|
function otherHied(){
|
|
|
+ $("#salesChannelsSelect").show(); //展示销售公司
|
|
|
$("#processResultStatus").hide(); //处理结果的执行状态 已解决未解决没有该信息
|
|
|
$("#orderHead").hide();
|
|
|
$("#order").hide();
|
|
@@ -1370,7 +1393,73 @@ function TDSLinkage(node,maxNumber,minNumber){
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+/**
|
|
|
+ * 获取销售公司
|
|
|
+ */
|
|
|
+function getCompany(companyId){
|
|
|
+ var currentlyCompanyId = $("#companyId").val();
|
|
|
+ if(currentlyCompanyId != null && currentlyCompanyId != ""){
|
|
|
+ companyId = currentlyCompanyId;
|
|
|
+ }
|
|
|
+ $.ajax({
|
|
|
+ type: "get",
|
|
|
+ data: {
|
|
|
+ },
|
|
|
+ url: url_path + "/admin/customer/select_company",
|
|
|
+ success: function(data){
|
|
|
+ if (data.returnCode == 200) {
|
|
|
+ var html = '<option value="">销售公司</option>';
|
|
|
+ for(var i=0;i<data.returnMsg.companyInfoList.length;i++){
|
|
|
+ var company = data.returnMsg.companyInfoList[i];
|
|
|
+ html += '<option value="'+ company.companyId +'">'+ company.companyName +'</option>';
|
|
|
+ }
|
|
|
+ $("#selectCompany").html(html);
|
|
|
+
|
|
|
+ if(typeof(companyId) != "undefined"){
|
|
|
+ $("#selectCompany option[value='" + companyId + "']").attr("selected","true");
|
|
|
+ if(isUpdate){ //修改页面需要自动获取店铺
|
|
|
+ setStore(companyId,$("#selectStore")); //获取店铺
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
+ }
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * 展示销售公司
|
|
|
+ */
|
|
|
+function setStore(companyId,node){
|
|
|
|
|
|
+ var html = '<option value="">店铺</option>';
|
|
|
+ $.ajax({
|
|
|
+ type: "POST",
|
|
|
+ data: {
|
|
|
+ companyId : companyId
|
|
|
+ },
|
|
|
+ url: url_path + "/admin/customer/select_storeInfo",
|
|
|
+ success: function(data){
|
|
|
+ var id;
|
|
|
+ if (data.returnCode == 200) {
|
|
|
+ for(var i=0;i<data.returnMsg.storeInfoList.length;i++){
|
|
|
+ var storeInfo = data.returnMsg.storeInfoList[i];
|
|
|
+ html += '<option value="'+ storeInfo.storeId +'">'+ storeInfo.storeName +'</option>';
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ html = '';
|
|
|
+ }
|
|
|
+ $(node).html(html);
|
|
|
+ var currentlyStoreId = $("#storeId").val();
|
|
|
+ if(currentlyStoreId != null && currentlyStoreId != ""){
|
|
|
+ $("#selectStore option[value='" + currentlyStoreId + "']").attr("selected","true");
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
+ }
|
|
|
+ });
|
|
|
+}
|
|
|
|
|
|
|
|
|
/*===============================客诉提交 -- start -- =============================== */
|