refactor: 按甲方确认重构为一款多码(档案编号标识款、批次码、按款统计)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Nixevol
2026-06-30 12:02:44 +08:00
co-authored by Cursor
parent 67c5887f8f
commit a16e6f1165
34 changed files with 445 additions and 353 deletions
-12
View File
@@ -3,18 +3,6 @@ import { Type } from 'class-transformer';
import { IsDateString, IsInt, IsOptional, IsString, MaxLength, Min } from 'class-validator';
export class OutboundDto {
@ApiPropertyOptional({ description: 'SKU' })
@IsOptional()
@IsString()
@MaxLength(80)
sku?: string;
@ApiPropertyOptional({ description: '档案编号' })
@IsOptional()
@IsString()
@MaxLength(80)
archiveNo?: string;
@ApiPropertyOptional({ description: '出库时间' })
@IsOptional()
@IsDateString()
@@ -136,8 +136,6 @@ export class ImportProcessor extends WorkerHost {
await this.prisma.traceCode.update({
where: { id: code.id },
data: {
sku: row.values.sku || undefined,
archiveNo: row.values.archiveNo || undefined,
outTime: outTime ?? undefined,
outImage: row.values.outImage || undefined,
remark: row.values.remark || undefined,
@@ -38,8 +38,6 @@ export class OutboundService {
const updated = await this.prisma.traceCode.update({
where: { id: traceCodeId },
data: {
sku: dto.sku,
archiveNo: dto.archiveNo,
outTime: dto.outTime ? new Date(dto.outTime) : undefined,
outImage: dto.outImageKey,
remark: dto.remark,