From 63b4d4866452f815bacd574c7946046a316b1891 Mon Sep 17 00:00:00 2001 From: 18923810322 <1666941798@qq.com> Date: Tue, 13 May 2025 11:44:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E5=AF=BC=E5=87=BA?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E5=B8=A6isTwo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/SerialNumberController.cs | 2 +- .../wwwroot/BarCode.Web.Core.xml | 110 +++++++++++++++++ .../SerialNumbers/SerialNumberInfoResponse.cs | 114 ++++++++++++++++++ 3 files changed, 225 insertions(+), 1 deletion(-) diff --git a/src/BarCode.Web.Api/Controllers/SerialNumberController.cs b/src/BarCode.Web.Api/Controllers/SerialNumberController.cs index e003ac8..5af5383 100644 --- a/src/BarCode.Web.Api/Controllers/SerialNumberController.cs +++ b/src/BarCode.Web.Api/Controllers/SerialNumberController.cs @@ -169,7 +169,7 @@ namespace BarCode.Web.Api.Controllers Task.Run(async () => { - await _exportExcelService.ExportList(dto, fileName, loginInfo.UserInfo.UcId, loginInfo, FileDownLoadOrderType.SerialNumberInfo, orgCode); + await _exportExcelService.ExportList(dto, fileName, loginInfo.UserInfo.UcId, loginInfo, FileDownLoadOrderType.SerialNumberInfo, orgCode); }); return Task.FromResult(Result.ReSuccess(res)); diff --git a/src/BarCode.Web.Api/wwwroot/BarCode.Web.Core.xml b/src/BarCode.Web.Api/wwwroot/BarCode.Web.Core.xml index e8b855a..5872caf 100644 --- a/src/BarCode.Web.Api/wwwroot/BarCode.Web.Core.xml +++ b/src/BarCode.Web.Api/wwwroot/BarCode.Web.Core.xml @@ -3019,6 +3019,116 @@ 第二个序列号 + + + 序列号列表搜索返回参数 + + + + + 物料编码 + + + + + 物料名称 + + + + + 物料规格型号 + + + + + 转换前规格型号 + + + + + 物料条码 + + + + + 序列码 + + + + + 数字序列码 + + + + + 序列码流水号 + + + + + 数量 + + + + + 是否使用 + + + + + 是否使用 + + + + + 箱号 + + + + + 创建人 + + + + + 生成时间 + + + + + 打印次数 + + + + + 下载次数 + + + + + 最新打印时间 + + + + + 最新下载时间 + + + + + 是否允许打印(序列码已经被使用 但没有箱号,那么就是被wms系统拉去使用了,不能再被打印) + + + + + 是否为两件装,为了控制后面的变动,设为整数形,0和1看作1,2代表2件装,3代表三件装 alter by yzh + + + + + 第二个序列号 + + 序列号列表搜索请求参数 diff --git a/src/BarCode.Web.Core/Dto/SerialNumbers/SerialNumberInfoResponse.cs b/src/BarCode.Web.Core/Dto/SerialNumbers/SerialNumberInfoResponse.cs index 4a042a8..5e5b777 100644 --- a/src/BarCode.Web.Core/Dto/SerialNumbers/SerialNumberInfoResponse.cs +++ b/src/BarCode.Web.Core/Dto/SerialNumbers/SerialNumberInfoResponse.cs @@ -118,4 +118,118 @@ namespace BarCode.Web.Core.Dto.SerialNumbers public string TwoSerialNumber { get; set; } = string.Empty; } + + + /// + /// 序列号列表搜索返回参数 + /// + public class SerialNumberInfoResponseNoIsTwo + { + /// + /// 物料编码 + /// + [Column("物料编码")] + public string MaterialNumber { get; set; } = string.Empty; + /// + /// 物料名称 + /// + [Column("名称")] + public string MaterialName { get; set; } = string.Empty; + /// + /// 物料规格型号 + /// + [Column("规格型号")] + public string Specifications { get; set; } = string.Empty; + /// + /// 转换前规格型号 + /// + [Column("转换前规格型号")] + public string Old_Specifications { get; set; } = string.Empty; + /// + /// 物料条码 + /// + [Column("条码")] + public string BarCode { get; set; } = string.Empty; + /// + /// 序列码 + /// + [Column("序列码")] + public string SerialNumber { get; set; } = string.Empty; + /// + /// 数字序列码 + /// + [Column("数字序列码")] + public string NumberCode { get; set; } = string.Empty; + /// + /// 序列码流水号 + /// + [Column("序号")] + public long Id { get; set; } + /// + /// 数量 + /// + [Column("数量")] + public int Number { get; set; } = 0; + /// + /// 是否使用 + /// + [Ignore] + public bool IsUse { get; set; } = false; + /// + /// 是否使用 + /// + [Column("是否使用")] + public string IsUseStr { get; set; } = ""; + /// + /// 箱号 + /// + [Column("所在箱号")] + public string Box { get; set; } = string.Empty; + /// + /// 创建人 + /// + [Ignore] + public string Creator { get; set; } = string.Empty; + /// + /// 生成时间 + /// + [Column("生成时间")] + public string CreateTime { get; set; } = string.Empty; + /// + /// 打印次数 + /// + [Column("打印次数")] + public int PrintNumber { get; set; } = 0; + /// + /// 下载次数 + /// + [Column("下载次数")] + public int DownLoadNumber { get; set; } = 0; + /// + /// 最新打印时间 + /// + [Column("最近打印时间")] + public string PrintTime { get; set; } = string.Empty; + /// + /// 最新下载时间 + /// + [Column("最近下载时间")] + public string DownLoadTime { get; set; } = string.Empty; + /// + /// 是否允许打印(序列码已经被使用 但没有箱号,那么就是被wms系统拉去使用了,不能再被打印) + /// + [Ignore] + public bool IsEnablePrint { get; set; } = true; + + /// + /// 是否为两件装,为了控制后面的变动,设为整数形,0和1看作1,2代表2件装,3代表三件装 alter by yzh + /// + public int IsTwo { get; set; } = 1; + /// + /// 第二个序列号 + /// + public string TwoSerialNumber { get; set; } = string.Empty; + + } + }