优化财务报表

This commit is contained in:
gyq
2026-02-04 16:32:55 +08:00
parent ddd39ec031
commit b87b4c000e
8 changed files with 129 additions and 45 deletions

View File

@@ -34,7 +34,7 @@
<span v-if="!downloadLoading">导出Excel</span>
<span v-else>下载中...</span>
</el-button>
<importData :type="8" />
<importData :type="8" @close="getTableData" />
</div>
</div>
</el-form>
@@ -91,11 +91,11 @@
</el-table-column>
</el-table> -->
</div>
<!-- <div class="head-container">
<el-pagination :total="tableData.total" :current-page="tableData.page + 1" :page-size="tableData.size"
<div class="head-container">
<el-pagination :total="tableData.total" :current-page="tableData.page" :page-size="tableData.size"
@current-change="paginationChange" @size-change="sizeChange"
layout="total, sizes, prev, pager, next, jumper"></el-pagination>
</div> -->
</div>
</div>
</template>
@@ -202,13 +202,14 @@ export default {
},
// 重置查询
resetHandle() {
this.timeValue = "";
this.timeValue = "today";
this.query = { ...this.resetQuery };
this.page = 1;
this.getTableData();
},
// 分页大小改变
sizeChange(e) {
this.tableData.page = 1
this.tableData.size = e;
this.getTableData();
},
@@ -228,8 +229,11 @@ export default {
// page: this.tableData.page,
// size: this.tableData.size,
rangeType: this.timeValue,
// rangeType: 'custom',
beginDate: this.query.createdAt[0],
endDate: this.query.createdAt[1],
// beginDate: '2026-01-26',
// endDate: '2026-01-26',
shopId: this.shopId
});
this.tableData.loading = false;