diff --git a/wms_pro/hd/nladmin-system/src/main/java/org/nl/wms/dispatch_manage/task/handler/impl/InStorageTask.java b/wms_pro/hd/nladmin-system/src/main/java/org/nl/wms/dispatch_manage/task/handler/impl/InStorageTask.java index 7c168a3e..6e04eceb 100644 --- a/wms_pro/hd/nladmin-system/src/main/java/org/nl/wms/dispatch_manage/task/handler/impl/InStorageTask.java +++ b/wms_pro/hd/nladmin-system/src/main/java/org/nl/wms/dispatch_manage/task/handler/impl/InStorageTask.java @@ -43,8 +43,8 @@ public class InStorageTask extends AbstractTask { @Override public JSONObject createTask(JSONObject from) { - String vehicle_code = "Z00004035"; - String struct_code = "L01-22-33"; + String vehicle_code = from.getString("vehicle_code"); + String struct_code = from.getJSONObject("form_data").getString("end_struct_code"); String start_point = from.getString("start_point"); String task_type = from.getString("task_type"); if (StringUtils.isEmpty(vehicle_code) ||StringUtils.isEmpty(start_point)||StringUtils.isEmpty(struct_code)){ diff --git a/wms_pro/qd/src/views/wms/pm_manage/feedback_data/index.vue b/wms_pro/qd/src/views/wms/pm_manage/feedback_data/index.vue index d43df26d..16f139d6 100644 --- a/wms_pro/qd/src/views/wms/pm_manage/feedback_data/index.vue +++ b/wms_pro/qd/src/views/wms/pm_manage/feedback_data/index.vue @@ -224,7 +224,7 @@ { this.cols = res }) @@ -331,6 +332,21 @@ export default { this.crud.toQuery() }) }, + setDefaultDate() { + const now = new Date() + const lastWeek = new Date() + lastWeek.setDate(now.getDate() - 3) + const format = (date, time) => { + const yyyy = date.getFullYear() + const mm = String(date.getMonth() + 1).padStart(2, '0') + const dd = String(date.getDate()).padStart(2, '0') + return `${yyyy}-${mm}-${dd} ${time}` + } + const start_time = format(lastWeek, '00:00:00') + const end_time = format(now, '23:59:59') + this.query.start_time = start_time + this.query.end_time = end_time + }, handleCurrentChange(currentRow) { if (currentRow === null) { this.dis_flag = true diff --git a/wms_pro/qd/src/views/wms/stor_manage/out/AddDialog.vue b/wms_pro/qd/src/views/wms/stor_manage/out/AddDialog.vue index 8675df1e..c89932fd 100644 --- a/wms_pro/qd/src/views/wms/stor_manage/out/AddDialog.vue +++ b/wms_pro/qd/src/views/wms/stor_manage/out/AddDialog.vue @@ -25,11 +25,13 @@ + + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + @@ -163,7 +163,7 @@ - + - - - - - - - - - + + + + + + + + + +