Commit 8c84f677 authored by 我在何方's avatar 我在何方

收款单查询bug修复

parent e0019949
......@@ -225,8 +225,6 @@ export default {
dateType: [],
loading: "",
params: {
page: 1,
rows: 20,
},
// 查询参数
queryParams: {
......@@ -264,7 +262,7 @@ export default {
getList() {
this.loading = true;
// 处理查询参数
let params = { ...this.queryParams };
let params = { ...this.params };
this.addBeginAndEndTime(params, this.dateRangeCreateTime, "createTime");
// 执行查询
getReceiptList(params).then((response) => {
......@@ -315,6 +313,7 @@ export default {
},
/** 搜索按钮操作 */
handleQuery() {
this.params = {}
if(this.dateFilter&&this.dateFilter.length>0){
this.queryParams.beginCreateTime = this.dateFilter[0]
this.queryParams.endCreateTime = this.dateFilter[1]
......@@ -324,6 +323,11 @@ export default {
}
this.queryParams.pageNo = 1;
for(var key in this.queryParams){
if(this.queryParams[key]){
this.params[key] = this.queryParams[key]
}
}
this.getList();
},
/** 新增按钮操作 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment