From 9429653e8def2729014b45c7c75ec76e9aa6685b Mon Sep 17 00:00:00 2001 From: dengjunjie <dengjunjie@hnkhzn.com> Date: 星期四, 12 六月 2025 17:13:48 +0800 Subject: [PATCH] 优化堆垛机交互逻辑 --- 代码管理/WMS/WIDESEA_WMSClient/src/extension/taskinfo/task.js | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/taskinfo/task.js" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/taskinfo/task.js" index 6e5cf35..cc5c8b9 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/taskinfo/task.js" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/taskinfo/task.js" @@ -21,13 +21,14 @@ if (TaskHandCancelBtn) { TaskHandCancelBtn.onClick = function () { let rows = this.$refs.table.getSelected(); - if (rows.length == 0) return this.$error("璇烽�夋嫨鏁版嵁!"); + if (rows.length == 0) return this.$error("璇烽�夋嫨闇�瑕佸彇娑堜换鍔�!"); + if (rows.length > 1) return this.$error("璇烽�夋嫨涓�鏉′换鍔�!"); var param = rows[0].taskNum; this.http - .post("api/Task/TaskCancel?taskNum="+param, "鏁版嵁澶勭悊涓�...") + .post("api/Task/TaskCancel?taskNum="+param, "浠诲姟澶勭悊涓�...") .then((x) => { if (x.status) { - this.$Message.success('浠诲姟鍙栨秷鎴愬姛.'); + this.$Message.success('浠诲姟鍙栨秷鎴愬姛'); this.refresh(); } else { return this.$error(x.message); @@ -39,13 +40,14 @@ if (TaskHandCompletedBtn) { TaskHandCompletedBtn.onClick = function () { let rows = this.$refs.table.getSelected(); - if (rows.length == 0) return this.$error("璇烽�夋嫨鏁版嵁!"); + if (rows.length == 0) return this.$error("璇烽�夋嫨闇�瑕佸畬鎴愪换鍔�!"); + if (rows.length > 1) return this.$error("璇烽�夋嫨涓�鏉′换鍔�!"); var param = rows[0].taskNum; this.http - .post("api/Task/TaskCompleted?taskNum="+param, "鏁版嵁澶勭悊涓�...") + .post("api/Task/TaskCompleted?taskNum="+param, "浠诲姟澶勭悊涓�...") .then((x) => { if (x.status) { - this.$Message.success('浠诲姟鎵嬪姩瀹屾垚'); + this.$Message.success('浠诲姟瀹屾垚鎴愬姛'); this.refresh(); } else { return this.$error(x.message); -- Gitblit v1.9.3