From 97a9ad53c6d1ac097f46f0b5d4d4d53547c9efe4 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期五, 21 十一月 2025 16:18:21 +0800
Subject: [PATCH] 1

---
 项目代码/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx |  107 +++++++++++++++++++++++++++++++++++------------------
 1 files changed, 70 insertions(+), 37 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 f175400..0bb9578 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"
@@ -49,54 +49,87 @@
       //   }
       // });
       this.boxButtons.push({
-        name: '鍏朵粬鍑哄簱', //鎸夐挳鍚嶇О
-        //icon: 'el-icon-document', //鎸夐挳鍥炬爣:缁勪欢绀轰緥->鍥炬爣
-        //primary銆乻uccess銆亀arning銆乪rror銆乮nfo銆乼ext銆乨anger
-        type: 'primary',
+        name: '纭畾鍑哄簱', //鎸夐挳鍚嶇О
+        type: 'danger',
+        icon: 'el-icon-check',
+        disabled: false,
         plain: true,
         onClick: function () {
-          this.$confirm('鏄惁鍏朵粬鍑哄簱', '璀﹀憡', {
-            confirmButtonText: '纭畾',
-            cancelButtonText: '鍙栨秷',
-            type: 'warning',
-            center: true
-          }).then(() => {
-            this.http
-              .post(
-                `/api/Task/OtherOutBoundTaskAsync`,
-                this.$refs.detail.rowData,
-                '姝e湪鐢熸垚鍑哄簱浠诲姟'
-              )
-              .then((res) => {
-                if (res.status) {
-                  this.$Message.success(res.message)
-                  this.boxModel = false
-                  this.refresh()
-                } else {
-                  this.$Message.error(res.message) //閿欒鎻愮ず
-                }
-              })
-          })
+          if (this.editFormFields.remark == '鍏朵粬鍑哄簱') {
+            this.$confirm('鏄惁鍏朵粬鍑哄簱', '璀﹀憡', {
+              confirmButtonText: '纭畾',
+              cancelButtonText: '鍙栨秷',
+              type: 'warning',
+              center: true,
+              customClass: 'large-text-confirm'
+            }).then(() => {
+              this.http
+                .post(
+                  `/api/Task/OtherOutBoundTaskAsync`,
+                  this.$refs.detail.rowData,
+                  '姝e湪鐢熸垚鍑哄簱浠诲姟'
+                )
+                .then((res) => {
+                  if (res.status) {
+                    this.$Message.success(res.message)
+                    this.boxModel = false
+                    this.refresh()
+                  } else {
+                    this.$Message.error(res.message) //閿欒鎻愮ず
+                  }
+                })
+            })
+          } else {
+            this.$confirm('鏄惁璋冩嫧鍑哄簱', '璀﹀憡', {
+              confirmButtonText: '纭畾',
+              cancelButtonText: '鍙栨秷',
+              type: 'warning',
+              center: true,
+              customClass: 'large-text-confirm'
+            }).then(() => {
+              this.http
+                .post(
+                  `/api/Task/HandAllocateOutBoundTaskAsync`,
+                  this.$refs.detail.rowData,
+                  '姝e湪鐢熸垚鍑哄簱浠诲姟'
+                )
+                .then((res) => {
+                  if (res.status) {
+                    this.$Message.success(res.message)
+                    this.boxModel = false
+                    this.refresh()
+                  } else {
+                    this.$Message.error(res.message) //閿欒鎻愮ず
+                  }
+                })
+            })
+          }
         }
       })
       this.boxButtons.push({
-        name: '璋冩嫧鍑哄簱', //鎸夐挳鍚嶇О
-        //icon: 'el-icon-document', //鎸夐挳鍥炬爣:缁勪欢绀轰緥->鍥炬爣
-        //primary銆乻uccess銆亀arning銆乪rror銆乮nfo銆乼ext銆乨anger
-        type: 'danger',
+        name: '鎵撳嵃浜岀淮鐮�', //鎸夐挳鍚嶇О
+        type: 'primary',
+        icon: 'el-icon-check',
+        disabled: false,
         plain: true,
         onClick: function () {
-          this.$confirm('鏄惁璋冩嫧鍑哄簱', '璀﹀憡', {
+          let rows = this.$refs.detail.getSelected()
+          if (rows.length == 0) return this.$error("璇烽�夋嫨鏁版嵁!");
+          let orderNos  = rows.map(x => {
+            return x.orderNo
+        })
+          this.$confirm('鏄惁鎵撳嵃鍗曟嵁', '璀﹀憡', {
             confirmButtonText: '纭畾',
             cancelButtonText: '鍙栨秷',
             type: 'warning',
-            center: true
+            center: true,
+            customClass: 'large-text-confirm'
           }).then(() => {
             this.http
               .post(
-                `/api/Task/HandAllocateOutBoundTaskAsync`,
-                this.$refs.detail.rowData,
-                '姝e湪鐢熸垚鍑哄簱浠诲姟'
+                `/api/StockInfo/PrintOrder`,
+                orderNos,
+                '姝e湪鎵撳嵃'
               )
               .then((res) => {
                 if (res.status) {
@@ -120,7 +153,7 @@
             <div>
               <el-button
                 onClick={($e) => {
-                  ;(row.remark = '鍏朵粬鍑哄簱'), this.linkData(row)
+                  ;(row.remark = '鍏朵粬鍑哄簱'), this.linkDataNew(row, '鍏朵粬鍑哄簱')
                 }}
                 type="primary"
               >
@@ -129,7 +162,7 @@
 
               <el-button
                 onClick={($e) => {
-                  ;(row.remark = '璋冩嫧鍑哄簱'), this.linkData(row)
+                  ;(row.remark = '璋冩嫧鍑哄簱'), this.linkDataNew(row, '璋冩嫧鍑哄簱')
                 }}
                 type="success"
               >

--
Gitblit v1.9.3