|
|
@ -4,6 +4,7 @@ import { |
|
|
|
Pagination, |
|
|
|
Table, |
|
|
|
Select, |
|
|
|
Button, |
|
|
|
Input, |
|
|
|
Popover, |
|
|
|
Cascader, |
|
|
@ -18,9 +19,10 @@ import moment from "moment"; |
|
|
|
import ReactEcharts from "echarts-for-react"; |
|
|
|
import ajax from "@/services"; |
|
|
|
// import { useSessionStorageState, useUpdateEffect, useSize, useUpdate } from 'ahooks'; |
|
|
|
import { ResultFlow } from "@/components"; |
|
|
|
import { ResultFlow, ExportBtnNew } from "@/components"; |
|
|
|
import "./index.scss"; |
|
|
|
function RegisterAly() { |
|
|
|
const exportRef = useRef(null) |
|
|
|
const formdata = { |
|
|
|
date_type: "1", |
|
|
|
start_date: moment().startOf("day").format("YYYY-MM-DD"), |
|
|
@ -239,15 +241,20 @@ function RegisterAly() { |
|
|
|
document.body.removeChild(link); |
|
|
|
}; |
|
|
|
//导出 |
|
|
|
const ReportPaySummaryReport = () => { |
|
|
|
const ReportPaySummaryReport = (start, end) => { |
|
|
|
ajax.ElectInvoice.exportRegister({ |
|
|
|
...FormDatas, |
|
|
|
...DateFormt(FormDatas.date_type), |
|
|
|
start: start, |
|
|
|
end: end |
|
|
|
}).then( |
|
|
|
(res) => { |
|
|
|
if (parseInt(res?.status) === 20000) { |
|
|
|
Daownload(res?.data?.export_url); |
|
|
|
// Daownload(res?.data?.export_url); |
|
|
|
message.success(res.message) |
|
|
|
exportRef.current.handleCancel() |
|
|
|
} else { |
|
|
|
exportRef.current.handleError() |
|
|
|
message.error(res?.message); |
|
|
|
} |
|
|
|
}, |
|
|
@ -802,7 +809,7 @@ function RegisterAly() { |
|
|
|
<p> |
|
|
|
共查询到<span> {Data?.total || 0}</span>条数据 |
|
|
|
</p> |
|
|
|
<span |
|
|
|
{/* <span |
|
|
|
className={"sear_ser"} |
|
|
|
onClick={() => { |
|
|
|
Data?.total && ReportPaySummaryReport(); |
|
|
@ -810,7 +817,19 @@ function RegisterAly() { |
|
|
|
}} |
|
|
|
> |
|
|
|
导出 |
|
|
|
</span> |
|
|
|
</span> */} |
|
|
|
<ExportBtnNew |
|
|
|
children={<Button className="export-btn" size='medium' type="primary">导出</Button>} |
|
|
|
modalType="noImg" |
|
|
|
ref={exportRef} |
|
|
|
totalRecords={Data?.total || 0} |
|
|
|
imgno={false} |
|
|
|
postdata={{ |
|
|
|
formData: FormDatas |
|
|
|
}} |
|
|
|
isTableModule={true} |
|
|
|
onOk={ReportPaySummaryReport} |
|
|
|
/> |
|
|
|
</div> |
|
|
|
<ResultFlow |
|
|
|
hasLoad={true} |
|
|
|