业务申请,校验担保人手机号是否重复
This commit is contained in:
parent
9086ad14a7
commit
a4102a9e07
@ -23,6 +23,7 @@
|
||||
// doTemp.setDefaultValue("ASSUROR", customerid);
|
||||
doTemp.setDefaultValue("project_id", ProjectId);
|
||||
doTemp.setDefaultValue("flowunid", sFlowUnid);
|
||||
doTemp.setHtmlEvent("MOBILE","onChange","checkMobileRepeat");
|
||||
// doTemp.setDefaultValue("DATA_STATE", "guarantee");//标记该数据是担保人信息
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||
dwTemp.Style = "2";//freeform
|
||||
@ -36,7 +37,7 @@
|
||||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
<script type="text/javascript">
|
||||
|
||||
function checkCertId(){
|
||||
function checkCertId(){//校验担保人证件号格式
|
||||
var certType = getItemValue(0,getRow(0),"CERTTYPE");
|
||||
var certId = getItemValue(0,getRow(0),"CERTID");
|
||||
if(certType==""){
|
||||
@ -72,7 +73,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
function checkTel(){
|
||||
function checkTel(){//校验担保人手机号格式
|
||||
var mobile = getItemValue(0,getRow(0),"mobile");
|
||||
if(mobile==""){
|
||||
//setErrorTips("mobile","手机号不能为空!");
|
||||
@ -88,26 +89,48 @@
|
||||
}
|
||||
}
|
||||
|
||||
// function checkWorkTel(){
|
||||
// var workTel = getItemValue(0,getRow(0),"WORKTEL");
|
||||
// if(workTel==""){
|
||||
// //setErrorTips("WORKTEL","单位电话不能为空!");
|
||||
// alert("单位电话不能为空!");
|
||||
// return false;
|
||||
// }
|
||||
// if(CheckPhoneCode(workTel)){
|
||||
// return true;
|
||||
// }else{
|
||||
// //setErrorTips("WORKTEL","单位电话格式不正确!");
|
||||
// alert("单位电话格式不正确!");
|
||||
// return false;
|
||||
// }
|
||||
// }
|
||||
function checkWorkTel(){//校验担保人单位电话格式
|
||||
var workTel = getItemValue(0,getRow(0),"WORKTEL");
|
||||
if(workTel==""){
|
||||
//setErrorTips("WORKTEL","单位电话不能为空!");
|
||||
alert("单位电话不能为空!");
|
||||
return false;
|
||||
}
|
||||
if(CheckPhoneCode(workTel)){
|
||||
return true;
|
||||
}else{
|
||||
//setErrorTips("WORKTEL","单位电话格式不正确!");
|
||||
alert("单位电话格式不正确!");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function checkMobileRepeat(){//校验担保人手机号重复
|
||||
var customerType = "03";
|
||||
var mobile = getItemValue(0,getRow(),"MOBILE");
|
||||
var sParams = "mobile="+mobile+",customerType="+customerType;
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkMobileRepeat",sParams);
|
||||
if(sReturnInfo=="8"){
|
||||
alert("该手机号已重复!");
|
||||
setItemValue(0,0,"MOBILE","");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
function save(){
|
||||
if(checkTel()==true&&checkCertId()==true){
|
||||
as_save(0,"goBack()");
|
||||
var CertIdResult = checkCertId();
|
||||
if(CertIdResult==false){
|
||||
return;
|
||||
}
|
||||
var TelResult = checkTel();
|
||||
if(TelResult==false){
|
||||
return;
|
||||
}
|
||||
var WorkTelResult = checkWorkTel();
|
||||
if(WorkTelResult==false){
|
||||
return;
|
||||
}
|
||||
as_save(0,"goBack()");
|
||||
}
|
||||
|
||||
function goBack(){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user