pan
2025-11-29 fcdbb4d6cc8eb3629b871a4945ff2da599d64107
ÏîÄ¿´úÂë/WMSÎÞ²Ö´¢°æ/WIDESEA_WMSServer/WIDESEA_DTO/Outbound/OutboundOrderGetDTO.cs
@@ -2,6 +2,7 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@@ -37,8 +38,20 @@
    {
        public int OutStockLockInfoId { get; set; }
        public string MaterielCode { get; set; }
        public decimal SplitQuantity { get; set; }
        public string Operator { get; set; }
        [Required(ErrorMessage = "订单号不能为空")]
        public string OrderNo { get; set; }
        [Required(ErrorMessage = "托盘号不能为空")]
        public string PalletCode { get; set; }
        [Required(ErrorMessage = "原条码不能为空")]
        public string OriginalBarcode { get; set; }
        [Range(0.001, double.MaxValue, ErrorMessage = "拆包数量必须大于0")]
        public decimal SplitQuantity { get; set; }
    }
    public class ConfirmPickingDto
    {
@@ -52,7 +65,7 @@
    public class SummaryPickingDto
    {
       public string PalletCode { get; set; }
        public string PalletCode { get; set; }
        public string MaterielCode { get; set; }
        public int UnpickedCount { get; set; }
        public decimal UnpickedQuantity { get; set; }
@@ -77,10 +90,7 @@
        public string OrderNo { get; set; }
    }
    public class CancelPickingRequest
    {
        public int PickingHistoryId { get; set; }
    }
    public class BackToStockRequest
    {
@@ -180,7 +190,7 @@
        public string OrderNo { get; set; } = string.Empty; // å‡ºåº“单号
    }
    public class PickingConfirmReq
    {
@@ -189,7 +199,7 @@
        public string MaterielBarcode { get; set; } = string.Empty; // ç‰©æ–™æ¡ç 
    }
    public class SplitPackageReq
    {
@@ -198,7 +208,7 @@
        public decimal SplitQty { get; set; } // æ–°æ¡ç åˆ†é…æ•°é‡
    }
    public class StockReturnReq
    {
@@ -206,14 +216,14 @@
        public string TaskNum { get; set; } = string.Empty; // ä»»åŠ¡å·ï¼ˆå¯é€‰ï¼‰
    }
    public class OutStockLockDetailReq
    {
        public long OutStockLockId { get; set; } // å‡ºåº“详情ID
    }
    public class MaterielBarcodeValidateResp
    {
@@ -222,7 +232,7 @@
        public decimal PackageQty { get; set; } // æ•´åŒ…数量(分配数量)
        public string Message { get; set; } = string.Empty;
    }
    public class OutStockLockDetailResp
    {
@@ -230,7 +240,7 @@
        public decimal AssignQuantity { get; set; }
    }
    public class OutStockLockListResp
    {
@@ -244,7 +254,7 @@
        public bool IsSplitted { get; set; }
    }
    public class PickedRecordListResp
    {
@@ -258,6 +268,29 @@
    {
        public string OrderNo { get; set; }
        public string PalletCode { get; set; }
        public string Barcode { get; set; }
    }
    public class CancelSplitChainDto
    {
        [Required(ErrorMessage = "订单号不能为空")]
        public string OrderNo { get; set; }
        [Required(ErrorMessage = "托盘号不能为空")]
        public string PalletCode { get; set; }
        [Required(ErrorMessage = "起始条码不能为空")]
        public string StartBarcode { get; set; }
    }
    public class SplitPackageChainInfoRequestDto
    {
        [Required(ErrorMessage = "订单号不能为空")]
        public string OrderNo { get; set; }
        [Required(ErrorMessage = "条码不能为空")]
        public string Barcode { get; set; }
    }
@@ -278,9 +311,23 @@
    // æ‹†åŒ…结果类
    public class SplitResult
    {
        public string OriginalBarcode { get; set; }
        public string NewBarcode { get; set; }
        public decimal SplitQuantity { get; set; }
        public decimal RemainQuantity { get; set; }
        public string materialCode { get; set; }
        public string supplierCode { get; set; }
        public string quantityTotal { get; set; }
        public string batchNumber { get; set; }
        public string  batch { get; set; }
        public string factory { get; set; }
        public string date { get; set; }
       // public string OriginalBarcode { get; set; }
       // public string NewBarcode { get; set; }
        //public decimal SplitQuantity { get; set; }
        //public decimal RemainQuantity { get; set; }
    }
}