Authored by 陶雨

supplier回滚到5.5之前

... ... @@ -25,16 +25,16 @@ var edit=require('../common/edit');
}
return true;
});
// e.on("validate",function(){
// //registeredCapital
// var registeredCapital=$.trim($("#registeredCapital").val());
// //+registeredCapital<999999999.99
// if(!/^(([0-9]{1,9})(\.[0-9]{1,2}){0,1})$/.test(registeredCapital)){
// return "注册资本格式无效(0~999999999.99)";
// }
// //phone
// return true;
// });
e.on("validate",function(){
//registeredCapital
var registeredCapital=$.trim($("#registeredCapital").val());
//+registeredCapital<999999999.99
if(!/^(([0-9]{1,9})(\.[0-9]{1,2}){0,1})$/.test(registeredCapital)){
return "注册资本格式无效(0~999999999.99)";
}
//phone
return true;
});
e.init();
var submit=function(callback,config){
e.submit($("#basicForm").attr("action"),function(option){
... ...
... ... @@ -90,7 +90,7 @@
<div class="form-group">
<label class="col-sm-2 control-label">注册资本 <span class="red">*</span></label>
<div class="col-sm-8">
<input id="registeredCapital" placeholder="请填写注册资本" class="form-control" required value="{{registeredCapital}}">
<input id="registeredCapital" placeholder="请填写注册资本" class="form-control" required value="{{registeredCapital}}">
</div>
</div>
... ...