diff --git a/wms/hd/nladmin-system/src/main/java/org/nl/wms/sch/tasks/AutoCleanUpLogs.java b/wms/hd/nladmin-system/src/main/java/org/nl/wms/sch/tasks/AutoCleanUpLogs.java
new file mode 100644
index 0000000..62cfb06
--- /dev/null
+++ b/wms/hd/nladmin-system/src/main/java/org/nl/wms/sch/tasks/AutoCleanUpLogs.java
@@ -0,0 +1,42 @@
+package org.nl.wms.sch.tasks;
+
+import cn.hutool.core.date.DateTime;
+import cn.hutool.core.date.DateUtil;
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import lombok.RequiredArgsConstructor;
+import lombok.extern.slf4j.Slf4j;
+import org.nl.wql.core.bean.WQLObject;
+import org.springframework.stereotype.Component;
+
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Executors;
+
+
+/**
+ * @author geng by
+ * 自动清理大于十五天的日志
+ */
+@Slf4j
+@Component
+@RequiredArgsConstructor
+public class AutoCleanUpLogs {
+
+ private ExecutorService threadPool = Executors.newCachedThreadPool();
+
+ public void run() throws Exception {
+ try {
+ System.out.println("开始清理日志");
+ // 0 0/10 0,1 * * ? * 每天0-1点执行间隔10分钟一次
+ //sys_log
+ //delete from sys_log where DATE(create_time) <= DATE(DATE_SUB(NOW(),INTERVAL 30 day)) limit 10;
+ WQLObject logTab = WQLObject.getWQLObject("sys_log");
+ String days = WQLObject.getWQLObject("sys_param").query("code='clean_day'").uniqueResult(0).getString("value");
+ logTab.delete("DATE(create_time) <= DATE(DATE_SUB(NOW(),INTERVAL '" + days + "' day))");
+ log.info("自动清理日志执行成功...!");
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+}
diff --git a/wms/qd/src/assets/images/background.jpg b/wms/qd/src/assets/images/background.jpg
index 69e6348..79d2685 100644
Binary files a/wms/qd/src/assets/images/background.jpg and b/wms/qd/src/assets/images/background.jpg differ
diff --git a/wms/qd/src/views/wms/md/material/index.vue b/wms/qd/src/views/wms/md/material/index.vue
index c577b92..e97a1e6 100644
--- a/wms/qd/src/views/wms/md/material/index.vue
+++ b/wms/qd/src/views/wms/md/material/index.vue
@@ -3,17 +3,27 @@
-
-
-
+
+
+
+
+
+
+
diff --git a/wms/qd/src/views/wms/md/materiallabel/index.vue b/wms/qd/src/views/wms/md/materiallabel/index.vue
index 8e1af7e..dc25f2a 100644
--- a/wms/qd/src/views/wms/md/materiallabel/index.vue
+++ b/wms/qd/src/views/wms/md/materiallabel/index.vue
@@ -3,17 +3,27 @@
-
-
-
+
+
+
+
+
+
+
@@ -96,7 +106,7 @@
-
+
diff --git a/wms/qd/src/views/wms/pdm/produceTask/index.vue b/wms/qd/src/views/wms/pdm/produceTask/index.vue
index 4d657bc..f742170 100644
--- a/wms/qd/src/views/wms/pdm/produceTask/index.vue
+++ b/wms/qd/src/views/wms/pdm/produceTask/index.vue
@@ -3,81 +3,69 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -215,7 +203,7 @@
>
-
-
+
+
-
+
-
-
-
-
-
- 完成
-
-
- 重发
- 详情
-
-
+ 完成
+ 详情
@@ -312,38 +310,28 @@ export default {
}
return ''
},
- beforeHandleCommand(index, row, command) {
- return {
- 'index': index,
- 'row': row,
- 'command': command
- }
- },
- handleCommand(command) {
+ doOperate(row, command) {
let method_name = ''
- switch (command.command) {
+ switch (command) {
case 'a':// 完成
method_name = 'forceFinish'
break
case 'b':// 取消
method_name = 'cancel'
break
- case 'c':// 拉回
- method_name = 'pullBack'
+ case 'c':// 下发
+ method_name = 'immediateNotifyAcs'
break
- case 'd':// 重发
- method_name = 'renotifyAcs'
- break
- case 'e':// 详情
+ case 'd':// 详情
method_name = 'view'
break
}
if (method_name === 'view') {
- this.view(command.row)
+ this.view(row)
return
}
const data = {
- task_uuid: command.row.task_uuid,
+ task_id: row.task_id,
method_name: method_name
}
crudTask.operation(data).then(res => {
diff --git a/wms/qd/src/views/wms/st/core/dumpinv/index.vue b/wms/qd/src/views/wms/st/core/dumpinv/index.vue
index 6385bf2..b22731e 100644
--- a/wms/qd/src/views/wms/st/core/dumpinv/index.vue
+++ b/wms/qd/src/views/wms/st/core/dumpinv/index.vue
@@ -3,33 +3,44 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
diff --git a/wms/qd/src/views/wms/st/core/emptyVehicle/index.vue b/wms/qd/src/views/wms/st/core/emptyVehicle/index.vue
index 8c24060..d149ad7 100644
--- a/wms/qd/src/views/wms/st/core/emptyVehicle/index.vue
+++ b/wms/qd/src/views/wms/st/core/emptyVehicle/index.vue
@@ -3,33 +3,44 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
diff --git a/wms/qd/src/views/wms/st/core/inbill/index.vue b/wms/qd/src/views/wms/st/core/inbill/index.vue
index 9ff2bc8..9305a39 100644
--- a/wms/qd/src/views/wms/st/core/inbill/index.vue
+++ b/wms/qd/src/views/wms/st/core/inbill/index.vue
@@ -3,32 +3,45 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/wms/qd/src/views/wms/st/core/outbill/index.vue b/wms/qd/src/views/wms/st/core/outbill/index.vue
index c2ba2aa..c2dcb25 100644
--- a/wms/qd/src/views/wms/st/core/outbill/index.vue
+++ b/wms/qd/src/views/wms/st/core/outbill/index.vue
@@ -3,32 +3,45 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/wms/qd/src/views/wms/st/pc/index.vue b/wms/qd/src/views/wms/st/pc/index.vue
index b8e0a8e..5740abb 100644
--- a/wms/qd/src/views/wms/st/pc/index.vue
+++ b/wms/qd/src/views/wms/st/pc/index.vue
@@ -3,32 +3,45 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -84,20 +97,25 @@
v-permission="['admin','instruction:edit','instruction:del']"
fixed="left"
label="操作"
- width="80px"
+ width="180px"
align="center"
>
-
-
-
-
-
- 删除
- 搬出
- 审核
-
-
+ 删除
+ 搬出
+ 审核
@@ -214,13 +232,6 @@ export default {
})
},
methods: {
- beforeHandleCommand(index, row, command) {
- return {
- 'index': index,
- 'row': row,
- 'command': command
- }
- },
handleClose(done) {
},
saveEvent() {
@@ -237,9 +248,8 @@ export default {
})
},
- handleCommand(command) {
- const row = command.row
- switch (command.command) {
+ handleCommand(row, command) {
+ switch (command) {
case 'a':// 删除
this.opt_delete(row)
break
diff --git a/wms/qd/src/views/wms/st/quality/index.vue b/wms/qd/src/views/wms/st/quality/index.vue
index 07549d6..4233013 100644
--- a/wms/qd/src/views/wms/st/quality/index.vue
+++ b/wms/qd/src/views/wms/st/quality/index.vue
@@ -3,31 +3,42 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -67,26 +78,58 @@
-
-
-
-
-
-
- 删除
- 搬出
- 通过
- 不通过
- 完成
- 出库
-
-
+
+ 删除
+ 搬出
+ 通过
+ 不通过
+ 完成
+ 出库
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -190,9 +233,8 @@ export default {
'command': command
}
},
- handleCommand(command) {
- const row = command.row
- switch (command.command) {
+ handleCommand(row, command) {
+ switch (command) {
case 'a':// 删除
this.opt_delete(row)
break
diff --git a/wms/qd/src/views/wms/st/struct/index.vue b/wms/qd/src/views/wms/st/struct/index.vue
index 1f0c7ac..b9958da 100644
--- a/wms/qd/src/views/wms/st/struct/index.vue
+++ b/wms/qd/src/views/wms/st/struct/index.vue
@@ -3,34 +3,47 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+