Commit f5bb819b by 宋祥

1.数字校验

parent 764c5731
......@@ -136,12 +136,12 @@ $(function (){
flag = false;
return false;
}
let groupUserCount= item.get("groupUserCount");
if(!isPositiveInteger(groupUserCount)){
message("选中的生产组第"+(index+1)+"行\"组用工数\",必须为正整数!");
flag = false;
return false;
}
let groupUserCount = item.get("groupUserCount");
if (!isInteger(groupUserCount) || parseFloat(groupUserCount) < 0) {
message("选中的生产组第" + (index + 1) + "行\"组用工数\",必须为正整数!");
flag = false;
return false;
}
});
if(flag) {
JSUtils.confirm("确定对数据做\"保存\"操作? ", {
......@@ -330,4 +330,4 @@ var rowsBlock = function (grid_id) {
// 默认查询第一页
eiblock.set(EiConstant.OFFSET, 0);
return eiblock;
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment