Commit 3ba118ce by wancheng

采购计划更新

parent 8c60720f
...@@ -127,15 +127,15 @@ function save() { ...@@ -127,15 +127,15 @@ function save() {
return; return;
} }
if (isBlank(rows[i]['custCode'])) { if (isBlank(rows[i]['custCode'])) {
message("勾选的第" + (i + 1) + "行供应商不能为空"); message("勾选的第" + (i + 1) + "行\"供应商\"不能为空");
return; return;
} }
if (!isPositiveInteger(rows[i]['planAmount'])) { if (isBlank(rows[i]['planAmount'])) {
message("勾选的第" + (index + 1) + "行\"计划数量\"必须是大于0的整数"); message("勾选的第" + (i + 1) + "行\"计划数量\"不能为空");
return; return;
} }
if(!isPositiveNumber(rows[i]['planWeight'])){ if(isBlank(rows[i]['planWeight'])){
message("选中的第"+(index+1)+"行\"计划重量\"必须是大于0的数"); message("选中的第"+(i+1)+"行\"计划重量\"不能为空");
return ; return ;
} }
} }
......
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