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 |   53 ++++++-----------------------------------------------
 1 files changed, 6 insertions(+), 47 deletions(-)

diff --git a/Code/WMS/WIDESEA_WMSClient/src/extension/stock/stockInfo.jsx b/Code/WMS/WIDESEA_WMSClient/src/extension/stock/stockInfo.jsx
index 0885fc8..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: '',
@@ -54,29 +55,8 @@
     },
 
     // 鎵樼洏缁勭洏鎿嶄綔
-    async handleBind(row) {
-      try {
-        await this.$confirm(`纭鎵ц鎵樼洏缁勭洏鎿嶄綔锛焅n鎵樼洏缂栧彿锛�${row.palletCode}`, "缁勭洏纭", {
-          confirmButtonText: "纭",
-          cancelButtonText: "鍙栨秷",
-          type: "warning"
-        });
-
-        const result = await this.http.post("/api/StockInfoDetail/BindContainer", {
-          palletCode: row.palletCode
-        }, "姝e湪璋冪敤MES鎺ュ彛...");
-
-        if (result.status) {
-          this.$Message.success(result.message || "鎵樼洏缁勭洏鎴愬姛");
-          this.$refs.table.load();
-        } else {
-          this.$error(result.message || "鎵樼洏缁勭洏澶辫触");
-        }
-      } catch (error) {
-        if (error !== "cancel") {
-          this.$error(error.message || "缃戠粶閿欒锛岃绋嶅悗閲嶈瘯");
-        }
-      }
+    handleBind(row) {
+      this.$refs.gridBody.open('bind', row);
     },
 
     // 鎵樼洏杩涚珯鎿嶄綔
@@ -134,29 +114,8 @@
     },
 
     // 鎵樼洏鎷嗙洏鎿嶄綔
-    async handleUnbind(row) {
-      try {
-        await this.$confirm(`纭鎵ц鎵樼洏鎷嗙洏鎿嶄綔锛焅n鎵樼洏缂栧彿锛�${row.palletCode}`, "鎷嗙洏纭", {
-          confirmButtonText: "纭",
-          cancelButtonText: "鍙栨秷",
-          type: "warning"
-        });
-
-        const result = await this.http.post("/api/StockInfoDetail/UnbindContainer", {
-          palletCode: row.palletCode,
-        }, "姝e湪璋冪敤MES鎺ュ彛...");
-
-        if (result.status) {
-          this.$Message.success(result.message || "鎵樼洏鎷嗙洏鎴愬姛");
-          this.$refs.table.load();
-        } else {
-          this.$error(result.message || "鎵樼洏鎷嗙洏澶辫触");
-        }
-      } catch (error) {
-        if (error !== "cancel") {
-          this.$error(error.message || "缃戠粶閿欒锛岃绋嶅悗閲嶈瘯");
-        }
-      }
+    handleUnbind(row) {
+      this.$refs.gridBody.open('unbind', row);
     },
 
     onInited() {

--
Gitblit v1.9.3