优化财务相关功能

This commit is contained in:
lifenlong
2026-06-07 16:57:23 +08:00
parent 0da6ef99af
commit 734825ba9b
28 changed files with 999 additions and 27 deletions

View File

@@ -34,6 +34,7 @@
</el-form-item>
<el-form-item>
<el-button type="primary" class="search-btn" @click="handleSearch">搜索</el-button>
<el-button class="search-btn" @click="handleExport">导出</el-button>
</el-form-item>
</el-form>
</el-card>
@@ -113,6 +114,8 @@
<script>
import * as API_Order from "@/api/order";
import * as API_Finance from "@/api/finance";
import { downloadBlob } from "@/utils/downloadBlob";
export default {
name: "paymentLog",
@@ -164,6 +167,11 @@ export default {
}
});
},
handleExport() {
API_Finance.exportPaymentFlow(this.searchForm).then((blob) => {
downloadBlob(blob, "支付流水.xlsx");
});
},
},
mounted() {
this.init();