Browse Source

add 工单查询条件

master
张江玮 1 year ago
parent
commit
5a6e2d9c4c
  1. 8
      lms/nladmin-system/src/main/java/org/nl/wms/pdm/service/impl/WorkorderServiceImpl.java
  2. 9
      lms/nladmin-ui/src/views/wms/pdm/workerorder/index.vue

8
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<Map<String, Object>> list = workorders.stream().map(o -> {
JSONObject workorder = (JSONObject) o;

9
lms/nladmin-ui/src/views/wms/pdm/workerorder/index.vue

@ -20,6 +20,15 @@
@keyup.enter.native="crud.toQuery"
/>
</el-form-item>
<el-form-item label="设备">
<el-input
v-model="query.device"
clearable
placeholder="设备"
style="width: 200px;"
@keyup.enter.native="crud.toQuery"
/>
</el-form-item>
<el-form-item label="物料编码">
<el-input
v-model="query.material"

Loading…
Cancel
Save