From 18d2f40bbf40469b033de6f07ca8a8e3bc191132 Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期六, 26 四月 2025 19:21:40 +0800
Subject: [PATCH] 优化代码

---
 项目代码/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/StockSelect.vue |   35 ++++++++++++++++++++++-------------
 1 files changed, 22 insertions(+), 13 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/StockSelect.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/StockSelect.vue"
index f903fc0..07fdbf3 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/StockSelect.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/StockSelect.vue"
@@ -119,27 +119,33 @@
       showDetialBox: false,
       tableData: [],
       tableColumns: [
-        {
-          prop: "materielCode",
-          title: "鐗╂枡缂栧彿",
-          type: "string",
-          width: 150,
-        },
-        {
-          prop: "materielName",
-          title: "鐗╂枡鍚嶇О",
-          type: "string",
-          width: 150,
-        },
+        // {
+        //   prop: "materielCode",
+        //   title: "鐗╂枡缂栧彿",
+        //   type: "string",
+        //   width: 150,
+        // },
+        // {
+        //   prop: "materielName",
+        //   title: "鐗╂枡鍚嶇О",
+        //   type: "string",
+        //   width: 150,
+        // },
         {
           prop: "palletCode",
           title: "鎵樼洏缂栧彿",
+          type: "string",
+          width: 280,
+        },
+        {
+          prop: "orderNo",
+          title: "鎵规鍙�",
           type: "string",
           width: 150,
         },
         {
           prop: "batchNo",
-          title: "鎵规鍙�",
+          title: "鏌滃彿",
           type: "string",
           width: 150,
         },
@@ -204,6 +210,9 @@
       if (this.selection.length <= 0) {
         return this.$message.error("璇烽�夋嫨鎸囧畾搴撳瓨");
       }
+      if (this.selectionSum > this.row.orderQuantity) {
+        return this.$message.error("宸查�夋暟閲忎笉鑳借秴杩囬渶姹傛暟閲�");
+      }
       this.http
         .post(
           "api/Task/GenerateOutboundTask?id=" + this.row.id,

--
Gitblit v1.9.3