细节优化

This commit is contained in:
2025-10-02 21:35:00 +08:00
parent 8f676b1c38
commit 33f436ea77
8 changed files with 38 additions and 18 deletions

View File

@@ -174,9 +174,10 @@ const DownloadBill: React.FC = () => {
setShowFilterPopup(false);
};
const handleDownloadBill = async () => {
const { start, end } = dateRange;
if (!start || !end) return;
try {
const { transaction_sub_type } = load_transactions_params;
const { start, end } = dateRange;
const date_range = [start, end];
const res = await httpService.post("/wallet/download_bill", { transaction_sub_type, date_range });
const { fileUrl, fileName } = res.data;
@@ -297,7 +298,7 @@ const DownloadBill: React.FC = () => {
>
</Text>
<Button className="download_button" onClick={handleDownloadBill}>
<Button className={`download_button ${!dateRange.start ? 'disabled' : ''}`} onClick={handleDownloadBill}>
</Button>
</View>