diff --git a/lms/nladmin-system/src/main/java/org/nl/wms/pdm/ivt/rest/HotPointIvtController.java b/lms/nladmin-system/src/main/java/org/nl/wms/pdm/ivt/rest/HotPointIvtController.java index b90909798..872e7bf81 100644 --- a/lms/nladmin-system/src/main/java/org/nl/wms/pdm/ivt/rest/HotPointIvtController.java +++ b/lms/nladmin-system/src/main/java/org/nl/wms/pdm/ivt/rest/HotPointIvtController.java @@ -64,4 +64,11 @@ public class HotPointIvtController { hotpointivtService.deleteAll(ids); return new ResponseEntity<>(HttpStatus.OK); } + + @GetMapping("/taskDtlQuery") + @Log("查询烘烤任务明细") + @ApiOperation("查询烘烤任务明细") + public ResponseEntity taskDtlQuery(@RequestParam Map whereJson, Pageable page){ + return new ResponseEntity<>(hotpointivtService.taskDtlQuery(whereJson,page),HttpStatus.OK); + } } diff --git a/lms/nladmin-system/src/main/java/org/nl/wms/pdm/ivt/service/HotPointIvtService.java b/lms/nladmin-system/src/main/java/org/nl/wms/pdm/ivt/service/HotPointIvtService.java index 396d0011f..fa46ac1cc 100644 --- a/lms/nladmin-system/src/main/java/org/nl/wms/pdm/ivt/service/HotPointIvtService.java +++ b/lms/nladmin-system/src/main/java/org/nl/wms/pdm/ivt/service/HotPointIvtService.java @@ -61,4 +61,13 @@ public interface HotPointIvtService { * @param ids / */ void deleteAll(Long[] ids); + + /** + * 任务明细分页查询 + * @param whereJson 条件 + * @param page 分页参数 + * @return Map + */ + Map taskDtlQuery(Map whereJson, Pageable page); + } \ No newline at end of file diff --git a/lms/nladmin-system/src/main/java/org/nl/wms/pdm/ivt/service/impl/HotPointIvtServiceImpl.java b/lms/nladmin-system/src/main/java/org/nl/wms/pdm/ivt/service/impl/HotPointIvtServiceImpl.java index 5aae32354..93ad86f70 100644 --- a/lms/nladmin-system/src/main/java/org/nl/wms/pdm/ivt/service/impl/HotPointIvtServiceImpl.java +++ b/lms/nladmin-system/src/main/java/org/nl/wms/pdm/ivt/service/impl/HotPointIvtServiceImpl.java @@ -3,6 +3,7 @@ package org.nl.wms.pdm.ivt.service.impl; import cn.hutool.core.date.DateUtil; +import cn.hutool.core.map.MapUtil; import cn.hutool.core.util.IdUtil; import cn.hutool.core.util.ObjectUtil; import com.alibaba.fastjson.JSON; @@ -137,4 +138,26 @@ public class HotPointIvtServiceImpl implements HotPointIvtService { } } + @Override + public Map taskDtlQuery(Map whereJson, Pageable page) { + + String task_code = MapUtil.getStr(whereJson, "task_code"); + String start_point_code = MapUtil.getStr(whereJson, "start_point_code"); + String next_point_code = MapUtil.getStr(whereJson, "next_point_code"); + + JSONObject map = new JSONObject(); + map.put("flag","2"); + map.put("bill_code", MapUtil.getStr(whereJson,"bill_code")); + map.put("dtl_status", MapUtil.getStr(whereJson,"dtl_status")); + map.put("begin_time", whereJson.get("begin_time")); + map.put("end_time", whereJson.get("end_time")); + if (ObjectUtil.isNotEmpty(task_code)) map.put("task_code","%"+task_code+"%"); + if (ObjectUtil.isNotEmpty(start_point_code)) map.put("start_point_code","%"+start_point_code+"%"); + if (ObjectUtil.isNotEmpty(next_point_code)) map.put("next_point_code","%"+next_point_code+"%"); + + JSONObject json = WQL.getWO("ST_IVT_HOTPOINTIVT").addParamMap(map).pageQuery(WqlUtil.getHttpContext(page), "create_time DESC"); + + return json; + } + } diff --git a/lms/nladmin-system/src/main/java/org/nl/wms/pdm/service/impl/RawfoilworkorderServiceImpl.java b/lms/nladmin-system/src/main/java/org/nl/wms/pdm/service/impl/RawfoilworkorderServiceImpl.java index 3ccbcd6af..ab720e6f2 100644 --- a/lms/nladmin-system/src/main/java/org/nl/wms/pdm/service/impl/RawfoilworkorderServiceImpl.java +++ b/lms/nladmin-system/src/main/java/org/nl/wms/pdm/service/impl/RawfoilworkorderServiceImpl.java @@ -156,7 +156,7 @@ public class RawfoilworkorderServiceImpl implements RawfoilworkorderService { WQLObject tab = WQLObject.getWQLObject("PDM_BI_RawFoilWorkOrder"); JSONObject json = tab.query("workorder_id = '" + workorder_id + "'").uniqueResult(0); - json.put("status", "2"); + json.put("status", "09"); json.put("finish_type", "02"); json.put("realend_time", DateUtil.now()); json.put("update_optid", currentUserId); diff --git a/lms/nladmin-system/src/main/java/org/nl/wms/pdm/wql/ST_IVT_HOTPOINTIVT.wql b/lms/nladmin-system/src/main/java/org/nl/wms/pdm/wql/ST_IVT_HOTPOINTIVT.wql index 89bf9e09f..fe056d997 100644 --- a/lms/nladmin-system/src/main/java/org/nl/wms/pdm/wql/ST_IVT_HOTPOINTIVT.wql +++ b/lms/nladmin-system/src/main/java/org/nl/wms/pdm/wql/ST_IVT_HOTPOINTIVT.wql @@ -17,9 +17,14 @@ 输入.point_code TYPEAS s_string 输入.point_status TYPEAS s_string 输入.product_area TYPEAS s_string - 输入.is_used TYPEAS s_string + 输入.is_used TYPEAS s_string 输入.begin_time TYPEAS s_string 输入.end_time TYPEAS s_string + 输入.bill_code TYPEAS s_string + 输入.dtl_status TYPEAS s_string + 输入.task_code TYPEAS s_string + 输入.start_point_code TYPEAS s_string + 输入.next_point_code TYPEAS s_string [临时表] @@ -71,4 +76,72 @@ ENDOPTION ENDSELECT ENDPAGEQUERY + ENDIF + + IF 输入.flag = "2" + PAGEQUERY + SELECT + mst.bill_code, + dtl.start_point_code, + dtl.next_point_code, + dtl.temperature, + dtl.oven_time, + dtl.create_name, + dtl.create_time, + dtl.confirm_optname, + dtl.confirm_time, + ( + CASE + dtl.dtl_status + WHEN '10' THEN '生成' + WHEN '40' THEN '执行中' + WHEN '50' THEN '确认' + END + ) AS dtl_status, + ( + CASE + dtl.task_type + WHEN '0' THEN 'AGV任务' + WHEN '1' THEN '桁架任务' + END + ) AS task_type, + task.task_code + FROM + ST_IVT_HotRegionIODtl dtl + LEFT JOIN ST_IVT_HotRegionIOMst mst ON mst.iostorinv_id = dtl.iostorinv_id + LEFT JOIN sch_base_task task ON task.task_id = dtl.task_id + + WHERE + mst.is_delete = '0' + + OPTION 输入.bill_code <> "" + mst.bill_code = 输入.bill_code + ENDOPTION + + OPTION 输入.dtl_status <> "" + dtl.dtl_status = 输入.dtl_status + ENDOPTION + + OPTION 输入.task_code <> "" + task.task_code like 输入.task_code + ENDOPTION + + OPTION 输入.start_point_code <> "" + dtl.start_point_code like 输入.start_point_code + ENDOPTION + + OPTION 输入.next_point_code <> "" + dtl.next_point_code like 输入.next_point_code + ENDOPTION + + OPTION 输入.begin_time <> "" + dtl.create_time >= 输入.begin_time + ENDOPTION + + OPTION 输入.end_time <> "" + dtl.create_time <= 输入.end_time + ENDOPTION + + ENDSELECT + ENDPAGEQUERY ENDIF \ No newline at end of file diff --git a/lms/nladmin-system/src/main/java/org/nl/wms/pdm/wql/pdm.xls b/lms/nladmin-system/src/main/java/org/nl/wms/pdm/wql/pdm.xls index e965fb4e8..0c256b0b8 100644 Binary files a/lms/nladmin-system/src/main/java/org/nl/wms/pdm/wql/pdm.xls and b/lms/nladmin-system/src/main/java/org/nl/wms/pdm/wql/pdm.xls differ diff --git a/lms/nladmin-system/src/main/java/org/nl/wms/sch/service/impl/TaskServiceImpl.java b/lms/nladmin-system/src/main/java/org/nl/wms/sch/service/impl/TaskServiceImpl.java index e13fbab1c..0814e5756 100644 --- a/lms/nladmin-system/src/main/java/org/nl/wms/sch/service/impl/TaskServiceImpl.java +++ b/lms/nladmin-system/src/main/java/org/nl/wms/sch/service/impl/TaskServiceImpl.java @@ -72,8 +72,9 @@ public class TaskServiceImpl implements TaskService { map.put("vehicle_code", "%" + whereJson.getString("vehicle_code") + "%"); } if (StrUtil.isNotEmpty(whereJson.getString("task_type"))) { - ClassstandardDto task_type = classstandardService.findById(whereJson.getString("task_type")); - map.put("task_type", task_type.getClass_code()); + ClassstandardDto dto = classstandardService.findById(whereJson.getString("task_type")); + String task_type = classstandardService.getChildIdStr(dto.getClass_id().toString()); + map.put("task_type", task_type); } if (StrUtil.isNotEmpty(whereJson.getString("finishTypeList"))) { map.put("finishTypeList", whereJson.getString("finishTypeList")); diff --git a/lms/nladmin-system/src/main/java/org/nl/wms/sch/service/wql/QSCH_TASK_01.wql b/lms/nladmin-system/src/main/java/org/nl/wms/sch/service/wql/QSCH_TASK_01.wql index 729b8ca4d..4725b6026 100644 --- a/lms/nladmin-system/src/main/java/org/nl/wms/sch/service/wql/QSCH_TASK_01.wql +++ b/lms/nladmin-system/src/main/java/org/nl/wms/sch/service/wql/QSCH_TASK_01.wql @@ -16,9 +16,9 @@ 输入.flag TYPEAS s_string 输入.task_status TYPEAS s_string 输入.finished_type TYPEAS s_string - 输入.task_type TYPEAS s_string - 输入.point_code1 TYPEAS s_string - 输入.point_code2 TYPEAS s_string + 输入.task_type TYPEAS f_string + 输入.point_code1 TYPEAS s_string + 输入.point_code2 TYPEAS s_string 输入.task_code TYPEAS s_string 输入.vehicle_code TYPEAS s_string 输入.begin_time TYPEAS s_string @@ -60,7 +60,7 @@ WHERE task.is_delete = '0' OPTION 输入.task_type <> "" - task.task_type = 输入.task_type + md.class_id in 输入.task_type ENDOPTION OPTION 输入.finished_type <> "" task.finished_type = 输入.finished_type @@ -83,7 +83,7 @@ OPTION 输入.task_code <> "" (task.task_code like 输入.task_code) ENDOPTION - OPTION 输入.point_code <> "" + OPTION 输入.point_code1 <> "" (task.point_code1 like 输入.point_code1) ENDOPTION OPTION 输入.begin_time <> "" diff --git a/lms/nladmin-ui/src/views/wms/pdm/ivt/coolpointivt/index.vue b/lms/nladmin-ui/src/views/wms/pdm/ivt/coolpointivt/index.vue index 1f6b96e5d..f1f1c4b76 100644 --- a/lms/nladmin-ui/src/views/wms/pdm/ivt/coolpointivt/index.vue +++ b/lms/nladmin-ui/src/views/wms/pdm/ivt/coolpointivt/index.vue @@ -5,10 +5,10 @@ 库存查询 - + + diff --git a/lms/nladmin-ui/src/views/wms/pdm/ivt/coolpointivt/inventory.vue b/lms/nladmin-ui/src/views/wms/pdm/ivt/coolpointivt/inventory.vue index 669cfa6c2..f271b83b0 100644 --- a/lms/nladmin-ui/src/views/wms/pdm/ivt/coolpointivt/inventory.vue +++ b/lms/nladmin-ui/src/views/wms/pdm/ivt/coolpointivt/inventory.vue @@ -279,7 +279,7 @@ export default { crudMethod: { ...crudStIvtCoolpointivt }, optShow: { add: false, - edit: true, + edit: false, del: false, download: false, reset: true diff --git a/lms/nladmin-ui/src/views/wms/pdm/ivt/cutpointivt/index.vue b/lms/nladmin-ui/src/views/wms/pdm/ivt/cutpointivt/index.vue index 20292fee9..ece475d58 100644 --- a/lms/nladmin-ui/src/views/wms/pdm/ivt/cutpointivt/index.vue +++ b/lms/nladmin-ui/src/views/wms/pdm/ivt/cutpointivt/index.vue @@ -216,7 +216,7 @@ export default { crudMethod: { ...crudCutpointivt }, optShow: { add: false, - edit: true, + edit: false, del: false, download: false, reset: true diff --git a/lms/nladmin-ui/src/views/wms/pdm/ivt/deliverypointivt/index.vue b/lms/nladmin-ui/src/views/wms/pdm/ivt/deliverypointivt/index.vue index a9092e964..6c4379fa8 100644 --- a/lms/nladmin-ui/src/views/wms/pdm/ivt/deliverypointivt/index.vue +++ b/lms/nladmin-ui/src/views/wms/pdm/ivt/deliverypointivt/index.vue @@ -210,7 +210,7 @@ export default { crudMethod: { ...crudDeliverypointivt }, optShow: { add: false, - edit: true, + edit: false, del: false, download: false, reset: true diff --git a/lms/nladmin-ui/src/views/wms/pdm/ivt/hotpointivt/index.vue b/lms/nladmin-ui/src/views/wms/pdm/ivt/hotpointivt/index.vue index da964c872..e66a76abc 100644 --- a/lms/nladmin-ui/src/views/wms/pdm/ivt/hotpointivt/index.vue +++ b/lms/nladmin-ui/src/views/wms/pdm/ivt/hotpointivt/index.vue @@ -1,226 +1,23 @@ diff --git a/lms/nladmin-ui/src/views/wms/pdm/ivt/hotpointivt/pointIvt.vue b/lms/nladmin-ui/src/views/wms/pdm/ivt/hotpointivt/pointIvt.vue new file mode 100644 index 000000000..576c52efb --- /dev/null +++ b/lms/nladmin-ui/src/views/wms/pdm/ivt/hotpointivt/pointIvt.vue @@ -0,0 +1,229 @@ + + + + + diff --git a/lms/nladmin-ui/src/views/wms/pdm/ivt/hotpointivt/taskDtl.vue b/lms/nladmin-ui/src/views/wms/pdm/ivt/hotpointivt/taskDtl.vue new file mode 100644 index 000000000..8b70d23ff --- /dev/null +++ b/lms/nladmin-ui/src/views/wms/pdm/ivt/hotpointivt/taskDtl.vue @@ -0,0 +1,164 @@ + + + + + diff --git a/lms/nladmin-ui/src/views/wms/pdm/ivt/sbpointivt/index.vue b/lms/nladmin-ui/src/views/wms/pdm/ivt/sbpointivt/index.vue index 3f190b42b..543f9afe1 100644 --- a/lms/nladmin-ui/src/views/wms/pdm/ivt/sbpointivt/index.vue +++ b/lms/nladmin-ui/src/views/wms/pdm/ivt/sbpointivt/index.vue @@ -167,7 +167,7 @@ export default { crudMethod: { ...crudSbpointivt }, optShow: { add: false, - edit: true, + edit: false, del: false, download: false, reset: true diff --git a/lms/nladmin-ui/src/views/wms/pdm/order/rawfoilworkorder/index.vue b/lms/nladmin-ui/src/views/wms/pdm/order/rawfoilworkorder/index.vue index 293f4f21e..6f8827693 100644 --- a/lms/nladmin-ui/src/views/wms/pdm/order/rawfoilworkorder/index.vue +++ b/lms/nladmin-ui/src/views/wms/pdm/order/rawfoilworkorder/index.vue @@ -162,6 +162,8 @@ @@ -254,8 +256,8 @@ export default { compelEnd() { const _selectData = this.$refs.table.selection const data = _selectData[0] - if (data.status !== '01') { - return this.crud.notify('只能对开始状态的工单结束', CRUD.NOTIFICATION_TYPE.INFO) + if (data.status === '09') { + return this.crud.notify('不能对完成状态的工单强制结束', CRUD.NOTIFICATION_TYPE.INFO) } crudRawfoilworkorder.compelEnd(data).then(res => { this.crud.toQuery() diff --git a/lms/nladmin-ui/src/views/wms/sch/point/index.vue b/lms/nladmin-ui/src/views/wms/sch/point/index.vue index 6a99cf2ff..cdfcb18d7 100644 --- a/lms/nladmin-ui/src/views/wms/sch/point/index.vue +++ b/lms/nladmin-ui/src/views/wms/sch/point/index.vue @@ -69,7 +69,7 @@ /> - - + 仓位同步 @@ -307,7 +307,7 @@ - - - - - - + - - - - - - - - - - + + + + + + + + + +