This commit is contained in:
2026-08-28 15:30:24 +08:00
parent 17bbde81b2
commit 9a4e0f7c03
16 changed files with 1016 additions and 183 deletions
@@ -138,10 +138,11 @@ export default {
async loadTable() {
this.loading = true;
try {
const { data } = await api.getList(this.page.current, this.page.size, {
const response = await api.getList(this.page.current, this.page.size, {
...this.query,
settlementType: this.settlementType,
});
const data = response?.data?.data || response?.data || response || {};
this.rows = data.records || [];
this.page.total = data.total || 0;
} finally {
@@ -202,10 +203,11 @@ export default {
this.loadTable();
},
async handleExport() {
const { data } = await api.getList(1, 100000, {
const response = await api.getList(1, 100000, {
...this.query,
settlementType: this.settlementType,
});
const data = response?.data?.data || response?.data || response || {};
const exportRows = (data.records || []).map(item => ({
对账单号: item.reconciliationNo,
付款方: item.payerName,