Parcourir la source

添加客户基本信息

dujinyan il y a 7 ans
Parent
commit
4f3af5346c

+ 18 - 0
watero-rst-web/src/main/webapp/WEB-INF/views/customer/update_customer_info.ftl

@@ -552,6 +552,11 @@
         /*初始化销售产品(大类)*/
         initPromotingProducts();
 
+        /*监听客户类型*/
+        $("[name='customerType']").change(function (){
+            initAccountType($(this).val());
+        })
+
         /*监听省份*/
         $("[name='customerProvinceCode']").change(function (){
             initCity($(this).val());
@@ -645,6 +650,8 @@
             $("#isShowOpenTicket").show();
             $("#isShowEnterprise").show();
             $("#isShowAddress").show();
+            var customerType = $("[name='customerType']").val();
+            initAccountType(customerType);
         }
     }
 
@@ -655,6 +662,17 @@
             $(".normalTicketType").hide();
         }
     }
+
+    function initAccountType(customerType) {
+        if(customerType == "1"){
+            $("#accountType-2").iCheck('check');//个人
+            $("#accountNameId").html("收款人姓名:");
+        }else{
+            $("#accountType-1").iCheck("check");//公司
+            $("#accountNameId").html("企业名称:");
+        }
+    }
+
     /*初始化省份*/
     function initProvince() {
         //默认查询参数为空