From 5e8af632cb0b816b4e465b881ea2d5a409d53772 Mon Sep 17 00:00:00 2001 From: "ZHOUZ\\Noble'lift" <1014987728@qq.com> Date: Tue, 28 Jun 2022 08:56:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/AutoformulaServiceImpl.java | 52 ++++++++++++------- .../views/wms/pdm/produce/workorder/index.vue | 8 ++- .../views/wms/pdm/produce/worktask/index.vue | 30 ++++++----- 3 files changed, 56 insertions(+), 34 deletions(-) diff --git a/mes/hd/nladmin-system/src/main/java/org/nl/wms/pf/service/impl/AutoformulaServiceImpl.java b/mes/hd/nladmin-system/src/main/java/org/nl/wms/pf/service/impl/AutoformulaServiceImpl.java index 8da0e3e3..bde04762 100644 --- a/mes/hd/nladmin-system/src/main/java/org/nl/wms/pf/service/impl/AutoformulaServiceImpl.java +++ b/mes/hd/nladmin-system/src/main/java/org/nl/wms/pf/service/impl/AutoformulaServiceImpl.java @@ -2551,6 +2551,7 @@ public class AutoformulaServiceImpl implements AutoformulaService { } if(left_qty{ if(bomdlts_plan.getString("is_flag").equals("0")){ bomdlts_plan.put("formula_qty","0"); @@ -3407,7 +3421,7 @@ public class AutoformulaServiceImpl implements AutoformulaService { //bomdlts_plan.put("ivt_level","01"); //bomdlts_plan.put("is_active","1"); //bomdlts_plan.put("quality_scode","01"); - xl_list.add(bomdlts_plan); + xl_list3.add(bomdlts_plan); }else if(bomdlts_plan.getString("is_flag").equals("-1")){ String bomdtl_material_id = bomdlts_plan.getString("material_id"); double left_qty = bomdlts_plan.getDouble("formula_qty"); @@ -3444,7 +3458,7 @@ public class AutoformulaServiceImpl implements AutoformulaService { now_ivt.put("material_type","01"); now_ivt.put("is_need_move",bomdlts_plan.getString("is_need_move")); now_ivt.put("is_need_manage","1"); - xl_list.add(now_ivt); + xl_list3.add(now_ivt); left_qty = 0; break; }else{ @@ -3456,7 +3470,7 @@ public class AutoformulaServiceImpl implements AutoformulaService { now_ivt.put("is_need_move",bomdlts_plan.getString("is_need_move")); now_ivt.put("is_need_manage","1"); left_qty = NumberUtil.round(left_qty - ivt_qty,3).doubleValue(); - xl_list.add(now_ivt); + xl_list3.add(now_ivt); } } if(left_qty>0){ @@ -3468,7 +3482,7 @@ public class AutoformulaServiceImpl implements AutoformulaService { bomdlts_plan.put("ivt_level","01"); bomdlts_plan.put("is_active","1"); bomdlts_plan.put("quality_scode","01"); - xl_list.add(bomdlts_plan); + xl_list3.add(bomdlts_plan); } } }); @@ -3476,8 +3490,8 @@ public class AutoformulaServiceImpl implements AutoformulaService { //汇总新料库存 HashMap xl_list_map = new HashMap(); - for(int i=0;i - 提交 + 提交 - 开工 + 开工 { this.XLList = res }) + this.crud.query.createTime= [new Date(), new Date().daysLater(2)] + this.crud.toQuery() }, methods: { canUd(row) { diff --git a/mes/qd/src/views/wms/pdm/produce/worktask/index.vue b/mes/qd/src/views/wms/pdm/produce/worktask/index.vue index 110d2d5b..10f2323f 100644 --- a/mes/qd/src/views/wms/pdm/produce/worktask/index.vue +++ b/mes/qd/src/views/wms/pdm/produce/worktask/index.vue @@ -107,7 +107,7 @@ :disabled="device_flag" @click="deviceset" > - 指定设备 + 指定设备 - 任务结束 + 任务结束 异常结束 - + { this.XLList = res }) + this.crud.query.createTime= [new Date().daysAgo(2), new Date()] + this.crud.toQuery() }, methods: { [CRUD.HOOK.beforeRefresh]() {