From 8745be5d72c3056cc8ea5f7ea7e5b7631a588b84 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期四, 04 十二月 2025 09:56:19 +0800
Subject: [PATCH] 1

---
 项目代码/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx |   30 ++++++++++++++++++++++++------
 1 files changed, 24 insertions(+), 6 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx"
index 0bb9578..ba77333 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx"
@@ -48,12 +48,30 @@
       //     })
       //   }
       // });
+      var DoubleTrayBtn = this.buttons.find(x => x.value == "DoubleTray");
+        if (DoubleTrayBtn != null) {
+          DoubleTrayBtn.onClick = () => {
+                let rows = this.$refs.table.getSelected();
+                if (rows.length == 0) return this.$error("璇烽�夋嫨鏁版嵁!");
+                if (rows.length >1) return this.$error("璇烽�夋嫨鏁版嵁!");
+                this.http.post(`/api/Task/OutBoundTaskAsync?palletCode=${rows[0].palletCode}&remark=${""}&doubleTray=${1}`, {}, '鏁版嵁澶勭悊涓�...')
+                    .then((x) => {
+                        if (x.status) {
+                            this.$Message.success('鎴愬姛.');
+                            this.refresh();
+                        } else {
+                            return this.$error(x.message);
+                        }
+                    });
+            }
+        }
+      
       this.boxButtons.push({
         name: '纭畾鍑哄簱', //鎸夐挳鍚嶇О
         type: 'danger',
         icon: 'el-icon-check',
         disabled: false,
-        plain: true,
+        plain: false,
         onClick: function () {
           if (this.editFormFields.remark == '鍏朵粬鍑哄簱') {
             this.$confirm('鏄惁鍏朵粬鍑哄簱', '璀﹀憡', {
@@ -183,11 +201,11 @@
       })
       //绀轰緥锛氳缃慨鏀规柊寤恒�佺紪杈戝脊鍑烘瀛楁鏍囩鐨勯暱搴�
       this.boxOptions.labelWidth = 150
-      this.buttons.forEach((btn) => {
-        if (btn.name == '缂栬緫') {
-          btn.hidden = true
-        }
-      })
+      // this.buttons.forEach((btn) => {
+      //   if (btn.name == '缂栬緫') {
+      //     btn.hidden = true
+      //   }
+      // })
       this.boxButtons.forEach((btn) => {
         if (btn.name == '淇� 瀛�') {
           btn.hidden = true

--
Gitblit v1.9.3