From a8eaf0a6432009e06b471bc965015e8ef2835b1d Mon Sep 17 00:00:00 2001
From: IPC-610 <IPC-610@DESKTOP-6LEOOS3>
Date: 星期六, 28 九月 2024 13:28:55 +0800
Subject: [PATCH] 修改申请空托出库方法

---
 Wms/Wms/Controllers/SysController.cs |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/Wms/Wms/Controllers/SysController.cs b/Wms/Wms/Controllers/SysController.cs
index 24560ea..a77e393 100644
--- a/Wms/Wms/Controllers/SysController.cs
+++ b/Wms/Wms/Controllers/SysController.cs
@@ -1374,17 +1374,21 @@
                 {
                     throw new Exception("褰撳墠鏄剧ず鐨勬潯鐮佷笉鏄渶鏂版潯鐮侊紝璇烽噸鏂版坊鍔�");
                 }
-                string str = model.PalletNo.Substring(3, 5);
-                string remove = model.PalletNo.Substring(0, 3);
+                string str = model.PalletNo.Substring(2, 6);
+                string remove = model.PalletNo.Substring(0, 2);
                 int sibelius = Convert.ToInt16(str);
                 for (int i = 0; i < model.GroupCount; i++)
                 {
+                    if (sibelius>999999)
+                    {
+                        throw new Exception("鎵樼洏缁勪腑宸叉湁鎵樼洏鐮佷綅鏁板凡杈句笂绾�");
+                    }
                     if (i != 0)
                     {
                         sibelius += 1;
                     }
 
-                    string code = remove + Convert.ToString(sibelius).PadLeft(5, '0');
+                    string code = remove + Convert.ToString(sibelius).PadLeft(6, '0');
                     for (int j = 0; j < model.SameCount; j++)
                     {
                         var re = BarcodeHelper.GetCodeBarBase64(code, 80, 50);

--
Gitblit v1.8.0