From d1df8e56fd794ec9a71a2fbd6aadbab72d1e0815 Mon Sep 17 00:00:00 2001
From: 647556386 <647556386@qq.com>
Date: 星期五, 19 十二月 2025 14:51:46 +0800
Subject: [PATCH] 1

---
 项目代码/WIDESEA_WMSClient/src/extension/outbound/outboundOrder.js |   46 +++++++++++++++++++++-------------------------
 1 files changed, 21 insertions(+), 25 deletions(-)

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 7064ffe..b6c25b0 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"
@@ -3,7 +3,6 @@
 import http from '@/api/http.js'
 import { h, createVNode, render, reactive, ref } from 'vue';
 import { ElDialog, ElForm, ElFormItem, ElInput, ElButton, ElMessage, ElSelect, ElOption } from 'element-plus';
-
 import gridBody from './extend/outOrderDetail.vue'
 import gridHeader from './extend/NoStockOut.vue'
 import gridFooter from './extend/EmptyTrayOutbound.vue'
@@ -325,8 +324,6 @@
             table.clearSelection();
             table.toggleRowSelection(row, true);
           }
-          const rowId = row.id;
-          console.log(rowId);
           this.$refs.gridBody.open(row);
         }
       });
@@ -340,23 +337,26 @@
           if (!selectedRows || selectedRows.length === 0) {
             return _this.$Message.warning('璇峰厛閫夋嫨闇�瑕佸鐞嗙殑鍗曟嵁');
           }
-          const requestParams = {
-            orderNos: selectedRows.map(row => row.orderNo), 
-            inout: 2
-          };
+          if (selectedRows.length > 1) {
+            return _this.$Message.warning('璇烽�夋嫨涓�鏉℃暟鎹�');
+          }
+          // const requestParams = {
+          //   orderNos: selectedRows.map(row => row.orderNo), 
+          //   inout: 2
+          // };
           _this.http
-            .post("api/InboundOrder/BatchOrderFeedbackToMes", requestParams, "鏁版嵁澶勭悊涓�...")
+            .post(`api/MesFeedback/OutboundFeedback?orderNo=${selectedRows[0].orderNo}`, {}, "鏁版嵁澶勭悊涓�...")
             .then((x) => {
               if (x.status) {
                 _this.$Message.success('鍒嗘壒鍑哄簱鍥炶皟瀹屾垚');
                 _this.refresh();
               } else {
-                return _this.$Message.error(x.message);
+                return _this.$Message.error('鍒嗘壒鍑哄簱鍥炶皟澶辫触');
               }
             })
             .catch((error) => {
               // 澧炲姞寮傚父鎹曡幏锛屽鐞嗙綉缁滈敊璇瓑鎯呭喌
-              _this.$Message.error('璇锋眰澶辫触锛�' + (error.message || '鏈煡閿欒'));
+              //_this.$Message.error('璇锋眰澶辫触锛�' + (error.message || '鏈煡閿欒'));
             });
         };
       }
@@ -367,12 +367,14 @@
         }
       }
 
+
+
       var EmptyTrayOutboundBtn = this.buttons.find(x => x.value == "EmptyTrayOutbound");
-        if (EmptyTrayOutboundBtn != null) {
-          EmptyTrayOutboundBtn.onClick = () => {
-               this.$refs.gridFooter.open();
-            }
+      if (EmptyTrayOutboundBtn != null) {
+        EmptyTrayOutboundBtn.onClick = () => {
+          this.$refs.gridFooter.open();
         }
+      }
 
     },
     onInited() {
@@ -381,19 +383,9 @@
       //this.detailOptions.columns.forEach(column=>{ });
     },
     searchBefore(param) {
+
       //鐣岄潰鏌ヨ鍓�,鍙互缁檖aram.wheres娣诲姞鏌ヨ鍙傛暟
       //杩斿洖false锛屽垯涓嶄細鎵ц鏌ヨ
-
-      let wheres = [{
-        'name': 'orderType',
-        'value': ['0','116'],
-        'displayType': 'text'
-      }];
-
-
-      param.wheres.push(...wheres);
-      return true;
-
       return true;
     },
     searchAfter(result) {
@@ -413,6 +405,10 @@
       this.$refs.table.$refs.table.toggleRowSelection(row); //鍗曞嚮琛屾椂閫変腑褰撳墠琛�;
     },
     modelOpenAfter(row) {
+      if (this.currentAction === 'Add') { // 鍒ゆ柇褰撳墠鏄柊寤烘搷浣�
+        const currentUser = this.$store.state.userInfo?.userTrueName || 'system';
+        this.editFormFields.operator = currentUser;
+      }
       //鐐瑰嚮缂栬緫銆佹柊寤烘寜閽脊鍑烘鍚庯紝鍙互鍦ㄦ澶勫啓閫昏緫锛屽锛屼粠鍚庡彴鑾峰彇鏁版嵁
       //(1)鍒ゆ柇鏄紪杈戣繕鏄柊寤烘搷浣滐細 this.currentAction=='Add';
       //(2)缁欏脊鍑烘璁剧疆榛樿鍊�

--
Gitblit v1.9.3