refactor: 按甲方确认重构为一款多码(档案编号标识款、批次码、按款统计)
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -75,18 +75,12 @@ const columns: DataTableColumns<any> = [
|
||||
? h(NAvatar, { src: r.images[0].url, size: 44, style: 'border-radius:8px' })
|
||||
: h(NAvatar, { size: 44, style: 'border-radius:8px' }, { default: () => '—' }),
|
||||
},
|
||||
{ title: () => t('pages.artwork.archiveNo'), key: 'archiveNo', width: 140, render: (r) => r.archiveNo || '-' },
|
||||
{ title: () => t('pages.artwork.title'), key: 'title', ellipsis: { tooltip: true } },
|
||||
{ title: () => t('pages.artwork.artist'), key: 'artist', width: 120, render: (r) => r.artist || '-' },
|
||||
{ title: () => t('pages.artwork.template'), key: 'template', width: 130, render: (r) => r.template?.name || '-' },
|
||||
{
|
||||
title: () => t('pages.artwork.traceCode'),
|
||||
key: 'traceCode',
|
||||
width: 130,
|
||||
render: (r) =>
|
||||
r.traceCode
|
||||
? h(NTag, { size: 'small', type: statusType(r.traceCode.status) }, { default: () => r.traceCode.shortCode })
|
||||
: h(NTag, { size: 'small' }, { default: () => t('pages.artwork.noTrace') }),
|
||||
},
|
||||
{ title: () => t('pages.artwork.artist'), key: 'artist', width: 110, render: (r) => r.artist || '-' },
|
||||
{ title: () => t('pages.artwork.template'), key: 'template', width: 120, render: (r) => r.template?.name || '-' },
|
||||
{ title: () => t('pages.artwork.codeCount'), key: 'codeCount', width: 80, render: (r) => r.codeCount ?? 0 },
|
||||
{ title: () => t('pages.artwork.queryTotal'), key: 'queryTotal', width: 90, render: (r) => r.queryTotal ?? 0 },
|
||||
{
|
||||
title: () => t('common.label.status'),
|
||||
key: 'status',
|
||||
|
||||
Reference in New Issue
Block a user