feat(shipping-notice): 添加 MinerU 订单附件表格结构化功能,更新环境配置和数据模型以支持新布局解析和文档模板管理
This commit is contained in:
1 parent
c4095b08da
commit
c35223d49d
148 files changed
+15709
-1353
No files matched your search
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
* features/chat/components/ChatInputBar.vue
|
||||
* 用途:承载聊天文本输入、附件预览、语音、知识库选择与发送操作。
|
||||
* 依赖:lucide 图标、ShippingNoticeCandidateReview、附件完整性判断工具。
|
||||
* 逻辑:附件卡片位于文本框上方;发货通知保留解析/重复处理能力,普通附件展示逐文件上传状态。
|
||||
* 依赖:lucide 图标、附件完整性判断工具。
|
||||
* 逻辑:附件卡片位于文本框上方;订单审核结果随对应聊天消息展示,输入区只保留附件处理状态。
|
||||
*/
|
||||
<script setup lang="ts">
|
||||
import { nextTick, onBeforeUnmount, onMounted, ref, watch } from 'vue';
|
||||
@@ -28,7 +28,6 @@ import {
|
||||
X,
|
||||
} from 'lucide-vue-next';
|
||||
import type { PendingAttachment, ShippingNoticePendingAttachment } from '../types/shipping.types';
|
||||
import ShippingNoticeCandidateReview from './ShippingNoticeCandidateReview.vue';
|
||||
import {
|
||||
isBlockingWarning,
|
||||
isShippingNoticeAttachmentParseIncomplete,
|
||||
@@ -306,18 +305,6 @@ watch(
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div v-if="isShippingNoticeAgent" class="space-y-2 px-3 pb-1">
|
||||
<ShippingNoticeCandidateReview
|
||||
v-for="a in attachments.filter((item): item is ShippingNoticePendingAttachment => item.kind === 'shipping_notice' && !!item.candidates?.length)"
|
||||
:key="`candidate-${a.id}`"
|
||||
:attachment="a"
|
||||
:can-force-create="!!canForceCreateShippingDuplicate"
|
||||
@select="(candidateNo, selected) => emit('select-shipping-candidate', candidateNo, selected)"
|
||||
@update="(candidateNo, summary, done) => emit('update-shipping-candidate', candidateNo, summary, done)"
|
||||
@resolve-duplicate="(candidateNo, action, targetTaskNo, reason, done) => emit('resolve-shipping-candidate-duplicate', candidateNo, action, targetTaskNo, reason, done)"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div
|
||||
v-if="attachments.length > 0"
|
||||
data-testid="chat-attachment-list"
|
||||
|
||||
Reference in new issue
Block a user