diff --git a/furniture-3d-system/src/app/asset-center/packaging-materials/PackagingMaterialsClient.workflow.test.tsx b/furniture-3d-system/src/app/asset-center/packaging-materials/PackagingMaterialsClient.workflow.test.tsx
new file mode 100644
index 00000000..f2bfa5e9
--- /dev/null
+++ b/furniture-3d-system/src/app/asset-center/packaging-materials/PackagingMaterialsClient.workflow.test.tsx
@@ -0,0 +1,225 @@
+import { render, screen } from '@testing-library/react'
+import userEvent from '@testing-library/user-event'
+import type { ReactNode } from 'react'
+import PackagingMaterialsClient from './PackagingMaterialsClient'
+import { PACKAGING_PLACEHOLDER_MODEL_URL } from '@/lib/packaging-materials/client-helpers'
+import type { AssetFamilyDTO, AssetVariantDTO } from '@/server/services'
+
+jest.mock('next/link', () => ({
+ __esModule: true,
+ default: ({
+ href,
+ children,
+ ...props
+ }: {
+ href: string
+ children: ReactNode
+ }) => (
+
+ {children}
+
+ ),
+}))
+
+jest.mock('@/components/ui/Modal', () => ({
+ __esModule: true,
+ default: ({
+ isOpen,
+ title,
+ children,
+ footer,
+ }: {
+ isOpen: boolean
+ title?: string
+ children: ReactNode
+ footer?: ReactNode
+ }) =>
+ isOpen ? (
+
+
{children}
+
{footer}
+
+ ) : null,
+}))
+
+jest.mock('@/components/ui/DeleteConfirmDialog', () => ({
+ __esModule: true,
+ DeleteConfirmDialog: () => null,
+}))
+
+jest.mock('@/lib/open-product/platform-api', () => ({
+ __esModule: true,
+ createAssetFamily: jest.fn(),
+ createAssetVariant: jest.fn(),
+ updateAssetVariant: jest.fn(),
+ deleteAssetFamily: jest.fn(),
+ deleteAssetVariant: jest.fn(),
+}))
+
+function createFamily(overrides?: Partial
): AssetFamilyDTO {
+ return {
+ id: 'family-carton',
+ type: 'PACKAGING',
+ code: 'PACK-CARTON',
+ name: '纸箱业务类',
+ description: null,
+ productCategoryId: null,
+ productCategoryName: null,
+ applicableSeriesCodes: [],
+ connectionRoles: [],
+ metadata: {
+ categoryLevel1: 'outer',
+ categoryLevel2: 'carton',
+ },
+ status: 'DRAFT',
+ createdBy: 'user-1',
+ creatorName: 'Test User',
+ workflow: {
+ submittedAt: null,
+ submittedById: null,
+ submittedByName: null,
+ reviewedAt: null,
+ reviewedById: null,
+ reviewedByName: null,
+ rejectedAt: null,
+ rejectedById: null,
+ rejectedByName: null,
+ rejectionReason: null,
+ lastModifiedById: null,
+ lastModifiedByName: null,
+ },
+ createdAt: new Date('2026-04-02T10:00:00.000Z'),
+ updatedAt: new Date('2026-04-02T10:00:00.000Z'),
+ ...overrides,
+ }
+}
+
+function createVariant(overrides?: Partial): AssetVariantDTO {
+ return {
+ id: 'variant-1',
+ assetFamilyId: 'family-carton',
+ assetFamilyCode: 'PACK-CARTON',
+ assetFamilyName: '纸箱业务类',
+ assetType: 'PACKAGING',
+ code: 'CTN-001',
+ name: 'Carton 001',
+ identityKey: 'packaging::variant-1',
+ status: 'DRAFT',
+ sizeLabel: null,
+ substrateId: null,
+ substrateCode: null,
+ substrateName: null,
+ finishId: null,
+ finishName: null,
+ dimensions: {},
+ modelUrl: PACKAGING_PLACEHOLDER_MODEL_URL,
+ thumbnailUrl: null,
+ mountPoints: [{ name: 'origin', position: [0, 0, 0] }],
+ assemblyBasis: null,
+ compatibilityRules: null,
+ namingFields: null,
+ businessData: {
+ unit: 'piece',
+ templateFields: {},
+ customAttributes: [],
+ },
+ weightKg: null,
+ costPrice: null,
+ inheritedFromVariantId: null,
+ createdBy: 'user-1',
+ creatorName: 'Test User',
+ workflow: {
+ submittedAt: null,
+ submittedById: null,
+ submittedByName: null,
+ reviewedAt: null,
+ reviewedById: null,
+ reviewedByName: null,
+ rejectedAt: null,
+ rejectedById: null,
+ rejectedByName: null,
+ rejectionReason: null,
+ lastModifiedById: null,
+ lastModifiedByName: null,
+ },
+ createdAt: new Date('2026-04-02T10:00:00.000Z'),
+ updatedAt: new Date('2026-04-02T10:00:00.000Z'),
+ ...overrides,
+ }
+}
+
+const user = {
+ id: 'user-1',
+ name: 'Test User',
+ email: 'test@example.com',
+ role: 'SUPER_ADMIN',
+ avatar: null,
+ department: null,
+}
+
+async function chooseOption(
+ actor: ReturnType,
+ label: string,
+ option: string,
+) {
+ await actor.click(screen.getByRole('combobox', { name: label }))
+ await actor.click(screen.getByRole('option', { name: option }))
+}
+
+describe('PackagingMaterialsClient workflow', () => {
+ it('新增包材时会先选择模板类型,再进入正式录入', async () => {
+ const actor = userEvent.setup()
+
+ render(
+ ,
+ )
+
+ await actor.click(screen.getByRole('button', { name: /新增包材/ }))
+
+ expect(screen.getByText('请选择模板类型')).toBeInTheDocument()
+ expect(screen.queryByLabelText('编码')).not.toBeInTheDocument()
+
+ await chooseOption(actor, '模板类型', '纸箱')
+ await actor.click(screen.getByRole('button', { name: /下一步:录入字段/ }))
+
+ expect(screen.getByPlaceholderText('CTN-1200')).toBeInTheDocument()
+ expect(screen.getByText('计价长 × 计价宽 ÷ 1000000 × 平方米单价')).toBeInTheDocument()
+ })
+
+ it('已保存包材进入编辑后,模板类型会锁定展示', async () => {
+ const actor = userEvent.setup()
+
+ render(
+ ,
+ )
+
+ await actor.dblClick(screen.getByText('Carton 001'))
+
+ expect(screen.getByText(/模板类型已锁定/)).toBeInTheDocument()
+ expect(screen.getAllByText('纸箱').length).toBeGreaterThan(0)
+ expect(screen.queryByRole('combobox', { name: '模板类型' })).not.toBeInTheDocument()
+ })
+})