|
@ -22,7 +22,7 @@ import ajax from "@/services"; |
|
|
import { ResultFlow, ExportBtnNew } from "@/components"; |
|
|
import { ResultFlow, ExportBtnNew } from "@/components"; |
|
|
import "./index.scss"; |
|
|
import "./index.scss"; |
|
|
function RegisterAly() { |
|
|
function RegisterAly() { |
|
|
const exportRef = useRef(null) |
|
|
|
|
|
|
|
|
const exportRef = useRef(null); |
|
|
const formdata = { |
|
|
const formdata = { |
|
|
date_type: "1", |
|
|
date_type: "1", |
|
|
start_date: moment().startOf("day").format("YYYY-MM-DD"), |
|
|
start_date: moment().startOf("day").format("YYYY-MM-DD"), |
|
@ -246,15 +246,15 @@ function RegisterAly() { |
|
|
...FormDatas, |
|
|
...FormDatas, |
|
|
...DateFormt(FormDatas.date_type), |
|
|
...DateFormt(FormDatas.date_type), |
|
|
start: start, |
|
|
start: start, |
|
|
end: end |
|
|
|
|
|
|
|
|
end: end, |
|
|
}).then( |
|
|
}).then( |
|
|
(res) => { |
|
|
(res) => { |
|
|
if (parseInt(res?.status) === 20000) { |
|
|
if (parseInt(res?.status) === 20000) { |
|
|
// Daownload(res?.data?.export_url); |
|
|
// Daownload(res?.data?.export_url); |
|
|
message.success(res.message) |
|
|
|
|
|
exportRef.current.handleCancel() |
|
|
|
|
|
|
|
|
message.success(res.message); |
|
|
|
|
|
exportRef.current.handleCancel(); |
|
|
} else { |
|
|
} else { |
|
|
exportRef.current.handleError() |
|
|
|
|
|
|
|
|
exportRef.current.handleError(); |
|
|
message.error(res?.message); |
|
|
message.error(res?.message); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -809,27 +809,24 @@ function RegisterAly() { |
|
|
<p> |
|
|
<p> |
|
|
共查询到<span> {Data?.total || 0}</span>条数据 |
|
|
共查询到<span> {Data?.total || 0}</span>条数据 |
|
|
</p> |
|
|
</p> |
|
|
{/* <span |
|
|
|
|
|
className={"sear_ser"} |
|
|
|
|
|
onClick={() => { |
|
|
|
|
|
Data?.total && ReportPaySummaryReport(); |
|
|
|
|
|
// setFormDatas({ ...FormData }); |
|
|
|
|
|
}} |
|
|
|
|
|
> |
|
|
|
|
|
导出 |
|
|
|
|
|
</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} |
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
{Data?.total && ( |
|
|
|
|
|
<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> |
|
|
</div> |
|
|
<ResultFlow |
|
|
<ResultFlow |
|
|
hasLoad={true} |
|
|
hasLoad={true} |
|
|