Authored by chenchao

fix

@@ -293,17 +293,17 @@ var operationEdit={ @@ -293,17 +293,17 @@ var operationEdit={
293 }); 293 });
294 }, 294 },
295 validate:function(_reqData){ 295 validate:function(_reqData){
296 - if(!_reqData || !reqData.promotionType){ 296 + if(!_reqData || !_reqData.promotionType){
297 common.util.__tip("没有填写数据!", "warning"); 297 common.util.__tip("没有填写数据!", "warning");
298 return false; 298 return false;
299 } 299 }
300 var _g=this; 300 var _g=this;
301 var result=true; 301 var result=true;
302 var msg; 302 var msg;
303 - switch(reqData["promotionType"]){ 303 + switch(_reqData["promotionType"]){
304 case _g.config.Degressdiscount.enName: 304 case _g.config.Degressdiscount.enName:
305 var regrex=new RegExp("(\d+:\d+(.\d+)?)(;\d+:\d+(.\d+)?)*",'g'); 305 var regrex=new RegExp("(\d+:\d+(.\d+)?)(;\d+:\d+(.\d+)?)*",'g');
306 - var degress_discount_list=reqData["data"]["degress_discount_list"]; 306 + var degress_discount_list=_reqData["data"]["degress_discount_list"];
307 result = regrex.test(degress_discount_list); 307 result = regrex.test(degress_discount_list);
308 if(!result){ 308 if(!result){
309 msg=""; 309 msg="";
@@ -311,7 +311,7 @@ var operationEdit={ @@ -311,7 +311,7 @@ var operationEdit={
311 break; 311 break;
312 case _g.config.SpecifiedAmount.enName: 312 case _g.config.SpecifiedAmount.enName:
313 var regrex=new RegExp("\d+:\d+(.\d+)?",'g'); 313 var regrex=new RegExp("\d+:\d+(.\d+)?",'g');
314 - var specified_amount_list=reqData["data"]["specified_amount_list"]; 314 + var specified_amount_list=_reqData["data"]["specified_amount_list"];
315 result = regrex.test(specified_amount_list); 315 result = regrex.test(specified_amount_list);
316 break; 316 break;
317 317