|
@ -7,6 +7,7 @@ import { |
|
|
Tooltip, |
|
|
Tooltip, |
|
|
Checkbox, |
|
|
Checkbox, |
|
|
DatePicker, |
|
|
DatePicker, |
|
|
|
|
|
Button |
|
|
} from "antd"; |
|
|
} from "antd"; |
|
|
import { dictionary, utils } from "@/config/common"; |
|
|
import { dictionary, utils } from "@/config/common"; |
|
|
import moment from "moment"; |
|
|
import moment from "moment"; |
|
@ -17,7 +18,7 @@ import { |
|
|
} from "@ant-design/icons"; |
|
|
} from "@ant-design/icons"; |
|
|
import ajax from "@/services"; |
|
|
import ajax from "@/services"; |
|
|
// import { useSessionStorageState, useUpdateEffect, useSize, useUpdate } from 'ahooks'; |
|
|
// import { useSessionStorageState, useUpdateEffect, useSize, useUpdate } from 'ahooks'; |
|
|
import { ResultFlow } from "@/components"; |
|
|
|
|
|
|
|
|
import { ResultFlow, ExportBtnNew } from "@/components"; |
|
|
import "./index.scss"; |
|
|
import "./index.scss"; |
|
|
// import errorImg from "@/assets/images/layout/error.png" |
|
|
// import errorImg from "@/assets/images/layout/error.png" |
|
|
// import { useLocation } from "react-router-dom"; |
|
|
// import { useLocation } from "react-router-dom"; |
|
@ -35,7 +36,7 @@ function ParkCardReport() { |
|
|
export: 0, |
|
|
export: 0, |
|
|
page_size: dictionary?.pageSizeOptions1[0], |
|
|
page_size: dictionary?.pageSizeOptions1[0], |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const exportRef = useRef(null) |
|
|
const col = [ |
|
|
const col = [ |
|
|
{ |
|
|
{ |
|
|
title: "支付日期", |
|
|
title: "支付日期", |
|
@ -303,17 +304,21 @@ function ParkCardReport() { |
|
|
document.body.removeChild(link); |
|
|
document.body.removeChild(link); |
|
|
}; |
|
|
}; |
|
|
//导出 |
|
|
//导出 |
|
|
const ReportPaySummaryReport = () => { |
|
|
|
|
|
|
|
|
const ReportPaySummaryReport = (start, end) => { |
|
|
ajax.ElectInvoice.getParkCarOrder({ |
|
|
ajax.ElectInvoice.getParkCarOrder({ |
|
|
...FormDatas, |
|
|
...FormDatas, |
|
|
...DateFormt(FormDatas.date_type), |
|
|
...DateFormt(FormDatas.date_type), |
|
|
export: 1, |
|
|
export: 1, |
|
|
|
|
|
start: start, |
|
|
|
|
|
end: end |
|
|
}).then( |
|
|
}).then( |
|
|
(res) => { |
|
|
(res) => { |
|
|
if (parseInt(res?.status) === 20000) { |
|
|
if (parseInt(res?.status) === 20000) { |
|
|
Daownload(res?.data?.url); |
|
|
Daownload(res?.data?.url); |
|
|
|
|
|
exportRef.current.handleCancel() |
|
|
} else { |
|
|
} else { |
|
|
message.error(res?.message); |
|
|
message.error(res?.message); |
|
|
|
|
|
exportRef.current.handleError() |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
(err) => { |
|
|
(err) => { |
|
@ -497,14 +502,26 @@ function ParkCardReport() { |
|
|
<p> |
|
|
<p> |
|
|
共查询到<span> {Data?.total || 0}</span>条数据 |
|
|
共查询到<span> {Data?.total || 0}</span>条数据 |
|
|
</p> |
|
|
</p> |
|
|
<span |
|
|
|
|
|
|
|
|
{/* <span |
|
|
className={"sear_ser"} |
|
|
className={"sear_ser"} |
|
|
onClick={() => { |
|
|
onClick={() => { |
|
|
Data?.total && ReportPaySummaryReport(); |
|
|
Data?.total && ReportPaySummaryReport(); |
|
|
}} |
|
|
}} |
|
|
> |
|
|
> |
|
|
导出 |
|
|
导出 |
|
|
</span> |
|
|
|
|
|
|
|
|
</span> */} |
|
|
|
|
|
<ExportBtnNew |
|
|
|
|
|
children={<Button className="export-btn" size='medium' type="primary">导出</Button>} |
|
|
|
|
|
modalType="noImg" |
|
|
|
|
|
ref={exportRef} |
|
|
|
|
|
totalRecords={Data?.total} |
|
|
|
|
|
imgno={false} |
|
|
|
|
|
postdata={{ |
|
|
|
|
|
formData: FormData |
|
|
|
|
|
}} |
|
|
|
|
|
isTableModule={true} |
|
|
|
|
|
onOk={ReportPaySummaryReport} |
|
|
|
|
|
/> |
|
|
</div> |
|
|
</div> |
|
|
<div className="head_pay"> |
|
|
<div className="head_pay"> |
|
|
<div className="pl"> |
|
|
<div className="pl"> |
|
|