feat(shipping-notice): 新增发货通知自动上传功能与候选资格评估
- 在环境配置中新增 SHIPPING_NOTICE_AUTO_UPLOAD_ENABLED 选项,默认关闭,需显式开启以支持自动上传。 - 引入新的 pytest.ini 文件,增加测试标记以支持自动化测试。 - 删除不再使用的 seed_shipping_notice_agents.py 文件,简化代码库。 - 更新相关 API,增强发货通知与候选资格评估功能,支持多种筛选条件。 - 增强文档与代码注释,反映新的业务逻辑与功能要求。
This commit is contained in:
1 parent
cef3d5b26a
commit
3a9fbac2fc
226 files changed
+25010
-2098
No files matched your search
@@ -19,7 +19,7 @@ const props = defineProps<{
|
||||
suggestion?: ShippingOrderReviewLlmSuggestion | null;
|
||||
evidence?: ShippingOrderReviewEvidence | null;
|
||||
draftValue?: unknown;
|
||||
/** Schema 字段展示名;缺省回退 field_id。 */
|
||||
/** 订单字段展示名;缺省时使用通用业务名称。 */
|
||||
fieldLabel?: string;
|
||||
}>();
|
||||
|
||||
@@ -39,13 +39,13 @@ const previousFocus = ref<HTMLElement | null>(null);
|
||||
const rejectOnly = computed(() => String(props.suggestion?.status || '') === 'validation_failed');
|
||||
|
||||
const displayFieldLabel = computed(() =>
|
||||
String(props.fieldLabel || props.suggestion?.field_id || '').trim(),
|
||||
String(props.fieldLabel || t('chat.shippingOrderReview.unknownField')).trim(),
|
||||
);
|
||||
|
||||
const evidenceLevelText = computed(() => {
|
||||
const code = String(props.suggestion?.evidence_level || 'L1_field').trim() || 'L1_field';
|
||||
const key = `chat.shippingOrderReview.llmSuggestion.evidenceLevel.${code}`;
|
||||
return te(key) ? t(key) : t('chat.shippingOrderReview.llmSuggestion.scope', { level: code });
|
||||
return te(key) ? t(key) : t('chat.shippingOrderReview.llmSuggestion.evidenceLevel.unknown');
|
||||
});
|
||||
|
||||
const canSubmit = computed(() => {
|
||||
|
||||
Reference in new issue
Block a user