|
|
@@ -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()=="其他"){
|