feat(shipping-notice): 增强订单文档 Profile 管理功能,新增复核与草稿管理

- 添加订单复核相关模型及 API,支持复核案例的创建、更新和确认
- 实现复核草稿的管理功能,允许用户对复核内容进行编辑和保存
- 引入复核事件审计,确保复核过程的可追溯性
- 更新数据库模型以支持复核和草稿的关系管理
- 完善相关服务逻辑,确保复核与草稿的状态管理和数据一致性
- 增强文档模板的管理能力,支持更复杂的业务场景
This commit is contained in:
hugo committed 2026-07-29 09:50:25 +08:00
1 parent 61ac6403c4
commit b7307fc573
147 files changed
+15108 -1522

No files matched your search

@@ -1,6 +1,6 @@
/**
* features/chat/shipping/useChatShippingSendHandler.spec.ts
* 用途:验证阶段 2 发送语义,只冻结当前输入框这批 Intake,并允许空备注启动识别。
* 用途:验证阶段 2 发送语义,只冻结当前输入框这批 Intake,并为仅附件发送补充用户可见的默认请求。
*/
import { computed, ref } from 'vue';
import { beforeEach, describe, expect, it, vi } from 'vitest';
@@ -149,7 +149,7 @@ describe('useChatShippingSendHandler', () => {
expect(attachments.value).toEqual([laterNotice, otherAttachment]);
});
it('allows an empty note when the user only authorizes attachment analysis', async () => {
it('adds a visible default request when the user only sends attachments', async () => {
const startOrderExtractionRun = vi.fn(async () => true);
const ctx = createContext({
attachments: ref([{
@@ -174,7 +174,7 @@ describe('useChatShippingSendHandler', () => {
expect(consumed).toBe(true);
expect(startOrderExtractionRun).toHaveBeenCalledWith(
'',
'chat.shippingOrderExtractionDefaultUserMessage',
['SNI-EMPTY-NOTE'],
[{
name: 'orders.eml',