From 0ffc10ad9ab49070e836fba20582db062817033b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B2=E8=BE=B0=E7=94=9F=E4=BA=A7?= Date: Tue, 14 Apr 2026 16:19:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A1=8C=E6=83=85=E7=BC=96=E5=8F=B7?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E5=B9=B4=E4=BB=BD=E5=90=8E=E4=B8=A4=E4=BD=8D?= =?UTF-8?q?+=E6=9C=88=E6=97=A5+4=E4=BD=8D=E5=BA=8F=E5=8F=B7(=E5=A6=82DJ240?= =?UTF-8?q?4140001)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/routers/information.py | 2 +- frontend/src/pages/News.jsx | 41 +++++++++++++----------------- 2 files changed, 19 insertions(+), 24 deletions(-) diff --git a/backend/app/routers/information.py b/backend/app/routers/information.py index 0c23d89..f6a8554 100644 --- a/backend/app/routers/information.py +++ b/backend/app/routers/information.py @@ -464,7 +464,7 @@ def create_information( ).count() # 编号 = 日期 + 5位自然数(如 DJ2026041100001) seq = count_today + 1 - deal_no = f'DJ{today}{seq:05d}' + deal_no = f"DJ{today[2:]}{seq:04d}" info = Information( user_id=current_user.f99_90_id, diff --git a/frontend/src/pages/News.jsx b/frontend/src/pages/News.jsx index 801782a..5d40d5d 100644 --- a/frontend/src/pages/News.jsx +++ b/frontend/src/pages/News.jsx @@ -707,31 +707,26 @@ export default function News() { else if (serial.startsWith('J3')) version = '蛇钞' return ( -
- {/* 第一行:冠字号 | 版别 | 包装 | 分数 + 价格 */} -
-
- {serial} - | - {version} - | - {packaging} - | - {grade} +
+ {/* 第一行:成交日期 | 版别 | 包装 | 分类 | 价格 */} +
+
+ {dealDate} + | + {version} + | + {packaging} + | + {category}
-
¥{item.deal_price?.toLocaleString()}
+
¥{item.deal_price?.toLocaleString()}
- {/* 第二行:编码 | 分类 | 评级机构 | 平台 | 日期 */} -
- {item.deal_no} - | - {category} - | - {gradingCompany && {gradingCompany}} - | - {platform} - | - {dealDate} + {/* 第二行:冠字号 | 评级机构 | 分数 */} +
+ {serial} + | + {gradingCompany && <>{gradingCompany}|} + {grade}
)