From 46f0794372bb79dedfbb1d7f0a34081cf06204ce Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期五, 22 八月 2025 14:58:25 +0800
Subject: [PATCH] 增加堆垛机召回功能
---
项目代码/WCS/WIDESEAWCS_Client/src/extension/taskinfo/task.js | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 47 insertions(+), 0 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Client/src/extension/taskinfo/task.js" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Client/src/extension/taskinfo/task.js"
index 8db2354..58554a2 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Client/src/extension/taskinfo/task.js"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Client/src/extension/taskinfo/task.js"
@@ -43,6 +43,53 @@
}
});
+ var btnTaskComplete = this.buttons.find(x => x.value == "TaskCompleted");
+ if (btnTaskComplete != null) {
+ btnTaskComplete.onClick = () => {
+ let row = this.$refs.table.getSelected() //鑾峰彇閫変腑鐨勮
+ if (row <= 0) {
+ //濡傛灉娌℃湁閫変腑琛�
+ this.$Message.error('璇烽�夋嫨涓�琛屾暟鎹�')
+ return
+ }
+ let taskNum = row[0].taskNum
+ this.http.post(`/api/Task/TaskComplete?taskNum=${taskNum}`, {}, "姝e湪瀹屾垚浠诲姟")
+ .then((x) => {
+ if (x.status) {
+ this.$Message.success('鎴愬姛.');
+ this.refresh();
+ } else {
+ return this.$error(x.message);
+ this.refresh();
+ }
+ });
+ }
+ }
+
+ var btnTaskCancel = this.buttons.find(x => x.value == "TaskCancel");
+ if (btnTaskCancel != null) {
+ btnTaskCancel.onClick = () => {
+ let row = this.$refs.table.getSelected() //鑾峰彇閫変腑鐨勮
+ if (row <= 0) {
+ //濡傛灉娌℃湁閫変腑琛�
+ this.$Message.error('璇烽�夋嫨涓�琛屾暟鎹�')
+ return
+ }
+ let taskNum = row[0].taskNum
+ this.http.post(`/api/Task/HandTaskCancel?taskNum=${taskNum}`, {}, "姝e湪鍙栨秷浠诲姟")
+ .then((x) => {
+ if (x.status) {
+ this.$Message.success('鎴愬姛.');
+ this.refresh();
+ } else {
+ return this.$error(x.message);
+ this.refresh();
+ }
+ });
+ }
+ }
+
+
},
onInited() {
//妗嗘灦鍒濆鍖栭厤缃悗
--
Gitblit v1.9.3