From 4e2b97d37208d37e64ca56467efdbf2b6fa79f56 Mon Sep 17 00:00:00 2001
From: MO <448233645@qq.com>
Date: Mon, 9 Oct 2023 16:51:40 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=97=B6=E9=97=B4=E6=9F=A5?=
=?UTF-8?q?=E8=AF=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/accounting/bankSlip.js | 9 +++++++
src/views/accounting/bankSlip/index.vue | 35 +++++++++++++++++++++++++
2 files changed, 44 insertions(+)
diff --git a/src/api/accounting/bankSlip.js b/src/api/accounting/bankSlip.js
index 589f6d31..c776f563 100644
--- a/src/api/accounting/bankSlip.js
+++ b/src/api/accounting/bankSlip.js
@@ -43,6 +43,15 @@ export function getBankSlipPage(query) {
})
}
+// 获得银行回单分页2
+export function getBankSlipPageTime(query) {
+ return request({
+ url: '/archives/bank-slip/pageTime',
+ method: 'get',
+ params: query
+ })
+}
+
// 导出银行回单 Excel
export function exportBankSlipExcel(query) {
return request({
diff --git a/src/views/accounting/bankSlip/index.vue b/src/views/accounting/bankSlip/index.vue
index 66da0f1a..a951373a 100644
--- a/src/views/accounting/bankSlip/index.vue
+++ b/src/views/accounting/bankSlip/index.vue
@@ -107,6 +107,17 @@
>
重置
+
+ 一个月内
+ 半年内
+ 一年内
+
@@ -531,6 +542,7 @@ import {
getBankSlipPage,
exportBankSlipExcel,
downloadXml,
+ getBankSlipPageTime,
} from "@/api/accounting/bankSlip";
export default {
@@ -604,6 +616,7 @@ export default {
form: {},
// 表单校验
rules: {},
+ time: "",
};
},
created() {
@@ -620,6 +633,28 @@ export default {
this.loading = false;
});
},
+ /** 查询列表2 */
+ getList2() {
+ this.loading = true;
+ // 执行查询
+ getBankSlipPageTime({ months: this.time }).then((response) => {
+ this.list = response.data.list;
+ this.total = response.data.total;
+ this.loading = false;
+ });
+ },
+ handleOneMonth() {
+ this.time = 1;
+ this.getList2();
+ },
+ handleHalfYear() {
+ this.time = 6;
+ this.getList2();
+ },
+ handleOneYear() {
+ this.time = 12;
+ this.getList2();
+ },
/** 取消按钮 */
cancel() {
this.open = false;