客户等级设置

This commit is contained in:
liu
2026-08-17 16:27:15 +08:00
parent 2eb27127c9
commit a06c45dc49
31 changed files with 548 additions and 1142 deletions
+12 -1
View File
@@ -28,6 +28,17 @@ const CustomerLevelPage: React.FC = () => {
align: 'center',
rules: [{ required: true, message: '请输入等级名称' }],
},
{
title: '价格上浮比例',
dataIndex: 'percent',
valueType: 'digit',
hideInSearch: true,
initialValue: 0,
tooltip: '该等级售价 = 成本价 × (100 + 上浮比例) / 100',
fieldProps: { min: 0, max: 999.99, precision: 2, suffix: '%', placeholder: '如 30 表示成本价上浮 30%' },
align: 'center',
render: (_, record) => <Tag color="blue">{Number(record.percent ?? 0)}%</Tag>,
},
{
title: '排序',
dataIndex: 'sort',
@@ -111,7 +122,7 @@ const CustomerLevelPage: React.FC = () => {
<>
<div className="mb-5">
<Title level={3}></Title>
<Text type="secondary"></Text>
<Text type="secondary"> = × (100 + ) / 100</Text>
</div>
<XinTable<ICustomerLevel> {...tableProps} />
</>