我的发票添加撤回

main
wuyize 2023-01-02 23:20:48 +08:00
parent 9079f39014
commit fd873c0c13
2 changed files with 5 additions and 5 deletions

View File

@ -99,10 +99,10 @@ function InvoiceDetailModal(props: any) {
open={props.open}
title="发票详情"
onCancel={handleCancel}
footer={props.showFooter ? <Button key="next" type="primary" danger loading={loading} onClick={withDraw}
footer={ <Button key="next" type="primary" danger loading={loading} onClick={withDraw}
>
</Button> : null}
</Button> }
>
{
<Form layout="horizontal" labelCol={{span: 4}}

View File

@ -281,7 +281,7 @@ function InvoiceListView(props: {}) {
const navigate = useNavigate()
const handleInvoiceSearchInfo = (invoiceSearch: InvoiceSearchOption) => {
//setInvoiceSearchOption(invoiceSearch)
setInvoiceSearchOption(invoiceSearch)
searchInvoiceContent(invoiceSearch)
}
const searchInvoiceContent = (invoiceSearch: InvoiceSearchOption) => {
@ -359,7 +359,7 @@ function InvoiceListView(props: {}) {
pageSize={Number(search.get('pageSize') ? search.get('pageSize') : 10)}
total={totalNum} onChange={onChange}/>
</div>
<InvoiceDetailModal invoiceDetail={invoiceDetail} open={detailModalOpen} onClose={() => {
<InvoiceDetailModal needRefresh={()=>{searchInvoiceContent(invoiceSearchOption)}} invoiceDetail={invoiceDetail} open={detailModalOpen} onClose={() => {
setDetailModalOpen(false)
}}/>
</div>