Commit 063b081c by 宋祥

Merge branch 'dev-sx' of http://129.211.46.84:8800/platform/hp-smart into dev

parents 611d5009 f5bb819b
...@@ -136,12 +136,12 @@ $(function (){ ...@@ -136,12 +136,12 @@ $(function (){
flag = false; flag = false;
return false; return false;
} }
let groupUserCount= item.get("groupUserCount"); let groupUserCount = item.get("groupUserCount");
if(!isPositiveInteger(groupUserCount)){ if (!isInteger(groupUserCount) || parseFloat(groupUserCount) < 0) {
message("选中的生产组第"+(index+1)+"行\"组用工数\",必须为正整数!"); message("选中的生产组第" + (index + 1) + "行\"组用工数\",必须为正整数!");
flag = false; flag = false;
return false; return false;
} }
}); });
if(flag) { if(flag) {
JSUtils.confirm("确定对数据做\"保存\"操作? ", { JSUtils.confirm("确定对数据做\"保存\"操作? ", {
...@@ -330,4 +330,4 @@ var rowsBlock = function (grid_id) { ...@@ -330,4 +330,4 @@ var rowsBlock = function (grid_id) {
// 默认查询第一页 // 默认查询第一页
eiblock.set(EiConstant.OFFSET, 0); eiblock.set(EiConstant.OFFSET, 0);
return eiblock; 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