فهرست منبع

Merge branch 'master' of http://git.iamberry.com/hexiugang/iamberry-common-parent

# Conflicts:
#	watero-rst-web/src/main/webapp/WEB-INF/views/cm/customer/order_list.ftl
wangxiang 7 سال پیش
والد
کامیت
37235b73f9

+ 7 - 3
watero-rst-web/src/main/webapp/WEB-INF/views/cm/customer/add_customer.ftl

@@ -186,7 +186,7 @@
                     </table>
                 </div>
             </div>
-            <div class="row cl">
+            <div class="row cl" id="twiceSellEnd">
                 <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="radio-box">
@@ -199,7 +199,7 @@
                     </div>
                 </div>
             </div>
-            <div class="row cl">
+            <div class="row cl" id="openTheLock">
                 <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="radio-box">
@@ -867,12 +867,16 @@
             allCustomerInfoType = parseInt($(this).val());
             if(allCustomerInfoType == 1){
                 $("#customer-process-1").iCheck('check');  //设置已解决
+                $("#twiceSellEnd").hide();
+                $("#openTheLock").hide();
                 allCustomerType = 1;
             }else{
                 $("#customer-process-3").iCheck('check');  //设置换新
+                $("#twiceSellEnd").show();
+                $("#openTheLock").show();
                 allCustomerType =3;
             }
-            initProcessResult(allCustomerType);
+            initProcessResult(allCustomerType,allCustomerInfoType);
         })
 
         /*监听处理结果选择事件*/

+ 59 - 17
watero-rst-web/src/main/webapp/common/js/customer/customer.js

