Commit 2e31a171 by liuyang

2024-04-10 报工管理功能优化

parent d3ba094f
......@@ -109,7 +109,8 @@ $(function (){
* 确认
*/
$('#confirm').on('click', function () {
let rows = resultGrid.getDataItems();
let resultRows = resultGrid.getDataItems();
let detailRows = resultGrid.getDataItems();
if (rows.length < 1) {
message("请选择数据");
return;
......@@ -120,22 +121,30 @@ $(function (){
registerDate = currShortDate()
}
let flag = true;
$.each(rows, function(index, item) {
$.each(resultRows, function(index, item) {
let prdtName= item.get("prdtName");
if(isBlank(prdtName)){
message("选中的第"+(index+1)+"行\"产品\",不能为空!");
message("选中的生产组第"+(index+1)+"行\"产品\",不能为空!");
flag = false;
return false;
}
let weight= item.get("weight");
if(isBlank(weight)){
message("选中的第"+(index+1)+"行\"组拼产量(T)\",不能为空!");
message("选中的生产组第"+(index+1)+"行\"组拼产量(T)\",不能为空!");
flag = false;
return false;
}
let weightJh= item.get("weightJh");
if(isBlank(weightJh)){
message("选中的第"+(index+1)+"行\"加焊产量(T)\",不能为空!");
message("选中的生产组第"+(index+1)+"行\"加焊产量(T)\",不能为空!");
flag = false;
return false;
}
});
$.each(detailRows, function(index, item) {
let prdtName= item.get("prdtName");
if(isBlank(prdtName)){
message("选中的下料组第"+(index+1)+"行\"产品\",不能为空!");
flag = false;
return false;
}
......
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