浏览代码

添加客户基本信息

dujinyan 7 年之前
父节点
当前提交
e280e8dfe2
共有 1 个文件被更改,包括 17 次插入1 次删除
  1. 17 1
      watero-rst-web/src/main/webapp/WEB-INF/views/customer/save_customer_info.ftl

+ 17 - 1
watero-rst-web/src/main/webapp/WEB-INF/views/customer/save_customer_info.ftl

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