经销商审核手机号验证提示

This commit is contained in:
liuz 2018-08-27 20:28:40 +08:00
parent f671b6c478
commit e9b244b852

View File

@ -57,14 +57,14 @@
function Checkfield(){
var businessLicenseNo = getItemValue(0,getRow(0),"BUSINESS_LICENSE_NO");
if(businessLicenseNo==""){
alert("组织机构代码不能为空!");
return;
//alert("组织机构代码不能为空!");
return true;
}
if(checkORGRight1(businessLicenseNo)){
return true;
}else{
//setErrorTips("BUSINESS_LICENSE_NO","组织机构代码格式不正确!");
AsDebug.alert("提示","组织机构代码格式不正确!");
setErrorTips("BUSINESS_LICENSE_NO","组织机构代码格式不正确!");
//AsDebug.alert("提示","组织机构代码格式不正确!");
return false;
}
}
@ -90,13 +90,16 @@
function checktel(){
var LINKMAN_TEL = getItemValue(0,getRow(0),"LINKMAN_TEL");
if(LINKMAN_TEL==""){
return true;
}
var phone = /^[1][3,4,5,7,8][0-9]{9}$/;
if(phone.test(LINKMAN_TEL)){
setErrorTips("LINKMAN_TEL","");
return true;
}else{
setErrorTips("LINKMAN_TEL","ÊÖ»úºÅ¸ñʽ²»ÕýÈ·!");
alert("手机号格式不正确!");
//alert("手机号格式不正确!");
return false;
}
}