Files
fe_service_ebtp_frontend/src/pages/Finance/ProjectManager/RevenueRecognition/index.tsx

31 lines
964 B
TypeScript
Raw Normal View History

2021-01-16 11:29:42 +08:00
import { Card, Tabs } from 'antd';
2022-03-10 14:24:13 +08:00
import React, { useState } from 'react';
2021-01-16 11:29:42 +08:00
import AlreadyConfirmed from './components/AlreadyConfirmed';
import WaitConfirmed from './components/WaitConfirmed';
2022-03-10 14:24:13 +08:00
import '@/assets/zjl_style.less';
2021-01-16 11:29:42 +08:00
const RevenueRecognition: React.FC<{}> = () => {
2022-03-10 14:24:13 +08:00
const [keys, setKeys] = useState<any>('1');
const { TabPane } = Tabs;
const onChange = (data: any) => {
setKeys(data);
};
2021-01-16 11:29:42 +08:00
return (
2022-03-10 14:24:13 +08:00
<Card
title="收入确认审核"
bodyStyle={{ padding: '0px 24px' }}
style={{ borderRadius: 6 }}
className="revenue"
>
<Tabs defaultActiveKey="1" tabBarGutter={48} style={{ padding: 0 }} onChange={onChange}>
2021-01-16 11:29:42 +08:00
<TabPane tab="待确认" key="1">
2022-03-10 14:24:13 +08:00
{keys == '1' ? <WaitConfirmed /> : null}
2021-01-16 11:29:42 +08:00
</TabPane>
<TabPane tab="已确认" key="2">
2022-03-10 14:24:13 +08:00
{keys == '2' ? <AlreadyConfirmed /> : null}
2021-01-16 11:29:42 +08:00
</TabPane>
</Tabs>
</Card>
);
};
export default RevenueRecognition;