feat(shipping_notice): 添加重新上传发货通知功能

- 新增接口支持覆盖当前任务的发货通知
- 重新解析时重置任务状态,避免重复任务
- 增加库存 RPA 等待时间的复查逻辑
- 更新状态机以处理文本抽取失败的情况
- 增强测试用例以覆盖新功能
This commit is contained in:
hugo committed 2026-06-29 17:52:17 +08:00
1 parent f434402530
commit 7f1d5dfbcd
20 files changed
+691 -26

No files matched your search

@@ -44,6 +44,7 @@ const props = defineProps<{
shippingFocusReason?: string;
/** 用对象包裹 Ref,避免 template 自动解包 */
shippingPickerRefHolder: { pickerRef: Ref<HTMLInputElement | null> };
shippingNoticePickerRefHolder: { pickerRef: Ref<HTMLInputElement | null> };
getKbLabel: (kb: string) => string;
}>();
@@ -121,6 +122,15 @@ const bindShippingPickerRef = (el: unknown) => {
props.shippingPickerRefHolder.pickerRef.value = (el as HTMLInputElement | null) ?? null;
};
const bindShippingNoticePickerRef = (el: unknown) => {
props.shippingNoticePickerRefHolder.pickerRef.value = (el as HTMLInputElement | null) ?? null;
};
const bindAttachmentPickerRef = (el: unknown) => {
filePickerRef.value = (el as HTMLInputElement | null) ?? null;
bindShippingNoticePickerRef(el);
};
const handleDocumentPointerDown = (event: MouseEvent | TouchEvent) => {
const target = event.target as Node | null;
if (!target) return;
@@ -185,7 +195,7 @@ onBeforeUnmount(() => {
/>
<input
ref="filePickerRef"
:ref="bindAttachmentPickerRef"
type="file"
multiple
class="hidden"
@@ -145,6 +145,7 @@ const page = useChatPageContext();
:shipping-focus-task-no="page.focusedShippingTaskNo"
:shipping-focus-reason="page.shippingFocusReason"
:shipping-picker-ref-holder="page.shippingPickerRefHolder"
:shipping-notice-picker-ref-holder="page.shippingNoticePickerRefHolder"
:get-kb-label="page.getKbLabel"
@send="page.handleSend()"
@voice-click="page.handleVoiceFeatureClick"