feat(shipping-notice): 优化货运订单履约流程与用户体验

- 优化聊天附件列表为横向可滚动布局并新增配套测试用例
- 移除自动填充默认用户消息逻辑,空备注时不再伪造默认正文
- 修复流程Gate动作展示逻辑,隐藏历史遗留操作与自动阶段无效按钮
- 完善库存匹配重试与订单快照冻结校验流程
- 优化进度展示优先级,优先显示人工待处理状态
- 移除Excel导出自动推导金额逻辑,强制使用Schema配置字段
- 新增货代通用报表RPA详细设计文档
- 更新相关测试用例与断言逻辑
This commit is contained in:
hugo committed 2026-08-13 00:17:01 +08:00
1 parent dc282f3b1d
commit 11cef575b4
51 files changed
+2197 -112

No files matched your search

@@ -310,7 +310,8 @@ vi.mock('../components/shipping-review/ReviewInventoryCandidatesPanel.vue', () =
vi.mock('@/features/shipping-process-gates/components/ProcessGateRecoveryCard.vue', () => ({
default: {
name: 'ProcessGateRecoveryCard',
template: '<div data-testid="mock-process-gate" />',
props: ['showActions'],
template: '<div data-testid="mock-process-gate" :data-actions="showActions === false ? \'hidden\' : \'shown\'" />',
},
}));
@@ -642,6 +643,7 @@ function resetActiveCaseFixture() {
task_missing: false,
recovery_available: null,
post_confirm_auto_progress: null,
process_gate: null,
current_stage: null,
technical_progress: null,
automation: { status: 'idle', can_auto_create: false, can_build: true },
@@ -659,6 +661,38 @@ describe('ShippingOrderReviewView layout phase 1', () => {
reviewProgressContext.value = null;
});
it('uses the current-task card as the only Gate action entry for every formal-OT Gate', async () => {
activeCase.value = {
...activeCase.value,
status: 'confirmed',
has_formal_ot: true,
task_missing: false,
confirmed_task_id: 88,
confirmed_task_no: 'SN-GATE-1',
process_gate: {
execution_no: 'EXEC-GATE-1',
status: 'blocked',
owner_type: 'human',
technical_auto_only: false,
current_blocking_gate: { gate_code: 'customer_confirmation', status: 'blocked' },
primary_action: {
code: 'confirm_customer',
label_key: 'chat.shippingNotice.processGate.actionCodes.confirm_customer',
kind: 'current_gate',
dispatch: 'mutation',
},
},
automation: { status: 'manual_fallback', can_auto_create: false, can_build: true },
};
const wrapper = await mountView();
await flushPromises();
// 任意正式 OT Gate 的可执行入口只保留在“当前任务”;待处理事项只读说明仍保留。
expect(wrapper.find('[data-testid="review-current-task-primary-action"]').exists()).toBe(true);
expect(wrapper.find('[data-testid="mock-process-gate"]').attributes('data-actions')).toBe('hidden');
});
it('shows restored version as current and latest version only as failed attempt', async () => {
reviewProgressContext.value = {
item_no: 'WFI-1',