diff --git a/mes/hd/nladmin-system/src/main/java/org/nl/wms/pcs/service/impl/PcsIfPurchaseorderprocServiceImpl.java b/mes/hd/nladmin-system/src/main/java/org/nl/wms/pcs/service/impl/PcsIfPurchaseorderprocServiceImpl.java index e17aa9ec..1f62b4dc 100644 --- a/mes/hd/nladmin-system/src/main/java/org/nl/wms/pcs/service/impl/PcsIfPurchaseorderprocServiceImpl.java +++ b/mes/hd/nladmin-system/src/main/java/org/nl/wms/pcs/service/impl/PcsIfPurchaseorderprocServiceImpl.java @@ -443,7 +443,7 @@ public class PcsIfPurchaseorderprocServiceImpl implements PcsIfPurchaseorderproc .reduce(Double::sum).orElse(0.00); // 合计金额:合计重量 * 含税单价 erp.put("allqty", allqty); - erp.put("all_valmoney", NumberUtil.div(allqty, erp.getDoubleValue("norigtaxprice"))); + erp.put("all_valmoney", NumberUtil.mul(allqty, erp.getDoubleValue("norigtaxprice"))); resultList.add(erp); } diff --git a/mes/hd/nladmin-system/src/main/java/org/nl/wms/pdm/wql/pdm.xls b/mes/hd/nladmin-system/src/main/java/org/nl/wms/pdm/wql/pdm.xls index 9a3674f4..74616218 100644 Binary files a/mes/hd/nladmin-system/src/main/java/org/nl/wms/pdm/wql/pdm.xls and b/mes/hd/nladmin-system/src/main/java/org/nl/wms/pdm/wql/pdm.xls differ diff --git a/mes/hd/nladmin-system/src/main/java/org/nl/wms/pf/service/impl/FormulaServiceImpl.java b/mes/hd/nladmin-system/src/main/java/org/nl/wms/pf/service/impl/FormulaServiceImpl.java index 89a10864..ff526228 100644 --- a/mes/hd/nladmin-system/src/main/java/org/nl/wms/pf/service/impl/FormulaServiceImpl.java +++ b/mes/hd/nladmin-system/src/main/java/org/nl/wms/pf/service/impl/FormulaServiceImpl.java @@ -1244,10 +1244,18 @@ public class FormulaServiceImpl implements FormulaService { if (ja.size()>0){ for (Object o : ja) { JSONObject item = (JSONObject) o; - WQLObject.getWQLObject("PDM_BI_Formula").update(MapOf.of( - "ball_time",item.get("qmsj"), - "hcp_standard",item.get("hcp_bz_Avg"), - "hcp_detection",item.get("hcp_sc_avg")),"formula_id = '"+item.get("FORMULA_ID")+"'"); + JSONObject param = new JSONObject(); + if (ObjectUtil.isNotEmpty(item.get("qmsj"))) { + param.put("erp_ball_time",item.get("qmsj")); + } + if (ObjectUtil.isNotEmpty(item.get("hcp_bz_avg"))) { + param.put("hcp_standard",item.get("hcp_bz_avg")); + } + if (ObjectUtil.isNotEmpty(item.get("hcp_sc_avg"))) { + param.put("hcp_detection",item.get("hcp_sc_avg")); + } + + WQLObject.getWQLObject("PDM_BI_Formula").update(param,"formula_id = '"+item.get("formula_id")+"'"); } } } diff --git a/mes/hd/nladmin-system/src/main/java/org/nl/wms/ql/wql/QL_ERP.wql b/mes/hd/nladmin-system/src/main/java/org/nl/wms/ql/wql/QL_ERP.wql index ed6c415f..e9c55afa 100644 --- a/mes/hd/nladmin-system/src/main/java/org/nl/wms/ql/wql/QL_ERP.wql +++ b/mes/hd/nladmin-system/src/main/java/org/nl/wms/ql/wql/QL_ERP.wql @@ -201,7 +201,6 @@ OPTION 输入.formula_id <> "" FORMULA_ID in 输入.formula_id ENDOPTION - limit 100 ENDSELECT ENDQUERY ENDIF diff --git a/mes/qd/src/views/wms/pf/formula/ViewDialog.vue b/mes/qd/src/views/wms/pf/formula/ViewDialog.vue index 49976dee..ef2c79e1 100644 --- a/mes/qd/src/views/wms/pf/formula/ViewDialog.vue +++ b/mes/qd/src/views/wms/pf/formula/ViewDialog.vue @@ -126,8 +126,20 @@ /> - - + + + + + + - + +