From edc7293bf81729ebaa2d7cdd9a1f3aeaf567f538 Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期三, 31 十二月 2025 17:32:08 +0800
Subject: [PATCH] 更新

---
 项目代码/WMS/WMSClient/src/extension/taskinfo/task.js |   38 +++++++++++++++++++++++++++++++++++---
 1 files changed, 35 insertions(+), 3 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/extension/taskinfo/task.js" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/extension/taskinfo/task.js"
index 50ec494..dc4970b 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/extension/taskinfo/task.js"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/extension/taskinfo/task.js"
@@ -1,10 +1,10 @@
 
 //姝s鏂囦欢鏄敤鏉ヨ嚜瀹氫箟鎵╁睍涓氬姟浠g爜锛屽彲浠ユ墿灞曚竴浜涜嚜瀹氫箟椤甸潰鎴栬�呴噸鏂伴厤缃敓鎴愮殑浠g爜
-
+import gridHeader from './extend/relocationTask.vue'
 let extension = {
     components: {
       //鏌ヨ鐣岄潰鎵╁睍缁勪欢
-      gridHeader: '',
+      gridHeader: gridHeader,
       gridBody: '',
       gridFooter: '',
       //鏂板缓銆佺紪杈戝脊鍑烘鎵╁睍缁勪欢
@@ -50,7 +50,7 @@
                 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('浠诲姟鎵嬪姩瀹屾垚');
@@ -62,6 +62,38 @@
               });
         }
       }
+      let ResendTaskBtn = this.buttons.find(x => x.value == 'ResendTask');
+      if (ResendTaskBtn) {
+        ResendTaskBtn.onClick = function () {
+          this.$confirm("鏄惁纭閲嶆柊涓嬪彂浠诲姟","閲嶆柊涓嬪彂浠诲姟璀﹀憡",{
+              confirmButtonText: "纭畾",
+              cancelButtonText: "鍙栨秷",
+              type: "warning",
+              center: true,
+              }).then(() => {
+                let rows = this.$refs.table.getSelected();
+                if (rows.length == 0) return this.$error("璇烽�夋嫨鏁版嵁!");
+                if (rows.length > 1) return this.$error("璇烽�夋嫨涓�鏉℃暟鎹�!");
+                var param = rows[0].taskNum;
+                this.http
+                .post("api/Task/ResendTask?taskNum="+param, "")
+                .then((x) => {
+                    if (x.status) {
+                    this.$Message.success('浠诲姟閲嶆柊涓嬪彂');
+                    this.refresh();
+                  } else {
+                    return this.$error(x.message);
+                  }
+                });
+              });
+        }
+      }
+      let relocationBtn = this.buttons.find(x => x.value == 'Relocation');
+      if (relocationBtn) {
+        relocationBtn.onClick = function () {
+          this.$refs.gridHeader.open();
+        }
+      }
       },
       onInited() {
         //妗嗘灦鍒濆鍖栭厤缃悗

--
Gitblit v1.9.3