@@ -410,12 +410,12 @@ function initProduceType(){
  * 选择处理结果-- 默认选择已解决
  * type : 1 :已解决  2:未解决  3:换新  4:维修  5:补发   6:退货  7:无理由退货
  */
-function initProcessResult(type){
+function initProcessResult(type,allCustomerInfoType){
 
     if(type == null || type == ""){
         type = 1;
     }
-
+    var customerInfoType = allCustomerInfoType;
     allCustomerType = type;
 
     if(allCustomerInfoType == null || allCustomerInfoType == ""){
@@ -439,12 +439,12 @@ function initProcessResult(type){
         switch(type)
         {
             case 1:
-                otherHied();
+                otherHied(customerInfoType);
                 visitByType(1);
                 //getCompany();
                 break;
             case 2:
-                otherHied();
+                otherHied(customerInfoType);
                 visitByType(2);
                 //getCompany();
                 break;
@@ -498,14 +498,21 @@ function initProcessResult(type){
                 //$("#recipientAddress").show();
                 //$("#recipientAddressText").show();
                 $("#renewedProduct").show();
-                $("#TDScollect").show();
+                //$("#TDScollect").show();
                 $("#TDScollectShow").show();
                 $("#sendAddressInfo").show();
                 $("#sendAddressByPhone").show();
                 $("#updateProduct").hide(); //换新产品
                 $("#postageAccount").show();    //邮费转账账户
                 visitByType(2); //需要回访
-                $("#salesChannelsSelect").show();  //展示销售公司
+                //$("#salesChannelsSelect").show();  //展示销售公司
+                if(customerInfoType == 1){
+                    $("#salesChannelsSelect").hide();  //展示销售公司
+                    $("#TDScollect").hide();
+                }else{
+                    $("#salesChannelsSelect").show();  //展示销售公司
+                    $("#TDScollect").show();
+                }
                 break;
             case 4: //维修
                 result = isSolve.maintain;
@@ -519,14 +526,21 @@ function initProcessResult(type){
                 //$("#recipientAddress").show();
                 //$("#recipientAddressText").show();
                 $("#renewedProduct").show();
-                $("#TDScollect").show();
+                //$("#TDScollect").show();
                 $("#TDScollectShow").show();
                 $("#sendAddressInfo").show();
                 $("#sendAddressByPhone").show();
                 $("#updateProduct").hide();//维修产品
                 $("#postageAccount").show();    //邮费转账账户
                 visitByType(2); //需要回访
-                $("#salesChannelsSelect").show();  //展示销售公司
+                //$("#salesChannelsSelect").show();  //展示销售公司
+                if(customerInfoType == 1){
+                    $("#salesChannelsSelect").hide();  //展示销售公司
+                    $("#TDScollect").hide();
+                }else{
+                    $("#salesChannelsSelect").show();  //展示销售公司
+                    $("#TDScollect").show();
+                }
                 break;
             case 5://补发
                 result = isSolve.reissue;
@@ -540,14 +554,21 @@ function initProcessResult(type){
                 // $("#recipientAddress").show();
                 // $("#recipientAddressText").show();
                 $("#renewedProduct").hide();
-                $("#TDScollect").show();
+                //$("#TDScollect").show();
                 $("#TDScollectShow").show();
                 $("#sendAddressInfo").hide();
                 $("#sendAddressByPhone").hide();
                 $("#updateProduct").hide();
                 $("#postageAccount").hide();    //邮费转账账户 -- 隐藏
                 visitByType(2); //需要回访
-                $("#salesChannelsSelect").show();  //展示销售公司
+                //$("#salesChannelsSelect").show();  //展示销售公司
+                if(customerInfoType == 1){
+                    $("#salesChannelsSelect").hide();  //展示销售公司
+                    $("#TDScollect").hide();
+                }else{
+                    $("#salesChannelsSelect").show();  //展示销售公司
+                    $("#TDScollect").show();
+                }
                 break;
             case 6: //退货
                 result = isSolve.backGoods;
@@ -561,14 +582,21 @@ function initProcessResult(type){
                 //$("#recipientAddress").show();
                 //$("#recipientAddressText").show();
                 $("#renewedProduct").show();
-                $("#TDScollect").show();
+                //$("#TDScollect").show();
                 $("#TDScollectShow").show();
                 $("#sendAddressInfo").show();
                 $("#sendAddressByPhone").show();
                 $("#updateProduct").hide();
                 $("#postageAccount").show();    //邮费转账账户
                 visitByType(2); //需要回访
-                $("#salesChannelsSelect").show();  //展示销售公司
+                //$("#salesChannelsSelect").show();  //展示销售公司
+                if(customerInfoType == 1){
+                    $("#salesChannelsSelect").hide();  //展示销售公司
+                    $("#TDScollect").hide();
+                }else{
+                    $("#salesChannelsSelect").show();  //展示销售公司
+                    $("#TDScollect").show();
+                }
                 break;
             case 7://无理由退货
                 result = isSolve.noReasonBack;
@@ -582,14 +610,21 @@ function initProcessResult(type){
                 //$("#recipientAddress").show();
                 //$("#recipientAddressText").show();
                 $("#renewedProduct").show();
-                $("#TDScollect").show();
+                //$("#TDScollect").show();
                 $("#TDScollectShow").show();
                 $("#sendAddressInfo").show();
                 $("#sendAddressByPhone").show();
                 $("#updateProduct").hide();
                 $("#postageAccount").show();    //邮费转账账户
                 visitByType(2); //需要回访
-                $("#salesChannelsSelect").show();  //展示销售公司
+                //$("#salesChannelsSelect").show();  //展示销售公司
+                if(customerInfoType == 1){
+                    $("#salesChannelsSelect").hide();  //展示销售公司
+                    $("#TDScollect").hide();
+                }else{
+                    $("#salesChannelsSelect").show();  //展示销售公司
+                    $("#TDScollect").show();
+                }
                 break;
             default:
                 break;
@@ -617,8 +652,8 @@ function initProcessResult(type){
 }
 
 /*已解决|未解决 */
-function otherHied(){
-    $("#salesChannelsSelect").show();  //展示销售公司
+function otherHied(customerInfoType){
+    //$("#salesChannelsSelect").show();  //展示销售公司
     $("#processResultStatus").hide();   //处理结果的执行状态  已解决未解决没有该信息
     $("#orderHead").hide();
     $("#order").hide();
@@ -627,11 +662,18 @@ function otherHied(){
     $("#recipientAddress").hide();
     $("#recipientAddressText").hide();
     $("#renewedProduct").hide();
-    $("#TDScollect").show();
+    //$("#TDScollect").show();
     $("#TDScollectShow").show();
     $("#sendAddressInfo").hide();
     $("#sendAddressByPhone").hide();
     $("#updateProduct").hide();
+    if(customerInfoType == 1){
+        $("#salesChannelsSelect").hide();  //展示销售公司
+        $("#TDScollect").hide();
+    }else{
+        $("#salesChannelsSelect").show();  //展示销售公司
+        $("#TDScollect").show();
+    }
 }
 
 /*初始化问题大类*/