oak-pay-business/es/components/sysAccount/transferList/web.pc.js

46 lines
1.7 KiB
JavaScript

import React from 'react';
import { Result, Alert } from 'antd';
import ListPro from 'oak-frontend-base/es/components/listPro';
import { ThousandCont, ToYuan } from 'oak-domain/lib/utils/money';
export default function Render(props) {
const { transfers, oakFullpath, oakExecutable } = props.data;
const { t } = props.methods;
if (transfers?.length) {
return (<ListPro entity="withdrawTransfer" data={transfers} title={<Alert type="info" message={t('tips')}/>} attributes={[
{
path: 'price',
label: t('withdrawTransfer:attr.price'),
width: 100,
render: (row) => {
return `${t('common::pay.symbol')} ${ThousandCont(ToYuan(row.price), 2)}`;
}
},
{
path: 'loss',
label: t('withdrawTransfer:attr.loss'),
width: 100,
render: (row) => {
return `${t('common::pay.symbol')} ${ThousandCont(ToYuan(row.loss), 2)}`;
}
},
{
path: '$$createAt$$',
label: t('common::$$createAt$$'),
width: 100,
},
{
path: 'channel',
label: t('label.channel'),
type: 'string',
width: 100,
},
{
path: 'externalId',
label: t('withdrawTransfer:attr.externalId'),
width: 120,
},
]} disabledOp={true}/>);
}
return (<Result status="404" title={t('common::noData')}/>);
}