refactor(shipping-notice): 统一料号字段,移除过时的 SKU 相关字段,更新相关逻辑以支持新字段命名

This commit is contained in:
hugo committed 2026-07-16 20:02:33 +08:00
1 parent dde25344ca
commit 46eb63f5bb
111 files changed
+3116 -1250

No files matched your search

@@ -79,6 +79,7 @@ const emit = defineEmits<{
stop: [];
'voice-click': [];
'remove-attachment': [id: string];
'retry-attachment': [id: string];
'retry-shipping-notice-attachment': [id: string];
'resolve-shipping-notice-duplicate': [id: string];
'select-shipping-candidate': [candidateNo: string, selected: boolean];
@@ -365,6 +366,22 @@ watch(
</div>
</div>
<div
v-if="a.kind === 'local' && a.uploadStatus === 'failed'"
class="absolute bottom-1.5 right-2 flex items-center gap-1"
>
<button
type="button"
class="rounded p-1 text-red-500 hover:bg-red-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-400 disabled:cursor-not-allowed disabled:opacity-30 dark:hover:bg-red-950/30"
:disabled="isUploadingAttachments"
:title="t('chat.attachment.retry')"
:aria-label="t('chat.attachment.retryNamed', { name: getAttachmentName(a) })"
@click="emit('retry-attachment', a.id)"
>
<RefreshCw class="h-3.5 w-3.5" />
</button>
</div>
<div
v-if="a.kind === 'shipping_notice' && (canRetryShippingNoticeParse(a) || (!a.candidates?.length && a.duplicate?.blocking && !a.duplicateResolution?.action))"
class="absolute bottom-1.5 right-2 flex items-center gap-1"