From b513ce3a4527e998da66c6f179a279472c7262a8 Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期二, 18 十一月 2025 10:59:46 +0800
Subject: [PATCH] 代码更新优化

---
 项目代码/WMS/WMSClient/src/extension/outbound/outSGOrder.js |   49 ++++++++++++++++++++++++++++++++++++-------------
 1 files changed, 36 insertions(+), 13 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/extension/outbound/outSGOrder.js" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/extension/outbound/outSGOrder.js"
index ce5cafe..72eb4d1 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/extension/outbound/outSGOrder.js"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/extension/outbound/outSGOrder.js"
@@ -19,20 +19,43 @@
       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);
+            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 OutOrder = this.buttons.find(x => x.value == 'CreateSGManualTasks');
+        if (OutOrder) {
+          OutOrder.onClick = function () {
+            let rows = this.$refs.table.getSelected();
+            if (rows.length == 0) return this.$error("璇烽�夋嫨鏁版嵁!");
+            this.$confirm("纭瑕侀�夋嫨鐨勬暟鎹嚭搴撳槢鍚�?", "璀﹀憡", {
+              confirmButtonText: "纭畾",
+              cancelButtonText: "鍙栨秷",
+              type: "warning",
+              center: true,
+            }).then(() => {
+              var keys = rows.map((x) => x.id);
+              this.http
+                .post("api/Task/CreateSGManualTasks?", keys, "鏁版嵁澶勭悊涓�")
+                .then((x) => {
+                  if (!x.status) return this.$message.error(x.message);
+                  this.$message.success("鎿嶄綔鎴愬姛");
+                  this.refresh();
+                });
+            });
           }
-      });
+        }
       },
       onInited() {
         //妗嗘灦鍒濆鍖栭厤缃悗

--
Gitblit v1.9.3