style: 统一艺术品追溯码文案口径
This commit is contained in:
@@ -120,7 +120,7 @@
|
||||
"dashboard": "Dashboard",
|
||||
"templates": "Templates",
|
||||
"artworks": "Artwork Files",
|
||||
"traceCodes": "Item Codes",
|
||||
"traceCodes": "Trace Code Details",
|
||||
"outbound": "Outbound & Chain",
|
||||
"audit": "Content Audit",
|
||||
"queryLogs": "Query Logs",
|
||||
@@ -187,8 +187,8 @@
|
||||
"codeCount": "Codes",
|
||||
"activeCount": "Activated",
|
||||
"queryTotal": "Total Queries",
|
||||
"traceCodes": "Batches & Item Codes",
|
||||
"genCodes": "Generate Item Codes",
|
||||
"traceCodes": "Batches & Trace Codes",
|
||||
"genCodes": "Generate Trace Codes",
|
||||
"viewCodes": "View All Codes",
|
||||
"batches": "Batches",
|
||||
"selectArtwork": "Select Artwork",
|
||||
@@ -227,7 +227,7 @@
|
||||
"codes": "Trace Codes",
|
||||
"batchNo": "Batch No.",
|
||||
"quantity": "Quantity",
|
||||
"generate": "Generate Item Codes",
|
||||
"generate": "Generate Trace Codes",
|
||||
"generatedCount": "Generated",
|
||||
"shortCode": "Short Code",
|
||||
"code": "Trace Code",
|
||||
@@ -258,7 +258,6 @@
|
||||
"outbound": {
|
||||
"single": "Single Entry",
|
||||
"import": "Batch Import",
|
||||
"sku": "SKU",
|
||||
"archiveNo": "Archive No.",
|
||||
"outTime": "Outbound Time",
|
||||
"outImage": "Outbound Photo",
|
||||
|
||||
@@ -120,7 +120,7 @@
|
||||
"dashboard": "数据看板",
|
||||
"templates": "溯源模板",
|
||||
"artworks": "艺术品档案",
|
||||
"traceCodes": "实物码明细",
|
||||
"traceCodes": "追溯码明细",
|
||||
"outbound": "出库与上链",
|
||||
"audit": "内容审核",
|
||||
"queryLogs": "查询日志",
|
||||
@@ -187,8 +187,8 @@
|
||||
"codeCount": "追溯码数",
|
||||
"activeCount": "已激活",
|
||||
"queryTotal": "查询总数",
|
||||
"traceCodes": "批次与实物码",
|
||||
"genCodes": "生成实物码",
|
||||
"traceCodes": "批次与追溯码",
|
||||
"genCodes": "生成追溯码",
|
||||
"viewCodes": "查看全部码",
|
||||
"batches": "批次列表",
|
||||
"selectArtwork": "选择作品",
|
||||
@@ -227,7 +227,7 @@
|
||||
"codes": "追溯码列表",
|
||||
"batchNo": "批次编号",
|
||||
"quantity": "数量",
|
||||
"generate": "生成实物码",
|
||||
"generate": "生成追溯码",
|
||||
"generatedCount": "已生成",
|
||||
"shortCode": "短码",
|
||||
"code": "追溯码",
|
||||
@@ -258,7 +258,6 @@
|
||||
"outbound": {
|
||||
"single": "单条录入",
|
||||
"import": "批量导入",
|
||||
"sku": "SKU",
|
||||
"archiveNo": "档案编号",
|
||||
"outTime": "出库时间",
|
||||
"outImage": "出库实况图",
|
||||
|
||||
@@ -185,7 +185,7 @@
|
||||
</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">
|
||||
|
||||
@@ -99,7 +99,7 @@ async function ensureSampleData(): Promise<void> {
|
||||
];
|
||||
|
||||
const base = (process.env.BASE_URL || 'http://localhost:3000').replace(/\/$/, '');
|
||||
const CODES_PER_ARTWORK = 3; // 每款示例生码数(演示一款多码)
|
||||
const CODES_PER_ARTWORK = 3; // 每个示例档案下生成的追溯码数量
|
||||
let artworkSeq = 0;
|
||||
let totalCodes = 0;
|
||||
// 为节点生成"带标题"的占位图片(演示:每节点多张、横向、按标题展示)
|
||||
@@ -165,7 +165,7 @@ async function ensureSampleData(): Promise<void> {
|
||||
},
|
||||
});
|
||||
|
||||
// 一款多码:建一个批次 + 多套独立编码
|
||||
// 一个艺术品档案下建一个批次,并生成多套独立追溯码。
|
||||
const batch = await prisma.batch.create({
|
||||
data: {
|
||||
batchNo: `B-SEED-${String(artwork.id).padStart(4, '0')}`,
|
||||
|
||||
Reference in New Issue
Block a user