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 @@
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -94,6 +82,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
@@ -163,7 +163,7 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -300,6 +301,7 @@ export default {
tableData: [],
dialogVisible: false,
materShow: false,
+ unit_id: 'MX005',
id: '',
formShow: false,
dtlShow: false,
@@ -322,6 +324,7 @@ export default {
}
},
methods: {
+
setForm(row) {
this.id = row.form.id
},
diff --git a/wms_pro/qd/src/views/wms/stor_manage/out/ViewDialog.vue b/wms_pro/qd/src/views/wms/stor_manage/out/ViewDialog.vue
index 93f98ca0..a1966ffe 100644
--- a/wms_pro/qd/src/views/wms/stor_manage/out/ViewDialog.vue
+++ b/wms_pro/qd/src/views/wms/stor_manage/out/ViewDialog.vue
@@ -87,18 +87,19 @@
@current-change="handleDtlCurrentChange"
>
+
+
+
+
-
+
-
-
-
{{ scope.row.form_data[item.value] }}
diff --git a/wms_pro/qd/src/views/wms/stor_manage/out/index.vue b/wms_pro/qd/src/views/wms/stor_manage/out/index.vue
index 0c1b16a2..1001fbdf 100644
--- a/wms_pro/qd/src/views/wms/stor_manage/out/index.vue
+++ b/wms_pro/qd/src/views/wms/stor_manage/out/index.vue
@@ -278,7 +278,23 @@ export default {
this.$set(this.query, 'form_query', {})
},
methods: {
+ 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
+ },
[CRUD.HOOK.beforeRefresh]() {
+ this.setDefaultDate()
formstruc.getHeader('st_ivt_iostorinv_out').then(res => {
this.cols = res
})