diff --git a/mes/hd/nladmin-system/src/main/java/org/nl/wms/basedata/em/wql/em.xls b/mes/hd/nladmin-system/src/main/java/org/nl/wms/basedata/em/wql/em.xls index aff4466a..0025e235 100644 Binary files a/mes/hd/nladmin-system/src/main/java/org/nl/wms/basedata/em/wql/em.xls and b/mes/hd/nladmin-system/src/main/java/org/nl/wms/basedata/em/wql/em.xls differ diff --git a/mes/hd/nladmin-system/src/main/java/org/nl/wms/ql/service/impl/PhysicalMstServiceImpl.java b/mes/hd/nladmin-system/src/main/java/org/nl/wms/ql/service/impl/PhysicalMstServiceImpl.java index 450ab81a..7f36db1e 100644 --- a/mes/hd/nladmin-system/src/main/java/org/nl/wms/ql/service/impl/PhysicalMstServiceImpl.java +++ b/mes/hd/nladmin-system/src/main/java/org/nl/wms/ql/service/impl/PhysicalMstServiceImpl.java @@ -663,7 +663,7 @@ public class PhysicalMstServiceImpl implements PhysicalMstService { jsonPhyMst.put("sysdeptid", deptId); jsonPhyMst.put("result", ""); jsonPhyMst.put("grade", ""); - jsonPhyMst.put("is_effective", "0"); + jsonPhyMst.put("is_effective", "1"); phyMstTab.insert(jsonPhyMst); // 新增新的理化单明细表 for (int i = 0; i < oldPhydtlArr.size(); i++) { @@ -673,7 +673,10 @@ public class PhysicalMstServiceImpl implements PhysicalMstService { phyDtlTab.insert(oldPhydtl); } // 将老的理化单主表设置为 无效,将新的质检单设置为有效 - this.setValid(jsonPhyMst); + HashMap map = new HashMap(); + map.put("is_effective", "0"); + phyMstTab.update(map,"material_id='" + material_id + "' and pcsn = '" + pcsn + "' and inspection_id <> '" + jsonPhyMst.getString("inspection_id") + "'"); + // 更新一级质检单明细表 JSONObject sheetdtl = sheetDtlTab.query("material_id = '" + jsonPhyMst.getString("material_id") + "' and pcsn = '" + jsonPhyMst.getString("pcsn") + "'").uniqueResult(0); sheetdtl.put("bill_status", "30"); diff --git a/mes/qd/src/views/wms/basedata/em/bjsafeivt/index.vue b/mes/qd/src/views/wms/basedata/em/bjsafeivt/index.vue index cedee34d..7698e673 100644 --- a/mes/qd/src/views/wms/basedata/em/bjsafeivt/index.vue +++ b/mes/qd/src/views/wms/basedata/em/bjsafeivt/index.vue @@ -71,14 +71,11 @@ style="width: 100%;" @selection-change="crud.selectionChangeHandler" > - + - - + +