feat(equipment-maintenance): 设备维保助手相关功能

This commit is contained in:
sophie committed 2026-07-04 09:42:18 +08:00
1 parent 599475d4e2
commit 0f3f40e735
39 files changed
+6554 -6

No files matched your search

@@ -39,6 +39,7 @@ const props = defineProps<{
isUploadingAttachments: boolean;
canSendMessage: boolean;
isShippingNoticeAgent: boolean;
isMaintenanceAgent?: boolean;
shippingSuggestedPrompt: string;
shippingFocusTaskNo?: string;
shippingFocusReason?: string;
@@ -56,6 +57,8 @@ const emit = defineEmits<{
'add-remote-url': [url: string];
'shipping-inventory-selected': [event: Event];
'use-shipping-suggested-prompt': [];
'maintenance-ledger-config': [];
'maintenance-create-record': [];
'clear-shipping-focus': [];
}>();
@@ -253,6 +256,27 @@ watch(
<span>点发送开始处理</span>
</div>
<div
v-if="isMaintenanceAgent"
class="flex flex-wrap items-center gap-2 px-3 pb-1 text-xs text-muted"
>
<button
type="button"
class="rounded-full border border-default bg-surface-soft px-3 py-1 font-medium text-secondary transition-colors hover:bg-surface-soft/70"
@click="emit('maintenance-create-record')"
>
{{ $t('maintenance.panel.recordTitle') }}
</button>
<button
type="button"
class="rounded-full border border-brand-200 bg-brand-50 px-3 py-1 font-medium text-brand-700 transition-colors hover:bg-brand-100"
@click="emit('maintenance-ledger-config')"
>
▦ {{ $t('maintenance.panel.ledgerTitle') }}
</button>
<span>{{ $t('maintenance.panel.adminOnly') }}</span>
</div>
<div class="mt-1.5 flex items-center justify-between px-1.5 pb-0.5">
<div class="flex items-center gap-3">
<button