From c96b149557eb570ec3ae28e0d0c03adef734766a Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期二, 21 四月 2026 15:20:35 +0800
Subject: [PATCH] feat: 添加机械手选择功能并优化MES请求处理

---
 Code/WMS/WIDESEA_WMSClient/src/extension/stock/stockInfo.jsx |   26 ++++++++++++++++++++++++--
 1 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/Code/WMS/WIDESEA_WMSClient/src/extension/stock/stockInfo.jsx b/Code/WMS/WIDESEA_WMSClient/src/extension/stock/stockInfo.jsx
index 809dd5f..6d53e9c 100644
--- a/Code/WMS/WIDESEA_WMSClient/src/extension/stock/stockInfo.jsx
+++ b/Code/WMS/WIDESEA_WMSClient/src/extension/stock/stockInfo.jsx
@@ -1,10 +1,11 @@
 //姝s鏂囦欢鏄敤鏉ヨ嚜瀹氫箟鎵╁睍涓氬姟浠g爜锛屽彲浠ユ墿灞曚竴浜涜嚜瀹氫箟椤甸潰鎴栬�呴噸鏂伴厤缃敓鎴愮殑浠g爜
+import RobotSelect from './extend/RobotSelect.vue';
 
 let extension = {
   components: {
     //鏌ヨ鐣岄潰鎵╁睍缁勪欢
     gridHeader: '',
-    gridBody: '',
+    gridBody: RobotSelect,
     gridFooter: '',
     //鏂板缓銆佺紪杈戝脊鍑烘鎵╁睍缁勪欢
     modelHeader: '',
@@ -28,6 +29,11 @@
               <el-button
                 type="primary"
                 size="small"
+                onClick={($e) => { this.handleBind(row); }}
+              >缁戝畾</el-button>
+              <el-button
+                type="primary"
+                size="small"
                 onClick={($e) => { this.handleInbound(row); }}
               >杩涚珯</el-button>
               <el-button
@@ -36,10 +42,21 @@
                 style="margin-left: 8px"
                 onClick={($e) => { this.handleOutbound(row); }}
               >鍑虹珯</el-button>
+              <el-button
+                type="success"
+                size="small"
+                style="margin-left: 8px"
+                onClick={($e) => { this.handleUnbind(row); }}
+              >瑙g粦</el-button>
             </div>
           );
         }
       });
+    },
+
+    // 鎵樼洏缁勭洏鎿嶄綔
+    handleBind(row) {
+      this.$refs.gridBody.open('bind', row);
     },
 
     // 鎵樼洏杩涚珯鎿嶄綔
@@ -96,6 +113,11 @@
       }
     },
 
+    // 鎵樼洏鎷嗙洏鎿嶄綔
+    handleUnbind(row) {
+      this.$refs.gridBody.open('unbind', row);
+    },
+
     onInited() {
       // 妗嗘灦鍒濆鍖栭厤缃悗
     },
@@ -103,7 +125,7 @@
       return true;
     },
     searchAfter(result) {
-      return true;
+      return result;
     },
     addBefore(formData) {
       return true;

--
Gitblit v1.9.3