From ee96a7978ecf21f25abc3b87daa4e1577db18dd2 Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期日, 26 十月 2025 10:43:52 +0800
Subject: [PATCH] 1

---
 新建文件夹/WMS/src/extension/outbound/outboundOrder.js |   31 +++++++++++++++++--------------
 1 files changed, 17 insertions(+), 14 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 122b98c..aace3e5 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"
@@ -18,21 +18,24 @@
        //涓嬮潰杩欎簺鏂规硶鍙互淇濈暀涔熷彲浠ュ垹闄�
       onInit() {  
         //鎵╁睍椤甸潰鍒濆鍖栨搷浣�
-        this.columns.push({
-          field: '鎿嶄綔',
-          title: '鎿嶄綔',
-          width: 90,
-          fixed: 'right',
-          align: 'center',
-          formatter: (row) => {
-              return (
-                  '<i style="cursor: pointer;color: #2d8cf0;"class="el-icon-view">鏌ョ湅鏄庣粏</i>'
-              );
-          },
-          click: (row) => {
-              this.$refs.gridBody.open(row);
-          }
+       let Bt=this.buttons.find(x=>x.value=="Complete")
+        if(Bt){
+    Bt.onClick = function () {
+      let rows = this.$refs.table.getSelected();
+      if (rows.length == 0) return this.$error("璇烽�夋嫨鏁版嵁!");
+      const allIds = rows.map(item => item.id);
+      
+      // 杩欓噷娣诲姞浣犵殑涓氬姟閫昏緫
+      this.http.post("api/YourApi", allIds).then((x) => {
+        if (x.status) {
+          this.$Message.success('鎿嶄綔鎴愬姛');
+          this.refresh();
+        } else {
+          return this.$error(x.message);
+        }
       });
+    }
+  }
       },
       onInited() {
         //妗嗘灦鍒濆鍖栭厤缃悗

--
Gitblit v1.9.3