import { MyColumns, MyPageContainer, MyProTableProps, usePageTabs, } from '@/common'; import { Apis } from '@/gen/Apis'; import { HouseOrdersOrderStatusEnum, HouseOrdersPaymentMethodEnum, } from '@/gen/Enums'; import { ProTable } from '@ant-design/pro-components'; export default function Index({ title = '支付明细' }) { // 注册当前页面为标签页 usePageTabs({ tabKey: 'house_order', tabLabel: title, }); return ( MyProTableProps.request( params, sort, Apis.HouseOrder.HouseOrders.List, ) } // toolBarRender={(action) => [ // , // , // ]} columns={[ // MyColumns.ID(), { title: '订单号', dataIndex: 'order_code', search: false, }, MyColumns.EnumTag({ title: '支付方式', dataIndex: 'payment_method', valueEnum: HouseOrdersPaymentMethodEnum, }), MyColumns.EnumTag({ title: '支付状态', dataIndex: 'order_status', valueEnum: HouseOrdersOrderStatusEnum, }), // { // title: '支付单号', // dataIndex: 'payment_no', // search: false, // }, { title: '应收金额', dataIndex: 'actual_paid_amount', search: false, }, { title: '滞纳金', dataIndex: 'late_fee', search: false, }, { title: '退款总金额', dataIndex: 'refund_amount', search: false, }, { title: '实缴金额', dataIndex: 'actual_paid_amount', search: false, }, { title: '收款账号', dataIndex: ['house_order_items', 'receipt_account'], render: (text, item) => `${ item?.receipt_account?.company_bank } ${item?.receipt_account?.company_account?.slice(-4)}`, }, { title: '支付时间', dataIndex: 'paid_time', search: false, }, { title: '关联机构', dataIndex: ['company', 'name'], search: false, }, { title: '关联项目', dataIndex: ['asset_project', 'name'], search: false, }, // MyColumns.CreatedAt(), // MyColumns.Option({ // render: (_, item: any, index, action) => ( // // // // Apis.Common.Admins.Delete({ id: item.id }).then(() => // action?.reload(), // ) // } // /> // // ), // }), ]} /> ); }