diff --git a/lms/nladmin-system/src/main/java/org/nl/wms/pdm/service/impl/WorkorderServiceImpl.java b/lms/nladmin-system/src/main/java/org/nl/wms/pdm/service/impl/WorkorderServiceImpl.java index 85a2bdb..804909f 100644 --- a/lms/nladmin-system/src/main/java/org/nl/wms/pdm/service/impl/WorkorderServiceImpl.java +++ b/lms/nladmin-system/src/main/java/org/nl/wms/pdm/service/impl/WorkorderServiceImpl.java @@ -61,6 +61,7 @@ public class WorkorderServiceImpl implements WorkordeService { String begin_time = MapUtil.getStr(whereJson, "begin_time"); String end_time = MapUtil.getStr(whereJson, "end_time"); String order_status = MapUtil.getStr(whereJson, "order_status"); + String device = MapUtil.getStr(whereJson, "device"); JSONObject map = new JSONObject(); map.put("flag", "1"); if (StrUtil.isNotBlank(begin_time)) { @@ -85,6 +86,9 @@ public class WorkorderServiceImpl implements WorkordeService { if (StrUtil.isNotEmpty(material)) { map.put("material", "%" + material + "%"); } + if (StrUtil.isNotBlank(device)) { + map.put("device", device); + } JSONObject jsonObject = WQL.getWO("MPS_PRODUCEDURE001").addParamMap(map).pageQuery(WqlUtil.getHttpContext(page), "ShiftOrder.order_status ASC, ShiftOrder.create_time DESC"); return jsonObject; } @@ -509,6 +513,7 @@ public class WorkorderServiceImpl implements WorkordeService { String begin_time = MapUtil.getStr(params, "begin_time"); String end_time = MapUtil.getStr(params, "end_time"); String order_status = MapUtil.getStr(params, "order_status"); + String device = MapUtil.getStr(params, "device"); JSONObject map = new JSONObject(); map.put("flag", "7"); if (StrUtil.isNotBlank(begin_time)) { @@ -533,6 +538,9 @@ public class WorkorderServiceImpl implements WorkordeService { if (StrUtil.isNotEmpty(material)) { map.put("material", "%" + material + "%"); } + if (StrUtil.isNotBlank(device)) { + map.put("device", device); + } JSONArray workorders = WQL.getWO("MPS_PRODUCEDURE001").addParamMap(map).process().getResultJSONArray(0); List> list = workorders.stream().map(o -> { JSONObject workorder = (JSONObject) o; diff --git a/lms/nladmin-ui/src/views/wms/pdm/workerorder/index.vue b/lms/nladmin-ui/src/views/wms/pdm/workerorder/index.vue index 8e6610a..837eddf 100644 --- a/lms/nladmin-ui/src/views/wms/pdm/workerorder/index.vue +++ b/lms/nladmin-ui/src/views/wms/pdm/workerorder/index.vue @@ -20,6 +20,15 @@ @keyup.enter.native="crud.toQuery" /> + + +