refactor: 拆分档案详情与追溯码管理

This commit is contained in:
Nixevol
2026-07-03 04:28:18 +08:00
parent b95e9f8949
commit 9eda1b722a
8 changed files with 121 additions and 29 deletions
-18
View File
@@ -185,20 +185,6 @@
</n-card>
</n-grid-item>
<!-- 批次与追溯码:每件实物一码 -->
<n-grid-item>
<n-card :title="t('pages.artwork.traceCodes')" :bordered="false">
<n-descriptions :column="4" label-placement="top" bordered size="small">
<n-descriptions-item :label="t('pages.artwork.archiveNo')">{{ artwork?.archiveNo || '-' }}</n-descriptions-item>
<n-descriptions-item :label="t('pages.artwork.codeCount')">{{ artwork?.codeStats?.total ?? 0 }}</n-descriptions-item>
<n-descriptions-item :label="t('pages.artwork.activeCount')">{{ artwork?.codeStats?.active ?? 0 }}</n-descriptions-item>
<n-descriptions-item :label="t('pages.artwork.queryTotal')">{{ artwork?.codeStats?.queryTotal ?? 0 }}</n-descriptions-item>
</n-descriptions>
<div class="trace-panel-wrap">
<trace-code-panel :artwork-id="artworkId" embedded />
</div>
</n-card>
</n-grid-item>
</template>
</n-grid>
@@ -271,7 +257,6 @@ import { artworkApi, templateApi } from '@/api';
import { useAuthStore } from '@/stores/auth';
import MediaUpload from '@/components/MediaUpload.vue';
import MediaSorter from '@/components/MediaSorter.vue';
import TraceCodePanel from '@/components/TraceCodePanel.vue';
import { message, dialog } from '@/utils/feedback';
import { fmtDate } from '@/utils/format';
@@ -490,9 +475,6 @@ onMounted(async () => {
.mr8 {
margin-right: 8px;
}
.trace-panel-wrap {
margin-top: 14px;
}
.node-head {
display: flex;
justify-content: space-between;