From a647de5665411f706beddc5e0ff7b3a3daaca4fc Mon Sep 17 00:00:00 2001
From: xiazhengtongxue <133085197+xiazhengtongxue@users.noreply.github.com>
Date: 星期六, 24 一月 2026 11:11:57 +0800
Subject: [PATCH] 前端页面优化和大屏

---
 项目代码/WMS/WIDESEA_WMSClient/src/extension/taskinfo/task.js |   67 +++++++++++++++++++++++----------
 1 files changed, 46 insertions(+), 21 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/taskinfo/task.js" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/taskinfo/task.js"
index 46e253d..993f28b 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/taskinfo/task.js"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/taskinfo/task.js"
@@ -59,20 +59,20 @@
         }
       }
 
-      this.columns.forEach(x => {
-        if (x.field == "palletType") {
-          x.render = (h, { row, column, index }) => {
-            if ((row.roadway == "1" || row.roadway == "2") && row.palletType=="1") {
-              return h('span',"甯冩枡");
-            }else if((row.roadway == "1" || row.roadway == "2") && row.palletType=="2"){
-                  return h('span',"鏉惧竷鏂�");
-            }else{
-              return h('span',"鎴愬搧");
-            }
+      // this.columns.forEach(x => {
+      //   if (x.field == "palletType") {
+      //     x.render = (h, { row, column, index }) => {
+      //       if ((row.roadway == "1" || row.roadway == "2") && row.palletType == "1") {
+      //         return h('span', "甯冩枡");
+      //       } else if ((row.roadway == "1" || row.roadway == "2") && row.palletType == "2") {
+      //         return h('span', "鏉惧竷鏂�");
+      //       } else {
+      //         return h('span', "鎴愬搧");
+      //       }
 
-          }
-        }
-      });
+      //     }
+      //   }
+      // });
 
 
       //鎵嬪姩涓婁紶鎸夐挳
@@ -80,27 +80,52 @@
       if (ManualUploadBtn != null) {
         ManualUploadBtn.onClick = () => {
           let rows = this.$refs.table.getSelected();
-          if (rows.length == 0) {
-            return this.$error("璇烽�夋嫨鏁版嵁!");
-          } else {
-            var ids = rows.map(x => {
-              return  x.taskId
+          if (rows.length == 0) return this.$error("璇烽�夋嫨鏁版嵁!");
+          if (rows.length > 1) return this.$error("璇烽�夋嫨涓�鏉℃暟鎹�!");
+          var ids = rows.map(x => {
+            return x.taskId
+          })
+          var param = {
+            DelKeys: ids, //taskNo
+            Extra: true
+          }
+          this.http
+            .post("api/Task/MESManualUpload", param, "鏁版嵁澶勭悊涓�...")
+            .then((x) => {
+              if (x.status) {
+                this.$Message.success(x.message);
+                this.refresh();
+              } else {
+                return this.$error(x.message);
+              }
+            });
+        }
+      }
+
+      //浠诲姟鎭㈠鎸夐挳
+      var TaskRecoveryBtn = this.buttons.find(x => x.value == "TaskRecovery");
+      if (TaskRecoveryBtn != null) {
+        TaskRecoveryBtn.onClick = () => {
+          let rows = this.$refs.table.getSelected();
+          if (rows.length == 0) return this.$error("璇烽�夋嫨鏁版嵁!");
+          if (rows.length > 1) return this.$error("璇烽�夋嫨涓�鏉℃暟鎹�!");
+          var ids = rows.map(x => {
+              return x.taskId
             })
             var param = {
               DelKeys: ids, //taskNo
               Extra: true
             }
             this.http
-              .post("api/Task/MESManualUpload", param, "鏁版嵁澶勭悊涓�...")
+              .post("api/Task/WMSTaskRecovery", param, "鏁版嵁澶勭悊涓�...")
               .then((x) => {
                 if (x.status) {
-                  this.$Message.success('鎴愬姛.');
+                  this.$Message.success(x.message);
                   this.refresh();
                 } else {
                   return this.$error(x.message);
                 }
               });
-          }
         }
       }
 

--
Gitblit v1.9.3