Commit 207f9d12 by wancheng

删除已经处理的质检单改为弹框提示

parent c0615ecd
......@@ -133,7 +133,7 @@ function deleteFunc() {
$.each(rows, function(index, item) {
let status= item.get("status");
if(status==="1"){
message("选中的第"+(index+1)+"行记录提交,不能删除!");
message("选中的第"+(index+1)+"行记录提交,不能删除!");
flag = false;
return false;
}
......
......@@ -135,7 +135,12 @@ $(function () {
template: function (options) {
return showUserName(options.createdBy, options.createdName);
}
}]
}],
onDelete: function (e) {
// 阻止默认请求,使用自定义删除
e.preventDefault();
deleteFunc();
}
}
}
......@@ -246,3 +251,30 @@ let selectStockCallback = function () {
// 关闭弹窗
JSColorbox.close();
}
/**
* 删除
*/
function deleteFunc() {
let rows = resultGrid.getCheckedRows();
if (rows.length < 1) {
message("请选择数据");
return;
}
let flag = true;
$.each(rows, function(index, item) {
let status= item.get("status");
if(status==="1"){
message("选中的第"+(index+1)+"行记录已处理,不能删除!");
flag = false;
return false;
}
});
if(flag){
JSUtils.confirm("确定对勾选中的[" + rows.length + "]条数据做\"删除\"操作? ", {
ok: function () {
JSUtils.submitGridsData("result", "HPZL001", "delete", true);
}
});
}
}
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