function doRemove(){
nui.confirm("是否删除选中数据?", "警告⚠️", function(e){
if("ok"==e){
var rows=grid.getSelecteds();
if(rows.length!=0){
$.ajax({
url:"com.pttl.bps.pact.sell.sellContract.removeContract.biz.ext",
type:'POST',
data:nui.encode({cons:rows}),
cache: false,
contentType:'text/json',
success:function(text){
var returnJson = nui.decode(text);
if(returnJson.exception == null){
nui.alert("删除成功", "提示");
nui.get("doRemove").disable();
grid.reload();
}
}
});
}else{
nui.alert("请选择数据", "提示");
}
}
});
}
nui.confirm("是否删除选中数据?", "警告⚠️", function(e){
if("ok"==e){
var rows=grid.getSelecteds();
if(rows.length!=0){
$.ajax({
url:"com.pttl.bps.pact.sell.sellContract.removeContract.biz.ext",
type:'POST',
data:nui.encode({cons:rows}),
cache: false,
contentType:'text/json',
success:function(text){
var returnJson = nui.decode(text);
if(returnJson.exception == null){
nui.alert("删除成功", "提示");
nui.get("doRemove").disable();
grid.reload();
}
}
});
}else{
nui.alert("请选择数据", "提示");
}
}
});
}