Commit 6400cb7a by liuyang

2024-08-06 采购入库状态提交不能保存bug

parent a77e61d1
...@@ -383,4 +383,11 @@ public class HGConstant { ...@@ -383,4 +383,11 @@ public class HGConstant {
// 手动录入 // 手动录入
public static final Integer SDLR = 1; public static final Integer SDLR = 1;
} }
public static class WhCodeStatus {
// 采购计划
public static final Integer S_0 = 0;
// 销售计划
public static final Integer S_1 = 1;
}
} }
...@@ -109,6 +109,9 @@ public class ServiceHGKC001 extends ServiceBase { ...@@ -109,6 +109,9 @@ public class ServiceHGKC001 extends ServiceBase {
String depositNo = fCg004.getDepositNo(); String depositNo = fCg004.getDepositNo();
HGKC001 dbCg004 = dbCg004Map.get(depositNo); HGKC001 dbCg004 = dbCg004Map.get(depositNo);
AssertUtils.isNull(dbCg004, String.format("入库单[%s]不存在", depositNo)); AssertUtils.isNull(dbCg004, String.format("入库单[%s]不存在", depositNo));
if (fCg004.getSubmitStatus().equals(HGConstant.WhCodeStatus.S_1)){
AssertUtils.isTrue(true, String.format("入库单[%s]状态为已提交,不能修改", fCg004.getDepositNo()));
}
} }
} }
......
...@@ -136,6 +136,10 @@ let save = function () { ...@@ -136,6 +136,10 @@ let save = function () {
message("勾选的第" + (i + 1) + "行仓库不能为空"); message("勾选的第" + (i + 1) + "行仓库不能为空");
return; return;
} }
if (rows[i]["submitStatus"] == 1){
message("第" + (i + 1) + "行数据已提交,不能保存");
return;
}
} }
JSUtils.confirm("确定对勾选中的[" + rows.length + "]条数据做\"保存\"操作? ", { JSUtils.confirm("确定对勾选中的[" + rows.length + "]条数据做\"保存\"操作? ", {
ok: function () { ok: function () {
......
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