|
@@ -103,8 +103,8 @@ var tool = [
|
|
|
'emotion',
|
|
|
'spechars',
|
|
|
'searchreplace',
|
|
|
- 'map',
|
|
|
- 'gmap',
|
|
|
+
|
|
|
+
|
|
|
'insertvideo',
|
|
|
'help',
|
|
|
'justifyleft',
|
|
@@ -175,7 +175,6 @@ var isInitSendAddressSms = false;
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
var isSolve = {
|
|
@@ -200,17 +199,30 @@ var isSolveTitleMsg = {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
var phoneReg = /^[1][3,4,5,7,8][0-9]{9}$/;
|
|
|
|
|
|
|
|
|
|
|
|
$(function (){
|
|
|
+
|
|
|
$(".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);
|
|
|
+ })
|
|
|
})
|
|
|
|
|
|
|
|
@@ -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){
|
|
|
+ }
|
|
|
+ });
|
|
|
+}
|
|
|
|
|
|
|
|
|
|