From d01658c63cd541fe4ea5cec5c4bd7f23b9408cdb Mon Sep 17 00:00:00 2001
From: 647556386 <647556386@qq.com>
Date: 星期六, 18 十月 2025 15:04:56 +0800
Subject: [PATCH] 前端,pda,后端接口更改,新增,优化

---
 WMS/WIDESEA_WMSClient/src/extension/outbound/outboundOrderDetail.js |   41 ++++++++++++++++++++++++++++++++++++-----
 1 files changed, 36 insertions(+), 5 deletions(-)

diff --git a/WMS/WIDESEA_WMSClient/src/extension/outbound/outboundOrderDetail.js b/WMS/WIDESEA_WMSClient/src/extension/outbound/outboundOrderDetail.js
index 24e1d94..fd3c673 100644
--- a/WMS/WIDESEA_WMSClient/src/extension/outbound/outboundOrderDetail.js
+++ b/WMS/WIDESEA_WMSClient/src/extension/outbound/outboundOrderDetail.js
@@ -1,6 +1,3 @@
-
-//姝s鏂囦欢鏄敤鏉ヨ嚜瀹氫箟鎵╁睍涓氬姟浠g爜锛屽彲浠ユ墿灞曚竴浜涜嚜瀹氫箟椤甸潰鎴栬�呴噸鏂伴厤缃敓鎴愮殑浠g爜
-
 let extension = {
     components: {
       //鏌ヨ鐣岄潰鎵╁睍缁勪欢
@@ -15,8 +12,43 @@
     tableAction: '', //鎸囧畾鏌愬紶琛ㄧ殑鏉冮檺(杩欓噷濉啓琛ㄥ悕,榛樿涓嶇敤濉啓)
     buttons: { view: [], box: [], detail: [] }, //鎵╁睍鐨勬寜閽�
     methods: {
-       //涓嬮潰杩欎簺鏂规硶鍙互淇濈暀涔熷彲浠ュ垹闄�
       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.$confirm("鏄惁纭鍑哄簱","鍑哄簱鎿嶄綔纭",{
+              confirmButtonText: "纭畾",
+              cancelButtonText: "鍙栨秷",
+              type: "warning",
+              center: true,
+              }).then(() => {
+                let rows = this.$refs.table.getSelected();
+                if (rows.length == 0) return this.$error("璇烽�夋嫨鏁版嵁!");
+                if (rows.length > 1) return this.$error("璇烽�夋嫨涓�鏉℃暟鎹�!");
+                const keys = rows.map(row => row.id);
+                // 鍙戦�丳OST璇锋眰锛屽皢ID鏁扮粍浣滀负璇锋眰浣撳彂閫�
+                this.http
+                .post("api/Task/WMSGenerateOutboundTask", keys, "鏁版嵁澶勭悊涓�...")
+                .then((x) => {
+                    if (x.status) {
+                    this.$Message.success('鎿嶄綔鎴愬姛');
+                    this.refresh();
+                  } else {
+                    return this.$error(x.message);
+                  }
+                });
+              });
+          }
+      });
       },
       onInited() {
         //妗嗘灦鍒濆鍖栭厤缃悗
@@ -55,4 +87,3 @@
     }
   };
   export default extension;
-  
\ No newline at end of file

--
Gitblit v1.9.3