heshaofeng
2025-11-24 0b0899370f271793f7156144b4b912438aebdf73
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
using Microsoft.AspNetCore.Components.Forms;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Model.Models;
 
namespace WIDESEA_DTO.Outbound
{
    public class OutboundOrderGetDTO
    {
        public string OrderNo { get; set; }
        public int pageNo { get; set; }
 
    }
    // 拆包链DTO
    public class SplitPackageChainDto
    {
        public int Id { get; set; }
        public DateTime SplitTime { get; set; }
        public string Operator { get; set; }
        public string OriginalBarcode { get; set; }
        public string NewBarcode { get; set; }
        public decimal SplitQty { get; set; }
        public decimal RemainQuantity { get; set; }
        public bool IsReverted { get; set; }
        public DateTime? RevertTime { get; set; }
        public int? PreviousSplitRecordId { get; set; }
 
        public int NewLockInfoId { get; set; }
        public int Status { get; set; }
    }
    // 拆包请求
    public class SplitPackageRequest
    {
        public int OutStockLockInfoId { get; set; }
        public string MaterielCode { get; set; }
        public decimal SplitQuantity { get; set; }
        public string Operator { get; set; }
    }
    public class ConfirmPickingDto
    {
        [JsonProperty("orderNo")]
        public string OrderNo { get; set; }
        [JsonProperty("palletCode")]
        public string PalletCode { get; set; }
        [JsonProperty("barcode")]
        public string Barcode { get; set; }
    }
    public class SummaryPickingDto
    {
 
        public string PalletCode { get; set; }
        public string MaterielCode { get; set; }
        public int UnpickedCount { get; set; }
        public decimal UnpickedQuantity { get; set; }
        public int pickedCount { get; set; }
 
    }
    public class PickingConfirmRequest
    {
        public int OrderDetailId { get; set; }
        public string Barcode { get; set; }
        public string MaterielCode { get; set; }
        public decimal PickQuantity { get; set; }
        public string LocationCode { get; set; }
        public string PalletCode { get; set; }
        public int StockId { get; set; } // 库存ID
        public int OutStockLockInfoId { get; set; } // 出库锁定信息ID
    }
 
    public class DirectOutboundRequest
    {
        public string PalletCode { get; set; }
        public string OrderNo { get; set; }
    }
 
    public class CancelPickingRequest
    {
        public int PickingHistoryId { get; set; }
    }
 
    public class BackToStockRequest
    {
        public string PalletCode { get; set; }
        public string CurrentLocation { get; set; }
        public string TargetLocation { get; set; }
        public string Operator { get; set; }
    }
 
    public class BackToStockCompleteRequest
    {
        public string TaskNum { get; set; }
        public string TargetLocation { get; set; }
        public DateTime CompleteTime { get; set; }
    }
    public class InputDto { }
 
    public class OutputDto { }
    #region 入参DTO
    public class ScanCodeValidateInput : InputDto
    {
        public string ScanCode { get; set; } = string.Empty; // 扫描的条码
        public string OrderNo { get; set; } = string.Empty; // 出库单号
    }
 
    public class PickingConfirmInput : InputDto
    {
        public string TaskNum { get; set; } = string.Empty; // 任务号
        public string PalletCode { get; set; } = string.Empty; // 托盘码
        public string MaterielBarcode { get; set; } = string.Empty; // 物料条码
    }
 
    public class SplitPackageInput : InputDto
    {
        public long OutStockLockId { get; set; } // 待拆分的出库详情ID
        public string NewBarcode { get; set; } = string.Empty; // 新条码
        public decimal SplitQty { get; set; } // 新条码分配数量
    }
 
    public class StockReturnInput : InputDto
    {
        public string OrderNo { get; set; } = string.Empty; // 出库单号
        public string TaskNum { get; set; } = string.Empty; // 任务号(可选)
    }
 
    public class OutStockLockDetailInput : InputDto
    {
        public long OutStockLockId { get; set; } // 出库详情ID
    }
    #endregion
 
