From 46371469c1396e2c563ab1be8ae91e62ff7d6b74 Mon Sep 17 00:00:00 2001
From: 647556386 <647556386@qq.com>
Date: 星期一, 01 十二月 2025 14:55:57 +0800
Subject: [PATCH] 按钮

---
 项目代码/WIDESEA_WMSClient/src/extension/outbound/outboundOrder.js |   30 ++++++++++++++++++++++++++++++
 项目代码/WIDESEA_WMSClient/config/buttons.js                       |   10 ++++++++++
 2 files changed, 40 insertions(+), 0 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/config/buttons.js" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/config/buttons.js"
index 11b7c6b..7858dfc 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/config/buttons.js"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/config/buttons.js"
@@ -190,6 +190,16 @@
     onClick: function () {
     }
 },
+
+{
+    name: "鍒嗘嫞鍑哄簱鍥炰紶MES",
+    icon: 'el-icon-setting',
+    class: '',
+    value: 'BatchOrderFeedbackToMes',
+    type: 'success',
+    onClick: function () {
+    }
+},
 ]
 
 export default buttons
\ No newline at end of file
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/outbound/outboundOrder.js" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/outbound/outboundOrder.js"
index 361b25c..f9549a1 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/outbound/outboundOrder.js"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/outbound/outboundOrder.js"
@@ -327,6 +327,36 @@
           this.$refs.gridBody.open(row);
         }
       });
+      let BatchOrderFeedbackToMesBtn = this.buttons.find(x => x.value == 'BatchOrderFeedbackToMes');
+      if (BatchOrderFeedbackToMesBtn) {
+        const _this = this;
+        BatchOrderFeedbackToMesBtn.onClick = function () {
+          let selectedRows = _this.$refs.table.getSelected();
+
+          // 鏍¢獙鏄惁鏈夐�変腑鏁版嵁
+          if (!selectedRows || selectedRows.length === 0) {
+            return _this.$Message.warning('璇峰厛閫夋嫨闇�瑕佸鐞嗙殑鍗曟嵁');
+          }
+          const requestParams = {
+            orderNos: selectedRows.map(row => row.orderNo), 
+            inout: 2
+          };
+          _this.http
+            .post("api/InboundOrder/BatchOrderFeedbackToMes", requestParams, "鏁版嵁澶勭悊涓�...")
+            .then((x) => {
+              if (x.status) {
+                _this.$Message.success('鍒嗘嫞鍑哄簱鍥炶皟瀹屾垚');
+                _this.refresh();
+              } else {
+                return _this.$Message.error(x.message);
+              }
+            })
+            .catch((error) => {
+              // 澧炲姞寮傚父鎹曡幏锛屽鐞嗙綉缁滈敊璇瓑鎯呭喌
+              _this.$Message.error('璇锋眰澶辫触锛�' + (error.message || '鏈煡閿欒'));
+            });
+        };
+      }
       let TaskHandCompletedBtn = this.buttons.find(x => x.value == 'NoStockOut');
       if (TaskHandCompletedBtn) {
         TaskHandCompletedBtn.onClick = function () {

--
Gitblit v1.9.3