diff --git a/frontend/src/pages/MerchantCenter.tsx b/frontend/src/pages/MerchantCenter.tsx index e1c8b25..27faf21 100644 --- a/frontend/src/pages/MerchantCenter.tsx +++ b/frontend/src/pages/MerchantCenter.tsx @@ -338,17 +338,17 @@ export default function MerchantCenter() { } const productColumns: ColumnsType = [ - { title: 'SKU', dataIndex: 'sku', width: 180, render: (v) => {v} }, - { title: '名称', dataIndex: 'display_name', ellipsis: true, render: (_, r) => r.display_name || r.product?.name || '-' }, - { title: '目录编码', dataIndex: ['product', 'code'], width: 160, ellipsis: true, render: (_, r) => r.product?.code || '-' }, - { title: '售价', dataIndex: 'price_amount', width: 110, render: money }, - { title: '成本', dataIndex: 'cost_amount', width: 110, render: money }, - { title: '库存', dataIndex: 'stock', width: 90, render: (v) => (v < 0 ? '无限' : v) }, - { title: '状态', dataIndex: 'status', width: 90, render: productStatusTag }, + { title: 'SKU', dataIndex: 'sku', width: 200, ellipsis: true, render: (v) => {v} }, + { title: '名称', dataIndex: 'display_name', width: 200, ellipsis: true, render: (_, r) => r.display_name || r.product?.name || '-' }, + { title: '目录编码', dataIndex: ['product', 'code'], width: 140, ellipsis: true, render: (_, r) => r.product?.code || '-' }, + { title: '售价', dataIndex: 'price_amount', width: 100, render: money }, + { title: '成本', dataIndex: 'cost_amount', width: 100, render: money }, + { title: '库存', dataIndex: 'stock', width: 80, render: (v) => (v < 0 ? '无限' : v) }, + { title: '状态', dataIndex: 'status', width: 80, render: productStatusTag }, { title: '操作', key: 'action', - width: 90, + width: 80, render: (_, record) => canManage ? ( ) : '-',