Showing
1 changed file
with
6 additions
and
4 deletions
@@ -285,6 +285,11 @@ var operationEdit={ | @@ -285,6 +285,11 @@ var operationEdit={ | ||
285 | return false; | 285 | return false; |
286 | } | 286 | } |
287 | var chkFlag=_g.validate({"promotionType":reqData["promotionType"], "data":_temp}); | 287 | var chkFlag=_g.validate({"promotionType":reqData["promotionType"], "data":_temp}); |
288 | + if(!chkFlag){ | ||
289 | + common.util.__tip("数据格式不对,请根据提示输入", "warning"); | ||
290 | + return false; | ||
291 | + } | ||
292 | + | ||
288 | _actionParam = JSON.stringify(_temp); | 293 | _actionParam = JSON.stringify(_temp); |
289 | reqData["actionParam"]=_actionParam; | 294 | reqData["actionParam"]=_actionParam; |
290 | } | 295 | } |
@@ -323,10 +328,7 @@ var operationEdit={ | @@ -323,10 +328,7 @@ var operationEdit={ | ||
323 | result = regrex.test(specified_amount_list); | 328 | result = regrex.test(specified_amount_list); |
324 | break; | 329 | break; |
325 | 330 | ||
326 | - } | ||
327 | - if(!result){ | ||
328 | - common.util.__tip("数据格式不对,请根据提示输入", "warning"); | ||
329 | - } | 331 | + } |
330 | return result; | 332 | return result; |
331 | } | 333 | } |
332 | 334 |
-
Please register or login to post a comment