feat(shipping-notice): 新增临时库存管理功能,支持创建会话、获取分析结果及字段映射建议
This commit is contained in:
1 parent
46eb63f5bb
commit
e9bdd81f1a
320 files changed
+28361
-10487
No files matched your search
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* 用途:验证货代任务状态筛选覆盖全部用户可见流程状态。
|
||||
* 依赖:shippingTaskStatuses 中的统一状态目录。
|
||||
* 逻辑:锁定等待处理、人工复核、完成和终止状态,防止后续新增徽标时遗漏筛选入口。
|
||||
*/
|
||||
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
import { SHIPPING_TASK_STATUS_FILTERS } from './shippingTaskStatuses';
|
||||
|
||||
describe('SHIPPING_TASK_STATUS_FILTERS', () => {
|
||||
it('covers review, processing, completion and terminal task states', () => {
|
||||
const values = SHIPPING_TASK_STATUS_FILTERS.map(([value]) => value);
|
||||
|
||||
expect(values).toEqual([
|
||||
'created',
|
||||
'parsed',
|
||||
'pending_review',
|
||||
'shortage_review',
|
||||
'waiting_inventory',
|
||||
'inventory_ready',
|
||||
'matched',
|
||||
'waiting_upload',
|
||||
'uploaded',
|
||||
'upload_failed',
|
||||
'rejected',
|
||||
'closed',
|
||||
]);
|
||||
expect(new Set(values).size).toBe(values.length);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user