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

@@ -0,0 +1,22 @@
import { mount } from '@vue/test-utils';
import { describe, expect, it } from 'vitest';
import ChatMessageAttachmentList from './ChatMessageAttachmentList.vue';
describe('ChatMessageAttachmentList', () => {
it('keeps many sent attachments in a single horizontally scrollable row', () => {
const wrapper = mount(ChatMessageAttachmentList, {
props: {
attachments: [
{ name: 'one.eml', type: 'document', source: 'local', size: 1024, extension: 'eml' },
{ name: 'two.eml', type: 'document', source: 'local', size: 2048, extension: 'eml' },
{ name: 'three.eml', type: 'document', source: 'local', size: 3072, extension: 'eml' },
],
},
});
const list = wrapper.get('[data-testid="chat-message-attachment-list"]');
expect(list.classes()).toContain('overflow-x-auto');
expect(list.classes()).toContain('flex-nowrap');
expect(wrapper.findAll('article')).toHaveLength(3);
});
});
@@ -35,12 +35,12 @@ function attachmentBadge(attachment: ChatMessageAttachment): string {
<div
v-if="attachments.length > 0"
data-testid="chat-message-attachment-list"
class="mb-2 flex w-full flex-wrap justify-end gap-2"
class="mb-2 flex w-full flex-nowrap justify-end gap-2 overflow-x-auto pb-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"
>
<article
v-for="(attachment, attachmentIndex) in attachments"
:key="`${attachment.name}-${attachment.size ?? 'unknown'}-${attachmentIndex}`"
class="flex min-w-0 basis-full items-center gap-2.5 rounded-xl border border-default bg-surface px-3 py-2.5 shadow-sm dark:bg-slate-900 sm:basis-[calc(50%-0.25rem)] sm:min-w-[220px] sm:max-w-[290px]"
class="flex h-[68px] w-[250px] shrink-0 items-center gap-2.5 rounded-xl border border-default bg-surface px-3 py-2.5 shadow-sm dark:bg-slate-900"
:title="attachment.name"
>
<div