From 46ac3325025fe8d87203ba265ffe46e3a3cd7930 Mon Sep 17 00:00:00 2001
From: zhaoxing <2558691827@qq.com>
Date: Sun, 8 Nov 2026 14:48:11 +0800
Subject: [PATCH] =?UTF-8?q?feat:Rock=20Token=E5=87=AD=E8=AF=81=E5=88=97?=
=?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=A4=8D=E5=88=B6=E9=A2=84=E8=A7=88=E5=BF=AB?=
=?UTF-8?q?=E6=8D=B7=E5=9B=BE=E6=A0=87?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../platformRock/TokenRecycleBinDrawer.tsx | 2 +-
.../src/pages/platformRock/tokenColumns.tsx | 91 +++++++++++--------
2 files changed, 56 insertions(+), 37 deletions(-)
diff --git a/frontend/src/pages/platformRock/TokenRecycleBinDrawer.tsx b/frontend/src/pages/platformRock/TokenRecycleBinDrawer.tsx
index 3120fdb..995ecc1 100644
--- a/frontend/src/pages/platformRock/TokenRecycleBinDrawer.tsx
+++ b/frontend/src/pages/platformRock/TokenRecycleBinDrawer.tsx
@@ -185,7 +185,7 @@ export function TokenRecycleBinDrawer({
{
title: 'ID / Token(编号/兑换码 · 包ID/提取码)',
key: 'token_info',
- width: 330,
+ width: 320,
render: (_, record) => ,
},
{
diff --git a/frontend/src/pages/platformRock/tokenColumns.tsx b/frontend/src/pages/platformRock/tokenColumns.tsx
index 987d8a0..b801731 100644
--- a/frontend/src/pages/platformRock/tokenColumns.tsx
+++ b/frontend/src/pages/platformRock/tokenColumns.tsx
@@ -1,4 +1,4 @@
-import { Button, Dropdown, Popconfirm, Space, Spin, Tag, Tooltip, Typography } from 'antd'
+import { Button, Dropdown, Popconfirm, Space, Tag, Tooltip, Typography } from 'antd'
import {
CopyOutlined,
ExportOutlined,
@@ -108,7 +108,7 @@ export function buildTokenColumns({
{
title: 'ID / Token(编号/兑换码 · 包ID/提取码)',
key: 'token_info',
- width: 330,
+ width: 320,
render: (_, record) => ,
},
{
@@ -261,7 +261,7 @@ export function buildTokenColumns({
{
title: '关联业务工单',
dataIndex: 'assigned_order_no',
- width: 168,
+ width: 158,
render: (orderNo, record) => {
if (!orderNo) {
return -
@@ -350,7 +350,7 @@ export function buildTokenColumns({
{
title: '凭证',
key: 'voucher',
- width: 56,
+ width: 88,
align: 'center',
render: (_, record) => {
if (record.status !== 'redeemed' && !record.upstream_fulfill_id) {
@@ -362,46 +362,65 @@ export function buildTokenColumns({
const imgSrc = `/images/products/${sku}.webp`
return (
- , label: '复制发货结果图' },
- { key: 'preview', icon: , label: '预览高清大图' },
- ],
- onClick: ({ key }) => {
- if (key === 'copy') onCopyVoucher(record)
- if (key === 'preview') onPreviewVoucher(record)
- },
- }}
- >
-
+
, label: '复制发货结果图' },
+ { key: 'preview', icon:
, label: '预览高清大图' },
+ ],
+ onClick: ({ key }) => {
+ if (key === 'copy') onCopyVoucher(record)
+ if (key === 'preview') onPreviewVoucher(record)
+ },
}}
>
- {isCopying ? (
-
- ) : (
+

- )}
+
+
+
+
+ }
+ loading={isCopying}
+ onClick={() => onCopyVoucher(record)}
+ style={{ width: 20, height: 20, padding: 0, fontSize: 11 }}
+ />
+
+
+ }
+ onClick={() => onPreviewVoucher(record)}
+ style={{ width: 20, height: 20, padding: 0, fontSize: 11 }}
+ />
+
-
+
)
},
},