chore: 积分商品列表字段更新

This commit is contained in:
lzhizhao 2025-08-17 00:28:46 +08:00
parent aff42b126d
commit 45ba73ebae
1 changed files with 27 additions and 29 deletions

View File

@ -220,14 +220,35 @@ export default {
field: "shopName"
},
{
title: "兑换所需积分",
title: "商品原价",
align: "center",
field: "exchangeRequiredPoints"
field: "marketPrice",
type: "jsx",
render: ({ row }) => {
return <span>¥{row.marketPrice}</span>;
}
},
{
title: "兑换库存",
title: "原有商品状态",
align: "center",
field: "exchangeInventory"
field: "productStatus",
type: "jsx",
render: ({ row }) => {
return <span>{row.productStatus === "UP" ? "上架" : "下架"}</span>;
}
},
{
title: "积分使用模式",
align: "center",
field: "exchangePointsType",
type: "jsx",
render: ({ row }) => {
return (
<span>
{row.exchangePointsType === 1 ? "积分换购" : "积分优惠购"}
</span>
);
}
},
{
title: "剩余库存",
@ -235,32 +256,9 @@ export default {
field: "surplusInventory"
},
{
title: "已兑换数量",
title: "启用状态",
align: "center",
field: "totalExchangeQuantity"
},
{
title: "兑换限制",
align: "center",
field: "exchangeRestrictions"
},
{
title: "限制类型",
align: "center",
field: "exchangeRestrictionsType",
type: "jsx",
render: ({ row }) => {
return (
<span>
{row.exchangeRestrictionsType === 1 ? "每日" : "永久"}
</span>
);
}
},
{
title: "创建时间",
align: "center",
field: "createTime"
field: "enable"
},
{
title: "操作",