统一商品分类标识与评价关联展示

This commit is contained in:
czl231
2026-08-16 19:07:27 +08:00
parent 255028e983
commit 043ba8df77
7 changed files with 150 additions and 6 deletions

View File

@@ -728,8 +728,18 @@ export const resources: ResourceUiDefinition[] = [
f('product_snapshot'), f('quantity'), f('sale_amount'),
]),
define('ec_review', '商品评价', 'readonly', [
relation('ec_order_identity', '/ec_order'), relation('ec_product_identity', '/ec_product'),
relation('user_account_identity', '/user_account'), f('score'), f('content'),
relation('ec_order_identity', '/ec_order', false, {
label: '商城订单', listLabel: '商城订单', listRelationNameOnly: true,
displayRelationLabel: true, showIdentityCopy: true,
}),
relation('ec_product_identity', '/ec_product', false, {
label: '商品', listLabel: '商品', listRelationNameOnly: true,
displayRelationLabel: true, showIdentityCopy: true,
}),
relation('user_account_identity', '/user_account', false, {
label: '用户', listLabel: '用户', listRelationNameOnly: true,
displayRelationLabel: true, showIdentityCopy: true,
}), f('score'), f('content'),
]),
define('wallet_basic', '钱包', 'readonly', [f('owner_type'), f('owner_identity', {