新增时间查询

main
mo 1 year ago
parent 665cabbba2
commit 4e2b97d372

@ -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({

@ -107,6 +107,17 @@
>
<el-button icon="el-icon-refresh" @click="resetQuery"></el-button>
</el-form-item>
<el-row style="display: inline-block">
<el-button round type="primary" @click="handleOneMonth"
>一个月内</el-button
>
<el-button round type="primary" @click="handleHalfYear"
>半年内</el-button
>
<el-button round type="primary" @click="handleOneYear"
>一年内</el-button
>
</el-row>
</el-form>
<!-- 操作工具栏 -->
@ -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;

Loading…
Cancel
Save