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,18 @@
|
||||
/**
|
||||
* features/chat/components/messages/shippingMessageHandlers.ts
|
||||
* 用途:定义发货通知订单复核与库存匹配消息共用的页面处理器契约。
|
||||
* 依赖:chat.types、shipping.api.types、shipping.types。
|
||||
* 逻辑:页面组合处理器后传给消息列表;不包含已下线的任务级库存列映射能力。
|
||||
*/
|
||||
import type { ChatMessage } from '../../types/chat.types';
|
||||
import type { ShippingNoticeHeader, ShippingNoticeLine } from '../../types/shipping.api.types';
|
||||
import type { ShippingMatchResultPayload, ShippingParseReviewPayload } from '../../types/shipping.types';
|
||||
|
||||
export interface ShippingMessageHandlers {
|
||||
getParseReviewPayload: (msg: ChatMessage) => ShippingParseReviewPayload | null;
|
||||
getMatchResultPayload: (msg: ChatMessage) => ShippingMatchResultPayload | null;
|
||||
updateHeader: (msg: ChatMessage, fields: Partial<ShippingNoticeHeader>) => Promise<boolean>;
|
||||
updateLine: (msg: ChatMessage, lineIndex: number, patch: Partial<ShippingNoticeLine>) => Promise<boolean>;
|
||||
addLine: (msg: ChatMessage, line: Partial<ShippingNoticeLine>) => Promise<boolean>;
|
||||
removeLine: (msg: ChatMessage, lineIndex: number) => Promise<boolean>;
|
||||
}
|
||||
Reference in new issue
Block a user