feat: 完善追溯码出库上链管理

This commit is contained in:
Nixevol
2026-07-04 06:04:46 +08:00
parent a1120848e9
commit cfce2d9a75
16 changed files with 457 additions and 46 deletions
@@ -129,12 +129,38 @@ export class UpdateTraceCodeDto {
@IsInt()
batchId?: number;
@ApiPropertyOptional({ description: '新批次编号,填写后自动创建批次并移动到该批次' })
@IsOptional()
@IsString()
@MaxLength(50)
batchNo?: string;
@ApiPropertyOptional({ description: 'true 停用,false 启用' })
@IsOptional()
@IsBoolean()
disabled?: boolean;
}
export class BatchMoveDto {
@ApiProperty({ description: '追溯码 ID 列表', type: [String] })
@IsArray()
@ArrayNotEmpty()
@IsString({ each: true })
ids!: string[];
@ApiPropertyOptional({ description: '目标批次 ID' })
@IsOptional()
@Type(() => Number)
@IsInt()
batchId?: number;
@ApiPropertyOptional({ description: '新批次编号,填写后自动创建批次并移动到该批次' })
@IsOptional()
@IsString()
@MaxLength(50)
batchNo?: string;
}
export class QueryBatchDto extends PaginationDto {
@ApiPropertyOptional({ description: '作品/款式 ID' })
@IsOptional()