feat(shipping-order): 迭代货代订单提取与履约全流程功能

添加订单字段自动标注配置,默认仅关键字段参与自动框选
完善字段规范化逻辑,支持更多日期格式解析
添加订单候选人工采纳、驳回的完整流程,包含API、前端交互与状态管理
完善盲测功能,支持订单级字段真值校验,调整盲测集唯一性约束
加固库存校验逻辑,防止重复预约与数量不一致问题
优化坐标匹配逻辑,支持表格外的锚点定位
新增上传结果未知的状态处理,完善任务状态机
更新多语言文案与文档说明,补充功能细节
修复订单合并、重解析的边缘情况问题
补充相关测试用例,完善质量保障
This commit is contained in:
hugo committed 2026-07-27 20:48:40 +08:00
1 parent 11079910ec
commit 90f77634d6
76 files changed
+5056 -338

No files matched your search

@@ -13,12 +13,17 @@ import type {
OrderProfileSampleDocument,
CoordinateReconstructionPreview,
CoordinateReconstructionSuggestion,
OrderFieldLayoutSuggestionResponse,
OrderFieldValuePreviewResponse,
CoordinateReconstructionSettings,
OrderProfileSampleIntake,
OrderProfileSamplePreview,
OrderProfilePreviewPages,
OrderProfileBoundSample,
OrderProfilePageTextCandidates,
OrderProfileBlindTestInput,
OrderProfileBlindTestAvailableSample,
OrderProfileBlindTestCandidate,
OrderProfileTestSuite,
ShippingOrderDocumentProfile,
} from '../types/shipping-order-document-profile.types';
@@ -73,16 +78,38 @@ export const previewOrderProfileCoordinateReconstruction = (
/** 从冻结字符坐标建议全部或指定物理行;rowOffset 省略时保持原有全量识别。 */
export const suggestOrderProfileCoordinateReconstruction = (
documentId: number, tableId: string, rowOffset?: number,
documentId: number, tableId: string, rowOffset?: number, schemaVersionId?: number,
) =>
requestJson<CoordinateReconstructionSuggestion>(
'/api/admin/shipping-notice/order-document-profile-samples/coordinate-reconstruction-suggestion', {
method: 'POST',
body: JSON.stringify({ document_id: documentId, table_id: tableId, row_offset: rowOffset }),
body: JSON.stringify({ document_id: documentId, table_id: tableId, row_offset: rowOffset, schema_version_id: schemaVersionId }),
...jsonAuth(),
},
);
/** 根据冻结 Header Schema 与整页字符坐标建议订单字段锚点和值区;结果始终需要人工确认。 */
export const suggestOrderProfileOrderFields = (
documentId: number, schemaVersionId: number, pageNo: number,
) => requestJson<OrderFieldLayoutSuggestionResponse>(
'/api/admin/shipping-notice/order-document-profile-samples/order-field-suggestions', {
method: 'POST',
body: JSON.stringify({ document_id: documentId, schema_version_id: schemaVersionId, page_no: pageNo }),
...jsonAuth(),
},
);
/** 按当前未保存的工作台定义重读订单单头字段值,供刷新后的复核面板恢复证据。 */
export const previewOrderProfileOrderFieldValues = (
documentId: number, schemaVersionId: number, pageNo: number, definition: ShippingOrderDocumentProfile['definition'],
) => requestJson<OrderFieldValuePreviewResponse>(
'/api/admin/shipping-notice/order-document-profile-samples/order-field-values-preview', {
method: 'POST',
body: JSON.stringify({ document_id: documentId, schema_version_id: schemaVersionId, page_no: pageNo, definition }),
...jsonAuth(),
},
);
/** 为扫描 PDF 生成 OCR 坐标证据;随后仍必须由管理员审核重建网格。 */
export const generateOrderProfileOcrCoordinateEvidence = (documentId: number, tableId: string) =>
requestJson<{ document_id: number; table_id: string; source: 'pdf' | 'ocr' }>(
@@ -199,10 +226,29 @@ export const createOrderProfileTestSuite = (profileId: number) => requestJson<Or
);
/** 将一份独立样本的人工真值写入当前盲测集。 */
export const addOrderProfileTestSample = (suiteId: number, payload: { document_id: number; table_id: string; expected_rows: Array<Record<string, unknown>> }) => requestJson<OrderProfileTestSuite>(
export const addOrderProfileTestSample = (suiteId: number, payload: OrderProfileBlindTestInput) => requestJson<OrderProfileTestSuite>(
`/api/admin/shipping-notice/order-document-profile-test-suites/${suiteId}/samples`, { method: 'POST', body: JSON.stringify(payload), ...jsonAuth() },
);
/** 从草稿盲测集中移除错误或不再适用的样本;批准后的测试集由服务端拒绝修改。 */
export const removeOrderProfileTestSample = (suiteId: number, sampleId: number) => requestJson<OrderProfileTestSuite>(
`/api/admin/shipping-notice/order-document-profile-test-suites/${suiteId}/samples/${sampleId}`,
{ method: 'DELETE', ...jsonAuth() },
);
/** 列出未参与当前模板标注/训练且可用于盲测的受控订单样本。 */
export const listOrderProfileBlindTestAvailableSamples = (suiteId: number) => requestJson<{ samples: OrderProfileBlindTestAvailableSample[] }>(
`/api/admin/shipping-notice/order-document-profile-test-suites/${suiteId}/available-samples`, auth(),
);
/** 自动运行独立样本,候选仅供管理员勾选复核,尚未写入真值。 */
export const previewOrderProfileBlindTestCandidate = (suiteId: number, payload: { document_id: number; table_id: string }) => requestJson<OrderProfileBlindTestCandidate>(
`/api/admin/shipping-notice/order-document-profile-test-suites/${suiteId}/candidate-preview`, { method: 'POST', body: JSON.stringify(payload), ...jsonAuth() },
);
/** 将逐项勾选和必要更正值转为既有盲测真值。 */
export const confirmOrderProfileBlindTestReviews = (suiteId: number, payload: { document_id: number; table_id: string; row_reviews: unknown[]; order_field_reviews: Record<string, unknown> }) => requestJson<OrderProfileTestSuite>(
`/api/admin/shipping-notice/order-document-profile-test-suites/${suiteId}/reviewed-samples`, { method: 'POST', body: JSON.stringify(payload), ...jsonAuth() },
);
/** 执行当前盲测集,任何字段或行数差异都保留为发布阻断。 */
export const executeOrderProfileTestSuite = (suiteId: number) => requestJson<OrderProfileTestSuite>(
`/api/admin/shipping-notice/order-document-profile-test-suites/${suiteId}/execute`, { method: 'POST', ...jsonAuth() },
@@ -188,7 +188,7 @@ onBeforeUnmount(() => { endMove(); endPan(); endCreation(); URL.revokeObjectURL(
</header>
<div v-if="loading" class="canvas-state">{{ t('admin.shippingOrderProfiles.workbench.loadingPage') }}</div>
<div v-else-if="!imageUrl" class="canvas-state">{{ t('admin.shippingOrderProfiles.workbench.selectBoundPdf') }}</div>
<div v-else class="canvas-work-area"><aside class="annotation-tools" :class="{ collapsed: !toolsOpen }"><button type="button" class="tools-toggle" :aria-expanded="toolsOpen" :aria-label="toolsOpen ? t('admin.shippingOrderProfiles.workbench.hideAnnotationTools') : t('admin.shippingOrderProfiles.workbench.showAnnotationTools')" @click="toolsOpen = !toolsOpen"><BoxSelect /><span v-if="toolsOpen">{{ t('admin.shippingOrderProfiles.workbench.annotationTools') }}</span></button><template v-if="toolsOpen"><button type="button" :title="t('admin.shippingOrderProfiles.workbench.drawHeader')" :class="{ active: creationKind === 'header_field' }" @click="emit('draw', 'header_field')"><TableProperties /><span>{{ t('admin.shippingOrderProfiles.workbench.header') }}</span></button><button type="button" :title="t('admin.shippingOrderProfiles.workbench.drawLine')" :class="{ active: creationKind === 'line' }" @click="emit('draw', 'line')"><ScanLine /><span>{{ t('admin.shippingOrderProfiles.workbench.line') }}</span></button><button type="button" :title="t('admin.shippingOrderProfiles.workbench.drawField')" :class="{ active: creationKind === 'field' }" @click="emit('draw', 'field')"><BoxSelect /><span>{{ t('admin.shippingOrderProfiles.workbench.field') }}</span></button><button type="button" :title="t('admin.shippingOrderProfiles.workbench.drawExclusion')" :class="{ active: creationKind === 'exclusion' }" @click="emit('draw', 'exclusion')"><Eraser /><span>{{ t('admin.shippingOrderProfiles.workbench.exclusion') }}</span></button><button type="button" class="suggest" :disabled="autoSuggestDisabled || suggesting" @click="emit('suggest')"><Sparkles /><span>{{ suggesting ? t('admin.shippingOrderProfiles.workbench.autoSuggestRunning') : t('admin.shippingOrderProfiles.workbench.autoSuggest') }}</span></button><p v-if="suggestionProgress" class="suggestion-progress" :class="{ failed: !suggesting }">{{ suggestionProgress }}</p></template></aside><div ref="viewport" class="canvas-viewport" :class="{ panning: !creationKind }" @wheel.prevent="handleWheel"><div ref="canvas" class="canvas-stage" :class="{ drawing: creationKind }" :style="{ '--canvas-zoom': zoom }" @pointerdown="beginCreation">
<div v-else class="canvas-work-area"><aside class="annotation-tools" :class="{ collapsed: !toolsOpen }"><button type="button" class="tools-toggle" :aria-expanded="toolsOpen" :aria-label="toolsOpen ? t('admin.shippingOrderProfiles.workbench.hideAnnotationTools') : t('admin.shippingOrderProfiles.workbench.showAnnotationTools')" @click="toolsOpen = !toolsOpen"><BoxSelect /><span v-if="toolsOpen">{{ t('admin.shippingOrderProfiles.workbench.annotationTools') }}</span></button><template v-if="toolsOpen"><button type="button" :title="t('admin.shippingOrderProfiles.workbench.drawOrderAnchor')" :class="{ active: creationKind === 'order_anchor' }" @click="emit('draw', 'order_anchor')"><BoxSelect /><span>{{ t('admin.shippingOrderProfiles.workbench.orderAnchorTool') }}</span></button><button type="button" :title="t('admin.shippingOrderProfiles.workbench.drawOrderField')" :class="{ active: creationKind === 'order_field' }" @click="emit('draw', 'order_field')"><BoxSelect /><span>{{ t('admin.shippingOrderProfiles.workbench.orderField') }}</span></button><button type="button" :title="t('admin.shippingOrderProfiles.workbench.drawHeader')" :class="{ active: creationKind === 'header_field' }" @click="emit('draw', 'header_field')"><TableProperties /><span>{{ t('admin.shippingOrderProfiles.workbench.headerTool') }}</span></button><button type="button" :title="t('admin.shippingOrderProfiles.workbench.drawLine')" :class="{ active: creationKind === 'line' }" @click="emit('draw', 'line')"><ScanLine /><span>{{ t('admin.shippingOrderProfiles.workbench.lineTool') }}</span></button><button type="button" :title="t('admin.shippingOrderProfiles.workbench.drawField')" :class="{ active: creationKind === 'field' }" @click="emit('draw', 'field')"><BoxSelect /><span>{{ t('admin.shippingOrderProfiles.workbench.fieldTool') }}</span></button><button type="button" :title="t('admin.shippingOrderProfiles.workbench.drawExclusion')" :class="{ active: creationKind === 'exclusion' }" @click="emit('draw', 'exclusion')"><Eraser /><span>{{ t('admin.shippingOrderProfiles.workbench.exclusionTool') }}</span></button><button type="button" class="suggest" :disabled="autoSuggestDisabled || suggesting" @click="emit('suggest')"><Sparkles /><span>{{ suggesting ? t('admin.shippingOrderProfiles.workbench.autoSuggestRunning') : t('admin.shippingOrderProfiles.workbench.autoSuggest') }}</span></button><p v-if="suggestionProgress" class="suggestion-progress" :class="{ failed: !suggesting }">{{ suggestionProgress }}</p></template></aside><div ref="viewport" class="canvas-viewport" :class="{ panning: !creationKind }" @wheel.prevent="handleWheel"><div ref="canvas" class="canvas-stage" :class="{ drawing: creationKind }" :style="{ '--canvas-zoom': zoom }" @pointerdown="beginCreation">
<img :src="imageUrl" alt="Controlled document page preview" draggable="false" />
<div
v-for="region in regions"
@@ -216,6 +216,8 @@ onBeforeUnmount(() => { endMove(); endPan(); endCreation(); URL.revokeObjectURL(
.region-label { position: absolute; top: -1.65rem; left: -2px; max-width: min(18rem, 100%); overflow: hidden; border: 1px solid rgb(255 255 255 / .7); border-radius: .25rem .25rem 0 0; background: #0369a1; padding: .2rem .45rem; color: white; font: 700 .7rem/1.15 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.resize-handle { position: absolute; z-index: 3; width: 10px; height: 10px; border: 2px solid white; border-radius: 2px; background: #0ea5e9; box-shadow: 0 1px 2px rgb(15 23 42 / .55); padding: 0; touch-action: none; }.handle-n,.handle-s { left: 50%; margin-left: -5px; cursor: ns-resize; }.handle-e,.handle-w { top: 50%; margin-top: -5px; cursor: ew-resize; }.handle-nw,.handle-se { cursor: nwse-resize; }.handle-ne,.handle-sw { cursor: nesw-resize; }.handle-n,.handle-nw,.handle-ne { top: -6px; }.handle-s,.handle-sw,.handle-se { bottom: -6px; }.handle-e,.handle-ne,.handle-se { right: -6px; }.handle-w,.handle-nw,.handle-sw { left: -6px; }
.region-header_field { z-index: 2; border: 1.5px solid #f59e0b; background: rgb(245 158 11 / .08); }.region-header_field .region-label,.region-header_field .resize-handle { background: #b45309; }
.region-order_field { z-index: 2; border: 1.5px solid #22c55e; background: rgb(34 197 94 / .08); }.region-order_field .region-label,.region-order_field .resize-handle { background: #15803d; }
.region-order_anchor { z-index: 2; border: 1.5px solid #a855f7; background: rgb(168 85 247 / .08); }.region-order_anchor .region-label,.region-order_anchor .resize-handle { background: #7e22ce; }
.region-line { z-index: 0; border-color: #a78bfa; background: rgb(167 139 250 / .1); pointer-events: none; }.region-line .region-label,.region-line .line-hit-edge,.region-line.selected .resize-handle { pointer-events: auto; }.region-line .region-label,.region-line .resize-handle { background: #6d28d9; }
.line-hit-edge { position: absolute; z-index: 2; display: block; }.line-hit-n,.line-hit-s { right: -6px; left: -6px; height: 12px; cursor: move; }.line-hit-e,.line-hit-w { top: 6px; bottom: 6px; width: 12px; cursor: move; }.line-hit-n { top: -6px; }.line-hit-e { right: -6px; }.line-hit-s { bottom: -6px; }.line-hit-w { left: -6px; }
.region-exclusion { z-index: 3; border-style: dashed; border-color: #f87171; background: rgb(248 113 113 / .1); }.region-exclusion .region-label,.region-exclusion .resize-handle { background: #b91c1c; }
@@ -446,6 +446,10 @@ const contextSourceIsActive = (config: ShippingOrderFieldConfig): boolean => {
return optionId !== undefined && activeContextOptions.value.some((item) => item.id === optionId);
};
/** 新增或历史字段缺少显式开关时,仅对业务必填或建单关键字段建议自动标记。 */
const defaultAutoAnnotationEnabled = (config: ShippingOrderFieldConfig): boolean =>
config.required === true || config.auto_create_key_field === true || (config.business_purpose || 'general') !== 'general';
/** 切换确定性来源时同步校正暴露策略,禁止页面提交后端未声明的组合。 */
const syncContextExposurePolicy = (config: ShippingOrderFieldConfig): void => {
const option = activeContextOptions.value.find((item) => item.id === contextOptionId(config));
@@ -490,6 +494,11 @@ const syncDraftFields = (): void => {
}),
context_provider_option_id: contextOptionId(byId.get(field.id) || {} as ShippingOrderFieldConfig),
enabled: byId.has(field.id) ? byId.get(field.id)?.enabled !== false : false,
// Older snapshots did not store this switch. Do not flood a new workbench
// annotation with all optional fields; administrators can opt them in later.
auto_annotation_enabled: byId.has(field.id)
? byId.get(field.id)?.auto_annotation_enabled ?? defaultAutoAnnotationEnabled(byId.get(field.id)!)
: defaultAutoAnnotationEnabled(byId.get(field.id) || {} as ShippingOrderFieldConfig),
}))
.sort((left, right) => (globalSequence.get(left.field_id) || 0) - (globalSequence.get(right.field_id) || 0))
.map((config, index) => ({ ...config, sequence: index + 1 }));
@@ -1007,8 +1016,8 @@ onMounted(async () => {
</template>
</template>
</div>
<template v-if="!selectedIsContext"><div class="rule-switches"><label><input v-model="selectedRuleConfig.required" :disabled="isReadOnly || !selectedDraftField?.enabled" type="checkbox"><span><strong>{{ t('admin.shippingOrderSchema.required') }}</strong></span></label><label><input v-model="selectedRuleConfig.auto_create_key_field" :disabled="isReadOnly || !selectedDraftField?.enabled" type="checkbox"><span><strong>{{ t('admin.shippingOrderSchema.autoCreateKeyField') }}</strong></span></label><label><input v-model="selectedRuleConfig.evidence_policy.required" :disabled="isReadOnly || !selectedDraftField?.enabled" type="checkbox"><span><strong>{{ t('admin.shippingOrderSchema.evidenceRequired') }}</strong></span></label><label><input v-model="selectedRuleConfig.evidence_policy.allow_single_source" :disabled="isReadOnly || !selectedDraftField?.enabled" type="checkbox"><span><strong>{{ t('admin.shippingOrderSchema.allowSingleSource') }}</strong></span></label></div>
<details class="advanced-rules"><summary>{{ t('admin.shippingOrderSchema.advancedRules') }}</summary><div class="advanced-content"><div class="rule-grid"><label><span>{{ t('admin.shippingOrderSchema.normalizer') }}</span><select v-model="selectedRuleConfig.normalizer_key" :disabled="isReadOnly || !selectedDraftField?.enabled"><option v-for="item in compatibleRules(selectedRuleConfig, 'type_normalizers')" :key="item" :value="item">{{ ruleLabel(item) }}</option></select></label><label><span>{{ t('admin.shippingOrderSchema.comparator') }}</span><select v-model="selectedRuleConfig.comparator_key" :disabled="isReadOnly || !selectedDraftField?.enabled"><option v-for="item in compatibleRules(selectedRuleConfig, 'type_comparators')" :key="item" :value="item">{{ ruleLabel(item) }}</option></select></label><label><span>{{ t('admin.shippingOrderSchema.relationRole') }}</span><select v-model="selectedRuleConfig.relation_role" :disabled="isReadOnly || !selectedDraftField?.enabled"><option :value="null">{{ t('admin.shippingOrderSchema.notSet') }}</option><option v-for="item in state.catalog.relation_roles" :key="item" :value="item">{{ ruleLabel(item) }}</option></select></label><label><span>{{ t('admin.shippingOrderSchema.conflictPolicy') }}</span><select v-model="selectedRuleConfig.evidence_policy.conflict_policy" :disabled="isReadOnly || !selectedDraftField?.enabled"><option v-for="item in state.catalog.conflict_policies" :key="item" :value="item">{{ ruleLabel(item) }}</option></select></label></div><fieldset v-if="selectedField?.scope === 'line'"><legend>{{ t('admin.shippingOrderSchema.coordinateSources') }}</legend><div class="check-row compact-check-row"><label v-for="item in ['pdf_coordinate', 'ocr_coordinate'] as const" :key="item"><input :checked="selectedRuleConfig.allowed_sources?.includes(item)" :disabled="isReadOnly || !selectedDraftField?.enabled" type="checkbox" @change="!isReadOnly && (selectedRuleConfig.allowed_sources = toggleValue(selectedRuleConfig.allowed_sources || [], item) as Array<'pdf_coordinate' | 'ocr_coordinate'>)">{{ t(`admin.shippingOrderSchema.coordinateSourceOption.${item}`) }}</label></div><small>{{ t('admin.shippingOrderSchema.coordinateSourcesHint') }}</small></fieldset><fieldset><legend>{{ t('admin.shippingOrderSchema.validators') }}</legend><div class="check-row"><label v-for="item in compatibleRules(selectedRuleConfig, 'type_validators')" :key="item"><input :checked="selectedRuleConfig.validator_keys.includes(item)" :disabled="isReadOnly || !selectedDraftField?.enabled" type="checkbox" @change="!isReadOnly && (selectedRuleConfig.validator_keys = toggleValue(selectedRuleConfig.validator_keys, item))">{{ ruleLabel(item) }}</label></div></fieldset><fieldset><legend>{{ t('admin.shippingOrderSchema.sourcePrecedence') }}</legend><div class="check-row"><label v-for="item in state.catalog.source_types" :key="item"><input :checked="selectedRuleConfig.evidence_policy.source_precedence.includes(item)" :disabled="isReadOnly || !selectedDraftField?.enabled" type="checkbox" @change="!isReadOnly && (selectedRuleConfig.evidence_policy.source_precedence = toggleValue(selectedRuleConfig.evidence_policy.source_precedence, item))">{{ sourceLabel(item) }}</label></div></fieldset></div></details></template>
<template v-if="!selectedIsContext"><div class="rule-switches"><label><input v-model="selectedRuleConfig.required" :disabled="isReadOnly || !selectedDraftField?.enabled" type="checkbox"><span><strong>{{ t('admin.shippingOrderSchema.required') }}</strong></span></label><label><input v-model="selectedRuleConfig.auto_create_key_field" :disabled="isReadOnly || !selectedDraftField?.enabled" type="checkbox"><span><strong>{{ t('admin.shippingOrderSchema.autoCreateKeyField') }}</strong></span></label><label><input v-model="selectedRuleConfig.auto_annotation_enabled" :disabled="isReadOnly || !selectedDraftField?.enabled" type="checkbox"><span><strong>{{ t('admin.shippingOrderSchema.autoAnnotationEnabled') }}</strong></span></label><label><input v-model="selectedRuleConfig.evidence_policy.required" :disabled="isReadOnly || !selectedDraftField?.enabled" type="checkbox"><span><strong>{{ t('admin.shippingOrderSchema.evidenceRequired') }}</strong></span></label><label><input v-model="selectedRuleConfig.evidence_policy.allow_single_source" :disabled="isReadOnly || !selectedDraftField?.enabled" type="checkbox"><span><strong>{{ t('admin.shippingOrderSchema.allowSingleSource') }}</strong></span></label></div>
<details class="advanced-rules"><summary>{{ t('admin.shippingOrderSchema.advancedRules') }}</summary><div class="advanced-content"><div class="rule-grid"><label><span>{{ t('admin.shippingOrderSchema.normalizer') }}</span><select v-model="selectedRuleConfig.normalizer_key" :disabled="isReadOnly || !selectedDraftField?.enabled"><option v-for="item in compatibleRules(selectedRuleConfig, 'type_normalizers')" :key="item" :value="item">{{ ruleLabel(item) }}</option></select></label><label><span>{{ t('admin.shippingOrderSchema.comparator') }}</span><select v-model="selectedRuleConfig.comparator_key" :disabled="isReadOnly || !selectedDraftField?.enabled"><option v-for="item in compatibleRules(selectedRuleConfig, 'type_comparators')" :key="item" :value="item">{{ ruleLabel(item) }}</option></select></label><label><span>{{ t('admin.shippingOrderSchema.relationRole') }}</span><select v-model="selectedRuleConfig.relation_role" :disabled="isReadOnly || !selectedDraftField?.enabled"><option :value="null">{{ t('admin.shippingOrderSchema.notSet') }}</option><option v-for="item in state.catalog.relation_roles" :key="item" :value="item">{{ ruleLabel(item) }}</option></select></label><label><span>{{ t('admin.shippingOrderSchema.conflictPolicy') }}</span><select v-model="selectedRuleConfig.evidence_policy.conflict_policy" :disabled="isReadOnly || !selectedDraftField?.enabled"><option v-for="item in state.catalog.conflict_policies" :key="item" :value="item">{{ ruleLabel(item) }}</option></select></label></div><fieldset><legend>{{ t('admin.shippingOrderSchema.coordinateSources') }}</legend><div class="check-row compact-check-row"><label v-for="item in ['pdf_coordinate', 'ocr_coordinate'] as const" :key="item"><input :checked="selectedRuleConfig.allowed_sources?.includes(item)" :disabled="isReadOnly || !selectedDraftField?.enabled" type="checkbox" @change="!isReadOnly && (selectedRuleConfig.allowed_sources = toggleValue(selectedRuleConfig.allowed_sources || [], item) as Array<'pdf_coordinate' | 'ocr_coordinate'>)">{{ t(`admin.shippingOrderSchema.coordinateSourceOption.${item}`) }}</label></div><small>{{ t('admin.shippingOrderSchema.coordinateSourcesHint') }}</small></fieldset><fieldset><legend>{{ t('admin.shippingOrderSchema.validators') }}</legend><div class="check-row"><label v-for="item in compatibleRules(selectedRuleConfig, 'type_validators')" :key="item"><input :checked="selectedRuleConfig.validator_keys.includes(item)" :disabled="isReadOnly || !selectedDraftField?.enabled" type="checkbox" @change="!isReadOnly && (selectedRuleConfig.validator_keys = toggleValue(selectedRuleConfig.validator_keys, item))">{{ ruleLabel(item) }}</label></div></fieldset><fieldset><legend>{{ t('admin.shippingOrderSchema.sourcePrecedence') }}</legend><div class="check-row"><label v-for="item in state.catalog.source_types" :key="item"><input :checked="selectedRuleConfig.evidence_policy.source_precedence.includes(item)" :disabled="isReadOnly || !selectedDraftField?.enabled" type="checkbox" @change="!isReadOnly && (selectedRuleConfig.evidence_policy.source_precedence = toggleValue(selectedRuleConfig.evidence_policy.source_precedence, item))">{{ sourceLabel(item) }}</label></div></fieldset></div></details></template>
</div>
<footer v-if="!isReadOnly" class="rule-footer"><label><span>{{ t('admin.shippingOrderSchema.changeNote') }}</span><input v-model="changeNote" :placeholder="t('admin.shippingOrderSchema.changeNotePlaceholder')"></label><button :disabled="saving" class="text-danger" @click="deleteDraft">{{ t('admin.shippingOrderSchema.deleteDraft') }}</button></footer>
</template>
@@ -10,8 +10,11 @@ export type OrderProfileEvidenceLevel = 'coordinate' | 'ocr_coordinate';
export type OrderProfileAllowedSource = 'pdf_coordinate' | 'ocr_coordinate';
export interface OrderProfileRelativeRegion { x0: number; y0: number; x1: number; y1: number; }
export interface OrderProfileAnchorRule { anchor_id: string; text: string; match_mode: 'exact' | 'contains'; region?: OrderProfileRelativeRegion | null; minimum_evidence_level: OrderProfileEvidenceLevel; }
export interface OrderProfileAnchorRelativeRegion { x0: number; y0: number; x1: number; y1: number; }
export interface OrderProfileAnchorRule { anchor_id: string; text: string; aliases?: string[]; match_mode: 'exact' | 'contains'; region?: OrderProfileRelativeRegion | null; minimum_evidence_level: OrderProfileEvidenceLevel; }
export interface OrderProfileFieldRegion { field_id: string; field_code: string; region: OrderProfileRelativeRegion; extractor_key: OrderProfileExtractorKey; allowed_sources: OrderProfileAllowedSource[]; minimum_evidence_level: OrderProfileEvidenceLevel; target_fields?: Array<{ field_id: string; field_code: string }>; }
export interface OrderProfileOrderFieldLayout { layout_id: string; field_id: string; field_code: string; page_scope: 'first_page' | 'all_pages' | 'exact_page'; page_no?: number | null; anchor?: OrderProfileAnchorRule | null; value_region?: OrderProfileAnchorRelativeRegion | null; fallback_value_region?: OrderProfileRelativeRegion | null; value_mode: 'single_line' | 'multi_line' | 'right_of_anchor' | 'below_anchor'; stop_anchors: OrderProfileAnchorRule[]; normalizer_key?: string | null; required: boolean; minimum_evidence_level: OrderProfileEvidenceLevel; }
export interface OrderProfileDraftUnboundOrderFieldLayout { layout_id: string; label: string; page_scope: 'first_page' | 'all_pages' | 'exact_page'; page_no?: number | null; anchor?: OrderProfileAnchorRule | null; value_region?: OrderProfileAnchorRelativeRegion | null; fallback_value_region?: OrderProfileRelativeRegion | null; value_mode: 'single_line' | 'multi_line' | 'right_of_anchor' | 'below_anchor'; stop_anchors: OrderProfileAnchorRule[]; minimum_evidence_level: OrderProfileEvidenceLevel; }
export interface OrderProfileHeaderLayout { layout_id: string; region: OrderProfileRelativeRegion; field_regions: OrderProfileFieldRegion[]; }
export interface OrderProfileLineLayout { layout_id: string; row_offset: number; role: 'main' | 'continuation'; region: OrderProfileRelativeRegion; field_regions: OrderProfileFieldRegion[]; new_line_anchor?: OrderProfileAnchorRule | null; continuation_conditions: OrderProfileAnchorRule[]; required_fields: string[]; allowed_empty_fields: string[]; }
export interface OrderProfileTableRegion { region_id: string; page_scope: 'first_page' | 'all_pages' | 'continuation_pages' | 'exact_page'; page_no?: number | null; region: OrderProfileRelativeRegion; header_layouts: OrderProfileHeaderLayout[]; line_layouts: OrderProfileLineLayout[]; continuation_rule: { allow_cross_page: boolean; required_anchor_ids: string[] }; termination_rules: Array<{ rule_id: string; anchor: OrderProfileAnchorRule }>; exclusion_regions: OrderProfileRelativeRegion[]; draft_unbound_field_regions?: Array<{ region_id: string; parent_layout_id: string; label: string; region: OrderProfileRelativeRegion }>; }
@@ -33,6 +36,8 @@ export interface ShippingOrderDocumentProfile {
contract_version: 'order_coordinate_profile.v2';
document_match: OrderProfileDocumentMatch;
table_regions: OrderProfileTableRegion[];
order_field_layouts?: OrderProfileOrderFieldLayout[];
draft_unbound_order_field_layouts?: OrderProfileDraftUnboundOrderFieldLayout[];
/** 阶段 3 前允许旧页面只读显示历史 v1 版本;新写入不会产生这些字段。 */
row_structure?: 'preserved' | 'unsupported_row_structure';
drop_zero_qty?: boolean;
@@ -68,18 +73,47 @@ export interface OrderProfileTestSuite {
profile_checksum: string;
status: 'draft' | 'approved' | 'superseded';
sample_count: number;
samples: Array<{
id: number;
document_id: number;
table_id: string;
filename: string;
page_no: number;
}>;
approved_at?: string | null;
latest_run?: { status: 'passed' | 'failed'; sample_count: number; passed_sample_count: number; failure_codes: string[] } | null;
}
export interface OrderProfileBlindTestInput {
document_id: number;
table_id: string;
expected_rows: Array<Record<string, unknown>>;
expected_order_fields?: Record<string, unknown>;
}
/** 盲测工作台的独立候选样本;已排除当前模板的标注和训练证据。 */
export interface OrderProfileBlindTestAvailableSample { document_id: number; table_id: string; page_no: number; filename: string; }
export interface OrderProfileBlindTestCandidate {
document_id: number; table_id: string; rows: Array<Record<string, unknown>>;
order_fields: Array<{ field_code: string; value: unknown; status: 'confirmed' | 'needs_review' | 'unavailable'; page_no: number | null; issues: string[] }>;
}
/** 工作台的本地几何状态;保存前转为 v2 相对区域定义。 */
export interface OrderProfileCanvasRegion {
id: string;
kind: 'header' | 'header_field' | 'line' | 'field' | 'exclusion';
kind: 'header' | 'header_field' | 'line' | 'field' | 'order_anchor' | 'order_field' | 'exclusion';
label: string;
region: OrderProfileRelativeRegion;
fieldCode?: string | null;
parentId?: string | null;
/** 订单字段锚点与值框共享持久 layout_id,避免误归属明细物理行。 */
orderFieldId?: string | null;
/** 订单字段的读取形态;仅用于订单字段值框,保存时转为受控 value_mode。 */
valueMode?: 'single_line' | 'multi_line' | 'right_of_anchor' | 'below_anchor';
/** 自动标记时从同一值框读取的待复核文本,仅用于工作台即时展示。 */
suggestedValue?: string | null;
/** 自动建议实际使用的坐标证据来源,保存时映射到最小证据等级。 */
evidenceSource?: 'pdf_coordinate' | 'ocr_coordinate';
stopAnchorText?: string | null;
/** 标记所属文档页;画布切页时仅渲染当前页的区域。 */
pageNo: number;
}
@@ -186,7 +220,44 @@ export interface CoordinateSubrowSuggestion extends CoordinateSubrowLayout {
export interface CoordinateReconstructionSuggestion {
table_id: string;
table_region?: OrderProfileRelativeRegion;
header_regions?: Array<{ region: OrderProfileRelativeRegion; text: string; fields: Array<{ region: OrderProfileRelativeRegion; text: string }> }>;
header_regions?: Array<{ region: OrderProfileRelativeRegion; text: string; fields: Array<{ region: OrderProfileRelativeRegion; text: string; field_code?: string | null; confidence?: 'exact_alias' | 'ambiguous' | 'unmapped' }> }>;
subrow_layouts: CoordinateSubrowSuggestion[];
status: 'needs_review';
}
/** 自动标记的订单级字段候选;仅供管理员复核,不是已绑定模板定义。 */
export interface OrderFieldLayoutSuggestion {
field_id: string;
field_code: string;
display_name: string;
source: 'pdf_coordinate' | 'ocr_coordinate';
status: 'suggested' | 'ambiguous' | 'unavailable';
binding_status?: 'bound' | 'unbound';
issue: string | null;
anchor_text?: string;
anchor_region?: OrderProfileRelativeRegion;
value_region?: OrderProfileRelativeRegion;
value_mode?: 'right_of_anchor' | 'below_anchor';
/** 与建议值框使用同一字符证据读取的待复核文本。 */
suggested_value?: string;
}
export interface OrderFieldLayoutSuggestionResponse {
page_no: number;
order_field_candidates: OrderFieldLayoutSuggestion[];
issues: string[];
status: 'needs_review';
}
export interface OrderFieldValuePreview {
field_id: string;
field_code: string;
value: string | null;
status: 'confirmed' | 'needs_review' | 'unavailable';
page_no: number | null;
}
export interface OrderFieldValuePreviewResponse {
page_no: number;
fields: OrderFieldValuePreview[];
}
@@ -31,6 +31,8 @@ export interface ShippingOrderFieldConfig {
minimum_confidence?: number | null;
required: boolean;
aliases: string[];
/** 是否允许该字段按别名参与模板工作台的自动框选。 */
auto_annotation_enabled?: boolean;
normalizer_key: string;
validator_keys: string[];
enum_options: string[];
@@ -753,6 +753,22 @@ export const updateShippingNoticeCandidate = (
},
);
export const promoteShippingNoticeCandidate = (candidateNo: string) =>
requestJson<import('../types/shipping.api.types').ShippingNoticeCandidateResponse>(
`/api/workspace/shipping-notice/candidates/${encodeURIComponent(candidateNo)}/promote`,
{ method: 'POST' },
);
export const rejectShippingNoticeCandidate = (candidateNo: string, reason?: string) =>
requestJson<import('../types/shipping.api.types').ShippingNoticeCandidateResponse>(
`/api/workspace/shipping-notice/candidates/${encodeURIComponent(candidateNo)}/reject`,
{
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ reason: reason || undefined }),
},
);
export const resolveShippingNoticeCandidateDuplicate = (
candidateNo: string,
action: string,
@@ -25,9 +25,10 @@ const props = defineProps<{
canForceCreate: boolean;
}>();
const emit = defineEmits<{
select: [candidateNo: string, selected: boolean];
update: [candidateNo: string, businessSummary: Record<string, unknown>, done: (success: boolean) => void];
resolveDuplicate: [candidateNo: string, action: ShippingDuplicateAction, targetTaskNo: string | undefined, reason: string | undefined, done: (success: boolean) => void];
promote: [candidateNo: string, done: (success: boolean) => void];
reject: [candidateNo: string, done: (success: boolean) => void];
}>();
const { t } = useI18n();
@@ -186,6 +187,14 @@ function submitForceCreate(candidateNo: string): void {
},
);
}
/** 发起后端决定的人工采纳或驳回;UI 不自行推导履约资格。 */
function decideCandidate(candidateNo: string, action: 'promote' | 'reject'): void {
submittingCandidateNo.value = candidateNo;
const done = () => { submittingCandidateNo.value = ''; };
if (action === 'promote') emit('promote', candidateNo, done);
else emit('reject', candidateNo, done);
}
</script>
<template>
@@ -196,19 +205,13 @@ function submitForceCreate(candidateNo: string): void {
</div>
<div v-for="candidate in candidates" :key="candidate.candidateNo" class="rounded-lg border border-default bg-surface-soft p-2 text-xs">
<div class="flex flex-wrap items-center gap-2">
<input
type="checkbox"
:checked="candidate.selected"
:disabled="!!candidate.consumedTaskId"
@change="emit('select', candidate.candidateNo, ($event.target as HTMLInputElement).checked)"
/>
<span class="font-mono text-primary">{{ candidate.candidateNo }}</span>
<span class="font-medium text-secondary">PO {{ candidate.poNumber || '-' }}</span>
<span v-if="candidate.documentFilename" class="max-w-40 truncate text-muted">{{ candidate.documentFilename }}</span>
<span :class="candidate.validationStatus === 'ready' ? 'text-emerald-700' : 'text-amber-700'">
{{ candidate.validationStatus === 'ready' ? t('chat.shippingCandidateReady') : t('chat.shippingCandidateNeedsReview') }}
<span :class="candidate.candidateStatus === 'accepted' ? 'text-emerald-700' : 'text-amber-700'">
{{ candidate.candidateStatus === 'accepted' ? (candidate.acceptanceMode === 'automatic' ? t('chat.shippingCandidateAutoAccepted') : t('chat.shippingCandidateAccepted')) : (candidate.candidateStatus === 'rejected' ? t('chat.shippingCandidateRejected') : t('chat.shippingCandidateNeedsReview')) }}
</span>
<button type="button" class="ml-auto text-brand-700 hover:underline" @click="startEdit(candidate.candidateNo)">
<button v-if="candidate.actionButtons.includes('edit')" type="button" class="ml-auto text-brand-700 hover:underline" @click="startEdit(candidate.candidateNo)">
{{ t('chat.shippingCandidateEdit') }}
</button>
</div>
@@ -308,6 +311,10 @@ function submitForceCreate(candidateNo: string): void {
<div v-else-if="candidate.duplicateResolution" class="mt-1 text-muted">
{{ t('chat.shippingCandidateDuplicateResolved', { action: candidate.duplicateResolution.action }) }}
</div>
<div v-if="candidate.actionButtons.includes('promote') || candidate.actionButtons.includes('reject')" class="mt-2 flex gap-2">
<button v-if="candidate.actionButtons.includes('promote')" type="button" class="rounded bg-brand-600 px-2 py-1 text-white disabled:opacity-50" :disabled="submittingCandidateNo === candidate.candidateNo" @click="decideCandidate(candidate.candidateNo, 'promote')">{{ t('chat.shippingCandidatePromote') }}</button>
<button v-if="candidate.actionButtons.includes('reject')" type="button" class="rounded border border-default px-2 py-1 text-secondary disabled:opacity-50" :disabled="submittingCandidateNo === candidate.candidateNo" @click="decideCandidate(candidate.candidateNo, 'reject')">{{ t('chat.shippingCandidateReject') }}</button>
</div>
<div v-if="editingCandidateNo === candidate.candidateNo" class="mt-2 space-y-2">
<label class="block">
<span class="text-muted">{{ t('chat.shippingCandidatePoNumber') }}</span>
@@ -175,11 +175,6 @@ const shippingOrderExtractionReviewAttachments = computed<ShippingNoticePendingA
}));
});
/** 审核操作仍走统一 Candidate API,成功后由页面同步更新当前 Run 卡快照。 */
const selectOrderExtractionCandidate = async (candidateNo: string, selected: boolean) => {
await shippingHandlers.selectCandidate(candidateNo, selected);
};
const updateOrderExtractionCandidate = async (
candidateNo: string,
businessSummary: Record<string, unknown>,
@@ -188,6 +183,14 @@ const updateOrderExtractionCandidate = async (
await shippingHandlers.updateCandidate(candidateNo, businessSummary, done);
};
const promoteOrderExtractionCandidate = async (candidateNo: string, done: (success: boolean) => void) => {
await shippingHandlers.promoteCandidate(candidateNo, done);
};
const rejectOrderExtractionCandidate = async (candidateNo: string, done: (success: boolean) => void) => {
await shippingHandlers.rejectCandidate(candidateNo, done);
};
const resolveOrderExtractionCandidateDuplicate = async (
candidateNo: string,
action: import('../../types/shipping.types').ShippingDuplicateAction,
@@ -940,9 +943,10 @@ function handleInlineDownload(file: InlineDownloadFile): void {
:key="attachment.intakeNo"
:attachment="attachment"
:can-force-create="false"
@select="selectOrderExtractionCandidate"
@update="updateOrderExtractionCandidate"
@resolve-duplicate="resolveOrderExtractionCandidateDuplicate"
@promote="promoteOrderExtractionCandidate"
@reject="rejectOrderExtractionCandidate"
/>
</div>
<LeaveMessageBlock
@@ -17,7 +17,8 @@ export interface ShippingMessageHandlers {
removeLine: (msg: ChatMessage, lineIndex: number) => Promise<boolean>;
retryOrderExtractionRun: (runNo: string) => Promise<boolean>;
reparseOrderExtractionRun: (runNo: string, reason: 'rule_updated' | 'field_mapping_error' | 'document_quality' | 'other') => Promise<boolean>;
selectCandidate: (candidateNo: string, selected: boolean) => Promise<void>;
updateCandidate: (candidateNo: string, businessSummary: Record<string, unknown>, done: (success: boolean) => void) => Promise<void>;
resolveCandidateDuplicate: (candidateNo: string, action: import('../../types/shipping.types').ShippingDuplicateAction, targetTaskNo: string | undefined, reason: string | undefined, done: (success: boolean) => void) => Promise<void>;
promoteCandidate: (candidateNo: string, done: (success: boolean) => void) => Promise<void>;
rejectCandidate: (candidateNo: string, done: (success: boolean) => void) => Promise<void>;
}
@@ -1045,6 +1045,34 @@ export function useChatShipping(options: UseChatShippingOptions) {
}
};
/** 人工采纳 Dify 兜底 Candidate,并刷新当前 Run 的审核快照。 */
const promoteShippingCandidate = async (candidateNo: string, done?: (success: boolean) => void) => {
try {
await shippingIntakes.promoteCandidate(candidateNo);
const candidate = shippingIntakes.noticeAttachments.value.flatMap((item) => item.candidates || []).find((item) => item.candidateNo === candidateNo);
if (candidate) await shippingOrderExtractionRuns.updateCandidateReviewSnapshot(candidate);
msg.success(t('chat.shippingCandidatePromoted'));
done?.(true);
} catch (error: unknown) {
msg.warning(error instanceof Error ? error.message : t('chat.shippingCandidateUpdateFailed'));
done?.(false);
}
};
/** 人工驳回 Dify 兜底 Candidate,并刷新当前 Run 的审核快照。 */
const rejectShippingCandidate = async (candidateNo: string, done?: (success: boolean) => void) => {
try {
await shippingIntakes.rejectCandidate(candidateNo);
const candidate = shippingIntakes.noticeAttachments.value.flatMap((item) => item.candidates || []).find((item) => item.candidateNo === candidateNo);
if (candidate) await shippingOrderExtractionRuns.updateCandidateReviewSnapshot(candidate);
msg.success(t('chat.shippingCandidateRejected'));
done?.(true);
} catch (error: unknown) {
msg.warning(error instanceof Error ? error.message : t('chat.shippingCandidateUpdateFailed'));
done?.(false);
}
};
const {
handleShippingAutoUploadFile,
handleShippingAutoUploadNoticeBatch,
@@ -1484,6 +1512,8 @@ export function useChatShipping(options: UseChatShippingOptions) {
setShippingCandidateSelected,
updateShippingCandidateSummary,
resolveShippingCandidateDuplicate,
promoteShippingCandidate,
rejectShippingCandidate,
showShippingDuplicateDialog,
showShippingCustomerDialog,
shippingCustomerOptions,
@@ -37,9 +37,10 @@ type ShippingHandlerSource = Pick<
| 'removeShippingParseReviewLine'
| 'retryOrderExtractionRun'
| 'reparseOrderExtractionRun'
| 'setShippingCandidateSelected'
| 'updateShippingCandidateSummary'
| 'resolveShippingCandidateDuplicate'
| 'promoteShippingCandidate'
| 'rejectShippingCandidate'
>;
type TrainingHandlerSource = ReturnType<typeof useTrainingWorkspace>;
@@ -75,9 +76,10 @@ export function createShippingMessageHandlers(shipping: ShippingHandlerSource):
removeLine: shipping.removeShippingParseReviewLine,
retryOrderExtractionRun: shipping.retryOrderExtractionRun,
reparseOrderExtractionRun: shipping.reparseOrderExtractionRun,
selectCandidate: shipping.setShippingCandidateSelected,
updateCandidate: shipping.updateShippingCandidateSummary,
resolveCandidateDuplicate: shipping.resolveShippingCandidateDuplicate,
promoteCandidate: shipping.promoteShippingCandidate,
rejectCandidate: shipping.rejectShippingCandidate,
};
}
@@ -24,6 +24,8 @@ import {
listActiveShippingNoticeIntakes,
resolveShippingNoticeDuplicate,
resolveShippingNoticeCandidateDuplicate,
promoteShippingNoticeCandidate,
rejectShippingNoticeCandidate,
retryShippingNoticeIntake,
updateShippingNoticeCandidate,
} from '@/features/chat/api/shipping.api';
@@ -171,6 +173,10 @@ export function mapServerCandidate(remote: ShippingNoticeCandidateResponse): Shi
poNumber: remote.po_number || undefined,
documentFilename: remote.primary_document_filename || undefined,
validationStatus: remote.validation_status,
candidateStatus: remote.candidate_status || 'provisional',
acceptanceMode: remote.acceptance_mode || undefined,
extractionSource: remote.extraction_source || undefined,
actionButtons: Array.isArray(remote.action_buttons) ? remote.action_buttons : [],
selected: Boolean(remote.selected),
conflicts: remote.conflicts || [],
missingFields: Array.isArray(remote.missing_fields) ? remote.missing_fields.map((item) => String(item)) : [],
@@ -539,6 +545,24 @@ export function useShippingNoticeIntakes(options: UseShippingNoticeIntakesOption
}
};
/** 人工采纳已复核的 Dify Candidate;后端决定是否已满足履约门禁。 */
const promoteCandidate = async (candidateNo: string) => {
const remote = await promoteShippingNoticeCandidate(candidateNo);
for (const attachment of noticeAttachments.value) {
if (!(attachment.candidates || []).some((item) => item.candidateNo === candidateNo)) continue;
patchAttachment(attachment.id, { candidates: (attachment.candidates || []).map((item) => item.candidateNo === candidateNo ? mapServerCandidate(remote) : item) });
}
};
/** 人工驳回无需进入履约的 Dify Candidate。 */
const rejectCandidate = async (candidateNo: string, reason?: string) => {
const remote = await rejectShippingNoticeCandidate(candidateNo, reason);
for (const attachment of noticeAttachments.value) {
if (!(attachment.candidates || []).some((item) => item.candidateNo === candidateNo)) continue;
patchAttachment(attachment.id, { candidates: (attachment.candidates || []).map((item) => item.candidateNo === candidateNo ? mapServerCandidate(remote) : item) });
}
};
/** 保存单个 Candidate 的重复处理决策。 */
const resolveCandidateDuplicate = async (
candidateNo: string,
@@ -594,6 +618,8 @@ export function useShippingNoticeIntakes(options: UseShippingNoticeIntakesOption
resolveCandidateDuplicate,
setCandidateSelected,
updateCandidateSummary,
promoteCandidate,
rejectCandidate,
getParsedIntakeNos,
markOrderExtractionStarted,
rollbackOrderExtractionStarted,
@@ -676,6 +676,10 @@ export interface ShippingNoticeCandidateResponse {
primary_document_filename?: string | null;
po_number?: string | null;
validation_status: string;
candidate_status?: 'provisional' | 'accepted' | 'rejected' | 'expired';
acceptance_mode?: 'automatic' | 'manual' | 'legacy' | null;
extraction_source?: string | null;
action_buttons?: string[];
selected: boolean;
conflicts?: Array<Record<string, unknown>>;
missing_fields?: string[];
@@ -78,6 +78,10 @@ export interface ShippingNoticeCandidate {
poNumber?: string;
documentFilename?: string;
validationStatus: string;
candidateStatus: 'provisional' | 'accepted' | 'rejected' | 'expired';
acceptanceMode?: 'automatic' | 'manual' | 'legacy';
extractionSource?: string;
actionButtons: string[];
selected: boolean;
conflicts: Array<Record<string, unknown>>;
missingFields?: string[];
+46 -6
View File
@@ -264,6 +264,7 @@
"autoCreationEnabled": "Enable automatic task creation",
"autoCreationSaved": "Automatic task creation setting saved",
"autoCreateKeyField": "Task-creation key field",
"autoAnnotationEnabled": "Use for automatic annotation",
"minimumKeyFieldConfidence": "Minimum key-field confidence",
"unnamedField": "Unnamed field",
"pendingNameField": "Field awaiting name {number}",
@@ -2629,18 +2630,37 @@
"title": "Blind test",
"samples": "Samples: {count} · {status}",
"notRun": "not run",
"approvedHint": "This blind test is approved; no further run or approval is needed.",
"selectIndependentSample": "Select independent sample",
"selectSamplePlaceholder": "Select an order not used to annotate this template",
"noIndependentSamples": "No independent sample is available. Upload and parse another matching order first.",
"reviewHint": "Mark every item correct or incorrect. Provide a correction for incorrect items; unreviewed items cannot be added.",
"row": "Line {index}",
"correct": "Correct",
"incorrect": "Incorrect",
"confirmReview": "Confirm review and add",
"correctionInvalid": "A line correction must be a JSON field object.",
"expectedRows": "Human truth (JSON array)",
"expectedRowsPlaceholder": "[{\"line_no\": \"00010\", \"part_number\": \"PN-1\", \"qty\": \"3\"}]",
"expectedRowsHint": "Enter at least one human-confirmed line truth; do not copy the candidate output.",
"expectedRowsInvalid": "Truth must be a JSON array containing at least one non-empty line object.",
"trainingAdded": "Current training sample bound",
"addTrainingSample": "Add training sample",
"addCurrentSample": "Add current blind sample",
"expectedOrderFields": "Order field truth (JSON object)",
"expectedOrderFieldsPlaceholder": "{\"customer_po\": \"PO-45001\"}",
"expectedOrderFieldsHint": "When order fields are configured, enter a human-confirmed value for every field.",
"expectedOrderFieldsInvalid": "Order field truth must be a JSON object.",
"trainingAdded": "Current training sample bound",
"addTrainingSample": "Add training sample",
"addedSamples": "Added blind-test samples",
"addedSamplesHint": "Draft samples can be removed; approved samples remain auditable.",
"removeSample": "Remove sample",
"sampleRemoved": "Blind-test sample removed",
"addCurrentSample": "Add current blind sample",
"run": "Run",
"approve": "Approve"
},
"workbench": {
"intro": "Drag evidence regions on a controlled document page; saved definitions contain no HTML or storage URL.",
"workbench": {
"boundHistoricalSchema": "bound historical version",
"intro": "Drag evidence regions on a controlled document page; saved definitions contain no HTML or storage URL.",
"openCanvas": "Create draft and open canvas",
"loadingPage": "Loading page...",
"canvasZoom": "Page zoom",
@@ -2664,6 +2684,8 @@
"regionSuggestionReady": "Review the generated row and column marks, then confirm field bindings before saving.",
"unboundColumn": "Unbound column {count}",
"drawHeader": "Draw header",
"drawOrderField": "Draw order field",
"drawOrderAnchor": "Draw order field label",
"drawLine": "Draw physical line",
"drawField": "Draw field",
"drawExclusion": "Draw exclusion",
@@ -2691,6 +2713,21 @@
"undo": "Undo",
"redo": "Redo",
"header": "Header",
"orderField": "Order field",
"orderFieldCandidates": "Order header fields",
"unbound": "Unbound",
"noAnnotatedOrderFields": "No order header fields are annotated on this page.",
"suggestedValue": "Detected value",
"orderAnchor": "Order field label",
"orderAnchorTool": "Field label",
"headerTool": "Table header",
"lineTool": "Detail row",
"fieldTool": "Detail field",
"exclusionTool": "Exclusion area",
"orderFieldValueMode": "Read mode",
"orderFieldStopAnchor": "Stop label",
"orderFieldStopAnchorPlaceholder": "For example, SHIP TO",
"orderFieldModes": { "singleLine": "Single line", "rightOfAnchor": "Right of label", "belowAnchor": "Below label", "multiLine": "Multiple lines" },
"matchCurrentHeader": "Match current header",
"matchAllHeaders": "Match all headers",
"confirmHeaderBinding": "Confirm “{text}” as {field}",
@@ -2722,6 +2759,8 @@
"regionLabels": {
"header": "Header {count}",
"header_field": "Header field {count}",
"order_field": "Order field {count}",
"order_anchor": "Order field label {count}",
"line": "Physical line {count}",
"field": "Field {count}",
"exclusion": "Exclusion {count}"
@@ -2731,7 +2770,8 @@
"table": "Select a table on the current page.",
"line": "Add at least one main line layout.",
"field": "Bind at least one line field.",
"coordinateField": "The current order schema has no enabled line field authorized for PDF-coordinate evidence. Authorize one in the order field template before creating a profile."
"coordinateField": "The current order schema has no enabled line field authorized for PDF-coordinate evidence. Authorize one in the order field template before creating a profile.",
"orderFieldStopAnchor": "A multi-line order field requires a stop label."
}
}
}
+6
View File
@@ -110,6 +110,12 @@
"shippingCandidateCount": "{count} orders",
"shippingCandidateReady": "Ready",
"shippingCandidateNeedsReview": "Needs review",
"shippingCandidateAutoAccepted": "Approved template accepted automatically",
"shippingCandidateAccepted": "Accepted after review",
"shippingCandidateRejected": "Rejected",
"shippingCandidatePromote": "Accept and continue",
"shippingCandidatePromoted": "Order candidate accepted",
"shippingCandidateReject": "Reject",
"shippingCandidateEdit": "Edit",
"shippingCandidateSave": "Save changes",
"shippingCandidateConflictCount": "{count} field conflicts must be corrected before task creation.",
+46 -6
View File
@@ -263,6 +263,7 @@
"autoCreationEnabled": "เปิดใช้การสร้างงานอัตโนมัติ",
"autoCreationSaved": "บันทึกการตั้งค่าการสร้างงานอัตโนมัติแล้ว",
"autoCreateKeyField": "ฟิลด์สำคัญสำหรับการสร้างงาน",
"autoAnnotationEnabled": "ใช้สำหรับการทำเครื่องหมายอัตโนมัติ",
"minimumKeyFieldConfidence": "ความเชื่อมั่นขั้นต่ำของฟิลด์สำคัญ",
"unnamedField": "ฟิลด์ไม่มีชื่อ",
"pendingNameField": "ฟิลด์ที่รอตั้งชื่อ {number}",
@@ -2497,18 +2498,37 @@
"title": "การทดสอบแบบปิดบัง",
"samples": "ตัวอย่าง: {count} · {status}",
"notRun": "ยังไม่ดำเนินการ",
"approvedHint": "การทดสอบแบบปิดบังนี้ได้รับอนุมัติแล้ว ไม่ต้องดำเนินการหรืออนุมัติซ้ำ",
"selectIndependentSample": "เลือกตัวอย่างอิสระ",
"selectSamplePlaceholder": "เลือกคำสั่งซื้อที่ไม่ได้ใช้ทำเครื่องหมายเทมเพลตนี้",
"noIndependentSamples": "ไม่มีตัวอย่างอิสระ โปรดอัปโหลดและแยกข้อมูลคำสั่งซื้อประเภทเดียวกันอีกฉบับก่อน",
"reviewHint": "ทำเครื่องหมายแต่ละรายการว่าถูกต้องหรือผิดพลาด หากผิดพลาดต้องระบุค่าที่แก้ไข รายการที่ยังไม่ตรวจทานจะเพิ่มไม่ได้",
"row": "รายการ {index}",
"correct": "ถูกต้อง",
"incorrect": "ผิดพลาด",
"confirmReview": "ยืนยันการตรวจทานและเพิ่ม",
"correctionInvalid": "ค่าที่แก้ไขของรายการต้องเป็นออบเจ็กต์ฟิลด์ JSON",
"expectedRows": "ข้อมูลจริงที่ยืนยันโดยคน (อาร์เรย์ JSON)",
"expectedRowsPlaceholder": "[{\"line_no\": \"00010\", \"part_number\": \"PN-1\", \"qty\": \"3\"}]",
"expectedRowsHint": "กรอกข้อมูลจริงของรายการที่มนุษย์ยืนยันอย่างน้อยหนึ่งรายการ ห้ามคัดลอกผลลัพธ์ตัวเลือก.",
"expectedRowsInvalid": "ข้อมูลจริงต้องเป็นอาร์เรย์ JSON ที่มีอ็อบเจ็กต์รายการที่ไม่ว่างอย่างน้อยหนึ่งรายการ.",
"trainingAdded": "ผูกตัวอย่างการฝึกปัจจุบันแล้ว",
"addTrainingSample": "เพิ่มตัวอย่างการฝึก",
"addCurrentSample": "เพิ่มตัวอย่างทดสอบปัจจุบัน",
"expectedOrderFields": "ข้อมูลจริงของฟิลด์คำสั่งซื้อ (ออบเจ็กต์ JSON)",
"expectedOrderFieldsPlaceholder": "{\"customer_po\": \"PO-45001\"}",
"expectedOrderFieldsHint": "เมื่อกำหนดฟิลด์คำสั่งซื้อ ต้องกรอกค่าที่ยืนยันโดยมนุษย์สำหรับทุกฟิลด์.",
"expectedOrderFieldsInvalid": "ข้อมูลจริงของฟิลด์คำสั่งซื้อต้องเป็นออบเจ็กต์ JSON.",
"trainingAdded": "ผูกตัวอย่างการฝึกปัจจุบันแล้ว",
"addTrainingSample": "เพิ่มตัวอย่างการฝึก",
"addedSamples": "ตัวอย่างการทดสอบที่เพิ่มแล้ว",
"addedSamplesHint": "ลบได้ในฉบับร่าง; หลังอนุมัติจะเก็บบันทึกการตรวจสอบไว้",
"removeSample": "ลบตัวอย่าง",
"sampleRemoved": "ลบตัวอย่างการทดสอบแล้ว",
"addCurrentSample": "เพิ่มตัวอย่างทดสอบปัจจุบัน",
"run": "ดำเนินการ",
"approve": "อนุมัติ"
},
"workbench": {
"intro": "ลากพื้นที่หลักฐานบนหน้าเอกสารที่ควบคุมไว้ คำนิยามที่บันทึกไม่มี HTML หรือ URL ที่เก็บข้อมูล",
"workbench": {
"boundHistoricalSchema": "เวอร์ชันประวัติที่ผูกไว้",
"intro": "ลากพื้นที่หลักฐานบนหน้าเอกสารที่ควบคุมไว้ คำนิยามที่บันทึกไม่มี HTML หรือ URL ที่เก็บข้อมูล",
"openCanvas": "สร้างฉบับร่างและเปิดผืนงาน",
"loadingPage": "กำลังโหลดหน้า...",
"canvasZoom": "การซูมหน้า",
@@ -2532,6 +2552,8 @@
"regionSuggestionReady": "สร้างเครื่องหมายแถวและคอลัมน์เพื่อการตรวจทานแล้ว โปรดยืนยันการผูกฟิลด์ก่อนบันทึก",
"unboundColumn": "คอลัมน์ที่ยังไม่ผูก {count}",
"drawHeader": "วาดหัวตาราง",
"drawOrderField": "วาดฟิลด์คำสั่งซื้อ",
"drawOrderAnchor": "วาดป้ายกำกับฟิลด์คำสั่งซื้อ",
"drawLine": "วาดแถวจริง",
"drawField": "วาดฟิลด์",
"drawExclusion": "วาดพื้นที่ยกเว้น",
@@ -2559,6 +2581,21 @@
"undo": "เลิกทำ",
"redo": "ทำซ้ำ",
"header": "หัวตาราง",
"orderField": "ฟิลด์คำสั่งซื้อ",
"orderFieldCandidates": "ฟิลด์ส่วนหัวคำสั่งซื้อ",
"unbound": "ยังไม่ผูก",
"noAnnotatedOrderFields": "ยังไม่มีการทำเครื่องหมายฟิลด์ส่วนหัวคำสั่งซื้อในหน้านี้",
"suggestedValue": "ค่าที่ตรวจพบ",
"orderAnchor": "ป้ายกำกับฟิลด์คำสั่งซื้อ",
"orderAnchorTool": "ป้ายฟิลด์",
"headerTool": "หัวตาราง",
"lineTool": "แถวรายการ",
"fieldTool": "ฟิลด์รายการ",
"exclusionTool": "พื้นที่ยกเว้น",
"orderFieldValueMode": "โหมดการอ่าน",
"orderFieldStopAnchor": "ป้ายกำกับสิ้นสุด",
"orderFieldStopAnchorPlaceholder": "ตัวอย่าง SHIP TO",
"orderFieldModes": { "singleLine": "บรรทัดเดียว", "rightOfAnchor": "ด้านขวาของป้ายกำกับ", "belowAnchor": "ด้านล่างป้ายกำกับ", "multiLine": "หลายบรรทัด" },
"matchCurrentHeader": "จับคู่หัวตารางปัจจุบัน",
"matchAllHeaders": "จับคู่หัวตารางทั้งหมด",
"confirmHeaderBinding": "ยืนยัน “{text}” เป็น {field}",
@@ -2590,6 +2627,8 @@
"regionLabels": {
"header": "หัวตาราง {count}",
"header_field": "ฟิลด์หัวตาราง {count}",
"order_field": "ฟิลด์คำสั่งซื้อ {count}",
"order_anchor": "ป้ายกำกับฟิลด์คำสั่งซื้อ {count}",
"line": "แถวจริง {count}",
"field": "ฟิลด์ {count}",
"exclusion": "พื้นที่ยกเว้น {count}"
@@ -2599,7 +2638,8 @@
"table": "เลือกตารางบนหน้าปัจจุบัน",
"line": "เพิ่มโครงร่างแถวหลักอย่างน้อยหนึ่งรายการ",
"field": "ผูกฟิลด์รายละเอียดอย่างน้อยหนึ่งรายการ",
"coordinateField": "เวอร์ชันฟิลด์คำสั่งซื้อปัจจุบันไม่มีฟิลด์รายการที่เปิดใช้และได้รับอนุญาตให้ใช้หลักฐานพิกัด PDF โปรดอนุญาตในเทมเพลตฟิลด์คำสั่งซื้อก่อนสร้างโปรไฟล์"
"coordinateField": "เวอร์ชันฟิลด์คำสั่งซื้อปัจจุบันไม่มีฟิลด์รายการที่เปิดใช้และได้รับอนุญาตให้ใช้หลักฐานพิกัด PDF โปรดอนุญาตในเทมเพลตฟิลด์คำสั่งซื้อก่อนสร้างโปรไฟล์",
"orderFieldStopAnchor": "ฟิลด์คำสั่งซื้อหลายบรรทัดต้องมีป้ายกำกับสิ้นสุด"
}
}
}
+6
View File
@@ -110,6 +110,12 @@
"shippingCandidateCount": "คำสั่งซื้อ {count} รายการ",
"shippingCandidateReady": "พร้อมสร้างงาน",
"shippingCandidateNeedsReview": "ต้องตรวจสอบ",
"shippingCandidateAutoAccepted": "ยืนยันอัตโนมัติจากเทมเพลตที่อนุมัติ",
"shippingCandidateAccepted": "ยอมรับหลังการตรวจสอบ",
"shippingCandidateRejected": "ปฏิเสธแล้ว",
"shippingCandidatePromote": "ยอมรับและดำเนินการต่อ",
"shippingCandidatePromoted": "ยอมรับคำสั่งซื้อแล้ว",
"shippingCandidateReject": "ปฏิเสธ",
"shippingCandidateEdit": "แก้ไข",
"shippingCandidateSave": "บันทึกการแก้ไข",
"shippingCandidateConflictCount": "มีข้อมูลขัดแย้ง {count} จุด โปรดแก้ไขก่อนสร้างงาน",
+46 -6
View File
@@ -293,6 +293,7 @@
"autoCreationEnabled": "启用自动建单",
"autoCreationSaved": "自动建单设置已保存",
"autoCreateKeyField": "建单关键字段",
"autoAnnotationEnabled": "参与自动标记",
"minimumKeyFieldConfidence": "关键字段最低置信度",
"unnamedField": "未命名字段",
"pendingNameField": "待命名字段 {number}",
@@ -2607,18 +2608,37 @@
"title": "盲测",
"samples": "样本:{count} · {status}",
"notRun": "未执行",
"approvedHint": "盲测已批准,无需重复执行或批准。",
"selectIndependentSample": "选择独立样本",
"selectSamplePlaceholder": "请选择未参与当前模板标注的订单",
"noIndependentSamples": "没有可用的独立样本;请先上传并完成解析另一份同类订单。",
"reviewHint": "请逐项勾选正确或错误;标为错误时填写更正值,未勾选不能加入盲测。",
"row": "明细 {index}",
"correct": "正确",
"incorrect": "错误",
"confirmReview": "确认复核并加入盲测",
"correctionInvalid": "明细更正值必须是 JSON 字段对象。",
"expectedRows": "人工真值(JSON 数组)",
"expectedRowsPlaceholder": "[{\"line_no\": \"00010\", \"part_number\": \"PN-1\", \"qty\": \"3\"}]",
"expectedRowsHint": "请输入至少一条人工确认的明细真值;不能复制候选结果。",
"expectedRowsInvalid": "真值必须是至少包含一条非空明细对象的 JSON 数组。",
"trainingAdded": "已绑定当前训练样本",
"addTrainingSample": "添加训练样本",
"addCurrentSample": "添加当前盲测样本",
"expectedOrderFields": "订单字段真值(JSON 对象)",
"expectedOrderFieldsPlaceholder": "{\"customer_po\": \"PO-45001\"}",
"expectedOrderFieldsHint": "配置订单字段时,必须填写每个字段的人工确认值。",
"expectedOrderFieldsInvalid": "订单字段真值必须是 JSON 对象。",
"trainingAdded": "已绑定当前训练样本",
"addTrainingSample": "添加训练样本",
"addedSamples": "已加入的盲测样本",
"addedSamplesHint": "草稿可移除;批准后保留审计记录。",
"removeSample": "移除样本",
"sampleRemoved": "盲测样本已移除",
"addCurrentSample": "添加当前盲测样本",
"run": "执行",
"approve": "批准"
},
"workbench": {
"intro": "在受控文档页面拖拽证据区域;保存定义不含 HTML 或存储地址。",
"workbench": {
"boundHistoricalSchema": "已绑定历史版本",
"intro": "在受控文档页面拖拽证据区域;保存定义不含 HTML 或存储地址。",
"openCanvas": "创建草稿并打开画布",
"loadingPage": "正在加载页面…",
"canvasZoom": "页面缩放",
@@ -2642,6 +2662,8 @@
"regionSuggestionReady": "已生成待复核的行和列标记,请确认字段绑定后保存。",
"unboundColumn": "待绑定列 {count}",
"drawHeader": "绘制表头",
"drawOrderField": "绘制订单字段",
"drawOrderAnchor": "绘制订单字段标签",
"drawLine": "绘制物理行",
"drawField": "绘制字段",
"drawExclusion": "绘制排除区",
@@ -2669,6 +2691,21 @@
"undo": "撤销",
"redo": "重做",
"header": "表头",
"orderField": "订单字段",
"orderFieldCandidates": "订单单头字段",
"unbound": "待绑定",
"noAnnotatedOrderFields": "当前页面尚未标记订单单头字段。",
"suggestedValue": "识别值",
"orderAnchor": "订单字段标签",
"orderAnchorTool": "字段标签",
"headerTool": "明细表头",
"lineTool": "明细行项",
"fieldTool": "明细字段",
"exclusionTool": "排除区域",
"orderFieldValueMode": "读取方式",
"orderFieldStopAnchor": "结束标签",
"orderFieldStopAnchorPlaceholder": "例如 SHIP TO",
"orderFieldModes": { "singleLine": "单行", "rightOfAnchor": "标签右侧", "belowAnchor": "标签下方", "multiLine": "多行" },
"matchCurrentHeader": "匹配当前表头",
"matchAllHeaders": "匹配全部表头",
"confirmHeaderBinding": "确认“{text}”绑定为 {field}",
@@ -2700,6 +2737,8 @@
"regionLabels": {
"header": "表头 {count}",
"header_field": "表头字段 {count}",
"order_field": "订单字段 {count}",
"order_anchor": "订单字段标签 {count}",
"line": "物理行 {count}",
"field": "字段 {count}",
"exclusion": "排除区 {count}"
@@ -2709,7 +2748,8 @@
"table": "请选择当前页的表格。",
"line": "请至少添加一个主行布局。",
"field": "请至少绑定一个明细字段。",
"coordinateField": "当前订单字段版本没有授权 PDF 坐标来源的启用明细字段,请先在订单字段模板中授权后再创建。"
"coordinateField": "当前订单字段版本没有授权 PDF 坐标来源的启用明细字段,请先在订单字段模板中授权后再创建。",
"orderFieldStopAnchor": "多行订单字段必须填写结束标签。"
}
}
}
+6
View File
@@ -110,6 +110,12 @@
"shippingCandidateCount": "共 {count} 个订单",
"shippingCandidateReady": "可建单",
"shippingCandidateNeedsReview": "需要审核",
"shippingCandidateAutoAccepted": "固定模板已自动确认",
"shippingCandidateAccepted": "已人工采纳",
"shippingCandidateRejected": "已驳回",
"shippingCandidatePromote": "采纳并继续",
"shippingCandidatePromoted": "订单候选已采纳",
"shippingCandidateReject": "驳回",
"shippingCandidateEdit": "修订",
"shippingCandidateSave": "保存修订",
"shippingCandidateConflictCount": "存在 {count} 个字段冲突,请修订后再建单。",
+46 -6
View File
@@ -263,6 +263,7 @@
"autoCreationEnabled": "啟用自動建單",
"autoCreationSaved": "自動建單設定已儲存",
"autoCreateKeyField": "建單關鍵欄位",
"autoAnnotationEnabled": "參與自動標記",
"minimumKeyFieldConfidence": "關鍵欄位最低信心度",
"unnamedField": "未命名欄位",
"pendingNameField": "待命名欄位 {number}",
@@ -2497,18 +2498,37 @@
"title": "盲測",
"samples": "樣本:{count} · {status}",
"notRun": "尚未執行",
"approvedHint": "盲測已批准,無須重複執行或批准。",
"selectIndependentSample": "選擇獨立樣本",
"selectSamplePlaceholder": "請選擇未參與目前範本標註的訂單",
"noIndependentSamples": "沒有可用的獨立樣本;請先上傳並完成解析另一份同類訂單。",
"reviewHint": "請逐項勾選正確或錯誤;標示錯誤時填寫更正值,未勾選不能加入盲測。",
"row": "明細 {index}",
"correct": "正確",
"incorrect": "錯誤",
"confirmReview": "確認複核並加入盲測",
"correctionInvalid": "明細更正值必須是 JSON 欄位物件。",
"expectedRows": "人工真值(JSON 陣列)",
"expectedRowsPlaceholder": "[{\"line_no\": \"00010\", \"part_number\": \"PN-1\", \"qty\": \"3\"}]",
"expectedRowsHint": "請輸入至少一筆人工確認的明細真值;不可複製候選結果。",
"expectedRowsInvalid": "真值必須是至少包含一個非空明細物件的 JSON 陣列。",
"trainingAdded": "已綁定目前訓練樣本",
"addTrainingSample": "新增訓練樣本",
"addCurrentSample": "新增目前盲測樣本",
"expectedOrderFields": "訂單欄位真值(JSON 物件)",
"expectedOrderFieldsPlaceholder": "{\"customer_po\": \"PO-45001\"}",
"expectedOrderFieldsHint": "已設定訂單欄位時,必須填寫每個欄位的人工確認值。",
"expectedOrderFieldsInvalid": "訂單欄位真值必須是 JSON 物件。",
"trainingAdded": "已綁定目前訓練樣本",
"addTrainingSample": "新增訓練樣本",
"addedSamples": "已加入的盲測樣本",
"addedSamplesHint": "草稿可移除;批准後保留稽核記錄。",
"removeSample": "移除樣本",
"sampleRemoved": "盲測樣本已移除",
"addCurrentSample": "新增目前盲測樣本",
"run": "執行",
"approve": "批准"
},
"workbench": {
"intro": "在受控文件頁面拖曳證據區域;儲存定義不含 HTML 或儲存位址。",
"workbench": {
"boundHistoricalSchema": "已綁定歷史版本",
"intro": "在受控文件頁面拖曳證據區域;儲存定義不含 HTML 或儲存位址。",
"openCanvas": "建立草稿並開啟畫布",
"loadingPage": "正在載入頁面…",
"canvasZoom": "頁面縮放",
@@ -2532,6 +2552,8 @@
"regionSuggestionReady": "已產生待複核的行和欄位標記,請確認欄位綁定後儲存。",
"unboundColumn": "待綁定欄 {count}",
"drawHeader": "繪製表頭",
"drawOrderField": "繪製訂單欄位",
"drawOrderAnchor": "繪製訂單欄位標籤",
"drawLine": "繪製實體行",
"drawField": "繪製欄位",
"drawExclusion": "繪製排除區",
@@ -2559,6 +2581,21 @@
"undo": "復原",
"redo": "重做",
"header": "表頭",
"orderField": "訂單欄位",
"orderFieldCandidates": "訂單單頭欄位",
"unbound": "待綁定",
"noAnnotatedOrderFields": "目前頁面尚未標記訂單單頭欄位。",
"suggestedValue": "識別值",
"orderAnchor": "訂單欄位標籤",
"orderAnchorTool": "欄位標籤",
"headerTool": "明細表頭",
"lineTool": "明細行項",
"fieldTool": "明細欄位",
"exclusionTool": "排除區域",
"orderFieldValueMode": "讀取方式",
"orderFieldStopAnchor": "結束標籤",
"orderFieldStopAnchorPlaceholder": "例如 SHIP TO",
"orderFieldModes": { "singleLine": "單行", "rightOfAnchor": "標籤右側", "belowAnchor": "標籤下方", "multiLine": "多行" },
"matchCurrentHeader": "比對目前表頭",
"matchAllHeaders": "比對全部表頭",
"confirmHeaderBinding": "確認「{text}」綁定為 {field}",
@@ -2590,6 +2627,8 @@
"regionLabels": {
"header": "表頭 {count}",
"header_field": "表頭欄位 {count}",
"order_field": "訂單欄位 {count}",
"order_anchor": "訂單欄位標籤 {count}",
"line": "實體行 {count}",
"field": "欄位 {count}",
"exclusion": "排除區 {count}"
@@ -2599,7 +2638,8 @@
"table": "請選擇目前頁面的表格。",
"line": "請至少新增一個主行布局。",
"field": "請至少綁定一個明細欄位。",
"coordinateField": "目前訂單欄位版本沒有授權 PDF 座標來源的啟用明細欄位,請先在訂單欄位範本中授權後再建立。"
"coordinateField": "目前訂單欄位版本沒有授權 PDF 座標來源的啟用明細欄位,請先在訂單欄位範本中授權後再建立。",
"orderFieldStopAnchor": "多行訂單欄位必須填寫結束標籤。"
}
}
}
+6
View File
@@ -110,6 +110,12 @@
"shippingCandidateCount": "共 {count} 個訂單",
"shippingCandidateReady": "可建單",
"shippingCandidateNeedsReview": "需要審核",
"shippingCandidateAutoAccepted": "固定範本已自動確認",
"shippingCandidateAccepted": "已人工採納",
"shippingCandidateRejected": "已駁回",
"shippingCandidatePromote": "採納並繼續",
"shippingCandidatePromoted": "訂單候選已採納",
"shippingCandidateReject": "駁回",
"shippingCandidateEdit": "修訂",
"shippingCandidateSave": "儲存修訂",
"shippingCandidateConflictCount": "存在 {count} 個欄位衝突,請修訂後再建單。",