...
|
...
|
@@ -293,17 +293,17 @@ var operationEdit={ |
|
|
});
|
|
|
},
|
|
|
validate:function(_reqData){
|
|
|
if(!_reqData || !reqData.promotionType){
|
|
|
if(!_reqData || !_reqData.promotionType){
|
|
|
common.util.__tip("没有填写数据!", "warning");
|
|
|
return false;
|
|
|
}
|
|
|
var _g=this;
|
|
|
var result=true;
|
|
|
var msg;
|
|
|
switch(reqData["promotionType"]){
|
|
|
switch(_reqData["promotionType"]){
|
|
|
case _g.config.Degressdiscount.enName:
|
|
|
var regrex=new RegExp("(\d+:\d+(.\d+)?)(;\d+:\d+(.\d+)?)*",'g');
|
|
|
var degress_discount_list=reqData["data"]["degress_discount_list"];
|
|
|
var degress_discount_list=_reqData["data"]["degress_discount_list"];
|
|
|
result = regrex.test(degress_discount_list);
|
|
|
if(!result){
|
|
|
msg="";
|
...
|
...
|
@@ -311,7 +311,7 @@ var operationEdit={ |
|
|
break;
|
|
|
case _g.config.SpecifiedAmount.enName:
|
|
|
var regrex=new RegExp("\d+:\d+(.\d+)?",'g');
|
|
|
var specified_amount_list=reqData["data"]["specified_amount_list"];
|
|
|
var specified_amount_list=_reqData["data"]["specified_amount_list"];
|
|
|
result = regrex.test(specified_amount_list);
|
|
|
break;
|
|
|
|
...
|
...
|
|