import React from 'react';
import { InvoiceTypeModal } from '../../..';
import { Button } from 'kts-xui';

export default () => {

    const [open, setOpen] = React.useState(false);

    return (
        <>
            <Button onClick={() => { setOpen(true) }} >打开</Button>
            <InvoiceTypeModal
                open={open}
                onOk={e => console.log(e)}
                onCancel={() => { setOpen(false) }}
                defaultBusiness='1'
                defaultInvoiceType='1'
                businessOptions={[
                    { label: '成品油', value: '1' }
                ]}
                invoiceTypeOptions={[
                    { label: '类型1', value: '1' },
                    { label: '类型2', value: '2' },
                    { label: '类型3', value: '3' },
                    { label: '类型4', value: '4' },
                    { label: '类型5', value: '5' },
                ]}
            />
        </>
    )
};
