业务申请,新增申请页面的选择产品,添加字段校验车辆属性和租赁方式必选

This commit is contained in:
user 2018-06-21 14:46:24 +08:00
parent 1cb428ce50
commit 598ed9bc61

View File

@ -242,11 +242,24 @@
<%/*~[Describe=Ñ¡Ôñ²úÆ·;]~*/%>
function selectBusinessType()
{
var carAttr = false;
var lease = false;
var carAttributes = getItemValue(0,getRow(),"carAttributes");
if(!carAttributes){
carAttr = false;
}else{
carAttr = true;
}
var leasehold = getItemValue(0,getRow(),"leasehold");
if(!leasehold){
lease = false;
}else{
lease = true;
}
var modelid="";
if(MyOjbect.modelid){
if(MyOjbect.modelid&&carAttr==true&&lease==true){
modelid=MyOjbect.modelid;
AsDialog.OpenSelector("selectProductVersionInfo","","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
function(sReturn){
@ -262,7 +275,15 @@
setItemValue(0,0,"versionid",sReturn[1]);
},"ÇëÑ¡Ôñ²úÆ·",'');
}else{
alert("ÇëÏÈÑ¡Ôñ³µÐÍ");
if(modelid){
alert("请先选择车型");
}
if(carAttr==false){
alert("请先选择车辆属性");
}
if(lease==false){
alert("请先选择租赁方式");
}
}
// if(carAttributes=='1'){