Commit b8941a6f by liuyang

2024-06-21 扣款单附件删除功能修复

parent c74b46b6
......@@ -137,11 +137,11 @@ public class ServiceHGCW999 extends ServiceEPBase {
* @return
*/
@OperationLogAnnotation(operModul = "附件清单",operType = "删除",operDesc = "物料清单-附件清单A-删除操作")
@Override
public EiInfo delete(EiInfo inInfo) {
EiInfo eiInfo = new EiInfo();
try {
Long matId = null;
List<Map> resultRows = inInfo.getBlock("detail2").getRows();
List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows();
for (int i = 0; i < resultRows.size(); i++) {
HGCW999 fSc002A = new HGCW999();
fSc002A.fromMap(resultRows.get(i));
......@@ -149,13 +149,13 @@ public class ServiceHGCW999 extends ServiceEPBase {
this.deleteEntity(fSc002A);
}
List<HGCW999> hgcw999List = HGCWTools.HgCw999.queryByBiz(matId,"HT");
eiInfo.addBlock("detail2").addRows(hgcw999List);
eiInfo.setStatus(EiConstant.STATUS_DEFAULT);
eiInfo.setMsg("操作成功!本次对[" + resultRows.size() + "]条数据删除成功!");
inInfo.addBlock(EiConstant.resultBlock).addRows(hgcw999List);
inInfo.setStatus(EiConstant.STATUS_DEFAULT);
inInfo.setMsg("操作成功!本次对[" + resultRows.size() + "]条数据删除成功!");
} catch (Exception e) {
LogUtils.setDetailMsg(eiInfo, e, "删除失败");
LogUtils.setDetailMsg(inInfo, e, "删除失败");
}
return eiInfo;
return inInfo;
}
/**
......
......@@ -90,7 +90,13 @@ function deleteFunc() {
}
JSUtils.confirm("确定对勾选中的[" + rows.length + "]条数据做\"删除\"操作?", {
ok: function () {
JSUtils.submitGridsData("result", "HGCW999", "delete", true);
JSUtils.submitGridsData("result", "HGCW999", "delete", true,
function (e) {
var status = e.getStatus();
if (status !== -1) {
resultGrid.dataSource.page(1);
}
});
}
})
}
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