From 60a50d7a976f33a172421546fd891f33a21043e5 Mon Sep 17 00:00:00 2001
From: yanjinhui <3306209981@qq.com>
Date: 星期三, 29 十月 2025 11:50:22 +0800
Subject: [PATCH] 优化

---
 新建文件夹/WMS/src/extension/outbound/outboundOrder.js |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WMS/src/extension/outbound/outboundOrder.js" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WMS/src/extension/outbound/outboundOrder.js"
index aace3e5..ac5be69 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WMS/src/extension/outbound/outboundOrder.js"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WMS/src/extension/outbound/outboundOrder.js"
@@ -1,6 +1,7 @@
 
 //姝s鏂囦欢鏄敤鏉ヨ嚜瀹氫箟鎵╁睍涓氬姟浠g爜锛屽彲浠ユ墿灞曚竴浜涜嚜瀹氫箟椤甸潰鎴栬�呴噸鏂伴厤缃敓鎴愮殑浠g爜
 import gridBody from './extend/outOrderDetail.vue'
+import http from '../../api/http';
 let extension = {
     components: {
       //鏌ヨ鐣岄潰鎵╁睍缁勪欢
@@ -23,10 +24,12 @@
     Bt.onClick = function () {
       let rows = this.$refs.table.getSelected();
       if (rows.length == 0) return this.$error("璇烽�夋嫨鏁版嵁!");
-      const allIds = rows.map(item => item.id);
+      if (rows.length>1)return this.$error("鍙兘閫夋嫨涓�鏉℃暟鎹�")
+        const id=rows[0].id;
+      //const allIds = rows.map(item => item.id);
       
       // 杩欓噷娣诲姞浣犵殑涓氬姟閫昏緫
-      this.http.post("api/YourApi", allIds).then((x) => {
+      this.http.post(`/api/DeliveryOrder/FinishOutOrder?key=${id}`).then((x) => {
         if (x.status) {
           this.$Message.success('鎿嶄綔鎴愬姛');
           this.refresh();

--
Gitblit v1.9.3