Authored by lijian

加个校验优化

... ... @@ -45,7 +45,9 @@ var apiCofig = {
EnvConst:{
// domain:"http://192.168.102.48:8088/platform",
//domain:"http://127.0.0.1:8080/platform",
domain:"http://172.16.6.200:8088/platform",
// domain:"http://172.16.6.200:8088/platform",
domain:"http://192.168.102.202:8088/platform",
yohoSearch: 'http://192.168.102.216:8080/yohosearch',
system:Iaccount
},
... ...
... ... @@ -259,6 +259,14 @@ $(document).on("click",".sortadd",function(){
common.util.__tip("请填写销售价","warning");
return;
}
if (($.trim($("#salesPriceStr").val())).length>10) {
common.util.__tip("销售价不合法,包含小数位不能大于10位","warning");
return;
}
if (($.trim($("#retailPriceStr").val())).length>10) {
common.util.__tip("吊牌价不合法,包含小数位不能大于10位","warning");
return;
}
if ($.trim($("#factoryCode").val())=="") {
common.util.__tip("请填写厂家编号","warning");
return;
... ... @@ -521,6 +529,16 @@ e.on("validate",function(){
return "销售价应该限定小于等于吊牌价";
}
});
e.on("validate",function(){
if (($.trim($("#salesPriceStr").val())).length>10) {
common.util.__tip("销售价不合法,包含小数位不能大于10位","warning");
return;
}});
e.on("validate",function(){
if (($.trim($("#retailPriceStr").val())).length>10) {
common.util.__tip("吊牌价不合法,包含小数位不能大于10位","warning");
return;
}});
/*非销售属性验证*/
// e.on("validate",function(){
... ...