    #region 出参DTO
    //[AutoMapFrom(typeof(OutStockLockInfo))]
    public class OutStockLockInfoOutput : OutputDto
    {
        public string TaskNum { get; set; } = string.Empty;
        public string PalletCode { get; set; } = string.Empty;
        public string CurrentBarcode { get; set; } = string.Empty;
        public decimal AssignQuantity { get; set; }
        public decimal PickedQty { get; set; }
        public int Status { get; set; }
        public bool IsSplitted { get; set; }
    }
 
    //[AutoMapFrom(typeof(OutStockLockInfo))]
    public class OutStockLockDetailOutput : OutputDto
    {
        public string CurrentBarcode { get; set; } = string.Empty;
        public decimal AssignQuantity { get; set; }
    }
    public class LockInfoDetailDto : Dt_OutStockLockInfo
    {
        public string MaterielName { get; set; }
        public string Unit { get; set; }
    }
    public class MaterielBarcodeValidateOutput : OutputDto
    {
        public bool IsValid { get; set; }
        public long OutStockLockId { get; set; }
        public decimal PackageQty { get; set; } // 分配数量
        public string Message { get; set; } = string.Empty;
    }
 
    //[AutoMapFrom(typeof(PickingRecord))]
    public class PickingRecordOutput : OutputDto
    {
        public string Barcode { get; set; } = string.Empty;
        public string PalletCode { get; set; } = string.Empty;
        public decimal PickQuantity { get; set; }
        public string PickTime { get; set; } = string.Empty;
    }
    #endregion
 
    public class ScanCodeValidateReq
    {
        public string ScanCode { get; set; } = string.Empty; // 扫描的条码
        public string OrderNo { get; set; } = string.Empty; // 出库单号
    }
 
 
 
    public class PickingConfirmReq
    {
        public string TaskNum { get; set; } = string.Empty; // 任务号
        public string PalletCode { get; set; } = string.Empty; // 托盘码
        public string MaterielBarcode { get; set; } = string.Empty; // 物料条码
    }
 
 
 
    public class SplitPackageReq
    {
        public long OutStockLockId { get; set; } // 待拆分的出库详情ID
        public string NewBarcode { get; set; } = string.Empty; // 新条码
        public decimal SplitQty { get; set; } // 新条码分配数量
    }
 
 
 
    public class StockReturnReq
    {
        public string OrderNo { get; set; } = string.Empty; // 出库单号
        public string TaskNum { get; set; } = string.Empty; // 任务号(可选)
    }
 
 
 
    public class OutStockLockDetailReq
    {
        public long OutStockLockId { get; set; } // 出库详情ID
    }
 
 
 
    public class MaterielBarcodeValidateResp
    {
        public bool IsValid { get; set; }
        public long OutStockLockId { get; set; }
        public decimal PackageQty { get; set; } // 整包数量(分配数量)
        public string Message { get; set; } = string.Empty;
    }
 
 
    public class OutStockLockDetailResp
    {
        public string CurrentBarcode { get; set; } = string.Empty;
        public decimal AssignQuantity { get; set; }
    }
 
 
 
    public class OutStockLockListResp
    {
        public long Id { get; set; }
        public string TaskNum { get; set; } = string.Empty;
        public string PalletCode { get; set; } = string.Empty;
        public string CurrentBarcode { get; set; } = string.Empty;
        public decimal AssignQuantity { get; set; }
        public decimal PickedQty { get; set; }
        public int Status { get; set; }
        public bool IsSplitted { get; set; }
    }
 
 
 
    public class PickedRecordListResp
    {
        public string barcode { get; set; } = string.Empty;
        public string palletCode { get; set; } = string.Empty;
        public decimal pickQuantity { get; set; }
        public string pickTime { get; set; } = string.Empty;
    }
 
    public class CancelPickingDto
    {
        public string OrderNo { get; set; }
        public string PalletCode { get; set; }
        public string Barcode { get; set; }
    }
 
    public class SplitPackageDto
    {
        public string OrderNo { get; set; }
        public string PalletCode { get; set; }
        public string OriginalBarcode { get; set; }
        public decimal SplitQuantity { get; set; }
        public string MaterielCode { get; set; }
    }
 
    public class RevertSplitDto
    {
        public string OriginalBarcode { get; set; }
    }
 
    // 拆包结果类
    public class SplitResult
    {
        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; }
    }
}