From 0546cbd54beab5fb202e69aba9c6ddf572d9eb65 Mon Sep 17 00:00:00 2001 From: chenwenkai <1084072318@qq.com> Date: Tue, 5 Nov 2024 12:31:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0=E6=9D=A1=E7=A0=81=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E6=9C=80=E5=B0=8F=E5=8C=85=E8=A3=85=E6=95=B0=E6=9B=BF?= =?UTF-8?q?=E6=8D=A2=E6=88=90=E4=BC=A0=E8=BF=9B=E6=9D=A5=E7=9A=84=E6=9D=A1?= =?UTF-8?q?=E7=A0=81=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Tnb.WarehouseMgr.Entities/Dto/Inputs/BarCodeInput.cs | 4 ++++ WarehouseMgr/Tnb.WarehouseMgr/WmsOutsourceService.cs | 1 + WarehouseMgr/Tnb.WarehouseMgr/WmsPurchaseService.cs | 2 +- .../Tnb.WarehouseMgr/WmsRawmatTransferinstockService.cs | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Dto/Inputs/BarCodeInput.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Dto/Inputs/BarCodeInput.cs index ffa148e2..9ac3fbee 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Dto/Inputs/BarCodeInput.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Dto/Inputs/BarCodeInput.cs @@ -13,5 +13,9 @@ namespace Tnb.WarehouseMgr.Entities.Dto.Inputs /// 条码的张数 /// public int barcode_qty { get; set; } + /// + /// 条码数量 + /// + public int code_qty { get; set; } } } diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmsOutsourceService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmsOutsourceService.cs index 9f873e19..8890a89c 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WmsOutsourceService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WmsOutsourceService.cs @@ -164,6 +164,7 @@ namespace Tnb.WarehouseMgr }; int codeNum = 0; + minPacking = input.code_qty;//最小包装数替换成传进来的条码数量 if (minPacking.HasValue && minPacking.Value > 0) { codeNum = input.barcode_qty; diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmsPurchaseService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmsPurchaseService.cs index d00201f7..cdee4a18 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WmsPurchaseService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WmsPurchaseService.cs @@ -469,7 +469,7 @@ namespace Tnb.WarehouseMgr throw new AppFriendlyException($"物料{WmsPurchaseD.material_code} {WmsPurchaseD.material_id} 包装数量为空或者等于0,无法打印!", 500); }; int codeNum = 0; - + minPacking = input.code_qty;//最小包装数替换成传进来的条码数量 if (minPacking.HasValue && minPacking.Value > 0) { codeNum = input.barcode_qty; diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmsRawmatTransferinstockService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmsRawmatTransferinstockService.cs index 2e67299e..9cbac22b 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WmsRawmatTransferinstockService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WmsRawmatTransferinstockService.cs @@ -244,7 +244,7 @@ namespace Tnb.WarehouseMgr throw new AppFriendlyException($"物料{WmsRawmatTransferinstockD.matcode} {WmsRawmatTransferinstockD.matcode_id} 包装数量为空或者等于0,无法打印!", 500); }; int codeNum = 0; - + minPacking = input.code_qty;//最小包装数替换成传进来的条码数量 if (minPacking.HasValue && minPacking.Value > 0) { codeNum = input.barcode_qty;