jinquanwu лет назад: 6
Родитель
Сommit
05fbf668a5

+ 3 - 3
CallCenterWeb.UI/commonTpl/EdInforma.html

@@ -29,7 +29,7 @@
29 29
 							</div>
30 30
 						</li> -->
31 31
 						<li class="form-group">
32
-							<label for="customer_code" class="col-md-2"><b class="text_require">*</b>客户编号</label>
32
+							<label for="customer_code" class="col-md-2">客户编号</label>
33 33
 							<div class="col-md-9">
34 34
 								<input id="customer_code" class="form-control" type="text"  placeholder="请输入客户编号" />
35 35
 								<p id="aaa"></p>
@@ -119,8 +119,8 @@
119 119
 								</div>
120 120
 							</li>		
121 121
 						</div>
122
-						<li class="form-group">
123
-							<label for="customer_companyname" class="col-md-2"><b class="text_require">*</b>公司名称</label>
122
+						<li class="form-group" style="display: none;" id="corporate_name">
123
+							<label for="customer_companyname" class="col-md-2">公司名称</label>
124 124
 							<div class="col-md-9">
125 125
 								<input id="customer_companyname" class="form-control" type="text" autocomplete="off" placeholder="请输入公司名称" />
126 126
 							</div>

+ 2 - 2
CallCenterWeb.UI/commonTpl/addOrEditCusInfo.html

@@ -120,8 +120,8 @@
120 120
 								</div>
121 121
 							</li>		
122 122
 						</div>
123
-						<li class="form-group">
124
-							<label for="customer_companyname" class="col-md-2"><b class="text_require">*</b>公司名称</label>
123
+						<li class="form-group" style="display: none;" id="corp_name">
124
+							<label for="customer_companyname" class="col-md-2">公司名称</label>
125 125
 							<div class="col-md-9">
126 126
 								<input id="customer_companyname" class="form-control" type="text" autocomplete="off" placeholder="请输入公司名称" />
127 127
 							</div>

+ 9 - 1
CallCenterWeb.UI/keHuManager/js/EdInforma.js

@@ -41,6 +41,14 @@ $("#customer_taxPointDes").change(function(){
41 41
 	}
42 42
 	
43 43
 		})
44
+$("#customer_taxPointDes").change(function(){
45
+	if($("#customer_taxPointDes").find("option:selected").text()=="总经销"){
46
+		$("#corporate_name").show()
47
+	}else{
48
+		$("#corporate_name").hide()
49
+	}
50
+	
51
+		})
44 52
 
45 53
 $("#customer_feeEx").change(function(){
46 54
 	if($("#customer_feeEx").find("option:selected").text()=="其他"){
@@ -119,7 +127,7 @@ function getCustomer(ids) {
119 127
 				$('#customer_address4').val(data.F_RaiseCrops);
120 128
 				$('#customer_feeExpires').val(data.F_PlantingArea);
121 129
 				$('#customer_feeEx').val(data.F_FertilizerBrand);	
122
-					if(data.F_Gender==="1"){
130
+					if(data.F_Gender===""){
123 131
 						$("input[type=radio][value='1']").prop("checked", true);
124 132
 					}else{
125 133
 						$("input[type=radio][value='2']").prop("checked", true);

+ 28 - 21
CallCenterWeb.UI/keHuManager/js/addOrEditCusInfo.js

@@ -1,27 +1,26 @@
1 1
 function sd(){
2 2
         $("#customer_code").val("");
3 3
         };
4
-        function ischeckNum() {
5
-            var num = document.getElementById('customer_code').value;//在此处下修改id
6
-            if( num ){
7
-                if( !isNaN( num ) ){
8
-                    if(num.length>10){
9
-                        sd();
10
-						$("#aaa").css("color","red").html("当前输入的编号大于10位,请输入10位编号");
11
-                    }else if(num.length<10 && num.length>0){
12
-                        sd();
13
-						$("#aaa").css("color","red").html("当前输入的编号小于10位,请输入10位的编号!");
14
-                    }
15
-                    return false;
16
-                }else{
17
-					$("#aaa").css("color","red").html("你输入的数据不是数字");
18
-                    sd();
19
-                 return false;
20
-        }
21
-        }else{
22
-            $("#aaa").css("color","red").html("编号不能为空"); 
23
-        }
24
-        }
4
+     //    function ischeckNum() {
5
+     //        var num = document.getElementById('customer_code').value;//在此处下修改id
6
+     //        if( num ){
7
+     //            if( !isNaN( num ) ){
8
+     //                if(num.length>10){
9
+     //                    sd();
10
+					// 	$("#aaa").css("color","red").html("当前输入的编号大于10位,请输入10位编号");
11
+     //                }else if(num.length<10 && num.length>0){
12
+     //                    sd();
13
+					// 	$("#aaa").css("color","red").html("当前输入的编号小于10位,请输入10位的编号!");
14
+     //                }
15
+     //                return false;
16
+     //            }else{
17
+					// $("#aaa").css("color","red").html("你输入的数据不是数字");
18
+     //                sd();
19
+     //             return false;
20
+     //    }
21
+     //    }else{
22
+     //    }
23
+     //    }
25 24
 $("#customer_code").blur(function(){
26 25
 	ischeckNum();
27 26
 })
@@ -55,6 +54,14 @@ $("#customer_taxPointDes").change(function(){
55 54
 	}
56 55
 	
57 56
 		})
57
+$("#customer_taxPointDes").change(function(){
58
+	if($("#customer_taxPointDes").find("option:selected").text()=="总经销"){
59
+		$("#corp_name").show()
60
+	}else{
61
+		$("#corp_name").hide()
62
+	}
63
+	
64
+		})
58 65
 
59 66
 $("#customer_feeEx").change(function(){
60 67
 	if($("#customer_feeEx").find("option:selected").text()=="其他"){