修复退款审核详情关联与空值展示
This commit is contained in:
@@ -178,6 +178,7 @@ const fieldLabels: Record<string, string> = {
|
||||
previous_order_status: '异常前订单状态',
|
||||
payment_status: '支付状态',
|
||||
refund_status: '退款状态',
|
||||
refund_product_summary: '退款商品',
|
||||
apply_status: '提现状态',
|
||||
ticket_status: '工单状态',
|
||||
reconciliation_status: '对账状态',
|
||||
@@ -774,11 +775,15 @@ export const resources: ResourceUiDefinition[] = [
|
||||
f('operator_identity'), f('ymd'), f('ym'), f('remark'),
|
||||
]),
|
||||
define('payment_refund', '退款审核', 'readonly', [
|
||||
f('refund_no'), f('business_type'), f('business_identity', { type: 'identity', label: '业务对象', listRelationNameOnly: true, displayRelationLabel: true, showIdentityCopy: true, dynamicRelation: {
|
||||
f('refund_no'), f('business_type'), f('business_identity', { type: 'identity', label: '业务对象', listDisplayKey: 'business_display_name', detailDisplayKey: 'business_display_name', listDisplayIdentityCopy: true, displayRelationLabel: true, showIdentityCopy: true, dynamicRelation: {
|
||||
parentKey: 'business_type', parentLabel: '业务类型', resources: { gasorder: '/gasorder_basic', ec_order: '/ec_order' },
|
||||
} }), relation('user_identity', '/user_account'),
|
||||
f('amount'), f('reason'), f('description'), f('refund_status'),
|
||||
relation('reviewer_identity', '/platform_account'), f('review_remark'), f('reviewed_at'), f('completed_at'),
|
||||
} }), relation('user_identity', '/user_account', false, { label: '用户', listDisplayKey: 'user_display_name', detailDisplayKey: 'user_display_name', listDisplayIdentityCopy: true, displayRelationLabel: true, showIdentityCopy: true }),
|
||||
f('refund_product_summary', { emptyText: '退款商品信息缺失' }),
|
||||
f('amount'), f('reason'), f('description', { emptyText: '无说明' }), f('refund_status'),
|
||||
relation('reviewer_identity', '/platform_account', false, { label: '审核人', listDisplayKey: 'reviewer_display_name', detailDisplayKey: 'reviewer_display_name', listDisplayIdentityCopy: true, displayRelationLabel: true, showIdentityCopy: true }),
|
||||
f('review_remark', { emptyText: '无审核说明' }), f('reviewed_at'), f('completed_at'),
|
||||
relation('payment_order_identity', '/payment_order', false, { label: '支付记录', displayRelationLabel: true, showIdentityCopy: true }),
|
||||
relation('wallet_basic_identity', '/wallet_basic', false, { label: '钱包', relationOptionDisplay: 'wallet-owner', displayRelationLabel: true, showIdentityCopy: true }),
|
||||
], 'list', [
|
||||
{ name: '审核通过并退入钱包', resource: '/payment_refund/:identity/approve', fields: [f('remark')], visibleFor: { field: 'refund_status', values: [10] } },
|
||||
{ name: '驳回退款', resource: '/payment_refund/:identity/reject', danger: true, fields: [f('remark', { required: true })], visibleFor: { field: 'refund_status', values: [10] } },
|
||||
|
||||
Reference in New Issue
Block a user