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;