修复财务支付记录展示

This commit is contained in:
czl231
2026-08-16 23:55:50 +08:00
parent 27a4e62a43
commit 64248973ee
8 changed files with 267 additions and 3 deletions

View File

@@ -274,6 +274,7 @@ const fieldLabels: Record<string, string> = {
quantity: '数量',
selected: '是否选中',
product_snapshot: '商品快照',
product_summary: '支付商品',
sale_amount: '成交金额(元)',
score: '评分',
paid_at: '支付时间',
@@ -818,7 +819,31 @@ export const resources: ResourceUiDefinition[] = [
]),
define('fin_payment', '财务支付记录', 'readonly', [
relation('ec_order_identity', '/ec_order'), f('payment_status'), f('channel'), f('amount'), f('paid_at'),
relation('ec_order_identity', '/ec_order', false, {
label: '商城订单',
listRelationNameOnly: true,
displayRelationLabel: true,
showIdentityCopy: true,
}),
f('product_summary', { emptyText: '商品信息缺失' }),
f('payment_status', {
type: 'select',
options: [
{ label: '待支付', value: 10 },
{ label: '已支付', value: 35 },
],
unknownValueLabel: '未知支付状态',
}),
f('channel', {
type: 'select',
options: [
{ label: '余额支付', value: 'wallet' },
{ label: '支付宝', value: 'alipay' },
{ label: '微信支付', value: 'wechat' },
],
unknownValueLabel: '未知支付渠道',
}),
f('amount'), f('paid_at'),
]),
define('fin_settlement', '财务结算', 'writable', [f('settlement_no', { required: true }), f('subject_type', { required: true }), f('subject_identity', {
required: true, type: 'identity', label: '结算主体', listRelationNameOnly: true,