feat(shipping-notice): 落地字段资产治理与唯一 Schema,自动建单随版本冻结
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
b7307fc573
commit
3a1dbf7ce5
144 files changed
+15167
-4480
No files matched your search
@@ -0,0 +1,35 @@
|
||||
/**
|
||||
* features/workspace/shipping-task-center/TaskProgressTimeline.vue
|
||||
* 用途:展示任务事件时间线(只读),不发明进度百分比。
|
||||
* 依赖:ShippingTaskEvent、dateTime 工具。
|
||||
* 逻辑:由 ShippingTaskWorkbench 传入 detail.events。
|
||||
*/
|
||||
<script setup lang="ts">
|
||||
import { formatLocalDateTime } from '@/shared/utils/dateTime';
|
||||
import type { ShippingTaskEvent } from '@/features/chat/types/shipping.api.types';
|
||||
|
||||
defineProps<{
|
||||
events: ShippingTaskEvent[];
|
||||
}>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<section class="rounded-2xl border border-default/80 bg-surface px-4 py-3 text-sm">
|
||||
<h3 class="mb-2 text-sm font-semibold text-secondary">
|
||||
{{ $t('workspace.shippingNotice.events') }}
|
||||
</h3>
|
||||
<div v-if="!events.length" class="py-4 text-center text-xs text-muted">
|
||||
{{ $t('workspace.shippingNotice.timeline.empty') }}
|
||||
</div>
|
||||
<div
|
||||
v-for="(event, index) in events"
|
||||
:key="`${event.event_type}-${index}`"
|
||||
class="border-t border-default/70 py-2 first:border-t-0 first:pt-0"
|
||||
>
|
||||
<div class="flex flex-wrap gap-x-3 gap-y-1 text-xs">
|
||||
<span class="font-medium text-secondary">{{ event.event_type }}</span>
|
||||
<span class="text-muted">{{ formatLocalDateTime(event.created_at) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
Reference in new issue
Block a user