业务申请,新增申请,证件号校验、车辆属性、租赁形式校验
This commit is contained in:
parent
5193261a17
commit
48b55830e8
@ -335,7 +335,7 @@ if(getItemValue(0,0,"CERTTYPE") == null || getItemValue(0,0,"CERTTYPE") == ""){
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* function setErrorTips(colName,tips){
|
||||
if(tips==""){
|
||||
|
||||
@ -75,7 +75,7 @@
|
||||
/*~[Describe=保存并初始化数据;InputParam=无;OutPutParam=无;]~*/
|
||||
function saveRecord()
|
||||
{
|
||||
debugger;
|
||||
|
||||
//从页面上获取客户编号,产品编号
|
||||
var carAttributes = getItemValue(0,getRow(),"carAttributes");
|
||||
var leasehold = getItemValue(0,getRow(),"leasehold");
|
||||
@ -94,7 +94,14 @@
|
||||
var certid = getItemValue(0,getRow(),"certid");
|
||||
|
||||
|
||||
|
||||
if(carAttributes==""){
|
||||
alert("请选择车辆属性");
|
||||
return;
|
||||
}
|
||||
if(leasehold==""){
|
||||
alert("请选择租赁类型");
|
||||
return;
|
||||
}
|
||||
if(certtype==""){
|
||||
alert("请选择证件类型");
|
||||
|
||||
@ -145,9 +152,15 @@
|
||||
|
||||
/*~[Describe=确认新增申请;InputParam=无;OutPutParam=无;]~*/
|
||||
function doCreation()
|
||||
{
|
||||
if(!iV_all(0)) return ;
|
||||
saveRecord();
|
||||
{
|
||||
var certid = getItemValue(0,0,"certid");
|
||||
if(certid.length != 18){
|
||||
alert("证件号码格式有误!请重新输入")
|
||||
return;
|
||||
}else if(certid.length == 18){
|
||||
if(!iV_all(0)) return ;
|
||||
saveRecord();
|
||||
}
|
||||
}
|
||||
|
||||
/*~[Describe=返回列表;InputParam=无;OutPutParam=无;]~*/
|
||||
@ -319,6 +332,7 @@
|
||||
setItemValue(0,0,"certtype","Ind01");
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
<%/*~END~*/%>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user